/* gallery v17 — diagonal cascade ribbon (clip-path + staggered offsets have no BS analog) */
.gallery-cascade__media {
    transition: clip-path 300ms ease;
}

@media (min-width: 640px) {
    [data-cascade-pos] {
        transition: transform 300ms ease;
    }

    [data-cascade-pos="0"] {
        transform: translateY(0);
    }

    [data-cascade-pos="0"] .gallery-cascade__media {
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }

    [data-cascade-pos="1"] {
        transform: translateY(1.75rem);
    }

    [data-cascade-pos="1"] .gallery-cascade__media {
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    }

    [data-cascade-pos="2"] {
        transform: translateY(-1.25rem);
    }

    [data-cascade-pos="2"] .gallery-cascade__media {
        clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
    }

    [data-cascade-pos="3"] {
        transform: translateY(2.25rem);
    }

    [data-cascade-pos="3"] .gallery-cascade__media {
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
    }

    [data-cascade-pos]:hover {
        transform: translateY(0);
    }

    [data-cascade-pos]:hover .gallery-cascade__media {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.content-brief__float-square {
    width: 4rem;
    height: 4rem;
}

.content-brief__orbit {
    left: 50%;
    top: 50%;
    width: min(34rem, 78vw);
    height: min(34rem, 78vw);
    transform: translate(-50%, -50%);
    animation: content-brief-orbit 18s linear infinite;
}

.content-brief__float-square--slow {
    animation: content-brief-float-slow 10s ease-in-out infinite;
}

.content-brief__float-square--fast {
    animation: content-brief-float-fast 7s ease-in-out infinite;
}

@keyframes content-brief-float-slow {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(6deg);
    }
}

@keyframes content-brief-float-fast {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(8px) rotate(-7deg);
    }
}

@keyframes content-brief-orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.content-col-grow {
    flex: 1 1 0%;
    min-width: 0;
}

.content-img-fill {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    min-width: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.narrative-chapter__column-inset {
    padding: 4rem;
}

.split-screen-halo {
    width: 600px;
    height: 600px;
}

.split-screen-halo-soft {
    width: 500px;
    height: 500px;
}

.split-screen-beam-main {
    width: 24rem;
    height: 1px;
}

.split-screen-beam-side {
    width: 20rem;
    height: 1px;
}

.split-screen-frame {
    width: 6rem;
    height: 6rem;
}

.split-screen-orb {
    width: 4rem;
    height: 4rem;
}

.split-screen-marker {
    width: 2rem;
    height: 2rem;
}

.split-screen-emblem {
    width: 5rem;
    min-width: 5rem;
    height: 5rem;
    min-height: 5rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .split-screen-principle--odd {
        margin-left: 2rem;
    }
}

/* content gutter — bracket ticks share width */
.content-gutter__tick {
    width: 1px;
}

/* solo column: span full grid / row when second stack hidden */
.content-gutter__lead--span {
    grid-column: 1 / -1;
}

.content-focus-checklist__button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: 0.2rem;
    transition: transform 180ms ease;
}

.content-focus-checklist__button:hover {
    transform: translateY(-0.125rem);
}

.content-focus-checklist__button.is-active {
    transform: translateX(0.25rem);
}

/* min-width: 0 — довгий текст/флекс у колонці не роздуває рядок */
.content-col-grow {
    min-width: 0;
}

.content-stack-col--text {
    overflow-wrap: anywhere;
}

.content-stack-col--text > :first-child {
    width: 100%;
    max-width: 65ch;
    margin-inline: auto;
}

/* gap лише для Tailwind (grid). У Bootstrap — відступи через g-* у component (row-cols + g-3), без CSS gap на .row */
.content-grid-gap:not(.row) {
    gap: 1rem;
}

.content-full-frame {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Третина рядка: стабільна висота прев’ю, без height:100% від сусіднього тексту */
.content-img-fullheight {
    display: block;
    width: 100%;
    max-width: min(100%, 28rem);
    margin-inline: auto;
    min-width: 0;
    aspect-ratio: 3 / 4;
    max-height: 28rem;
    height: auto;
    flex-shrink: 1;
    object-fit: cover;
    object-position: center;
}

