/* Elegant template (templates/sites/elegant.html). Tokens and layout only; every
 * color is a palette token, so light and dark both work. Light is its default. */

.t-elegant {
  --heading-weight: 500;
  --r-card: 0;
  --r-tile: 0;
  --r-thumb: 0;
  --r-control: 0;
  --r-button: 0;
  --gallery-gap: 14px;
  --stagger: 28px;
  --title-size: 44px;
  --gutter: 24px;
  --column: 342px;
}

.elegant { max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }

/* An ornament: a hairline with a small diamond on it. */
.t-elegant .hero__body::after,
.elegant__block + .elegant__block::before,
.elegant__foot::before {
  content: "";
  display: block;
  width: 200px; height: 10px;
  margin: 20px auto;
  /* Four triangles make the diamond; a hairline runs through it. */
  background:
    linear-gradient(to bottom right, transparent 50%, var(--brand) 0) 95px 0 / 5px 5px no-repeat,
    linear-gradient(to bottom left, transparent 50%, var(--brand) 0) 100px 0 / 5px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--brand) 0) 95px 5px / 5px 5px no-repeat,
    linear-gradient(to top left, transparent 50%, var(--brand) 0) 100px 5px / 5px 5px no-repeat,
    linear-gradient(var(--border-strong), var(--border-strong)) 0 50% / 100% 1px no-repeat;
}

/* --- Hero: monogram, eyebrow, names, date; the cover framed beneath ---------- */

.t-elegant .hero--framed {
  min-height: 0;
  padding: 36px 0 0;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  background: none;
  color: var(--ink);
}
.t-elegant .hero--framed .hero__body { order: -1; padding: 0; }
.t-elegant .hero__monogram {
  width: 64px; height: 64px;
  margin-bottom: 14px;
  border-color: var(--brand);
  color: var(--brand-text);
  font-size: 24px;
  letter-spacing: 0.02em;
}
.t-elegant .hero__emblem { height: 64px; margin: 0 auto 14px; }
.t-elegant .hero__eyebrow {
  margin: 0;
  font: 400 11px/1.4 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-elegant .hero__title { margin: 14px 0 10px; font-size: var(--title-size); line-height: 1.05; color: var(--ink); }
.t-elegant .hero--framed .hero__date { font: italic 500 18px/1.4 var(--display); color: var(--body); }
.t-elegant .hero__body::after { margin: 20px auto 24px; }

/* The cover in a portrait frame: a hairline drawn inside the photo. */
.t-elegant .hero--framed .hero__img,
.t-elegant .hero--framed .hero__collage {
  position: relative;
  z-index: 0;
  order: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--tile);
}
.t-elegant .hero--framed .hero__img { outline: 1px solid var(--on-scrim-soft); outline-offset: -12px; }
.t-elegant .hero--framed .hero__collage { display: grid; }
.t-elegant .hero--framed .hero__scrim { display: none; }
.t-elegant .hero--solid.hero--framed { padding-bottom: 4px; }

/* --- The quiet button -------------------------------------------------------- */

