63 lines
1.1 KiB
CSS
63 lines
1.1 KiB
CSS
body { font-family: Arial, sans-serif; text-align: center; margin: 0; padding: 0; }
|
|
|
|
h1 { margin-top: 1.5rem; }
|
|
|
|
|
|
#gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 22px;
|
|
justify-items: center;
|
|
align-items: start;
|
|
/* max-width: 1400px; */
|
|
margin: auto 10rem;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
|
|
.image-container {
|
|
width: 200px;
|
|
aspect-ratio: 1 / 1;
|
|
background: #fafafa;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.07);
|
|
transition: transform 0.15s;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.image-container:hover {
|
|
transform: scale(1.04);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
|
}
|
|
|
|
.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 {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 8px 8px 0 0;
|
|
display: block;
|
|
}
|