.gallery-hero {
    width: 100%;
    padding: 120px 6% 100px;
    background: #0a1931;
    color: #ffffff;
    text-align: center;
}

.gallery-hero-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-eyebrow {
    margin: 0 0 16px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a227;
}

.gallery-hero h1 {
    max-width: 850px;
    margin: 0 auto 24px;
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.gallery-hero-text {
    max-width: 720px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}


.gallery-projects {
    width: 100%;
    padding: 110px 6%;
    background: #ffffff;
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.gallery-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.gallery-section-heading {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}

.gallery-section-heading .gallery-eyebrow {
    margin-bottom: 15px;
}

.gallery-section-heading h2 {
    margin: 0 0 22px;
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    color: #0a1931;
}

.gallery-section-heading p:not(.gallery-eyebrow) {
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #626262;
}


.work-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 50px;
}

.work-filter {
    padding: 12px 20px;
    border: 1px solid rgba(10, 25, 49, 0.18);
    border-radius: 0;
    background: #ffffff;
    color: #0a1931;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.work-filter:hover {
    border-color: #c9a227;
    color: #b18b18;
}

.work-filter.active {
    background: #0a1931;
    border-color: #0a1931;
    color: #ffffff;
}


.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px 24px;
}

.work-item {
    min-width: 0;
}

.work-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.work-image-button img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.work-image-button:hover img {
    transform: scale(1.035);
}

.work-image-button:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 4px;
}

.work-info {
    padding: 18px 2px 0;
}

.work-info span {
    display: block;
    margin-bottom: 7px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b18b18;
}

.work-info h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: #0a1931;
}


.gallery-inspiration {
    width: 100%;
    padding: 110px 6%;
    background: #fafaf8;
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.gallery-inspiration .gallery-section-heading {
    margin-bottom: 55px;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.inspiration-item {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
}

.inspiration-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.inspiration-item:hover img {
    transform: scale(1.035);
}


.gallery-cta {
    width: 100%;
    padding: 100px 6%;
    background: #0a1931;
    color: #ffffff;
    text-align: center;
}

.gallery-cta-inner {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.gallery-cta h2 {
    margin: 0 0 20px;
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.gallery-cta p:not(.gallery-eyebrow) {
    max-width: 650px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.gallery-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 35px;
}

.gallery-cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid #c9a227;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.gallery-cta-buttons a:first-child {
    background: #c9a227;
    color: #0a1931;
}

.gallery-cta-buttons a:first-child:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.gallery-cta-buttons a:last-child {
    background: transparent;
    color: #ffffff;
}

.gallery-cta-buttons a:last-child:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a1931;
}


.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(5, 12, 24, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    border-color: #c9a227;
    color: #c9a227;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
}

#lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

#lightbox-title {
    margin: 18px 0 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}


@media (min-width: 701px) and (max-width: 1000px) {

    .gallery-hero {
        padding: 100px 5% 85px;
    }

    .gallery-projects,
    .gallery-inspiration {
        padding: 90px 5%;
    }

    .work-grid,
    .inspiration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-cta {
        padding: 90px 5%;
    }

}


@media (max-width: 700px) {

    .gallery-hero {
        padding: 80px 6% 70px;
    }

    .gallery-hero h1 {
        font-size: 36px;
        line-height: 1.15;
    }

    .gallery-hero-text {
        font-size: 13px;
        line-height: 1.8;
    }


    .gallery-projects,
    .gallery-inspiration {
        padding: 70px 6%;
    }

    .gallery-section-heading {
        margin-bottom: 40px;
    }

    .gallery-section-heading h2 {
        font-size: 34px;
    }

    .gallery-section-heading p:not(.gallery-eyebrow) {
        font-size: 13px;
    }


    .work-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 35px;
    }

    .work-filter {
        width: 100%;
        padding: 11px 8px;
        font-size: 11px;
    }


    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    .work-image-button img {
        aspect-ratio: 1 / 1;
    }

    .work-info {
        padding-top: 12px;
    }

    .work-info span {
        margin-bottom: 5px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .work-info h3 {
        font-size: 16px;
        line-height: 1.25;
    }


    .inspiration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .inspiration-item img {
        aspect-ratio: 1 / 1;
    }


    .gallery-cta {
        padding: 70px 6%;
    }

    .gallery-cta h2 {
        font-size: 34px;
    }

    .gallery-cta p:not(.gallery-eyebrow) {
        font-size: 13px;
    }

    .gallery-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-cta-buttons a {
        width: 100%;
    }


    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    #lightbox-image {
        max-height: 72vh;
    }

}


@media (max-width: 380px) {

    .gallery-hero h1 {
        font-size: 32px;
    }

    .work-grid,
    .inspiration-grid {
        gap: 20px 10px;
    }

    .work-info h3 {
        font-size: 14px;
    }

}