/* Navigation sits directly on the winter photograph. */
.xmas-header {
  position: fixed;
  inset: 0 0 auto;
  color: #fff7eb;
  border-bottom: 1px solid #ffffff25;
  background: linear-gradient(180deg, #1518178c, #1518171f);
  transition: background .2s, color .2s, box-shadow .2s;
}
.xmas-header.is-scrolled {
  color: var(--brown);
  background: #faf7f0f7;
  border-bottom-color: #e5ddd0;
  box-shadow: 0 4px 24px #382d2608;
}
.xmas-header.is-over-hero .xmas-nav > .xmas-btn {
  background: var(--wine);
  color: #fff;
}
.xmas-header.is-over-hero .xmas-nav > .xmas-btn:hover { background: var(--wine-dark); }
.xmas-header.is-over-hero .mobile-menu-button {
  background: #201e1a40;
  color: #fff7eb;
  border-color: #ffffff80;
}
.xmas-header.is-over-hero :focus-visible,
.xmas-hero :focus-visible { outline-color: #f1d4ae; }
.xmas-hero { min-height: min(850px, 100svh); }
.xmas-hero-content { padding-top: 158px; padding-bottom: 112px; }
.xmas-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  z-index: -3;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}
.xmas-hero-video.is-ready { opacity: 1; }
/* An evident, slow camera drift complements the original Higgsfield clip. */
.xmas-hero { overflow: hidden; }
.xmas-hero.is-motion-active .xmas-hero-image,
.xmas-hero.is-motion-active .xmas-hero-video {
  transform-origin: 65% 60%;
  animation: xmas-winter-drift 9s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes xmas-winter-drift {
  from { transform: scale(1.02) translate3d(4px, 2px, 0); }
  to { transform: scale(1.10) translate3d(-8px, -4px, 0); }
}
.xmas-nav { font-size: 16px; gap: 34px; }
.xmas-nav > a:not(.xmas-btn) { padding-block: 12px; }
.xmas-header .xmas-nav > .xmas-btn { font-size: 15px; min-height: 54px; padding-inline: 25px; }

/* One consistent image format, with native touch/trackpad scrolling. */
.xmas-gallery { padding: 0; overflow: hidden; }
.xmas-gallery-grid {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 4px max(28px, calc((100vw - 1160px) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(28px, calc((100vw - 1160px) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.xmas-gallery-grid::-webkit-scrollbar { display: none; }
.xmas-gallery .xmas-gallery-grid > figure {
  flex: 0 0 clamp(270px, 29vw, 400px);
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #e5ddd0;
}
.xmas-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xmas-gallery-footer {
  width: min(1160px, calc(100% - 56px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.xmas-gallery-footer > p { font-size: 10px; color: #766557; letter-spacing: .04em; }
.xmas-gallery-controls { display: flex; align-items: center; gap: 9px; flex: none; }
.xmas-gallery-controls[hidden] { display: none; }
.xmas-gallery-controls > span { margin-right: 10px; font-size: 10px; color: #786457; font-variant-numeric: tabular-nums; }
.xmas-gallery-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #c8b8a1;
  border-radius: 50%;
  background: transparent;
  color: var(--wine);
  font-size: 20px;
  line-height: 1;
}
.xmas-gallery-controls button:hover { background: #eee5d8; }
.xmas-gallery-controls button:disabled { opacity: .3; cursor: default; }

/* Contact invitation and reusable native dialog. */
.xmas-request-invitation { padding: 40px; border: 1px solid #c89b735c; align-self: center; }
.xmas-request-invitation .xmas-eyebrow { color: #dfbd93; margin-bottom: 24px; }
.xmas-request-invitation h3 { color: #fff4e7; font-size: 43px; }
.xmas-request-invitation > p:not(.xmas-eyebrow) { margin-top: 24px; color: #e0c6bb; font-size: 14px; }
.xmas-request-invitation .xmas-btn { margin-top: 28px; }
.xmas-dialog-open { overflow: hidden; }
.xmas-inquiry-dialog {
  position: fixed;
  inset: 0;
  width: min(980px, calc(100% - 48px));
  max-width: none;
  max-height: min(850px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  border: 1px solid #d4b58d80;
  border-radius: 3px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--brown);
  box-shadow: 0 30px 120px #160c0a65;
}
.xmas-inquiry-dialog::backdrop { background: #1d1613bb; backdrop-filter: blur(6px); }
.xmas-dialog-grid { display: grid; grid-template-columns: .85fr 1.15fr; }
.xmas-dialog-intro { background: #661b1e; color: #f9eddf; padding: 57px 38px 40px; }
.xmas-dialog-intro .xmas-eyebrow { color: #dfbd93; margin-bottom: 30px; }
.xmas-dialog-intro h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 43px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.045em;
  color: #fff4e7;
}
.xmas-dialog-intro h2 em { color: #dcb992; }
.xmas-dialog-intro > p:not(.xmas-eyebrow) { margin-top: 25px; font-size: 13px; color: #e0c6bb; }
.xmas-dialog-intro .xmas-contact { margin-top: 35px; }
.xmas-dialog-intro .xmas-contact > a { font-size: 23px; }
.xmas-inquiry-dialog .xmas-form-panel { padding: 56px 36px 30px; }
.xmas-inquiry-dialog .xmas-form-panel h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.xmas-dialog-close {
  position: sticky;
  z-index: 1;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  margin: 12px 12px -48px auto;
  display: grid;
  place-items: center;
  border: 1px solid #c8b8a1;
  border-radius: 50%;
  color: var(--wine);
  background: var(--paper);
  line-height: 1;
  font-size: 25px;
}
.xmas-dialog-close:hover { background: #eee5d8; }
.xmas-inquiry-dialog .xmas-form-help { color: #6d5b4d; }
@media (max-width: 1050px) {
  .xmas-hero { min-height: 760px; }
}
@media (max-width: 900px) {
  .xmas-header .xmas-nav { color: var(--brown); }
  .xmas-header.is-over-hero .xmas-nav > .xmas-btn { background: var(--wine); color: #fff; }
  .xmas-header.is-over-hero .xmas-nav > .xmas-btn:hover { background: var(--wine-dark); }
  .xmas-hero { min-height: 740px; }
  .xmas-hero-content { padding-top: 150px; }
  .xmas-dialog-grid { grid-template-columns: .8fr 1.2fr; }
  .xmas-dialog-intro { padding: 55px 25px 30px; }
  .xmas-dialog-intro h2 { font-size: 36px; }
  .xmas-inquiry-dialog .xmas-form-panel { padding: 55px 25px 28px; }
  .xmas-dialog-intro .xmas-contact > a { font-size: 19px; }
  .xmas-request-invitation { padding: 28px; }
  .xmas-request-invitation h3 { font-size: 36px; }
}
@media (max-width: 650px) {
  .xmas-hero { min-height: max(730px, 100svh); }
  .xmas-hero-content { padding-top: 140px; padding-bottom: 140px; }
  .xmas-hero-video { object-position: 58% 60%; }
  .xmas-gallery-grid { gap: 12px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .xmas-gallery .xmas-gallery-grid > figure { flex-basis: 78vw; aspect-ratio: 4 / 5; }
  .xmas-gallery-footer { width: calc(100% - 40px); margin-top: 16px; gap: 10px; }
  .xmas-gallery-footer > p { font-size: 9px; max-width: 195px; }
  .xmas-gallery-footer > p > span { display: block; }
  .xmas-gallery-controls { gap: 7px; }
  .xmas-gallery-controls > span { display: none; }
  .xmas-gallery-controls button { width: 38px; height: 38px; }
  .xmas-request-invitation { padding: 30px 25px; }
  .xmas-request-invitation .xmas-btn { width: 100%; gap: 12px; padding-inline: 12px; }
  .xmas-inquiry-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .xmas-dialog-grid { grid-template-columns: 1fr; }
  .xmas-dialog-intro { padding: 30px 25px 27px; }
  .xmas-dialog-intro .xmas-eyebrow { margin-bottom: 18px; padding-right: 30px; font-size: 9px; }
  .xmas-dialog-intro h2 { font-size: 34px; }
  .xmas-dialog-intro h2 br:first-of-type { display: none; }
  .xmas-dialog-intro > p:not(.xmas-eyebrow) { margin-top: 16px; font-size: 12px; }
  .xmas-dialog-intro .xmas-contact { margin-top: 22px; gap: 5px; }
  .xmas-dialog-intro .xmas-contact > span { font-size: 8px; }
  .xmas-dialog-intro .xmas-contact > a { font-size: 20px; }
  .xmas-inquiry-dialog .xmas-form-panel { padding: 28px 25px 30px; }
  .xmas-inquiry-dialog .xmas-form-grid { grid-template-columns: 1fr; }
  .xmas-inquiry-dialog .xmas-field-wide { grid-column: auto; }
  .xmas-dialog-open .xmas-mobile-cta { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-hero-video { display: none; }
  .xmas-hero .xmas-hero-image,
  .xmas-hero .xmas-hero-video { animation: none; transform: none; will-change: auto; }
}
@media print {
  .xmas-inquiry-dialog { display: none !important; }
}
