.intro-bg-overlay__media {
    min-height: 100%;
}

.intro-bg-overlay__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-bg-overlay__scrim {
    pointer-events: none;
}

.intro-bg-overlay__content-box {
    max-width: 48rem;
}

.intro-bg-overlay__decor-top {
    width: 6rem;
    height: 6rem;
    top: 5rem;
    left: 2.5rem;
}

.intro-bg-overlay__decor-bottom {
    width: 8rem;
    height: 8rem;
    bottom: 5rem;
    right: 2.5rem;
}

.intro-bg-overlay__decor-mid {
    width: 4rem;
    height: 4rem;
    top: 33%;
    right: 25%;
}

.intro-bg-overlay__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.intro-bg-overlay__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.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;
    }
}

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

/* content plain — thin vertical rule height (BS has no h-16 spine utility) */
.content-plain__fine-rule {
    height: 6rem;
}

/* gallery v16 — polaroid scatter trio.
   Geometry shared by both CSS frameworks (Bootstrap has no utilities for it). */
.gallery-polaroid__section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-4xl {
    max-width: 56rem !important;
}

.mxw-2xl {
    max-width: 42rem !important;
}

.gallery-polaroid__title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.gallery-polaroid__lead {
    font-size: 1.125rem;
}

.gallery-polaroid__frame {
    width: 12rem;
    padding: 0.75rem 0.75rem 1.5rem;
}

.gallery-polaroid__caption {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-polaroid__title {
        font-size: 2.25rem;
    }

    .gallery-polaroid__frame {
        width: 14rem;
    }
}

/* gallery v16 — polaroid scatter trio */
.gallery-polaroid__img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

[data-frame] {
    position: relative;
    transition: transform 220ms ease, z-index 0s;
}

[data-frame="a"] {
    transform: rotate(-3deg);
    z-index: 1;
    margin-right: -1.5rem;
}

[data-frame="b"] {
    transform: rotate(2deg) translateY(-0.75rem);
    z-index: 2;
}

[data-frame="c"] {
    transform: rotate(-1.5deg);
    z-index: 1;
    margin-left: -1.5rem;
}

[data-frame]:hover {
    transform: rotate(0deg) translateY(0);
    z-index: 3;
}

.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;
}

.copy-document__text-panel-inset {
    padding: 4rem;
}

.content-flex-min {
    min-width: 0;
}

