/* Photo countdown (core/countdown/190, fork of core/countdown/180), INV-20 One Line · Luxe (A2715; plan W1): a photo screen. The couple's photo (gallery.3) in
   black and white fills it, hard-edged, under a shade (a gradient, never a filter); in white in its lower half: THE COUNTDOWN, four light numbers with small
   capital labels, and "We can't wait to celebrate with you". No photo: the same words in ink on paper. Laptop: a spread, the photo on the left and the
   numbers in ink on the paper half. The countdown starts as dashes (the fork's script, the owner's rule D-187).
   W1.2 (A2735, D-415: the bias cut): on a phone the photo sits above the words, cut along one slant of 8° (rising to the right) with the plain ink line on it,
   and the words move onto the paper below in ink. On a laptop the spread's seam leans. */
.cd190 { position: relative; color: #FFFFFF; }
.cd190 .cd190__ph { position: absolute; inset: 0; }
.cd190 .cd190__ph img { object-position: 50% 40%; }
.cd190 .cd190__ph .k-ol-shade { background: linear-gradient(180deg, rgb(10 10 10 / .25), rgb(10 10 10 / .45) 45%, rgb(10 10 10 / .7)); }
.cd190 .cd190__in { justify-content: flex-end; padding-bottom: clamp(70px, 13svh, 130px); }
.cd190:not(:has(.cd190__ph)) { color: var(--k-ol-ink); }
.cd190:not(:has(.cd190__ph)) .cd190__in { justify-content: center; padding-bottom: var(--k-section-pad); }
.cd190 .cd190__ttl { color: inherit; }
.cd190 .cd190__timer { width: 100%; margin-top: clamp(22px, 4svh, 40px); }
.cd190 .kjy-countdown__label { display: none; }
.cd190 .kjy-countdown [hidden] { display: none; }
.cd190 .kjy-countdown__units { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; column-gap: clamp(16px, 5vw, 44px); max-width: 640px; margin: 0 auto; }
.cd190 .kjy-unit { position: relative; display: flex; flex-direction: column; align-items: center; }
.cd190 .kjy-unit__n { font: 300 calc(clamp(44px, 13vw, 84px) * var(--k-ol-z))/1 var(--k-font-display); font-variant-numeric: lining-nums tabular-nums; }
.cd190 .kjy-unit__l { margin-top: 8px; padding-left: .26em; font: 500 calc(9.5px * (var(--k-ol-z) + .1))/1 var(--k-font-body); letter-spacing: .26em; text-transform: uppercase; }
.cd190 .kjy-countdown__done { font: 300 clamp(2rem, 8vw, 3.2rem)/1.2 var(--k-font-display); letter-spacing: .2em; text-transform: uppercase; }
.cd190 .cd190__foot { margin-top: clamp(26px, 5svh, 48px); font: italic 500 calc(18px * (var(--k-ol-z) + .1))/1.4 var(--k-font-body); }
@media (min-width: 1000px) and (orientation: landscape) {
  .cd190 { color: var(--k-ol-ink); }
  .cd190 .cd190__ph { position: sticky; inset: auto; top: 0; }
  .cd190 .cd190__in { justify-content: center; padding-bottom: clamp(56px, 9vh, 110px); }
  .cd190 .kjy-unit__n { font-size: clamp(56px, 5.4vw, 88px); }
}

/* The countdown starts as dashes (D-187; the fork's script): a thin dash on each number until the numbers come into view, then they fade in one after another,
   once. Only under kjy-fx and is-armed: lite, Reduce motion and no script show the numbers. */
.cd190 .kjy-unit:nth-child(2) { --cd190-d: .14s; }
.cd190 .kjy-unit:nth-child(3) { --cd190-d: .28s; }
.cd190 .kjy-unit:nth-child(4) { --cd190-d: .42s; }
html.kjy-fx:not(.kjy-lite) .cd190.is-armed:not(.is-done) .kjy-unit__n { position: relative; }
html.kjy-fx:not(.kjy-lite) .cd190.is-armed:not(.is-done) .kjy-unit__n::after { content: "\2014"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: currentColor; transition: opacity .45s ease-out var(--cd190-d, 0s); }
html.kjy-fx:not(.kjy-lite) .cd190.is-armed:not(.is-in) .kjy-unit__n { color: transparent; }
html.kjy-fx:not(.kjy-lite) .cd190.is-armed:not(.is-in) .kjy-unit__n::after { color: var(--k-ol-ink); }
html.kjy-fx:not(.kjy-lite) .cd190.is-armed.is-in:not(.is-done) .kjy-unit__n { transition: color 1s ease-out var(--cd190-d, 0s); }
html.kjy-fx:not(.kjy-lite) .cd190.is-armed.is-in .kjy-unit__n::after { opacity: 0; }

/* the bias cut (W1.2): the photo above, the words below on paper */
@media (max-width: 999px), (orientation: portrait) {
  .cd190:has(> .cd190__ph) { display: flex; flex-direction: column; min-height: 100svh; color: var(--k-ol-ink); overflow: hidden; overflow: clip; }
  .cd190 .cd190__ph { position: relative; inset: auto; flex: none; height: clamp(300px, 58svh, 640px); }
  .cd190 .cd190__ph .k-ol-shade { display: none; }
  .cd190 .cd190__ph > .k-ol-cut { top: calc(100% - var(--k-ol-half)); rotate: -8deg; }
  .cd190:has(> .cd190__ph) .cd190__in { flex: 1 0 auto; min-height: 0; justify-content: center; padding-top: clamp(30px, 5svh, 56px); padding-bottom: clamp(40px, 7svh, 72px); }
}
