.gallery-zigzag__w-40 { width: 10rem; }
.gallery-zigzag__h-40 { height: 10rem; }
.gallery-zigzag__top-20 { top: 5rem; }

.gallery-zigzag__ratio-3x4 {
    --bs-aspect-ratio: 133.333333%;
}

.gallery-zigzag__hover-scale {
    transition: transform 0.3s ease;
}
.gallery-zigzag__hover-scale:hover {
    transform: scale(1.05);
}

.gallery-zigzag__group-hover-opacity {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-zigzag__item:hover .gallery-zigzag__group-hover-opacity {
    opacity: 1;
}

.gallery-zigzag__translate-y-full {
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.gallery-zigzag__item:hover .gallery-zigzag__group-hover-translate-y-0 {
    transform: translateY(0);
}

.gallery-zigzag__group-hover-scale-110 {
    transition: transform 0.5s ease;
}
.gallery-zigzag__item:hover .gallery-zigzag__group-hover-scale-110 {
    transform: scale(1.1);
}

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

.prose-bodycopy__text-panel-inset {
    padding: 4rem;
}

/* Grid + gap: @sem may obfuscate Tailwind grid/gap — stable class for Bootstrap */
.hover-principles-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .hover-principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hover-principles-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.philosophy-hover-badge {
    width: 3rem;
    height: 3rem;
}

.philosophy-hover-corner {
    width: 2rem;
    height: 2rem;
}

.philosophy-bg__img {
    object-fit: cover;
}

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

.content-vertical-paper__layout {
    display: grid;
    grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr);
}

.content-vertical-paper__title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: -0.025em;
}

@media (max-width: 767.98px) {
    .content-vertical-paper__layout {
        grid-template-columns: 1fr;
    }

    .content-vertical-paper__title {
        writing-mode: horizontal-tb;
        transform: none;
    }
}

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

