/* 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;
}


.passage-chapter__visual--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.passage-chapter__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-img-compact {
    display: block;
    width: 100%;
    height: 12rem;
    min-height: 12rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 768px) {
    .content-img-compact {
        height: 14rem;
        min-height: 14rem;
    }
}

/* v20 — decorative large animated elements */
@keyframes glance-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}
@keyframes glance-pulse-slow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

.glance-float { animation: glance-float 6s ease-in-out infinite; animation-delay: 1s; }
.glance-float-reverse { animation: glance-float-reverse 8s ease-in-out infinite; animation-delay: 2s; }
.glance-pulse-slow { animation: glance-pulse-slow 4s ease-in-out infinite; }

.glance-orb-one {
    top: -2rem;
    left: -2rem;
    width: 16rem;
    height: 16rem;
    filter: blur(3rem);
}

.glance-orb-three {
    bottom: -3rem;
    left: 25%;
    width: 14rem;
    height: 14rem;
}

.glance-spin-orb {
    top: 1rem;
    right: 1rem;
    width: 8rem;
    height: 8rem;
    animation-duration: 25s;
}

.glance-orb-four {
    bottom: 2rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    transform: rotate(12deg);
}

.glance-cta-hover,
.glance-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glance-cta-hover:hover {
    transform: scale(1.05);
}

.glance-card-hover:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--bs-box-shadow-lg);
}

.content-river__arc {
    width: 18rem;
    height: 18rem;
}

.content-river__node {
    width: 0.75rem;
    height: 0.75rem;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .content-river__copy--right {
        grid-column-start: 2;
    }

    .content-river__copy--left {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .content-river__spacer--left {
        order: 2;
    }
}

.gallery-two-col__card {
    transition: all 0.3s ease;
}
.gallery-two-col__card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.gallery-two-col__img {
    height: 16rem;
    transition: transform 0.5s ease;
}
.gallery-two-col__card:hover .gallery-two-col__img {
    transform: scale(1.05);
}

.gallery-two-col__overlay {
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}
.gallery-two-col__card:hover .gallery-two-col__overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

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

.document-folio__photo--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.document-folio__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-margin-notes__aside {
    align-self: start;
}

@media (min-width: 992px) {
    .content-margin-notes__aside {
        position: sticky;
        top: 2rem;
    }
}