.elegant__cta { padding: 22px 0 8px; }
.t-elegant .cta { padding: 0; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.t-elegant .cta--inline .cta__button { width: 100%; min-width: 0; min-height: 54px; }
.t-elegant .cta__button {
  font: 500 13px/1.2 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.t-elegant .cta__button svg { display: none; }
.t-elegant .cta .live { justify-content: center; font-size: 12px; color: var(--muted); }
.t-elegant .cta .live__dot { display: none; }

/* --- Sections ---------------------------------------------------------------- */

.elegant__block { padding: 22px 0; }
.elegant__block--gallery { padding-top: 30px; }
.t-elegant .block-title {
  margin: 0 0 14px;
  font: 400 11px/1.4 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-elegant .label.sponsors__title { letter-spacing: 0.28em; font-weight: 400; color: var(--muted); }

/* Portrait tiles; every other column dropped a little, like a hand-laid album:
   two columns on a phone and a tablet (tiles at least 240px wide from 600px), and
   from 900px as many as fit, the stagger following the count (container queries
   below, on the grid's own width). */
.t-elegant .grid--portrait { padding-bottom: var(--stagger); }
/* The evening sponsor's card (c.gallery) under a staggered row: the dropped photos' share of
   space above it, so it keeps its gap from them. The stagger counts photos only (`of .thumb`). */
.t-elegant .grid--portrait:not(.grid--moments) > .gallery-banner { margin-top: calc(6px + var(--stagger)); }
.t-elegant .grid--portrait .thumb { aspect-ratio: 3 / 4; }
.t-elegant .grid--portrait .thumb:nth-child(2n of .thumb) { transform: translateY(var(--stagger)); }
.t-elegant .gallery__more { margin-top: 20px; }
.t-elegant .gallery__empty { font-style: italic; }

/* Schedule as centred serif lines: "15:00  Ceremony". */
.t-elegant .schedule__rows { gap: 2px; align-items: center; font: 400 20px/1.7 var(--display); color: var(--ink); }
.t-elegant .schedule__row { gap: 14px; justify-content: center; }
.t-elegant .schedule__time { width: auto; font: inherit; color: var(--brand-text); }

.t-elegant .linkcard { justify-content: center; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.t-elegant .sponsor { background: none; filter: grayscale(1); opacity: 0.75; }
.t-elegant .sponsor:hover { opacity: 1; filter: none; }
.t-elegant .sponsors__row { justify-content: center; }
.t-elegant .text-block__body { font-size: 16px; line-height: 1.7; }
.t-elegant .countdown__unit { background: none; border: 1px solid var(--border-strong); }
.t-elegant .social__links, .t-elegant .contact__links, .t-elegant .sessions__chips { justify-content: center; }
/* Moments, when the owner turns them on: the strip centred (auto margins, so it
   still scrolls from its first chip), serif headings, and the photos in plain
   columns: the stagger would restart unevenly under each heading. */
.t-elegant .moments__strip > li:first-child { margin-left: auto; }
.t-elegant .moments__strip > li:last-child { margin-right: auto; }
.t-elegant .moment-chip { font-weight: 400; }
.elegant__block.elegant__block--moments { padding-bottom: 0; }
.elegant__block--moments:not(:has(.moments)),
.elegant__block--sessions:not(:has(.sessions, .moments)) { display: none; }
/* The highlights strip, centred like the moments while it fits. */
.elegant__block--highlights:not(:has(.highlights)) { display: none; }
.t-elegant .highlights__title { text-align: center; }
.t-elegant .highlights__strip > li:first-child { margin-left: auto; }
.t-elegant .highlights__strip > li:last-child { margin-right: auto; }
.elegant__block--moments + .elegant__block--gallery,
.elegant__block--sessions + .elegant__block--gallery { padding-top: 12px; }
.elegant__block--moments + .elegant__block--gallery::before,
.elegant__block--sessions + .elegant__block--gallery::before { display: none; }
.t-elegant .moment-head { justify-content: center; padding-top: 28px; }
.t-elegant .moment-head__name { font: 500 24px/1.2 var(--display); }
.t-elegant .grid--moments.grid--portrait { padding-bottom: 0; }
.t-elegant .grid--moments.grid--portrait .thumb:nth-child(n of .thumb) { transform: none; }
.t-elegant .social__link { border-radius: 0; }
.t-elegant .credit { align-items: center; border-top: 0; padding-top: 0; padding-bottom: 40px; }
/* "Photos by" (c.photos_by) centred like the rest of the footer. */
.t-elegant .photos-by { text-align: center; }
.t-elegant .photos-by__list { justify-content: center; }
.t-elegant .photos-by__person { align-items: center; }
.elegant__foot::before { margin-top: 6px; }

/* The selfie page, in the same voice. */
.t-elegant .search h1 { font-size: 30px; }

@media (min-width: 600px) {
  .t-elegant { --title-size: 56px; --column: 560px; --gallery-gap: 18px; --stagger: 40px; --tile-min: 240px; }
  .t-elegant .hero--framed .hero__img,
  .t-elegant .hero--framed .hero__collage { max-width: 440px; }
  .elegant__cta { width: 360px; margin: 0 auto; }
}

@media (min-width: 900px) {
  /* Three staggered columns, the middle one dropped; on a wider window, four or five
     with the second and the fourth dropped. The grid is wide (site.css), so its own
     width says how many columns fit: k columns of at least 240px with 22px gaps
     need k * 262 - 22 px. */
  .t-elegant { --title-size: 68px; --column: 900px; --gallery-gap: 22px; --stagger: 48px; --tile-min: 240px; }
  .t-elegant .gallery { container: elegant-gallery / inline-size; }
  .t-elegant .hero--framed { padding-top: 56px; }
  .t-elegant .grid--portrait .thumb:nth-child(2n of .thumb) { transform: none; }
  .t-elegant .grid--portrait .thumb:nth-child(3n + 2 of .thumb) { transform: translateY(var(--stagger)); }
  .elegant__block { padding: 32px 0; }
  .elegant__block:not(.elegant__block--gallery):not(.elegant__block--moments):not(.elegant__block--sessions) > * {
    max-width: 600px; margin-left: auto; margin-right: auto;
  }
}

@container elegant-gallery (min-width: 1026px) {
  .t-elegant .grid--portrait .thumb:nth-child(3n + 2 of .thumb) { transform: none; }
  .t-elegant .grid--portrait .thumb:nth-child(4n + 2 of .thumb),
  .t-elegant .grid--portrait .thumb:nth-child(4n of .thumb) { transform: translateY(var(--stagger)); }
}

@container elegant-gallery (min-width: 1288px) {
  .t-elegant .grid--portrait .thumb:nth-child(4n + 2 of .thumb),
  .t-elegant .grid--portrait .thumb:nth-child(4n of .thumb) { transform: none; }
  .t-elegant .grid--portrait .thumb:nth-child(5n + 2 of .thumb),
  .t-elegant .grid--portrait .thumb:nth-child(5n + 4 of .thumb) { transform: translateY(var(--stagger)); }
}
