/*
 * Additions to the designers' hand-off, kept out of styles.css so a new hand-off never
 * overwrites them. scripts/extract_single_file.py links this file and inserts the markup.
 */

/* Two reels, in the slot the wedding film used to fill. */
.reels-section {
  background: var(--wine);
  padding: 100px 5% 105px;
  position: relative;
  isolation: isolate;
  border-top: 10px solid var(--gold);
  border-bottom: 10px solid var(--gold);
}
.reels-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image: radial-gradient(
    ellipse at 50% 100%,
    transparent 46%,
    #f7d393 47%,
    #f7d393 49%,
    transparent 50%
  );
  background-size: 45px 65px;
}
.reels-ticket {
  max-width: 980px;
  margin: auto;
  border: 1px solid #eec879;
  padding: 45px 40px 50px;
  background: #741c30;
  box-shadow: 10px 10px 0 #661324;
  text-align: center;
  outline: 1px dashed #eec879;
  outline-offset: 8px;
}
.reels-ticket > span {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2.5px;
}
.reels-ticket > h2 {
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.05;
  color: var(--cream);
  margin: 26px 0 40px;
  letter-spacing: -1.5px;
}
.reels-ticket h2 em {
  color: var(--gold);
}
.reels-row {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
}
.reel {
  margin: 0;
  width: min(300px, 40%);
}
.reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  border: 6px solid var(--gold);
  background: #162a2b;
  box-shadow:
    0 0 0 1px #eeb84699,
    0 0 0 11px #eeb84619,
    0 22px 40px #3d0b1680;
}
.reel-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 9px #eeb84640;
  transition: transform 0.3s;
}
.reel-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}
.reel-play:hover {
  transform: scale(1.08);
}
.reel-play:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}
.reel-frame.playing .reel-play {
  display: none;
}
.reel figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cream);
}
.reel figcaption b {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 800px) {
  .reels-section {
    padding: 55px 30px;
  }
  .reels-ticket {
    padding: 29px 22px 34px;
  }
}
@media (max-width: 560px) {
  .reels-section {
    padding: 47px 23px;
    border-width: 7px;
  }
  .reels-ticket {
    padding: 25px 16px 30px;
    outline-offset: 5px;
  }
  .reels-ticket > h2 {
    font-size: 44px;
    margin: 20px 0 28px;
  }
  .reels-row {
    flex-direction: column;
    align-items: center;
    gap: 34px;
  }
  .reel {
    width: min(270px, 78vw);
  }
}

/* Ten venue photos instead of the hand-off's four: two even rows of five thumbnails. */
.venue-thumbs {
  grid-template-columns: repeat(5, 1fr);
}
.venue-thumbs img {
  height: 58px;
}
@media (max-width: 560px) {
  .venue-thumbs {
    gap: 6px;
  }
  .venue-thumbs img {
    height: 44px;
  }
}

