.gallery-nav-home {
    text-decoration: none;
    position: relative;
    z-index: 4;
}

.gallery-header-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: 'GreatVibes', sans-serif;
    font-size: 2.4rem;
    color: #007A91;
    pointer-events: none;
}

.gallery-page {
    min-height: 100vh;
    padding: 5.3vw 4vw 3vw;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f9f6ed 0%, #fff 35%, #eef5f7 100%);
}

.gallery-hero {
    max-width: 72vw;
    margin: 0 auto 2vw;
    text-align: center;
}

.gallery-title {
    margin: 0;
    font-family: 'GreatVibes', sans-serif;
    font-size: 4rem;
    color: #007A91;
}

.gallery-subtitle {
    margin: 0.8vw 0 0;
    font-family: 'Gothampro', sans-serif;
    font-size: 1rem;
    color: #2f3442;
}

.gallery-masonry {
    column-count: 4;
    column-gap: 0.6vw;
    max-width: 92vw;
    margin: 0 auto;
}

.gallery-item {
    margin: 0 0 0.6vw;
    break-inside: avoid;
    border-radius: 0.35vw;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.6vw 1.4vw rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    display: block;
    height: auto;
    cursor: zoom-in;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vw;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1200;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.4vw;
    box-shadow: 0 1vw 2.4vw rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-close {
    position: absolute;
    top: 1vw;
    right: 1.4vw;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #fff;
    width: 4.8vw;
    height: 8vw;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: -1px 0 0 rgba(110, 110, 110, 0.9), 0 1px 0 rgba(110, 110, 110, 0.9), 1px 0 0 rgba(110, 110, 110, 0.9), 0 -1px 0 rgba(110, 110, 110, 0.9);
}

.gallery-lightbox-nav--prev {
    left: 2.4vw;
}

.gallery-lightbox-nav--next {
    right: 2.4vw;
}

.gallery-empty {
    max-width: 65vw;
    margin: 2vw auto;
    padding: 1.5vw;
    border-radius: 0.8vw;
    text-align: center;
    font-family: 'Gothampro', sans-serif;
    font-size: 1rem;
    color: #2f3442;
    background: #fff;
    border: 0.08vw solid rgba(188, 148, 8, 0.25);
}

@media (max-width: 1025px) {
    .navbar .nav-buttons {
        display: flex !important;
        height: 100%;
    }

    .gallery-page {
        padding: 9vw 3vw 4vw;
    }

    .gallery-header-title {
        display: none;
    }

    .gallery-nav-home {
        display: inline-flex;
        align-items: center;
        height: 100%;
        font-size: 1.6rem;
        padding: 0 2vw;
    }

    .gallery-hero {
        max-width: 90vw;
        margin-bottom: 2.4vw;
    }

    .gallery-title {
        font-size: 5rem;
    }

    .gallery-subtitle,
    .gallery-empty {
        font-size: 1.5rem;
    }

    .gallery-masonry {
        column-count: 3;
        column-gap: 1vw;
        max-width: 95vw;
    }

    .gallery-item {
        margin-bottom: 1vw;
        border-radius: 0.6vw;
    }

    .gallery-lightbox {
        padding: 3vw;
    }

    .gallery-lightbox-close {
        top: 2vw;
        right: 2.5vw;
        font-size: 4rem;
    }

    .gallery-lightbox-nav {
        width: 8vw;
        height: 12vw;
        font-size: 3.2rem;
    }

    .gallery-lightbox-nav--prev {
        left: 3.2vw;
    }

    .gallery-lightbox-nav--next {
        right: 3.2vw;
    }
}

@media (max-width: 500px) {
    .gallery-page {
        padding: 14vw 3vw 5vw;
    }

    .gallery-nav-home {
        display: inline-flex;
        align-items: center;
        height: 100%;
        font-size: 2.6rem;
        padding: 0 2.6vw;
    }

    .gallery-title {
        font-size: 4.2rem;
    }

    .gallery-subtitle,
    .gallery-empty {
        font-size: 1.8rem;
        line-height: 1.35;
    }

    .gallery-masonry {
        column-count: 2;
        column-gap: 1.2vw;
    }

    .gallery-item {
        margin-bottom: 1.2vw;
        border-radius: 0.8vw;
    }

    .gallery-lightbox {
        padding: 5vw;
    }

    .gallery-lightbox-close {
        top: 3vw;
        right: 4vw;
        font-size: 5rem;
    }

    .gallery-lightbox-nav {
        width: 14vw;
        height: 18vw;
        font-size: 5rem;
    }

    .gallery-lightbox-nav--prev {
        left: 4vw;
    }

    .gallery-lightbox-nav--next {
        right: 4vw;
    }
}

@media (max-width: 360px) {
    .gallery-masonry {
        column-count: 1;
    }
}
