.home-preview-section,
.home-preview-layout { display: grid; min-width: 0; gap: 14px; align-items: start; }
.home-layout.is-row { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.home-layout.is-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.home-preview-layout img, .home-preview-layout video {
    display: block;
    width: min(100%, var(--home-media-width, 100%));
    height: var(--home-media-height, auto);
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.home-preview-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.home-preview-text a { color: inherit; text-decoration: underline; }
.home-preview-album { display: grid; width: min(100%, var(--home-media-width, 100%)); min-width: 0; gap: 6px; }
.home-preview-slides { display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; }
.home-preview-slide {
    display: grid;
    place-items: center;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
.home-preview-album .home-preview-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--home-media-height, none);
    object-fit: contain;
}
@media (max-width: 720px) {
    .home-layout.is-row { grid-auto-flow: row; }
}

.home-preview-section { padding: clamp(18px, 5cqw, 64px); }
.home-preview-section.is-hero { padding: 0; }
.home-preview-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(310px, 58cqw, 660px);
    padding: 42px 24px;
    background: #263c3e;
    color: #fff;
    text-align: center;
}
.home-preview-hero > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: -2;
}
.home-preview-hero::before { content: ""; position: absolute; inset: 0; background: #0007; z-index: -1; }
.home-preview-hero-copy { max-width: 720px; }
.home-preview-hero h1 { font-size: 48px; font-weight: 700; line-height: 1.25; }
.home-preview-hero p { margin: 16px 0 22px; font-size: 18px; font-weight: 400; }
.home-preview-hero button,
.home-preview-text.is-action a {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid currentColor;
    background: #ffffff26;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.home-preview-section.is-split + .home-preview-section.is-split { border-top: 1px solid #ecf0eb; }
.home-preview-section.is-split > .home-layout { align-items: center; gap: clamp(18px, 6cqw, 80px); }
.home-preview-section.is-split .home-preview-text { font-size: 18px; line-height: 1.8; }
.home-preview-section .home-preview-text h2 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.home-preview-text.is-action a { font-weight: 800; }
@container (min-width: 621px) {
    .home-preview-album.is-free-layout .home-preview-slides {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 8px 0;
        padding: 18px 10px;
        overflow: visible;
        scroll-snap-type: none;
    }
    .home-preview-album.is-free-layout .home-preview-slide { position: relative; z-index: 1; }
    .home-preview-album.is-free-layout .home-preview-slide img {
        box-shadow: 0 3px 9px #25384530;
        transform: translate(-3%, -5px) rotate(-4deg);
    }
    .home-preview-album.is-free-layout .home-preview-slide:nth-child(3n + 2) img {
        transform: translate(1%, 12px) rotate(5deg);
    }
    .home-preview-album.is-free-layout .home-preview-slide:nth-child(3n) img {
        transform: translate(-8%, 4px) rotate(-2deg);
    }
    .home-preview-album.is-free-layout .home-preview-slide:nth-child(3n + 2) { z-index: 2; }
    .home-preview-album.is-free-layout .home-preview-slide:nth-child(4n) { z-index: 0; }
    .home-preview-album.is-free-layout .home-preview-album-controls { display: none; }
}
.home-preview-section.is-contact { background: #edf3ef; text-align: center; }
.home-preview-section.is-contact > .home-layout { justify-items: center; }
.home-preview-section.is-contact .home-layout.is-row { display: flex; flex-wrap: wrap; justify-content: center; }
@container (max-width: 620px) {
    .homepage-document .home-layout.is-row { grid-auto-flow: row; }
    .home-preview-hero { min-height: 390px; }
    .home-preview-hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-preview-hero > video { visibility: hidden; }
}

.homepage-document { container-type: inline-size; font-family: "Playwrite AU TAS", cursive; }
.home-preview-text ul { list-style: disc; padding-inline-start: 1.5em; }
.home-preview-text ol { list-style: decimal; padding-inline-start: 1.5em; }
.home-preview-album-controls { display: flex; gap: 4px; }
.home-preview-album-controls button {
    min-width: 36px;
    min-height: 36px;
    border: 1px solid #dfe6df;
    border-radius: 6px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
}
