83 lines
1.3 KiB
CSS
83 lines
1.3 KiB
CSS
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100%;
|
|
box-sizing: border-box;
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
background: linear-gradient(135deg, #1f1f22 0%, #232a33 100%);
|
|
color: #e0e0e0;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
h1 {
|
|
margin-top: 1.5rem;
|
|
color: #e0e6f0;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
|
|
#gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, 200px);
|
|
gap: 4px;
|
|
justify-items: center;
|
|
align-items: start;
|
|
/* max-width: 1400px; */
|
|
margin: auto 10rem;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
|
|
.image-container {
|
|
width: 200px;
|
|
aspect-ratio: 1 / 1;
|
|
background: transparent;
|
|
border-radius: 12px;
|
|
transition: transform 0.15s;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.image-container:hover {
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
.copy-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
background: rgba(0,0,0,0.7);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 0.9rem;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
z-index: 2;
|
|
}
|
|
|
|
.image-container:hover .copy-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.image-container img {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
width: auto;
|
|
height: auto;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
display: block;
|
|
margin: auto;
|
|
background: transparent;
|
|
}
|