/* Transparent miniature films, with static posters for reduced motion. */
.loop-scene { position: relative; isolation: isolate; pointer-events: none; }
.paper-scene { overflow: hidden; border-radius: 14px; background: #f5efdf; }
.loop-scene img,.loop-scene video { display: block; width: 100%; height: 100%; object-fit: contain; }
.loop-scene .loop-poster { position: absolute; inset: 0; }
.loop-scene .loop-video { position: relative; opacity: 0; }
.loop-scene.is-ready .loop-video { opacity: 1; }
.loop-scene.is-ready .loop-poster { visibility: hidden; }
.welcome .wedding-date { margin-bottom: 8px; }
.travel-intro { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: center; gap: 32px; max-width: 850px; margin: 0 auto 28px; }
.travel-intro .content-heading { text-align: left; margin: 0; }
.vespa-scene { width: 320px; height: 280px; }
.addresses-intro { display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 24px; margin-bottom: 24px; }
.addresses-intro .content-heading { text-align: left; margin: 0; }
.coffee-scene { width: 180px; height: 170px; }
.confirmation-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; max-width: 820px; margin: 14px auto 0; gap: 24px; }
.stamp-scene { width: 100%; height: 320px; }
.confirmation-layout .ticket-stage { width: 100%; padding: 16px 12px; }
.confirmation-layout .ticket { margin: 0; }
.confirmation-layout :is(.stamp-assistant,.stamp-tool,.celebration-pair,.ticket-slot,.petals) { display: none!important; }
.confirmation:not(.attending) .confirmation-layout { display: block; max-width: 410px; }
.reduce-motion .loop-video { visibility: hidden; }
.reduce-motion .loop-scene .loop-poster { visibility: visible; }
@media (max-width: 800px) {
  .travel-intro { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
  .vespa-scene { width: 260px; height: 250px; }
  .confirmation-layout { gap: 12px; }
  .stamp-scene { height: 240px; }
}
@media (max-width: 600px) {
  .travel-intro { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .travel-intro .content-heading { text-align: center; }
  .vespa-scene { width: min(290px,100%); height: 250px; justify-self: center; }
  .addresses-intro { grid-template-columns: minmax(0,1fr) 115px; gap: 12px; }
  .addresses-intro .content-heading h2 { font-size: 30px; }
  .addresses-intro .content-heading p { font-size: 17px; }
  .coffee-scene { width: 115px; height: 130px; }
  .confirmation-layout { grid-template-columns: minmax(0,1fr); max-width: 370px; }
  .stamp-scene { width: 210px; height: 210px; justify-self: center; }
  .confirmation-layout .ticket-stage { padding: 8px 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .loop-video { visibility: hidden; }
  .loop-scene .loop-poster { visibility: visible; }
}

/* Lift only the paper tone to white, then blend the ink into the page.
   No keyed-out pixels: curls, dress folds and faces stay intact. */
.media-filters { position: absolute; pointer-events: none; }
.travel-intro .paper-scene,.addresses-intro .paper-scene {
  background: transparent; border: 0; border-radius: 0; overflow: visible;
  mix-blend-mode: multiply; opacity: .9;
}
.travel-intro .loop-scene :is(img,video),.addresses-intro .loop-scene :is(img,video) { filter: url(#paper-to-ink); }
.travel-intro { position: relative; display: block; min-height: 215px; padding: 48px 310px 22px 0; margin-bottom: 12px; }
.travel-intro .vespa-scene { position: absolute; right: -8px; top: -18px; width: 300px; height: 250px; }
.addresses-intro { position: relative; display: block; min-height: 125px; padding: 22px 180px 0 0; margin-bottom: 12px; }
.addresses-intro .coffee-scene { position: absolute; right: 0; top: -28px; width: 170px; height: 170px; }
@media (max-width:600px) {
  .travel-intro { padding: 20px 150px 0 0; min-height: 165px; }
  .travel-intro .content-heading { text-align: left; }
  .travel-intro .content-heading h2 { font-size: 32px; }
  .travel-intro .content-heading p { font-size: 17px; }
  .travel-intro .vespa-scene { width: 170px; height: 170px; right: -14px; top: 0; }
  .addresses-intro { padding: 12px 108px 0 0; min-height: 112px; }
  .addresses-intro .coffee-scene { width: 125px; height: 140px; right: -14px; top: -16px; }
}

.home-coffee-scene { width: min(320px,76vw); height: clamp(180px,28svh,270px); margin: 16px auto 18px; }
@media(max-width:600px) { .home-coffee-scene { height: 210px; } }

/* The cafe duo sits across the map's upper-right edge. */
.addresses-intro { padding:22px 0 0; min-height:110px; }
.map-with-couple { position:relative; margin-top:95px; }
.map-coffee-scene { position:absolute; width:300px; height:300px; right:-12px; top:-215px; z-index:500; pointer-events:none; }
@media(max-width:600px) {
 .map-with-couple { margin-top:120px; }
 .map-coffee-scene { width:230px; height:230px; right:-10px; top:-165px; }
}
#page-addresses .city-map-toolbar { justify-content:flex-start; gap:22px; padding-right:300px; flex-wrap:wrap; }
@media(max-width:600px) { #page-addresses .city-map-toolbar { padding-right:0; flex-direction:column; align-items:flex-start; gap:12px; } }
.map-coffee-scene { width:260px; height:260px; right:-27px; top:-246px; }
@media(max-width:600px) { .map-coffee-scene { width:200px; height:200px; right:-18px; top:-189px; } }
.map-with-couple { margin-top:42px; }
@media(max-width:600px) { .map-with-couple { margin-top:90px; } }
.map-coffee-scene { width:200px; height:200px; top:-189px; right:-20px; }

.travel-intro .alpha-vespa :is(img,video) { filter:none; }

/* Wheels rest on the flight card; independent dust dissolves beyond the video. */
.flights-with-vespa { position:relative; margin-top:65px; }
.flights-with-vespa .alpha-vespa { position:absolute; right:-38px; top:-219px; width:440px; height:247.5px; z-index:2; pointer-events:none;  }
.flights-with-vespa .alpha-vespa :is(img,video) { filter:none; }
.travel-intro { min-height:140px; padding:25px 0 10px; }
#page-florence .travel-dates { padding-right:370px; }
@media(max-width:700px) {
 .flights-with-vespa { margin-top:150px; }
 .flights-with-vespa .alpha-vespa { width:300px; height:168.75px; top:-149px; right:-38px; }
 #page-florence .travel-dates { padding-right:0; }
}

.flights-with-vespa .alpha-vespa { mask-image:none; overflow:visible; }
.alpha-vespa :is(img,video) { mask-image:none; }


/* Wedding miniature overlaps the lower edge of Sunday's venue photograph. */
.weekend-visual { position:relative; }
.weekend-visual.has-ceremony { margin-bottom:64px; }
.ceremony-scene { position:absolute; width:170px; height:210px; right:-14px; bottom:-62px; z-index:2; }
@media(max-width:700px) {
 .weekend-visual.has-ceremony { margin-bottom:54px; }
 .ceremony-scene { width:150px; height:186px; right:-8px; bottom:-55px; }
}

.has-ceremony .venue-photo figcaption { text-align:left; padding-left:16px; padding-right:150px; }

/* Align the seated hips to the map border; feet overlap the map. */
.map-explorers { width:360px; height:202.5px; top:-135px; right:-78px; }
@media(max-width:600px) { .map-explorers { width:280px; height:157.5px; top:-105px; right:-65px; } }

/* A transparent sleepy vignette rests on the hotel photograph's lower edge. */
.hotel-gallery { position:relative; }
.hotel-gallery .suitcase-scene { position:absolute; width:260px; height:195px; left:-35px; bottom:88px; z-index:2; }
@media(max-width:600px) {
 .hotel-gallery .suitcase-scene { width:210px; height:157.5px; left:-25px; bottom:86px; }
}

/* Both days are visible without tabs, with only practical essentials. */
.weekend-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.weekend-day header { margin:0 0 16px; }
.weekend-day header .moment-time { font:14px/1.4 var(--sans); color:var(--olive); margin:0 0 4px; }
.weekend-day h3 { margin:0; font-size:36px; font-weight:500; color:var(--wine); }
.weekend-day .photo-frame > img { aspect-ratio:1.85; }
.weekend-day .weekend-visual.has-ceremony { margin-bottom:0; }
.weekend-day .ceremony-scene { width:130px; height:161px; bottom:-9px; right:-12px; }
.weekend-day .has-ceremony figcaption { padding-right:120px; }
.weekend-brief { margin-top:18px; }
.weekend-brief h4 { margin:0 0 6px; font-size:25px; font-weight:500; }
.weekend-brief .meta { margin:0 0 14px; }
#page-weekend .fine-print { margin:24px 0 0; text-align:center; }
@media(max-width:650px) {
 .weekend-overview { grid-template-columns:1fr; gap:28px; }
 .weekend-day header { display:flex; align-items:baseline; justify-content:space-between; flex-direction:row-reverse; margin-bottom:12px; }
 .weekend-day h3 { font-size:30px; }
 .weekend-day .photo-frame > img { aspect-ratio:2; }
 .weekend-day .ceremony-scene { width:115px; height:142px; }
 .weekend-brief h4 { font-size:23px; }
}

/* Home composition at normal zoom: text in the sky, faces at the hill line. */
@media (min-width:801px) and (min-height:700px) {
 .site-header { height:max(72px,8.3svh); padding:2.3svh 80px 1svh; }
 .brand { font-size:clamp(32px,3.55svh,62px); }
 .dock { min-height:54px; height:5.5svh; margin-bottom:0; width:min(1380px,94%); }
 .welcome { padding-top:6svh; }
 .welcome h1 { font-size:clamp(48px,6.4svh,112px); line-height:1.02; margin:0 0 2.7svh; }
 .welcome > p.wedding-names { font-size:clamp(25px,2.2svh,38px); line-height:1.3; margin:0 0 .5svh; }
 .welcome > p.wedding-date { font-size:clamp(19px,1.6svh,28px); line-height:1.4; margin:0; }
 .welcome .home-coffee-scene { height:24svh; width:min(400px,80vw); margin:3.2svh auto 2.2svh; }
}

/* A small Polaroid story introduces the real photo album. */
.story-intro { position:relative; min-height:230px; display:flex; align-items:center; padding-right:330px; margin-bottom:20px; }
.story-intro .content-heading { text-align:left; margin:0; }
.polaroid-scene { position:absolute; width:320px; height:239px; right:0; bottom:0; }
@media(max-width:600px) { .story-intro { min-height:175px; padding-right:190px; margin-bottom:14px; } .polaroid-scene { width:220px; height:164px; right:-18px; } .story-intro .content-heading h2 { font-size:32px; } }

.weekend-day .ceremony-scene { transform:scale(1.2); transform-origin:bottom center; }

/* Anchor the suitcase to the frame, independent of photo navigation. */
.hotel-visual { position:relative; }
.hotel-visual .photo-frame { padding-bottom:38px; }
.hotel-gallery .hotel-visual .suitcase-scene { bottom:0; transform:translateY(12%); }

/* Compensate for the 46px transparent bottom margin at the displayed scale. */
.weekend-day .ceremony-scene { bottom:-11.2px; }
@media(max-width:600px) { .weekend-day .ceremony-scene { bottom:-9.9px; } }

/* The Polaroid occupies a photo frame in the album. */
.story-gallery .story-polaroid { position:relative; width:100%; height:auto; aspect-ratio:3/4; margin:0; overflow:hidden; border-radius:calc(var(--photo-arch) - var(--photo-inset)) calc(var(--photo-arch) - var(--photo-inset)) 0 0; }
.story-gallery .story-polaroid :is(img,video) { width:100%; height:100%; object-fit:contain; }

.story-gallery .story-polaroid :is(img,video) { transform:scale(1.45); transform-origin:center; }

.story-gallery .story-polaroid { background:#ebdcc1; }

@media (min-width:651px) and (max-width:1000px) { .weekend-overview { grid-template-columns:1fr; } }

/* Share header, photo and details rows across all three weekend cards. */
@media (min-width:1001px) {
 .weekend-overview { column-gap:28px; row-gap:0; }
 .weekend-day { display:grid; grid-template-rows:subgrid; grid-row:span 3; min-width:0; }
 .weekend-day .venue-photo { height:100%; }
 .weekend-day .weekend-brief { display:flex; flex-direction:column; align-items:flex-start; }
 .weekend-day .weekend-brief .outline { margin-top:auto; }
}

/* Keep the synagogue caption free; the couple bridges the two Sunday photos. */
@media (min-width:1001px) {
 .weekend-day .has-ceremony .venue-photo figcaption { padding:15px 7px; text-align:left; white-space:nowrap; font-size:21px; }
 .weekend-day .ceremony-scene { right:-79px; bottom:-11.2px; pointer-events:none; }
}

/* Draw symbols instead of platform-dependent emoji glyphs. */
.magen-icon { display:inline-block; width:1em; height:1em; vertical-align:-.12em; flex:none; }
/* Rome has five moments: keep each row aligned and leave room around the couple. */
.weekend-overview{row-gap:24px}
.weekend-day .ceremony-scene{right:-12px}
.weekend-day .has-ceremony .venue-photo figcaption{white-space:normal;padding-right:90px}
@media(min-width:651px) and (max-width:1000px){.weekend-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* A chronological weekend in three chapters. */
.weekend-chapters{display:grid;gap:38px;max-width:1040px;margin:0 auto}
.weekend-chapter+.weekend-chapter{border-top:1px solid #d7c29c;padding-top:32px}
.chapter-intro{margin-bottom:20px}
.weekend-chapters h3{font:400 clamp(30px,3vw,40px)/1.1 var(--serif);color:var(--wine);margin:7px 0 0}
.weekend-chapters h4{font:400 clamp(25px,2.4vw,31px)/1.15 var(--serif);margin:5px 0 12px}
.weekend-chapters .moment-time{margin:0;font:14px/1.4 var(--sans);color:var(--olive)}
.weekend-chapters .meta{font:14px/1.6 var(--sans);margin:10px 0}
.weekend-band{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:38px;align-items:center}
.weekend-chapters .venue-photo{margin:0;height:auto}
.weekend-chapters .venue-photo img{display:block;width:100%;height:auto;aspect-ratio:1.85;object-fit:cover}
.weekend-chapters .venue-photo figcaption{font-size:23px;padding:12px 10px;text-align:center;min-height:0}
.shabbat-moments{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:23px}
.shabbat-moments>div+div{border-left:1px solid #d7c29c;padding-left:20px}
.weekend-directions{display:inline-block;font:18px var(--serif);color:var(--wine);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;padding:6px 0}
.sunday-pair{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.sunday-details{padding-top:18px}
.weekend-chapters .weekend-visual{position:relative}
.weekend-chapters .ceremony-scene{width:145px;height:180px;right:-12px;bottom:-10px;transform:none;pointer-events:none}
.weekend-chapters .has-ceremony figcaption{padding-right:110px;white-space:normal;text-align:left;font-size:23px;min-height:57px}
.brunch-chapter .weekend-band{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr)}
.brunch-chapter h3{max-width:440px}
@media(max-width:700px){.weekend-chapters{gap:28px}.weekend-band,.brunch-chapter .weekend-band{grid-template-columns:1fr;gap:20px}.sunday-pair{grid-template-columns:1fr;gap:28px}.weekend-chapter+.weekend-chapter{padding-top:26px}.shabbat-moments{margin-bottom:14px}.weekend-chapters .venue-photo img{aspect-ratio:1.8}.weekend-chapters .ceremony-scene{width:130px;height:161px}.weekend-chapters .has-ceremony figcaption{padding-right:95px;font-size:22px}.band-details h3{font-size:32px}}
.weekend-chapters .weekend-visual.has-ceremony{margin-bottom:0}
.sunday-pair .venue-photo figcaption{min-height:57px}

/* Match the width, crop and caption height of every weekend photograph. */
.weekend-band,.brunch-chapter .weekend-band,.sunday-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px}
.weekend-chapters .venue-photo figcaption{min-height:57px}
.shabbat-moments{grid-template-columns:1fr;gap:18px;margin-bottom:0}
.shabbat-moments>div+div{border-left:0;border-top:1px solid #d7c29c;padding:18px 0 0}
.shabbat-moments h4{margin-bottom:6px}
.shabbat-moments .meta{margin:6px 0}
@media(max-width:700px){.weekend-band,.brunch-chapter .weekend-band,.sunday-pair{grid-template-columns:1fr;gap:20px}}

/* Give Sunday a distinct, quiet highlight without changing photo dimensions. */
.weekend-chapters .wedding-chapter{background:#f5dfd2;border-top:0;border-radius:14px;box-shadow:0 0 0 22px #f5dfd2;margin:14px 0;padding:12px 0 16px}
.wedding-chapter .chapter-intro{margin-bottom:24px}
.wedding-chapter #wedding-title{color:var(--wine);font-size:clamp(36px,3.4vw,46px)}
.wedding-chapter .photo-frame{background:#fff7e9;border-color:#d4b49a}
@media(max-width:700px){.weekend-chapters .wedding-chapter{box-shadow:0 0 0 12px #f5dfd2}}

.wedding-party{display:inline-block;font-size:.65em;vertical-align:.08em;margin-left:.15em}
/* Keep the wedding day on the original cream page background. */
.weekend-chapters .wedding-chapter{background:transparent;box-shadow:none;border-radius:0;border-top:1px solid #d7c29c;margin:0;padding:32px 0 0}
.wedding-chapter .photo-frame{background:#f3e7cf;border-color:#cdb486}
@media(max-width:700px){.weekend-chapters .wedding-chapter{padding-top:26px}}

/* Rome flight selection */
.flight-next-day{font:12px var(--sans);vertical-align:super;margin-left:3px}
.travel-dates .arrival-day{letter-spacing:0;margin:7px 0 0;font-size:12px}
.flight-card footer>span{max-width:65%;line-height:1.4}
@media(max-width:800px){.flight-card footer>span{max-width:none}.flight-track span{white-space:normal}.flight-badge{flex-shrink:0}}

.airline-logo[src$="easyjet.svg"]{width:64px;height:30px}
