.about-gallery-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 212, 0, .2);
    background: linear-gradient(115deg, #0f213d 0%, #081120 72%);
}

.about-gallery-section::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(90vw, 1050px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 212, 0, .055), transparent 68%);
    content: "";
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.about-gallery {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 780px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    width: 100%;
    margin: 0 auto;
}

.about-gallery-message {
    margin: 0;
    color: #d7e0ef;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.about-gallery-message--discover {
    padding-right: 16px;
    border-right: 2px solid rgba(255, 212, 0, .65);
    color: #ffd400;
    text-align: right;
}

.about-gallery-message--safety {
    padding-left: 16px;
    border-left: 2px solid rgba(255, 212, 0, .65);
}

.about-gallery-viewer {
    grid-column: 2;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.about-gallery-viewer:focus-visible {
    outline: 2px solid #ffd400;
    outline-offset: 5px;
}

.about-gallery-stage {
    --gallery-card-width: clamp(200px, 30vw, 248px);
    --gallery-card-height: min(216px, calc(100% - 24px));
    position: relative;
    height: 250px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(15, 33, 61, .8), transparent 78%),
        #081120;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.about-gallery-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    height: 100%;
    transition: transform 760ms cubic-bezier(.22, .72, .24, 1);
    will-change: transform;
}

.about-gallery-image {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: var(--gallery-card-width);
    max-height: var(--gallery-card-height);
    border: 0;
    border-radius: 16px;
    object-fit: contain;
    object-position: center;
    opacity: .38;
    filter: blur(1px) drop-shadow(0 0 14px rgba(255, 212, 0, .1));
    transform: scale(.88);
    transition: opacity 520ms ease, filter 520ms ease, transform 520ms ease;
    -webkit-mask-image: radial-gradient(ellipse 86% 94% at center, #000 42%, rgba(0, 0, 0, .94) 62%, rgba(0, 0, 0, .55) 82%, transparent 100%);
    mask-image: radial-gradient(ellipse 86% 94% at center, #000 42%, rgba(0, 0, 0, .94) 62%, rgba(0, 0, 0, .55) 82%, transparent 100%);
}

.about-gallery-zoom-trigger {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: var(--gallery-card-width);
    height: var(--gallery-card-height);
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: zoom-in;
    transform: translate(-50%, -50%) scale(1.12);
}

.about-gallery-zoom-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(8, 17, 32, .78);
    opacity: 0;
    transform: scale(.88);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(5px);
}

.about-gallery-zoom-trigger:hover .about-gallery-zoom-icon,
.about-gallery-zoom-trigger:focus-visible .about-gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.about-gallery-zoom-trigger:focus-visible {
    outline: none;
}

.about-gallery-zoom-trigger:focus-visible .about-gallery-zoom-icon {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.about-gallery-zoom-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.about-gallery-zoom-dialog {
    width: fit-content;
    max-width: min(96vw, 1600px);
    max-height: 94vh;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    background: transparent;
}

.about-gallery-zoom-dialog::backdrop {
    background: rgba(3, 8, 17, .9);
    backdrop-filter: blur(8px);
}

.about-gallery-zoom-content {
    position: relative;
    display: grid;
    place-items: center;
    max-width: 96vw;
    max-height: 94vh;
    padding: 14px;
    border: 1px solid rgba(255, 212, 0, .35);
    border-radius: 20px;
    background: #081120;
    box-shadow: 0 0 40px rgba(255, 212, 0, .12);
}

.about-gallery-zoom-image {
    display: block;
    max-width: calc(96vw - 30px);
    max-height: calc(94vh - 30px);
    border-radius: 14px;
    object-fit: contain;
}

.about-gallery-zoom-close {
    position: absolute;
    z-index: 1;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(8, 17, 32, .88);
    color: #fff;
    cursor: pointer;
}

.about-gallery-zoom-close:hover,
.about-gallery-zoom-close:focus-visible {
    border-color: #ffd400;
    color: #ffd400;
}

.about-gallery-zoom-close:focus-visible {
    outline: 2px solid #ffd400;
    outline-offset: 3px;
}

.about-gallery-zoom-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.about-gallery-image:nth-child(2),
.about-gallery-image:only-child {
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(255, 212, 0, .2));
    transform: scale(1.12);
}

.about-gallery-controls {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.about-gallery-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 212, 0, .42);
    border-radius: 50%;
    background: rgba(8, 17, 32, .78);
    color: #ffd400;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
    backdrop-filter: blur(6px);
}

.about-gallery-control svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.about-gallery-control:hover:not(:disabled) {
    border-color: #ffd400;
    background: #ffd400;
    color: #081120;
}

.about-gallery-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.about-gallery-control:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.about-gallery-empty {
    grid-column: 1 / -1;
    min-height: 250px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 1.5rem;
    background: radial-gradient(ellipse at center, rgba(15, 33, 61, .8), transparent 72%);
    color: #c5d0df;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .about-gallery {
        display: block;
    }

    .about-gallery-message {
        position: absolute;
        z-index: 2;
        left: 50%;
        width: min(94%, 520px);
        padding: 0;
        border: 0;
        line-height: 1.35;
        text-align: center;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .about-gallery-message--discover {
        top: 5px;
    }

    .about-gallery-message--safety {
        bottom: 5px;
        color: #ffd400;
    }

}

@media (max-width: 767.98px) {
    .about-gallery-section {
        padding: 36px 0;
    }

    .about-gallery-stage {
        --gallery-card-height: min(190px, calc(100% - 60px));
        height: 220px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    }

    .about-gallery-track {
        gap: 12px;
    }

    .about-gallery-stage {
        --gallery-card-width: min(72vw, 240px);
        --gallery-card-height: min(160px, calc(100% - 60px));
    }

    .about-gallery-zoom-close {
        top: 18px;
        right: 18px;
    }

    .about-gallery-controls {
        padding: 0 4px;
    }

    .about-gallery-control {
        width: 38px;
        height: 38px;
    }

    .about-gallery-empty {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-gallery-track,
    .about-gallery-control,
    .about-gallery-image,
    .about-gallery-zoom-icon {
        transition: none;
    }

    .about-gallery-zoom-trigger:hover .about-gallery-zoom-icon,
    .about-gallery-zoom-trigger:focus-visible .about-gallery-zoom-icon {
        transform: none;
    }
}
