/* Christmas + Winter Ball Out flyer popup. Both flyers fully visible,
   never cropped. Desktop: side by side at the same height, within 90vh.
   Mobile: stacked, scroll inside the modal. Close is brand blue, no pill
   or halo, and stays fixed so it remains reachable while scrolling. */

.flyer-modal {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.66);
  overflow: hidden;
  color: #003CD5;
}
.flyer-modal::backdrop {
  background: rgba(0, 0, 0, 0.66);
}
.flyer-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: hidden;
}
.flyer-pair {
  /* Christmas 2250×3000 (0.75) + Winter 640×1280 (0.5) = 1.25 widths at a shared height. */
  --flyer-gap: 16px;
  --flyer-h: min(90vh, calc((100vw - 40px - var(--flyer-gap)) / 1.25));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--flyer-gap);
  box-sizing: border-box;
  height: var(--flyer-h);
  max-height: 90vh;
  max-width: calc(100vw - 40px);
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}
.flyer-pair .flyer-open-reg,
.flyer-pair picture,
.flyer-pair img {
  display: block;
  height: var(--flyer-h);
  width: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
  flex: 0 0 auto;
}
.flyer-modal-x {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  z-index: 2;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  color: #003CD5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flyer-modal-x svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: #003CD5;
  fill: none;
}
.flyer-modal-x:hover,
.flyer-modal-x:focus-visible {
  color: #003CD5;
  background: transparent;
  box-shadow: none;
  filter: none;
}
.flyer-modal-x:focus-visible {
  outline: 2px solid #003CD5;
  outline-offset: 3px;
}

html.flyer-open .d-sticky-reg {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.flyer-open,
html.flyer-open body {
  overflow: hidden;
  overscroll-behavior: none;
}


.flyer-open-reg {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: block;
  line-height: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  filter: none;
}
.flyer-open-reg:focus-visible {
  outline: 2px solid #003CD5;
  outline-offset: 3px;
}
.flyer-open-reg img {
  pointer-events: none;
}

@media (max-width: 799px) {
  .flyer-modal[open] {
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 56px 16px 24px;
  }
  .flyer-pair {
    flex-direction: column;
    align-items: center;
    height: auto;
    max-height: none;
    width: 100%;
    max-width: min(100%, calc(100vw - 32px));
    gap: 20px;
  }
  .flyer-pair .flyer-open-reg,
  .flyer-pair picture,
  .flyer-pair img {
    height: auto;
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
    max-height: none;
  }
}
