/* gallery v15 — hero image + caption chips.
   Geometry shared by both CSS frameworks (Bootstrap has no utilities for it). */
.gallery-hero-chips__section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-5xl {
    max-width: 64rem !important;
}

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

.gallery-hero-chips__head {
    margin-bottom: 2.5rem;
}

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

.gallery-hero-chips__lead {
    font-size: 1.125rem;
}

.gallery-hero-chips__stage {
    aspect-ratio: 16 / 9;
}

.gallery-hero-chips__img {
    object-fit: cover;
}

/* The chips sit in a grid overlay — one chip per cell. Grid cells never overlap, so no
   amount of generated copy can make two chips collide (the cell just grows/wraps). */
.gallery-hero-chips__overlay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0.75rem;
    padding: 1.5rem;
}

.gallery-hero-chips__chip {
    /* both frameworks position these absolutely; the overlay owns placement now */
    position: static !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 20rem;
    padding: 0.75rem 1rem;
    pointer-events: auto;
    --bs-bg-opacity: 0.95;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* a flex item never shrinks below its min-content width — let the copy wrap instead */
.gallery-hero-chips__chip > :not(i) {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gallery-hero-chips__chip > i {
    flex-shrink: 0;
}

/* one chip per corner — four distinct grid cells, so two chips can never share a spot */
.gallery-hero-chips__chip--tl {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
}

.gallery-hero-chips__chip--tr {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
}

.gallery-hero-chips__chip--bl {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    align-self: end;
}

.gallery-hero-chips__chip--br {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: end;
}

.gallery-hero-chips__chip-text {
    font-size: 0.75rem;
}

/* Phones/tablets: half a stage is too little for a chip, so the whole thing becomes a
   column — photo first, chips under it. Identical in both frameworks. */
@media (max-width: 767.98px) {
    .gallery-hero-chips__stage {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
    }

    .gallery-hero-chips__img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .gallery-hero-chips__overlay {
        position: static !important;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        padding: 0.75rem;
    }

    .gallery-hero-chips__chip,
    .gallery-hero-chips__chip--tl,
    .gallery-hero-chips__chip--tr,
    .gallery-hero-chips__chip--bl,
    .gallery-hero-chips__chip--br {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        align-self: auto;
        max-width: none;
    }
}

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

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

/* quote v27 — BAPE flow-chart: snow drift, script heading, connectors, ripples, drag */

.quote-flow__script-heading {
    font-family: "Segoe Script", "Brush Script MT", cursive;
}

.quote-flow__snow {
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    animation: quoteFlowSnow 12s linear infinite;
}
.quote-flow__snow--1 { left: 8%; top: -5%; animation-delay: 0s; }
.quote-flow__snow--2 { left: 18%; top: -8%; animation-delay: 1.5s; }
.quote-flow__snow--3 { left: 32%; top: -4%; animation-delay: 3s; }
.quote-flow__snow--4 { left: 48%; top: -7%; animation-delay: 0.8s; }
.quote-flow__snow--5 { left: 62%; top: -6%; animation-delay: 2.2s; }
.quote-flow__snow--6 { left: 74%; top: -9%; animation-delay: 4s; }
.quote-flow__snow--7 { left: 84%; top: -5%; animation-delay: 1.1s; }
.quote-flow__snow--8 { left: 92%; top: -7%; animation-delay: 2.8s; }
@keyframes quoteFlowSnow {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translate(-3rem, 110vh); opacity: 0; }
}

.quote-flow__connector {
    height: 3rem;
}

.quote-flow__ripple-wrap {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
}
.quote-flow__ripple {
    animation: quoteFlowRipple 2.4s ease-out infinite;
}
.quote-flow__ripple--delay {
    animation-delay: 1.2s;
}
@keyframes quoteFlowRipple {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.quote-flow__step-badge {
    width: 2rem;
    height: 2rem;
}

.quote-flow__card {
    border-radius: 0.25rem;
    box-shadow: 3px 3px 0 0 currentColor;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.quote-flow__card.is-dragging {
    opacity: 0.65;
    transform: rotate(-1deg) scale(1.02);
}
[data-quote-flow-item].is-drop-target .quote-flow__card {
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.quote-flow__thumb {
    aspect-ratio: 1 / 1;
    min-height: 4rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-flow-root [role="listitem"]:hover,
    .quote-flow-root article:hover,
    .quote-flow-root [class*="quote-flow__card"]:hover,
    .quote-flow-root .quote-flow__book:hover,
    .quote-flow-root .quote-flow__step:hover,
    .quote-flow-root .quote-flow__index-card:hover,
    .quote-flow-root .quote-flow__pill:hover,
    .quote-flow-root .quote-flow__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-flow-root [role="listitem"],
.quote-flow-root article,
.quote-flow-root [class*="quote-flow__card"],
.quote-flow-root .quote-flow__book,
.quote-flow-root .quote-flow__step,
.quote-flow-root .quote-flow__index-card,
.quote-flow-root .quote-flow__pill {
    transition: transform 200ms ease;
}

.quote-flow-root a:focus-visible,
.quote-flow-root button:focus-visible,
.quote-flow-root [tabindex="0"]:focus-visible,
.quote-flow-root input:focus-visible,
.quote-flow-root summary:focus-visible,
.quote-flow-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-flow-root button:hover,
    .quote-flow-root a:hover,
    .quote-flow-root summary:hover {
        opacity: 0.92;
    }
}

