* { box-sizing: border-box; }
html { background: #151515; color: white; font-family: Arial, sans-serif; }
html:has(.home) { scroll-snap-type: y mandatory; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
header, footer { position: fixed; inset-inline: 0; z-index: 5; padding: 24px clamp(18px,5vw,65px); display: flex; align-items: center; justify-content: space-between; }
header { top: 0; text-shadow: 0 1px 8px #000; }
.brand img { display: block; width: clamp(125px, 24vw, 200px); height: auto; }
summary { cursor: pointer; font-size: 13px; }
nav { position: absolute; right: 5vw; top: 80%; background: #181818; padding: 24px; display: grid; gap: 20px; }
footer { bottom: 0; pointer-events: none; }
button { pointer-events: auto; cursor: pointer; border: 0; padding: 13px 24px; border-radius: 40px; background: white; color: black; }
.dots { display: flex; }
.dots button { background: transparent; color: white; padding: 10px; opacity: .55; text-shadow: 0 0 6px black; }
.dots [aria-current] { opacity: 1; outline: 1px solid white; outline-offset: -6px; }
.scene { height: 100svh; position: relative; scroll-snap-align: start; overflow: clip; }
.frame { position: absolute; inset: 0; isolation: isolate; }
.photo { position: absolute; inset: -15% 0; transform: translateY(var(--drift, 0px)); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, #0006); pointer-events: none; }
.caption { position: absolute; z-index: 1; bottom: 20%; inset-inline: 4%; text-align: center; text-transform: uppercase; transform: translateY(var(--title-drift, 0px)); }
h1 { margin: 0; font-size: clamp(34px, 8.5vw, 126px); line-height: .98; letter-spacing: -.05em; }
.caption p { font-size: 13px; letter-spacing: .15em; }
.open::after { content: ' ↗'; font-size: .3em; vertical-align: top; }
.album .scene { height: 80svh; }
.album .photo { inset: 0; }
.gallery { max-width: 1440px; margin: auto; padding: 48px min(5vw, 72px); display: grid; gap: 24px; }
.gallery img { width: 100%; height: auto; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
    #pre-wedding .photo { view-transition-name: pre-wedding-cover; }
    #landscape .photo { view-transition-name: landscape-cover; }
    #creative-portrait .photo { view-transition-name: creative-cover; }
    #sexy-portrait .photo { view-transition-name: portrait-cover; }
    ::view-transition-group(*) { animation-duration: .65s; }
}

.highlight { max-width: 1440px; margin: auto; padding: clamp(40px, 8vw, 110px) 5vw; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.highlight img { display: block; width: 100%; height: auto; }
.highlight h2 { font-size: clamp(28px, 4vw, 62px); line-height: 1.05; margin: .4em 0; }
.highlight p { line-height: 1.6; color: #ccc; }
.highlight a, .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow { margin-top: 38px; }
.gallery { max-width: none; padding: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery a { flex: var(--ratio) 1 calc(var(--ratio) * clamp(135px, 16vw, 310px)); min-width: 0; border-radius: 5px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
.lightbox { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 52px clamp(45px, 8vw, 100px); border: 0; background: #111; color: white; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 104px); object-fit: contain; }
.lightbox button, .lightbox output { position: absolute; }
.lightbox button { padding: 8px 14px; font-size: 22px; }
.close-photo { top: 12px; right: 12px; }
.previous-photo { left: 4px; }
.next-photo { right: 4px; }
.lightbox output { bottom: 14px; }
html:has(.lightbox[open]) { overflow: hidden; }
@media (max-width: 700px) { .highlight { grid-template-columns: 1fr; } }

.home .photo img { transform: scale(var(--photo-scale, 1)); }
@media (prefers-reduced-motion: no-preference) {
    .highlight.reveal-on-scroll img {
        clip-path: inset(100% 0 0);
        transform: translateY(22px) scale(1.04);
        transition: clip-path 750ms ease, transform 850ms ease;
    }
    .highlight.reveal-on-scroll > div, .gallery.reveal-on-scroll {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 550ms ease, transform 650ms ease;
    }
    .highlight.revealed img {
        clip-path: inset(0);
        transform: none;
    }
    .highlight.revealed > div, .gallery.revealed, .gallery:focus-within {
        opacity: 1;
        transform: none;
    }
    .highlight.revealed > div { transition-delay: 160ms; }
}

.album-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #171717d9;
    color: #fff;
    font-size: 13px;
    letter-spacing: .08em;
}
.album-cta:hover, .album-cta:focus-visible {
    background: white;
    color: #171717;
}

.album-picker { pointer-events: auto; }
.album-picker > summary { display: none; }
.album-picker .filmstrip { display: flex; justify-content: center; }
.filmstrip button { position: relative; }
.film-preview {
    display: none;
    background: #171717;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.film-preview img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.film-preview span { display: block; padding: 8px 4px; }
@media (min-width: 701px) and (hover: hover) {
    .album-picker:not([open]) > .filmstrip { content-visibility: visible; }
    .filmstrip button:is(:hover, :focus-visible) { opacity: 1; }
    .filmstrip button:is(:hover, :focus-visible) .film-preview {
        display: block;
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 160px;
        pointer-events: none;
    }
}
@media (max-width: 700px), (hover: none) {
    .album-picker > summary {
        display: block;
        list-style: none;
        background: #171717;
        color: white;
        border-radius: 999px;
        padding: 13px;
    }
    .album-picker > summary::-webkit-details-marker { display: none; }
    .album-picker:not([open]) > .filmstrip { display: none; }
    .album-picker[open] > .filmstrip {
        position: absolute;
        bottom: 100%;
        inset-inline: 12px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        background: #171717;
        border-radius: 10px;
    }
    .filmstrip button { opacity: 1; padding: 0; }
    .film-dot { display: none; }
    .film-preview { display: block; font-size: 11px; }
}
@media (min-width: 701px) and (hover: hover) {
    .album-picker::details-content { content-visibility: visible; }
}

.next-album { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(240px, 50svh, 480px); margin-top: 32px; padding: 24px; overflow: hidden; text-align: center; }
.next-album img, .next-album::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.next-album img { object-fit: cover; z-index: -2; }
.next-album::after { content: ''; background: #0008; z-index: -1; }
.next-album span { font-size: clamp(28px, 6vw, 76px); font-weight: bold; }
.next-album small { display: block; margin-bottom: 12px; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.next-album:is(:hover, :focus-visible) span { text-decoration: underline; }

.lightbox img { touch-action: pan-y pinch-zoom; }
