/*
 * Public gallery styles: page hero, video cards, photo grids, event cards and
 * the image viewer. Everything is prefixed with "st-" to stay clear of the
 * Paper Kit / Bootstrap styles used by the rest of the site.
 */

:root {
    --st-navy: #212121;
    --st-navy-soft: #343434;
    --st-gold: #fdb912;
    --st-ink: #1f2937;
    --st-muted: #6b7280;
    --st-line: #e5e7eb;
    --st-surface: #ffffff;
    --st-page: #f5f6f8;
    --st-radius: 16px;
    --st-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.2);
}

.st-page {
    background: var(--st-page);
    color: var(--st-ink);
    min-height: 100vh;
}

.st-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.st-hero {
    position: relative;
    padding: 130px 0 70px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(900px 320px at 85% -10%, rgb(253 185 18 / 0.38), transparent 60%),
        linear-gradient(160deg, var(--st-navy) 0%, var(--st-navy-soft) 100%);
}

.st-hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgb(253 185 18 / 0.16);
    color: var(--st-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.st-hero__title {
    margin: 0;
    color: var(--st-gold);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
}

.st-hero__text {
    max-width: 640px;
    margin: 14px auto 0;
    color: rgb(255 255 255 / 0.78);
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Sections ---------- */
.st-section {
    padding: 56px 0 8px;
}

.st-section:last-child {
    padding-bottom: 72px;
}

.st-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.st-section__title {
    position: relative;
    margin: 0;
    padding-bottom: 12px;
    color: var(--st-navy);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
}

.st-section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: var(--st-gold);
}

.st-section__count {
    color: var(--st-muted);
    font-size: 14px;
}

/* ---------- Videos ---------- */
.st-videos {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .st-videos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.st-videos--single {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
}

.st-video-card {
    margin: 0;
    overflow: hidden;
    border-radius: var(--st-radius);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

.st-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.st-video iframe,
.st-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.st-video__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-color: #0b1220;
    background-position: center;
    background-size: cover;
}

.st-video__play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / 0.45));
    transition: background 0.2s;
}

.st-video__play:hover::before {
    background: linear-gradient(180deg, rgb(0 0 0 / 0.1) 40%, rgb(0 0 0 / 0.55));
}

.st-video__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--st-gold);
    color: var(--st-navy);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
    transition: transform 0.2s;
}

.st-video__play:hover .st-video__icon {
    transform: scale(1.1);
}

