/* The native dialog's top layer keeps this above the site's navigation. */
.nye-popup {
  width: min(900px, calc(100vw - 32px), calc(150vh - 72px));
  width: min(900px, calc(100vw - 32px), calc(150dvh - 72px));
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: auto;
  padding: 0;
  border: 0;
  background: #f5efdf;
  color: #123c28;
  box-shadow: 0 16px 64px rgb(0 0 0 / 35%);
}

.nye-popup::backdrop {
  background: rgb(0 0 0 / 60%);
}

html.nye-popup-open {
  overflow: hidden;
}

.nye-popup__artwork {
  position: relative;
}

.nye-popup__image {
  display: block;
  width: 100%;
  height: auto;
}

.nye-popup__close {
  position: absolute;
  top: -20px;
  right: -12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #123c28;
  border-radius: 50%;
  background: #fbf7ee;
  color: #123c28;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.nye-popup__close:hover {
  background: #e9e1cf;
}

/* Match the button printed in the original 900 by 600 artwork. */
.nye-popup__reserve {
  position: absolute;
  left: 49.1111%;
  top: 78.5833%;
  width: 44.3333%;
  height: 8.8333%;
  min-height: 44px;
  transform: translateY(-50%);
  border-radius: 3px;
}

.nye-popup__reserve:hover {
  background: rgb(255 255 255 / 12%);
}

.nye-popup__close:focus-visible,
.nye-popup__reserve:focus-visible {
  outline: 3px solid #b38933;
  outline-offset: 3px;
}

.nye-popup__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
