/* ══════════════════════════════════════════
   MEDIA GALLERY STYLES — media.css
   ══════════════════════════════════════════ */

.media-gallery-section {
    padding: 6vw 0;
    background-color: #fcfcfc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16vw, 1fr));
    gap: 2.5vw;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.8vw;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background-color: #eee;
    box-shadow: 0 0.5vw 1.5vw rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: "\271B"; /* Plus icon */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 66, 99, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5vw;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ── Custom Lightbox ── */
.vtet-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vtet-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0.5vw;
    box-shadow: 0 2vw 5vw rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: -3vw;
    right: -3vw;
    color: #ffffff;
    font-size: 3vw;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3vw;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 5vw;
    height: 5vw;
    border-radius: 50%;
    font-size: 2vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.lightbox-nav button:hover {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #000;
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 3vw;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1vw;
    letter-spacing: 0.2vw;
    text-transform: uppercase;
}

/* ── Mobile ── */
@media (max-width: 960px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    
    .gallery-item {
        border-radius: 3vw;
    }
    
    .gallery-item::after {
        font-size: 8vw;
    }

    .lightbox-close {
        top: -12vw;
        right: 2vw;
        font-size: 10vw;
    }

    .lightbox-nav {
        padding: 0 5vw;
    }

    .lightbox-nav button {
        width: 14vw;
        height: 14vw;
        font-size: 6vw;
    }

    .lightbox-counter {
        bottom: 8vw;
        font-size: 4vw;
    }
}