.st-video__icon svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.st-video-card figcaption {
    padding: 14px 18px;
    color: var(--st-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Photo grid ---------- */
.st-photos {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .st-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .st-photos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

.st-photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #e5e7eb;
    cursor: zoom-in;
}

.st-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.st-photo::after {
    content: attr(data-caption);
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 12px 10px;
    background: linear-gradient(180deg, transparent, rgb(1 21 46 / 0.78));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.25s;
}

.st-photo:hover img {
    transform: scale(1.06);
}

.st-photo:hover::after {
    opacity: 1;
}

.st-photo[hidden] {
    display: none;
}

.st-photo--more {
    display: grid;
    place-items: center;
}

/* ---------- Filter chips ---------- */
.st-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

a.st-chip {
    text-decoration: none;
}

.st-chip {
    padding: 8px 18px;
    border: 1px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-surface);
    color: var(--st-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.15s;
}

.st-chip:hover {
    border-color: var(--st-gold);
}

.st-chip.is-active {
    border-color: var(--st-gold);
    background: var(--st-gold);
    color: var(--st-navy);
}

.st-empty {
    padding: 48px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--st-radius);
    background: var(--st-surface);
    color: var(--st-muted);
    text-align: center;
}

/* ---------- Events ---------- */
.st-events {
    display: grid;
    gap: 28px;
}

.st-event {
    overflow: hidden;
    border-radius: 20px;
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

.st-event[hidden] {
    display: none;
}

.st-event__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px 8px;
}

.st-event__date {
    flex: 0 0 auto;
    min-width: 66px;
    padding: 10px 8px;
    border-radius: 14px;
    background: var(--st-navy);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

.st-event__date strong {
    display: block;
    color: var(--st-gold);
    font-size: 26px;
}

.st-event__date span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.st-event__titlebox {
    flex: 1 1 260px;
    min-width: 0;
    text-align: left;
}

.st-event__title {
    margin: 0;
    color: var(--st-navy);
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.st-event__desc {
    margin: 8px 0 0;
    color: var(--st-muted);
    font-size: 15px;
    line-height: 1.6;
}

.st-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.st-event__body {
    padding: 18px 28px 28px;
}

.st-event__label {
    margin: 22px 0 12px;
    color: var(--st-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.st-event__label:first-child {
    margin-top: 4px;
}

.st-guide__copy {
    color: var(--st-ink);
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.st-guide__copy p {
    margin: 0 0 1em;
}

.st-guide__copy p:last-child {
    margin-bottom: 0;
}

.st-more {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--st-gold);
    color: var(--st-navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.st-btn:hover {
    background: #ffc93f;
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .st-event__head {
        padding: 20px 18px 4px;
    }

    .st-event__body {
        padding: 14px 18px 22px;
    }
}

/* ---------- Image viewer ---------- */
.stv {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    background: rgb(2 8 20 / 0.94);
    color: #fff;
    user-select: none;
    touch-action: none;
}

.stv.is-open {
    display: flex;
}

.stv__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px;
}

.stv__count {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stv__tools {
    display: flex;
    gap: 8px;
}

.stv__btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.stv__btn:hover {
    background: rgb(255 255 255 / 0.22);
    color: #fff;
}

.stv__btn svg {
    width: 20px;
    height: 20px;
}

.stv__stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.stv__img {
    max-width: 94vw;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: opacity 0.2s, transform 0.2s ease-out;
    will-change: transform;
}

.stv__img.is-loading {
    opacity: 0.25;
}

.stv__img.is-zoomed {
    cursor: zoom-out;
    transform: scale(2.2);
    transition: transform 0.2s ease-out;
}

.stv__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    margin-top: -26px;
}

.stv__nav--prev {
    left: 14px;
}

.stv__nav--next {
    right: 14px;
}

.stv__caption {
    min-height: 24px;
    padding: 12px 20px 8px;
    color: rgb(255 255 255 / 0.85);
    font-size: 15px;
    text-align: center;
}

.stv__thumbs {
    display: flex;
    gap: 8px;
    padding: 6px 16px 16px;
    overflow-x: auto;
    justify-content: safe center;
    scrollbar-width: thin;
}

.stv__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #111827;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s;
}

.stv__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stv__thumb:hover {
    opacity: 0.9;
}

.stv__thumb.is-current {
    border-color: var(--st-gold);
    opacity: 1;
}

@media (max-width: 640px) {
    .stv__nav {
        width: 42px;
        height: 42px;
        margin-top: -21px;
    }

    .stv__thumbs {
        display: none;
    }
}

body.stv-lock {
    overflow: hidden;
}


/* ---------- Projects split (videos left, photos right) ---------- */
.st-split {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
    .st-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        align-items: start;
    }
}

.st-split .st-videos,
.st-split .st-videos--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin: 0;
}

.st-split .st-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .st-split .st-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .st-split .st-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Contact ---------- */
.st-contact {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 72px;
}

@media (min-width: 992px) {
    .st-contact {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
    }
}

.st-card {
    text-align: left;
    padding: 24px;
    border-radius: var(--st-radius);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

.st-card + .st-card {
    margin-top: 24px;
}

.st-card__title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--st-gold);
    color: var(--st-navy);
    font-size: 20px;
    font-weight: 700;
}

.st-office {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--st-line);
    text-align: center;
}

.st-office h3 {
    margin: 0 0 8px;
    color: var(--st-navy);
    font-size: 20px;
    font-weight: 700;
}

.st-office p {
    margin: 0 0 6px;
    color: var(--st-ink);
}

.st-office iframe {
    width: 100%;
    height: 320px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
}

.st-branches {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .st-branches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.st-branch {
    padding: 16px;
    border: 1px solid var(--st-line);
    border-left: 4px solid var(--st-gold);
    border-radius: 12px;
    font-size: 14px;
}

.st-branch h3 {
    margin: 0 0 10px;
    color: var(--st-navy);
    font-size: 16px;
    font-weight: 700;
}

.st-branch dl {
    margin: 0;
}

.st-branch dt {
    margin-top: 8px;
    color: var(--st-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.st-branch dd {
    margin: 2px 0 0;
    color: var(--st-ink);
}

.st-branch a,
.st-office a {
    color: var(--st-navy);
    font-weight: 600;
}

.st-branch a:hover,
.st-office a:hover {
    color: #b88300;
}

.st-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

.st-social {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.st-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--st-navy);
    color: var(--st-gold);
    transition: background 0.15s, color 0.15s;
}

.st-social a:hover {
    background: var(--st-gold);
    color: var(--st-navy);
}

.st-form__field {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: var(--st-ink);
    font-size: 15px;
}

.st-form__field:focus {
    outline: none;
    border-color: var(--st-gold);
    box-shadow: 0 0 0 3px rgb(253 185 18 / 0.3);
}

.st-form__field.is-invalid {
    border-color: #dc2626;
}

.st-form__error {
    display: block;
    margin: -8px 0 12px;
    color: #dc2626;
    font-size: 13px;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--st-gold);
    color: var(--st-navy);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s;
}

.st-btn:hover {
    filter: brightness(0.95);
}

.st-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    background: #ecfdf5;
    color: #166534;
    font-size: 14px;
}

.st-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 36px 0 8px;
}

.st-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.st-pagination__btn,
.st-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-surface);
    color: var(--st-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.st-pagination__btn:hover,
.st-pagination__page:hover {
    border-color: var(--st-gold);
    color: var(--st-navy);
}

.st-pagination__page.is-active {
    border-color: var(--st-gold);
    background: var(--st-gold);
    color: var(--st-navy);
}

.st-pagination__btn.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.st-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    color: var(--st-muted);
}