.gallery-page {
    background:
        radial-gradient(circle at top right, rgba(27, 168, 158, 0.08), transparent 28%),
        linear-gradient(180deg, #e9e4d8 0%, #f2eee7 42%, #f7f5ef 100%);
    color: #122033;
    overflow-x: hidden;
}

.gallery-page .gallery-studio {
    padding: 48px 0 28px;
}

.gallery-page .gallery-studio>.container {
    width: 100%;
    max-width: none;
    padding: 0 16px;
}

.gallery-page .gallery-frame {
    padding: clamp(22px, 4vw, 42px);
    background: rgba(255, 253, 249, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 48px rgba(33, 32, 27, 0.16);
}

.gallery-page .gallery-frame-head {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(22px, 4vw, 36px);
}

.gallery-page .gallery-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-page .gallery-title-line {
    width: 32px;
    height: 2px;
    background: #1f2937;
    flex-shrink: 0;
}

.gallery-page .gallery-title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-page .gallery-lead {
    margin: 0;
    max-width: 44rem;
    color: #5c6577;
    line-height: 1.75;
}

.gallery-page .gallery-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1ba89e 0%, #138a85 100%);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(27, 168, 158, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-page .gallery-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(39, 112, 223, 0.28);
}

.gallery-page .gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-page .gallery-filter-btn {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-page .gallery-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 168, 158, 0.3);
}

.gallery-page .gallery-filter-btn.active {
    background: #138a85;
    border-color: #138a85;
    color: #ffffff;
}

.gallery-page .gallery-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.gallery-page .gallery-tile {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: #d8d5cd;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.gallery-page .gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.35s ease;
}

.gallery-page .gallery-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 14, 24, 0) 22%, rgba(8, 14, 24, 0.14) 56%, rgba(8, 14, 24, 0.82) 100%);
    z-index: 1;
}

.gallery-page .gallery-tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(199, 170, 63, 0) 0%, rgba(188, 159, 51, 0.18) 60%, rgba(168, 134, 25, 0.36) 100%);
    z-index: 1;
}

.gallery-page .gallery-tile:hover img {
    transform: scale(1.04);
}

.gallery-page .gallery-tile.is-hidden {
    display: none;
}

.gallery-page .gallery-tile-copy {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 2;
}

.gallery-page .gallery-tile-copy h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    font-weight: 500;
    line-height: 1.25;
}

.gallery-page .gallery-tile-copy span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
}

.gallery-page .tile-portrait {
    min-height: 320px;
}

.gallery-page .tile-wide-top,
.gallery-page .tile-wide-bottom {
    min-height: 280px;
}

.gallery-page .tile-square-top,
.gallery-page .tile-medium,
.gallery-page .tile-small {
    min-height: 260px;
}

.gallery-page .gallery-honors {
    margin-top: clamp(30px, 5vw, 50px);
    display: grid;
    gap: 26px;
}

.gallery-page .honor-section {
    background: linear-gradient(135deg, #fffefa 0%, #f8f4e8 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    padding: clamp(14px, 3vw, 20px);
}

.gallery-page .honor-grid {
    display: grid;
    gap: 12px;
}

.gallery-page .honor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.gallery-page .honor-card img {
    width: 100%;
    height: auto;
    max-height: 360px;
    display: block;
    cursor: zoom-in;
    object-fit: contain;
}

.gallery-page .gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 7, 18, 0.92);
    overflow: auto;
}

.gallery-page .gallery-lightbox.open {
    display: flex;
}

.gallery-page .lightbox-figure {
    margin: 0;
    width: min(100%, 1200px);
    max-height: 90vh;
    position: relative;
    z-index: 1;
}

.gallery-page .lightbox-figure img {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.gallery-page .lightbox-btn {
    position: absolute;
    z-index: 2;
    border: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-page .lightbox-btn:hover {
    background: rgba(19, 138, 133, 0.88);
    transform: scale(1.04);
}

.gallery-page .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 1.8rem;
    line-height: 1;
}

.gallery-page .lightbox-prev,
.gallery-page .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    line-height: 1;
}

