/* css/components/achievement-gallery.css */

/* Section layout */
.achievement-gallery-section {
    margin: 40px 0;
    padding-bottom: 30px;
}

.achievement-gallery-section h2 {
    font-size: 1.9rem;
    margin-bottom: 18px;
    text-align: left;
}

/* Optional small helper note */
.gallery-note {
    margin-top: 12px;
    color: #666;
    font-size: 0.95rem;
}

/* Gallery Grid */
.achievement-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

/* Each item */
.zoom-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: zoom-in;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zoom-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.zoom-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

/* Fullscreen zoom overlay (no close button) */
#zoomOverlay {
    position: fixed;
    inset: 0; /* top/right/bottom/left:0 */
    display: none; /* shown via JS */
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    cursor: zoom-out;
    padding: 20px;
}

#zoomOverlay img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: block;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .achievement-gallery h2 {
        text-align: center;
    }
    .zoom-item img {
        height: 140px;
    }
    .gallery-note {
        text-align: center;
    }
}
