:root {
    --shc-gallery-blue: #005A8F;
    --shc-gallery-blue-dark: #0b3f5d;
    --shc-gallery-ink: #14202b;
    --shc-gallery-muted: #667085;
    --shc-gallery-line: #e6edf2;
    --shc-gallery-bg: #f7fafc;
    --shc-gallery-card: #ffffff;
}

.shc-gallery-wrap {
    font-family: inherit;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) 18px;
    color: var(--shc-gallery-ink);
}

.shc-gallery-intro {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.shc-gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--shc-gallery-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shc-gallery-intro h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    color: var(--shc-gallery-blue-dark);
    font-weight: 800;
}

.shc-gallery-intro p {
    margin: 14px auto 0;
    max-width: 650px;
    color: var(--shc-gallery-muted);
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
}

.shc-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 34px;
}

.shc-filter-btn {
    appearance: none;
    border: 1px solid var(--shc-gallery-line);
    background: #fff;
    color: var(--shc-gallery-blue-dark);
    border-radius: 999px;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.shc-filter-btn:hover,
.shc-filter-btn:focus-visible {
    border-color: rgba(0,90,143,.35);
    box-shadow: 0 8px 18px rgba(15, 63, 93, .08);
    transform: translateY(-1px);
    outline: none;
}

.shc-filter-btn.is-active {
    background: var(--shc-gallery-blue);
    border-color: var(--shc-gallery-blue);
    color: #fff;
}

.shc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.shc-gallery-card {
    background: var(--shc-gallery-card);
    border: 1px solid var(--shc-gallery-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(16, 41, 63, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.shc-gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,90,143,.22);
    box-shadow: 0 18px 44px rgba(16, 41, 63, .12);
}

.shc-gallery-card.is-hidden {
    display: none;
}

.shc-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.shc-gallery-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #eef6fb, #dfeef7);
}

.shc-gallery-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.shc-gallery-card:hover .shc-gallery-media img {
    transform: scale(1.035);
    filter: saturate(1.03) contrast(1.02);
}

.shc-placeholder-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 26px;
}

.shc-placeholder-title {
    color: var(--shc-gallery-blue-dark);
    font-weight: 800;
    text-align: center;
}

.shc-play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.shc-play-mark::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid var(--shc-gallery-blue);
}

.shc-gallery-card-body {
    padding: 18px 18px 20px;
}

.shc-gallery-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.shc-gallery-label {
    display: inline-flex;
    max-width: 75%;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0,90,143,.09);
    color: var(--shc-gallery-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.shc-gallery-date {
    color: #7c8794;
    font-size: 12px;
    white-space: nowrap;
}

.shc-gallery-card h3 {
    margin: 0;
    color: var(--shc-gallery-ink);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.shc-gallery-card p {
    margin: 9px 0 0;
    color: var(--shc-gallery-muted);
    font-size: 14px;
    line-height: 1.55;
}

.shc-gallery-empty,
.shc-gallery-empty-state {
    margin: 28px auto 0;
    text-align: center;
    color: var(--shc-gallery-muted);
    background: var(--shc-gallery-bg);
    border: 1px solid var(--shc-gallery-line);
    border-radius: 18px;
    padding: 30px;
}

.shc-gallery-empty-state h3 {
    margin: 0 0 8px;
    color: var(--shc-gallery-blue-dark);
}

.shc-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.shc-gallery-lightbox.is-open {
    display: flex;
}

.shc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 31, .78);
    backdrop-filter: blur(3px);
}

.shc-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #111;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0,0,0,.35);
}

.shc-lightbox-close {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--shc-gallery-blue-dark);
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

.shc-lightbox-content {
    background: #111;
}

.shc-lightbox-content img,
.shc-lightbox-content iframe {
    width: 100%;
    display: block;
    border: 0;
}

.shc-lightbox-content img {
    max-height: 70vh;
    object-fit: contain;
    background: #111;
}

.shc-lightbox-video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #07141f;
}

.shc-lightbox-video-wrap iframe {
    position: absolute;
    inset: 0;
    height: 100%;
}

.shc-lightbox-copy {
    display: none !important;
    padding: 0;
}

.shc-lightbox-copy h3 {
    margin: 0;
    color: var(--shc-gallery-blue-dark);
    font-size: 22px;
    line-height: 1.3;
}

.shc-lightbox-copy p {
    margin: 8px 0 0;
    color: var(--shc-gallery-muted);
    line-height: 1.6;
}

@media (max-width: 960px) {
    .shc-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shc-gallery-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }
    .shc-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .shc-filter-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
    .shc-gallery-card-body {
        padding: 16px;
    }
    .shc-gallery-lightbox {
        padding: 12px;
    }
    .shc-lightbox-panel {
        border-radius: 16px;
    }
}

/* v2.2: clean photo-only gallery cards */
.shc-gallery-card-body {
    display: none !important;
}
.shc-gallery-card {
    background: transparent;
}
.shc-gallery-open {
    height: 100%;
}
.shc-gallery-card .shc-gallery-media {
    border-radius: 18px;
}
.shc-gallery-card .shc-placeholder-title {
    font-size: 42px;
    line-height: 1;
    opacity: .9;
}
