pixelvault-gallery / style.css
mistro404's picture
# 🔴 Deepsite Prompt — Crimson Red Theme Gallery with Admin Upload & Zoom
2f7725e verified
Raw History Blame Contribute Delete
1.14 kB
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
}
#zoomContainer {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.9);
justify-content: center;
align-items: center;
z-index: 9999;
cursor: zoom-out;
}
#zoomContainer img {
max-width: 90%;
max-height: 90%;
border-radius: 10px;
box-shadow: 0 0 20px #DC143C;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
padding: 2rem;
}
.gallery img {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: 8px;
cursor: zoom-in;
transition: transform 0.3s ease, box-shadow 0.3s ease;
background: #222;
}
.gallery img:hover {
transform: scale(1.02);
box-shadow: 0 10px 20px rgba(220, 20, 60, 0.2);
}
@media (max-width: 768px) {
.gallery {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.gallery img {
height: 200px;
}
}