.gallery-page .lightbox-prev {
    left: 16px;
}

.gallery-page .lightbox-next {
    right: 16px;
}

.gallery-page .gallery-followup {
    padding: 18px 0 72px;
}

.gallery-page .gallery-followup-card {
    display: grid;
    gap: 20px;
    padding: 28px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0a2f2a 0%, #0f3e38 100%);
    box-shadow: 0 20px 42px rgba(27, 168, 158, 0.18);
}

.gallery-page .gallery-followup-copy .small-text {
    margin-bottom: 10px;
    color: #1ba89e;
}

.gallery-page .gallery-followup-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 6vw, 2.35rem);
    line-height: 1.2;
}

.gallery-page .gallery-followup-copy p:last-child {
    margin: 14px 0 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.75;
}

.gallery-page .gallery-followup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-page .gallery-followup-actions a {
    width: 100%;
    text-decoration: none;
}

@media (min-width: 40rem) {
    .gallery-page .gallery-filters {
        margin-bottom: 24px;
    }

    .gallery-page .gallery-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .gallery-page .honor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-page .tile-wide-top,
    .gallery-page .tile-wide-bottom {
        grid-column: span 2;
    }

    .gallery-page .gallery-followup-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gallery-page .gallery-followup-actions a {
        width: auto;
    }
}

@media (max-width: 48rem) {
    .gallery-page .gallery-lightbox {
        padding: 12px;
    }

    .gallery-page .lightbox-btn {
        width: 44px;
        height: 44px;
    }

    .gallery-page .lightbox-prev {
        left: 8px;
    }

    .gallery-page .lightbox-next {
        right: 8px;
    }

    .gallery-page .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (min-width: 64rem) {
    .gallery-page .gallery-studio {
        padding: 68px 0 36px;
    }

    .gallery-page .gallery-studio>.container {
        padding: 0 24px;
    }

    .gallery-page .gallery-filters {
        margin-bottom: 28px;
    }

    .gallery-page .gallery-frame-head {
        grid-template-columns: auto 1fr auto;
        align-items: end;
        column-gap: 28px;
    }

    .gallery-page .gallery-title-wrap {
        align-self: center;
    }

    .gallery-page .gallery-lead {
        max-width: 36rem;
    }

    .gallery-page .gallery-pill {
        justify-self: end;
    }

    .gallery-page .gallery-mosaic {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 16px;
    }

    .gallery-page .tile-portrait {
        grid-column: span 3;
        min-height: 340px;
    }

    .gallery-page .tile-wide-top {
        grid-column: span 5;
        min-height: 340px;
    }

    .gallery-page .tile-square-top {
        grid-column: span 4;
        min-height: 340px;
    }

    .gallery-page .tile-wide-bottom {
        grid-column: span 5;
        min-height: 270px;
    }

    .gallery-page .tile-medium {
        grid-column: span 4;
        min-height: 270px;
    }

    .gallery-page .tile-small {
        grid-column: span 3;
        min-height: 270px;
    }

    .gallery-page .gallery-followup {
        padding-bottom: 88px;
    }

    .gallery-page .gallery-followup-card {
        grid-template-columns: 1.2fr auto;
        align-items: center;
        padding: 34px 36px;
    }

    .gallery-page .gallery-followup-actions {
        justify-content: flex-end;
    }
}

@media (min-width: 160rem) {
    .gallery-page .gallery-studio {
        padding: 88px 0 44px;
    }

    .gallery-page .gallery-frame {
        padding: 48px 52px 56px;
    }

    .gallery-page .gallery-frame-head {
        margin-bottom: 42px;
    }

    .gallery-page .gallery-title {
        font-size: clamp(3rem, 2.6vw, 4.25rem);
    }

    .gallery-page .gallery-mosaic {
        gap: 20px;
    }

    .gallery-page .tile-portrait,
    .gallery-page .tile-wide-top,
    .gallery-page .tile-square-top {
        min-height: 420px;
    }

    .gallery-page .tile-wide-bottom,
    .gallery-page .tile-medium,
    .gallery-page .tile-small {
        min-height: 320px;
    }
}