/* Floating countdown: replaces the inline strip in "two cities" (extras.js builds it). */
.two-cities .countdown-pass {
  display: none;
}
.countdown-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  color: var(--cream);
  background: var(--blue);
  border-top: 5px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  box-shadow:
    4px 4px 0 #cdb17f,
    0 14px 30px #06142f55;
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.countdown-float.shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.countdown-float[hidden] {
  display: none;
}
.countdown-float-toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: pointer;
  padding: 13px 40px 13px 18px;
  text-align: left;
}
.countdown-float-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.countdown-float-title {
  display: block;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: var(--gold);
}
.countdown-float-units {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.countdown-float-units span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.6px;
}
.countdown-float-units b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 4px;
}
.countdown-float-dates {
  display: block;
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.85;
}
.countdown-float-short {
  display: none;
  font-size: 12px;
  letter-spacing: 1.8px;
}
.countdown-float-short b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--gold);
  margin-right: 6px;
  vertical-align: -2px;
}
.countdown-float-chevron {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 20px;
  height: 20px;
  border: 1px solid #eeb84699;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gold);
  pointer-events: none;
}
/* Collapsed: just "24 DAYS TO GO". */
.countdown-float.compact .countdown-float-title,
.countdown-float.compact .countdown-float-units,
.countdown-float.compact .countdown-float-dates {
  display: none;
}
.countdown-float.compact .countdown-float-short {
  display: block;
}
.countdown-float.compact .countdown-float-toggle {
  padding: 9px 38px 9px 14px;
}
.countdown-float.compact .countdown-float-chevron {
  top: 50%;
  transform: translateY(-50%);
}
/* The wedding is on: one line, no numbers. */
.countdown-float.live .countdown-float-units,
.countdown-float.live .countdown-float-short b {
  display: none;
}
@media (max-width: 800px) {
  /* Sit above the guest dock. */
  .countdown-float {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-float {
    transition: none;
  }
}
.motion-paused .countdown-float {
  transition: none;
}

/* "Phone mein rakh lo": calendar + home-screen cards after the itinerary. */
.phone-section {
  background-image: radial-gradient(circle, #bb954722 0.7px, transparent 0.8px);
  background-size: 9px 9px;
}
.phone-section .overline {
  color: var(--wine);
}
.phone-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 45px;
}
.phone-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 #cdb17f;
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
}
.phone-card-kicker {
  font-size: 11px;
  letter-spacing: 2.4px;
  color: var(--wine);
  font-weight: 700;
}
.phone-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 14px 0 12px;
}
.phone-card h3 em {
  color: var(--wine);
}
.phone-card > p {
  color: var(--muted);
  margin: 0 0 22px;
}
.phone-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-card-actions .btn {
  justify-content: flex-start;
  text-align: left;
}
.phone-card-actions .btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.phone-card-actions .btn small {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 1.6px;
  opacity: 0.8;
}
.phone-card-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.phone-card-note .text-link {
  all: unset;
  cursor: pointer;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.phone-card-note .text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.phone-install {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.phone-install + .phone-install {
  margin-top: 18px;
}
.phone-platform {
  display: block;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: var(--wine);
  font-weight: 700;
  margin-bottom: 8px;
}
.phone-install ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.75;
}
.phone-install ol li::marker {
  color: var(--wine);
  font-weight: 700;
}
.phone-install .btn {
  width: 100%;
  margin-bottom: 12px;
}
.step-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin: 0 1px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--blue);
}
.phone-installed {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e2ead9;
  color: var(--green);
  padding: 14px 16px;
  margin: 18px 0 0;
  font-weight: 700;
}
.phone-installed svg {
  width: 18px;
  height: 18px;
  flex: none;
}
/* Device-aware: the guest's own platform first, the other one second. */
.phone-card[data-first="ios"] [data-platform="android"],
.phone-card[data-first="android"] [data-platform="ios"] {
  order: 2;
}
@media (max-width: 800px) {
  .phone-cards {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 32px;
  }
  .phone-card {
    padding: 26px 22px 24px;
    box-shadow: 4px 4px 0 #cdb17f;
  }
}

/* The अद monogram from the printed itinerary, in place of the D&A seal. */
.brand-mark {
  height: 50px;
  width: auto;
  display: block;
}
.hero-mark {
  display: block;
  height: 86px;
  width: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 2px 0 #fff2d7);
}
.gate-seal {
  background: var(--cream);
  border-color: var(--gold);
}
.gate-seal img {
  width: 66%;
  height: 66%;
  object-fit: contain;
}
@media (max-width: 560px) {
  .brand-mark {
    height: 42px;
  }
  .hero-mark {
    height: 64px;
  }
}

