/* Dates stay in HTML. The original FV artwork is cropped or covered only
   within the previous date line so future dates can be changed in the page. */
#fv .campaign-fv__date-frame,
#fv .campaign-fv__event-date { display: none; }

#fv .campaign-fv__event-date {
  position: absolute;
  align-items: center;
  justify-content: center;
  gap: .18em;
  margin: 0;
  color: #0a2349;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1;
  white-space: nowrap;
}

#fv .campaign-fv__event-date time { display: inline-flex; align-items: baseline; gap: .08em; }
#fv .campaign-fv__weekday {
  display: inline-grid;
  place-items: center;
  align-self: end;
  margin-bottom: .04em;
  width: 1.55em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1366a2;
  color: #fff;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: .44em;
  line-height: 1;
}
#fv .campaign-fv__weekday--sun { background: #ae3715; }
#fv .campaign-fv__date-dot { font-family: Georgia, serif; font-size: .66em; }

@media (min-width: 1024px) {
  #fv .campaign-fv__intro { display: grid; place-items: center; background: none; container-type: size; }
  #fv .campaign-fv__date-frame {
    display: block;
    position: relative;
    width: min(100cqw, 75.12094cqh);
    aspect-ratio: 1087 / 1447;
    container-type: inline-size;
  }
  #fv .campaign-fv__date-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/deco/fv-c-intro-alpha-v2.webp') center / 100% 100% no-repeat;
    mask-image: linear-gradient(#000 52.35%, transparent 52.35% 67.8%, #000 67.8%);
  }
  #fv .campaign-fv__event-date--desktop {
    display: flex;
    inset: 52.35% 0 auto;
    height: 8.9%;
    font-size: 10.3cqw;
  }
}

@media (max-width: 1023px) {
  #fv .campaign-fv__layout { container-type: inline-size; }
  #fv .campaign-fv__event-date--mobile {
    display: flex;
    top: calc(29.30% - 4.688px);
    left: 10.4%;
    width: 80.3%;
    height: calc(5.70% - .912px);
    z-index: 1;
    isolation: isolate;
    font-size: 8.65cqw;
  }
  #fv .campaign-fv__event-date--mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(#fdf8ee, #fff9ed 55%, #fdf8ed);
    mask-image: linear-gradient(90deg, transparent, #000 1.3% 98.8%, transparent),
      linear-gradient(transparent, #000 5% 94%, transparent);
    mask-composite: intersect;
  }
}

/* Keep the gift terms separate from the campaign attribution and the artwork. */
#fv .campaign-fv__gift-eligibility {
  display: block;
  font-weight: 700;
}

@media (min-width: 1024px) {
  #fv .campaign-fv__layout { grid-template-rows: minmax(0, 46fr) minmax(0, 54fr) auto; }
}

@media (max-width: 1023px) {
  #fv .campaign-fv__layout::after { clip-path: inset(57.75% 0 7% 0); }
  #fv .campaign-fv__mobile-note {
    bottom: 0;
    padding: 2px 4px;
  }
}

/* Keep event hours editable while preserving the artwork and its layout. */
#fv .campaign-fv__event-hours {
  display: none;
  position: absolute;
  align-items: center;
  justify-content: center;
  color: #0a2349;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  #fv .campaign-fv__event-hours--desktop {
    display: flex;
    inset: 61.15% 6.5% auto;
    height: 6.35%;
    gap: .3em;
    font-size: 5.25cqw;
  }
  #fv .campaign-fv__event-hours--desktop::before,
  #fv .campaign-fv__event-hours--desktop::after {
    content: '';
    height: .075em;
    flex: 1;
    background: #aa761b;
  }
  #fv .campaign-fv__clock {
    position: relative;
    display: block;
    width: 1.12em;
    height: 1.12em;
    margin-left: .12em;
    border: .085em solid #aa761b;
    border-radius: 50%;
    background: #fffaf0;
  }
  #fv .campaign-fv__clock::before {
    content: '';
    position: absolute;
    left: 46%;
    top: 20%;
    width: 25%;
    height: 33%;
    border-left: .075em solid #aa761b;
    border-bottom: .075em solid #aa761b;
    border-radius: 0 0 0 1px;
  }
}

@media (max-width: 1023px) {
  #fv .campaign-fv__event-hours--mobile {
    display: flex;
    top: calc(34.93% - 5.5888px);
    left: 35.4%;
    width: 36.9%;
    height: calc(3.27% - .5232px);
    z-index: 1;
    isolation: isolate;
    font-size: 5.05cqw;
  }
  #fv .campaign-fv__event-hours--mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(#fef9ee 0% 70%, #f6f6ef 85%, #eef5f7);
    mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent),
      linear-gradient(transparent, #000 10% 89%, transparent);
    mask-composite: intersect;
  }
}
