/* gallery v19 — featured preview + thumbnail strip.
   Geometry shared by both CSS frameworks (Bootstrap has no grid-template / aspect utilities). */
.gallery-picker__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

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

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

.gallery-picker__head {
    margin-bottom: 2.5rem;
}

.gallery-picker__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.gallery-picker__stage,
.gallery-picker__thumb-media {
    aspect-ratio: 16 / 9;
}

.gallery-picker__img {
    object-fit: cover;
}

.gallery-picker__strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

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

/* Gallery v19 — thumbnail selector strip */
.gallery-picker__thumb {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    padding: 0;
    font: inherit;
    transition: border-color 150ms ease, transform 150ms ease;
}

.gallery-picker__thumb:hover {
    transform: translateY(-2px);
}

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

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

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

.conviction-fan__card:nth-child(1) { transform: rotate(-3deg); }
.conviction-fan__card:nth-child(2) { transform: rotate(2deg); }
.conviction-fan__card:nth-child(3) { transform: rotate(-1deg); }
.conviction-fan__card:nth-child(4) { transform: rotate(3deg); }

.conviction-fan__card:hover {
    transform: rotate(0deg) translateY(-0.75rem);
}

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

