/* ── Bento Section (Story + Values) ─────────────────────────── */
.sh-bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.sh-bento__mission {
    grid-column: 1;
    grid-row: 1 / 3;
    background: var(--sh-color-primary);
    border-radius: var(--sh-radius-card);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 280px;
}

.sh-bento__val {
    background: var(--sh-color-white);
    border-radius: var(--sh-radius-card);
    padding: 1.75rem;
    box-shadow: var(--sh-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sh-bento__val--wide {
    grid-column: 2 / 4;
}

.sh-bento__icon {
    font-size: 2rem;
    line-height: 1;
    margin: 0 0 0.25rem !important;
}

@media (max-width: 920px) {
    .sh-bento-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .sh-bento__val--wide {
        grid-column: 2;
        /* was 2/4; col 3 doesn't exist at tablet */
    }
}

@media (max-width: 768px) {
    .sh-bento-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem;
    }

    .sh-bento__mission {
        grid-row: auto;
        min-height: auto;
    }

    .sh-bento__val--wide {
        grid-column: 1;
    }
}

/* ── Diagonal Split Section ──────────────────────────────────── */
.sh-split-section .wp-block-columns {
    gap: 0 !important;
    align-items: stretch !important;
    min-height: 360px;
    overflow: hidden;
    max-width: 1300px !important;
}

.sh-split__img-col {
    padding: 0 !important;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.sh-split__img-col .wp-block-image {
    height: 100%;
    margin: 0 !important;
}

.sh-split__img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sh-split__text-col {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem 4rem 1.5rem !important;
    gap: 1rem;
}

.sh-split__values {
    border-top: 1px solid var(--sh-color-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sh-split__values .wp-block-paragraph {
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--sh-color-text);
    margin: 0 !important;
}

@media (max-width: 768px) {
    .sh-split-section .wp-block-columns {
        min-height: auto;
    }

    .sh-split__img-col {
        clip-path: none;
        min-height: 260px;
        flex-basis: 100% !important;
    }

    .sh-split__text-col {
        padding: 2.5rem 1.5rem !important;
        flex-basis: 100% !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   COMMUNITY GALLERY (accordion spotlight)
   ══════════════════════════════════════════════════════════════════ */
.sh-gallery {
    display: flex;
    gap: 6px;
    height: 420px;
    max-width: 1100px;
    margin: 2rem auto 0;
    border-radius: 20px;
    overflow: hidden;
}

.sh-gallery-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    min-width: 0;
    transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.sh-gallery-item.sh-gallery-active {
    flex: 5;
}

.sh-gallery-photo {
    width: 100%;
    height: 100%;
    background: var(--sh-color-border);
}

.sh-gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    font-size: 0;
    line-height: 0;
    transition: transform 0.45s ease;
}

.sh-gallery-active .sh-gallery-photo img {
    transform: scale(1.03);
}

.sh-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3.5rem 1.25rem 1.1rem;
    background: linear-gradient(to top, rgba(20,6,10,0.72) 0%, transparent 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.sh-gallery-active .sh-gallery-caption {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .sh-gallery {
        flex-direction: column;
        height: 520px;
        border-radius: 16px;
    }

    .sh-gallery-item {
        flex: 0 0 52px;
        border-radius: 8px;
        transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sh-gallery-item.sh-gallery-active {
        flex: 1;
    }

    .sh-gallery-caption {
        white-space: normal;
    }
}
