.gw-highlights {
    --ornament-size: clamp(136px, min(48vw, 32dvh), 292px);
    --ornament-step: clamp(99px, min(30vw, calc(var(--ornament-size) * .77)), 225px);
    display: grid;
    align-content: center;
    justify-items: center;
    row-gap: 8px;
    min-width: 0;
    padding: 8px 0 max(25px, env(safe-area-inset-bottom, 0px));
    color: #f7fbff;
    text-align: center;
    touch-action: pan-y pinch-zoom;
}

.gw-highlights__heading {
    margin: 0;
    padding-inline: 16px;
    color: #fff3dc;
    font: normal clamp(23px, 3vw, 39px)/1.13 Georgia, Cambria, 'Times New Roman', serif;
    text-wrap: balance;
    text-shadow: 0 1px 9px #06192f;
}

.gw-highlights__stage {
    position: relative;
    isolation: isolate;
    overflow: clip;
    width: min(100%, 980px);
    height: calc(var(--ornament-size) + 52px);
    user-select: none;
}

.gw-highlights__ornament {
    --slot: 0;
    --depth-y: 0px;
    --depth-scale: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    box-sizing: border-box;
    width: var(--ornament-size);
    padding-top: 32px;
    transform: translate(-50%, -50%)
        translate(calc(var(--slot) * var(--ornament-step)), var(--depth-y))
        scale(var(--depth-scale));
}

.gw-highlights__ornament[data-slot="-2"] { --slot: -2; }
.gw-highlights__ornament[data-slot="-1"] { --slot: -1; }
.gw-highlights__ornament[data-slot="1"] { --slot: 1; }
.gw-highlights__ornament[data-slot="2"] { --slot: 2; }

.gw-highlights__ornament:is([data-slot="-1"], [data-slot="1"]) {
    --depth-y: 7px;
    --depth-scale: .68;
    z-index: 2;
    opacity: .8;
    filter: brightness(.84) saturate(.78);
}

.gw-highlights__ornament:is([data-slot="-2"], [data-slot="2"]) {
    --depth-y: 14px;
    --depth-scale: .46;
    z-index: 1;
    opacity: 0;
}

.gw-highlights__ornament::before,
.gw-highlights__ornament::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    content: '';
}

.gw-highlights__ornament::before {
    top: 0;
    width: 13px;
    height: 19px;
    border: 2px solid #e8c586;
    border-radius: 50%;
    box-shadow: inset 1px 0 2px #37230b;
}

.gw-highlights__ornament::after {
    z-index: 1;
    top: 14px;
    width: 21%;
    height: 22px;
    border: 1px solid #f1d49a;
    border-radius: 6px 6px 7px 7px;
    background:
        linear-gradient(180deg, #fff4d59e, transparent 32%, #31200b79),
        repeating-linear-gradient(90deg, #a16c30 0 2px, #eac685 3px 6px, #c18b47 7px 9px);
    box-shadow: 0 3px 8px #08182a99;
}

.gw-highlights__sphere {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: 1;
    border: 1px solid #dfeeffbf;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 26%, #abc4dc, #42658c 46%, #152c4b 78%);
    box-shadow: 0 24px 40px -17px #030d1abf, 0 0 42px #8acbff36;
}

.gw-highlights__sphere::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 29% 15%, #eaf5ff65, transparent 35%),
        radial-gradient(circle at 42% 34%, transparent 42%, #061b38a6 91%);
    box-shadow: inset 0 0 20px #d2e8ff66, inset -12px -16px 31px #06192f66;
    pointer-events: none;
    content: '';
}

.gw-highlights__sphere img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gw-highlights__ornament[hidden],
.gw-highlights__sphere img[hidden] { display: none; }

.gw-highlights__caption {
    display: grid;
    align-items: center;
    width: min(calc(100% - 38px), 38rem);
    min-height: 3.25em;
    margin: 0;
    color: #edf4ff;
    font: 400 clamp(.94rem, 2vw, 1.15rem)/1.44 Arial, sans-serif;
    text-wrap: pretty;
    text-shadow: 0 1px 9px #06192f;
}

.gw-highlights__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 19px);
}

.gw-highlights__actions a,
.gw-highlights__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font: 600 .875rem/1.2 Arial, sans-serif;
    text-decoration: none;
}

.gw-highlights__actions button {
    width: 44px;
    padding: 0;
    font-size: 1.2rem;
}

.gw-highlights__actions .gw-highlights__read {
    padding: 0 19px;
    background: #fae3b4;
    color: #172a43;
}

.gw-highlights__actions .gw-highlights__read:hover { background: #fff1d2; }

.gw-highlights__actions a:focus-visible {
    outline: 2px solid #fff4d5;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .gw-highlights__ornament {
        transition: transform 540ms cubic-bezier(.22, .82, .27, 1), opacity 380ms ease, filter 450ms ease;
    }
}

@media (max-width: 520px) and (min-height: 481px) {
    .gw-highlights__caption { min-height: 4.32em; }
}

@media (max-height: 480px) {
    .gw-highlights {
        --ornament-size: clamp(105px, 29dvh, 156px);
        --ornament-step: clamp(95px, 29dvh, 148px);
        row-gap: 4px;
        padding-block: 0 13px;
    }

    .gw-highlights__heading { font-size: clamp(20px, 4.8dvh, 26px); }
    .gw-highlights__stage { height: calc(var(--ornament-size) + 33px); }
    .gw-highlights__caption { min-height: 2.9em; }
}
