* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background: #070b0f;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow-x: hidden
}

.gallery-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 22px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 11, 15, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 229, 255, .12)
}

.gallery-logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 5px
}

.back-btn {
    color: #8bdde8;
    text-decoration: none;
    font-size: .7rem;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 229, 255, .25);
    padding: 11px 18px;
    transition: .3s ease
}

.back-btn:hover {
    background: #00e5ff;
    color: #061014
}

.gallery-hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden
}

.gallery-hero:before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, .1), transparent 65%);
    pointer-events: none
}

.hero-small-label {
    color: #00e5ff;
    font-size: .7rem;
    letter-spacing: 5px;
    margin-bottom: 25px
}

.gallery-hero h1 {
    position: relative;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 5px;
    line-height: 1
}

#fest-year {
    color: #8ca3aa;
    font-size: 1rem;
    letter-spacing: 8px;
    margin-top: 18px
}

.hero-line {
    width: 80px;
    height: 1px;
    background: #00e5ff;
    margin: 30px 0
}

.gallery-description {
    max-width: 600px;
    color: #82969d;
    line-height: 1.8;
    font-size: .95rem
}

.media-section {
    width: min(1400px, 90%);
    margin: 0 auto;
    padding: 80px 0
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding-bottom: 20px
}

.section-label {
    color: #00e5ff;
    font-size: .65rem;
    letter-spacing: 3px
}

.section-heading h2 {
    margin-top: 8px;
    font-size: 2.5rem;
    letter-spacing: 4px
}

#photo-count,
#video-count {
    color: #63777d;
    font-size: .7rem;
    letter-spacing: 2px
}

.photo-grid {
    columns: 4 250px;
    column-gap: 15px
}

.photo-card {
    display: block;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    background: #0b1116;
    border: 1px solid rgba(0, 229, 255, .12);
    break-inside: avoid
}

.photo-card img {
    width: 100%;
    display: block;
    transition: transform .6s ease, filter .6s ease
}

.photo-card:hover img {
    transform: scale(1.04);
    filter: brightness(.65)
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    transition: opacity .3s ease
}

.photo-card:hover .photo-overlay {
    opacity: 1
}

.photo-overlay span {
    color: #fff;
    font-size: .7rem;
    letter-spacing: 2px
}

.video-section {
    border-top: 1px solid rgba(255, 255, 255, .05)
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px
}

.video-card {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0b1116;
    border: 1px solid rgba(0, 229, 255, .14);
    text-decoration: none
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .65;
    transition: transform .5s ease, opacity .5s ease
}

.video-card:hover video {
    transform: scale(1.04);
    opacity: .35
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity .3s ease;
    background: rgba(0, 10, 15, .45)
}

.video-card:hover .video-overlay {
    opacity: 1
}

.play-icon {
    width: 60px;
    height: 60px;
    border: 1px solid #00e5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e5ff;
    font-size: 1.3rem
}

.video-overlay span {
    color: #fff;
    font-size: .65rem;
    letter-spacing: 3px
}

.gallery-footer {
    margin-top: 60px;
    padding: 40px 5vw;
    display: flex;
    justify-content: space-between;
    color: #4d6167;
    font-size: .65rem;
    letter-spacing: 3px;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

@media(max-width:700px) {
    .gallery-nav {
        padding: 18px 5vw
    }

    .back-btn {
        padding: 9px 12px;
        font-size: .55rem
    }

    .gallery-hero {
        min-height: 45vh;
        padding: 80px 20px 50px
    }

    .section-heading h2 {
        font-size: 1.8rem
    }

    .photo-grid {
        columns: 2 140px
    }

    .video-grid {
        grid-template-columns: 1fr
    }

    .gallery-footer {
        flex-direction: column;
        gap: 15px
    }
}

.gallery-logo {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.gallery-logo img {
    width: 150px;
    height: auto;

    display: block;

    object-fit: contain;
}

.gallery-logo img {
    width: 110px;
}

/* ==========================================================
   PHOTO LIGHTBOX
   ========================================================== */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 80px;

    background:
        rgba(0,
            0,
            0,
            0.94);

    backdrop-filter:
        blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* OPEN */

.lightbox.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* ==========================================================
   IMAGE
   ========================================================== */

.lightbox-image {

    max-width: 90vw;

    max-height: 88vh;

    width: auto;

    height: auto;

    object-fit: contain;

    display: block;

    border:
        1px solid rgba(0,
            229,
            255,
            0.18);

    box-shadow:
        0 0 60px rgba(0,
            229,
            255,
            0.08);

    user-select: none;

}


/* ==========================================================
   CLOSE BUTTON
   ========================================================== */

.lightbox-close {

    position: fixed;

    top: 24px;

    right: 28px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 10001;

    border:
        1px solid rgba(0,
            229,
            255,
            0.45);

    border-radius: 50%;

    background:
        rgba(5,
            10,
            14,
            0.8);

    backdrop-filter:
        blur(10px);

    color:
        #ffffff;

    font-size:
        30px;

    font-weight:
        300;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.lightbox-close:hover {

    background:
        rgba(0,
            229,
            255,
            0.12);

    border-color:
        #00e5ff;

    color:
        #00e5ff;

    transform:
        rotate(90deg);
}


/* ==========================================================
   PREVIOUS / NEXT
   ========================================================== */

.lightbox-nav {

    position: fixed;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 10001;

    width: 52px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(0,
            229,
            255,
            0.25);

    background:
        rgba(5,
            10,
            14,
            0.7);

    color:
        #ffffff;

    font-size:
        42px;

    font-weight:
        200;

    cursor:
        pointer;

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.lightbox-nav:hover {

    color:
        #00e5ff;

    border-color:
        rgba(0,
            229,
            255,
            0.7);

    background:
        rgba(0,
            229,
            255,
            0.08);
}


.lightbox-prev {

    left: 25px;
}


.lightbox-next {

    right: 25px;
}


/* ==========================================================
   PREVENT PAGE SCROLL WHILE LIGHTBOX IS OPEN
   ========================================================== */

body.lightbox-open {

    overflow:
        hidden;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .lightbox {

        padding:
            60px 15px;
    }


    .lightbox-image {

        max-width:
            94vw;

        max-height:
            82vh;
    }


    .lightbox-close {

        top:
            14px;

        right:
            14px;

        width:
            42px;

        height:
            42px;

        font-size:
            26px;
    }


    .lightbox-nav {

        width:
            40px;

        height:
            55px;

        font-size:
            32px;

        background:
            rgba(5,
                10,
                14,
                0.85);
    }


    .lightbox-prev {

        left:
            8px;
    }


    .lightbox-next {

        right:
            8px;
    }

}