/* Slide 04 only. Entrance motion stays on parents, idle motion on inner text. */
#date .date-panel {
  width: min(530px,100%); min-height: 0; background: none; border: 0;
  isolation: isolate;
}
#invitation-content #date .date-panel::before {
  inset: 0; background: none; border-radius: 0;
  border: solid transparent; border-width: 145px 30px;
  border-image-source: url('assets/decorations/date-reference-frame.svg');
  border-image-slice: 210 54 210 54 fill;
  border-image-width: 145px 30px; border-image-repeat: stretch;
}
#date .date-panel::after { display: none; }
#date .date-panel .panel-content {
  padding: 205px 44px 205px; min-width: 0; position: relative; z-index: 3;
}
#date #date-title { font-size: clamp(32px,6vw,55px); line-height: 1.4; margin: 0; }
#date .vv-date-title-sway {
  display: inline-block; max-width: 100%;
  animation: vvDateTitleFloat 6.6s ease-in-out -1.1s infinite;
}
#date .vv-date-florals {
  position: absolute; left: 0; width: 100%; aspect-ratio: 2 / 3;
  pointer-events: none; z-index: 2;
}
#date .vv-date-florals img { display: block; width: 100%; height: 100%; object-fit: contain; }
#date .vv-date-florals-top { top: -12px; clip-path: inset(0 0 58% 0); }
#date .vv-date-florals-bottom { bottom: -12px; clip-path: inset(58% 0 0 0); }
#date .vv-date-florals-top img { transform-origin: 50% 15%; animation: vvDateFlowers 7.8s ease-in-out -2s infinite; }
#date .vv-date-florals-bottom img { transform-origin: 50% 86%; animation: vvDateFlowers 8.4s ease-in-out -4.1s infinite reverse; }
#date .date-calendar {
  width: 100%; min-width: 0; max-width: 100%; margin: 30px 0 36px;
  color: #FDF5E6; container-type: inline-size;
}
#date .vv-date-month {
  margin: 0 0 21px; font: 500 clamp(15px,3.6vw,23px)/1.6 var(--serif);
  letter-spacing: .09em; text-transform: uppercase;
}
#date .vv-date-month > span {
  display: inline-block; max-width: 100%;
  animation: vvDateLetterFloat 6.2s ease-in-out -1s infinite;
}
#date .vv-date-week {
  width: 100%; table-layout: fixed; border-collapse: collapse;
  border-top: 1px solid #d8c5a899; text-align: center;
}
#date .vv-date-week th, #date .vv-date-week td { padding: 0; font-weight: 400; vertical-align: middle; }
#date .vv-date-week th {
  padding-block: 15px 9px; font: 500 clamp(12px,2.5vw,20px)/1.6 var(--serif);
}
#date .vv-date-week th abbr { text-decoration: none; border: 0; }
#date .vv-date-week td { padding-block: 7px 14px; }
#date .vv-date-week time {
  position: relative; display: grid; place-items: center;
  width: 100%; min-height: 48px;
  font: 400 clamp(20px,4.3vw,34px)/1.4 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
@supports (font-size: 1cqi) {
  #date .vv-date-week th { font-size: clamp(12px,4.5cqi,20px); }
  #date .vv-date-week time { font-size: clamp(20px,8cqi,34px); }
}
#date .vv-date-week :is(abbr,.vv-date-numeral) {
  display: inline-block; max-width: 100%; position: relative; z-index: 1;
  animation: vvDateLetterFloat var(--date-cycle,5.8s) ease-in-out var(--date-phase,0s) infinite;
}
#date .vv-date-heart {
  display: none; position: absolute; width: 125%; max-width: 72px; height: auto;
  overflow: visible; pointer-events: none; color: #d9676d;
  transform-origin: 50% 53%;
  animation: vvDateHeartSway 3.8s ease-in-out -.6s infinite;
}
#date .is-wedding-day .vv-date-heart { display: block; }
#date .is-wedding-day .vv-date-numeral { color: #fff9f3; }
#date .date-bottom-label { margin-top: 24px; font-size: 9px; line-height: 1.9; letter-spacing: .16em; }
#date .date-actions { margin-top: 48px; }
@keyframes vvDateTitleFloat {
  0%,100% { transform: translateY(1px) rotate(-.35deg); }
  50% { transform: translateY(-3px) rotate(.35deg); }
}
@keyframes vvDateLetterFloat {
  0%,100% { transform: translateY(1px) rotate(-.6deg); }
  50% { transform: translateY(-2px) rotate(.6deg); }
}
@keyframes vvDateHeartSway {
  0%,100% { transform: rotate(-5deg) scale(.98); }
  50% { transform: rotate(5deg) scale(1.035); }
}
@keyframes vvDateFlowers {
  0%,100% { transform: translateY(1px) rotate(-.65deg); }
  50% { transform: translateY(-3px) rotate(.65deg); }
}
@media (max-width:600px) {
  #invitation-content #date .date-panel::before { border-width: 112px 24px; border-image-width: 112px 24px; }
  #date .date-panel .panel-content { padding: max(125px,calc(40vw - 18px)) 28px max(136px,calc(42vw - 18px)); }
  #date .date-calendar { margin-block: 24px 28px; }
  #date .vv-date-week time { min-height: 40px; }
  #date .vv-date-month { letter-spacing: .06em; }
}
@media (prefers-reduced-motion:reduce) {
  #date .vv-date-title-sway, #date .vv-date-month > span,
  #date .vv-date-week :is(abbr,.vv-date-numeral), #date .vv-date-heart,
  #date .vv-date-florals img { animation: none !important; transform: none; }
}