/* "Aap kiski taraf se ho?": the side chooser above the itinerary. */
.side-chooser {
  margin: 38px 0 30px;
}
.side-ask {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 #0b2149;
  padding: 36px 36px 30px;
  text-align: center;
}
.side-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 2.6px;
  font-weight: 700;
  color: var(--wine);
}
.side-ask h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 14px 0 12px;
}
.side-ask > p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}
.side-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px auto 18px;
  max-width: 760px;
}
.side-option {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 20px 24px;
  border: 2px solid var(--line);
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.side-option:hover,
.side-option:focus-visible {
  transform: translateY(-4px);
  border-color: currentColor;
}
.side-option:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.side-bride {
  color: var(--wine);
  box-shadow: 5px 5px 0 #eeb846;
}
.side-groom {
  color: var(--blue);
  box-shadow: 5px 5px 0 #eeb846;
}
.side-tag {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
}
.side-option strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: var(--ink);
}
.side-option small {
  font-size: 13px;
  color: var(--muted);
}
.side-fineprint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.side-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  color: var(--cream);
  border-top: 1px solid #eeb84655;
  border-bottom: 1px solid #eeb84655;
  padding: 12px 0;
}
.side-picked-label {
  font-size: 11px;
  letter-spacing: 2.4px;
  color: var(--gold);
  font-weight: 700;
}
.side-picked strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}
.side-picked > span:not(.side-picked-label) {
  color: #fff2d7cc;
}
.side-picked .text-link {
  all: unset;
  cursor: pointer;
  margin-left: auto;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.side-picked .text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* Until a side is picked, the itinerary waits behind the question. */
.side-unpicked .schedule-body,
.side-unpicked .schedule-note {
  display: none;
}
@media (max-width: 800px) {
  .side-ask {
    padding: 26px 20px 22px;
    box-shadow: 4px 4px 0 #0b2149;
  }
  .side-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Gallery page. */
.gallery-section {
  min-height: 70vh;
}
.gallery-section .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.gallery-add svg {
  width: 18px;
  height: 18px;
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.gallery-count {
  font-size: 12px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px 22px;
  margin-top: 26px;
}
.gallery-grid .empty-album {
  grid-column: 1 / -1;
}
.gallery-status {
  margin-top: 20px;
  color: var(--wine);
  font-weight: 700;
}
.gallery-more {
  text-align: center;
  margin-top: 36px;
}
.gallery-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 36px;
  text-align: center;
}
.gallery-page footer .btn {
  margin-left: auto;
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
}

/* The gallery page is cream, not the album section's green: give the filters ink colours. */
.gallery-page .album-filters > button {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
.gallery-page .album-filters > button:hover {
  border-color: var(--wine);
  color: var(--wine);
}
.gallery-page .album-filters > button.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}
.gallery-page .empty-album {
  color: var(--ink);
}
.gallery-page .empty-album p {
  color: var(--muted);
}

/* "Thodi aur jhalkiyan": the 13 photographs the page composition doesn't use, as a film strip. */
.strip-section {
  padding: 90px 0 95px;
  background-image: radial-gradient(circle, #bb954722 0.7px, transparent 0.8px);
  background-size: 9px 9px;
  overflow: hidden;
}
.strip-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 0;
}
.strip-heading .overline {
  color: var(--wine);
}
.strip-nav {
  display: flex;
  gap: 10px;
  flex: none;
}
.strip-nav button {
  all: unset;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border: 1px solid var(--wine);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--paper);
  box-shadow: 3px 3px 0 #cdb17f;
  transition: transform 0.25s;
}
.strip-nav button:hover {
  transform: translateY(-2px);
}
.strip-nav button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.strip-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 22px max(26px, calc((100vw - 1160px) / 2)) 30px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 max(26px, calc((100vw - 1160px) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip-row::-webkit-scrollbar {
  display: none;
}
.strip-row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.strip-item {
  all: unset;
  cursor: pointer;
  flex: none;
  height: 340px;
  padding: 7px 7px 10px;
  background: #fff;
  border: 1px solid #e6d7bc;
  box-shadow: 6px 7px 0 #cdb17f;
  scroll-snap-align: start;
  transform: rotate(var(--tilt, 0deg));
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.strip-item:nth-child(3n + 1) {
  --tilt: -1.6deg;
}
.strip-item:nth-child(3n + 2) {
  --tilt: 1.4deg;
}
.strip-item:nth-child(3n) {
  --tilt: -0.6deg;
}
.strip-item:hover,
.strip-item:focus-visible {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 8px 10px 0 #cdb17f;
}
.strip-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.strip-item img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: cover;
}
@media (max-width: 800px) {
  .strip-section {
    padding: 60px 0 66px;
  }
  .strip-nav {
    display: none;
  }
  .strip-row {
    gap: 18px;
    margin-top: 26px;
    padding: 16px 20px 24px;
    scroll-padding: 0 20px;
  }
  .strip-item {
    height: 240px;
    padding: 5px 5px 8px;
    box-shadow: 4px 5px 0 #cdb17f;
  }
}
