.visual-gallery {
    overflow: hidden;
    padding-block: 24px
}

.orbit-viewport {
    height: 440px;
    position: relative;
    perspective: 1200px;
    touch-action: pan-y;
    cursor: grab;
    isolation: isolate
}

.orbit-viewport:active {
    cursor: grabbing
}

.orbit-ring {
    position: absolute;
    transform-style: preserve-3d;
    width: 0;
    height: 0;
    will-change: transform
}

.orbit-card {
    position: absolute;
    width: var(--orbit-w, 300px);
    padding: 0;
    border: 1px solid #e7e9ec;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    color: #344054;
    box-shadow: 0 16px 40px #142e3020;
    backface-visibility: hidden;
    text-align: left;
    cursor: pointer
}

.orbit-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    user-select: none
}

.orbit-caption {
    display: block;
    padding: 18px;
    font-size: 17px;
    font-weight: 600
}

.orbit-play {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffffed;
    color: #135a53;
    box-shadow: 0 5px 22px #0003;
    font-size: 22px
}

.orbit-controls,
.gallery-modal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px
}

.orbit-controls button,
.gallery-modal-controls button {
    border: 1px solid #dce3e2;
    border-radius: 30px;
    padding: 9px 18px;
    background: #fff;
    color: #344054;
    font-weight: 600
}

.orbit-help {
    text-align: center;
    font-size: 13px;
    margin: 12px 0 0
}

.gallery-modal .modal-content {
    background: #0e171a;
    color: #fff;
    border: 0;
    border-radius: 20px;
    overflow: hidden
}

.gallery-modal .modal-title {
    font-size: 20px;
    font-weight: 600
}

.gallery-stage {
    height: 65vh;
    min-height: 240px;
    display: grid;
    place-items: center
}

.gallery-stage img,
.gallery-stage video,
.gallery-stage iframe {
    width: 100%;
    height: 100%;
    max-height: 65vh;
    object-fit: contain;
    border: 0
}

.gallery-modal-controls {
    padding: 18px;
    flex-wrap: wrap
}

.visual-video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    background: #071719
}

.visual-banner {
    position: relative;
    margin-block: 18px;
    overflow: hidden
}

.visual-banner>img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    display: block
}

.banner-copy {
    padding: 28px;
    background: linear-gradient(120deg, #123f3c, #246c60);
    color: #fff
}

.banner-copy h2 {
    color: #fff;
    font-weight: 600
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px
}

.rich-content table {
    width: 100%;
    border-collapse: collapse
}

.rich-content td,
.rich-content th {
    border: 1px solid #dde3e7;
    padding: 10px
}

.rich-content {
    overflow-wrap: anywhere
}

.rich-content blockquote {
    border-left: 3px solid #eaa33d;
    padding-left: 20px
}

.rich-content p:last-child {
    margin-bottom: 0
}

.orbit-card:focus-visible,
.orbit-controls button:focus-visible {
    outline: 3px solid #f5ad41;
    outline-offset: 4px
}

@media(max-width:600px) {
    .orbit-viewport {
        height: 360px
    }

    .gallery-stage {
        height: 52vh
    }

    .gallery-stage img,
    .gallery-stage video,
    .gallery-stage iframe {
        max-height: 52vh
    }

    .banner-copy {
        padding: 20px
    }
}

@media(prefers-reduced-motion:reduce) {
    .orbit-ring {
        will-change: auto
    }
}

/* All published gallery entries remain visible without opening the slideshow. */
.all-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px
}

.all-gallery-card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, .2);
    border-radius: 18px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: box-shadow .2s ease
}

.all-gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover
}

.all-gallery-caption {
    display: block;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5
}

.all-gallery-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12)
}

.all-gallery-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px
}

@media(max-width:991px) {
    .all-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px
    }
}

@media(max-width:575px) {
    .all-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px
    }
}