img:not(.site-image-viewer img) {
  cursor: zoom-in;
}

html:has(.site-image-viewer[open]) {
  overflow: hidden;
}

.site-image-viewer {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #111;
}

.site-image-viewer[open] {
  display: grid;
  place-items: center;
}

.site-image-viewer::backdrop {
  background: #111;
}

.site-image-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: contain;
}

.site-image-viewer .site-image-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.site-image-viewer.site-image-with-order[open] {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  align-items: stretch;
  padding-top: max(60px, calc(env(safe-area-inset-top) + 50px));
}

.site-image-order {
  min-width: 0;
  overflow: auto;
  padding: 16px;
  background: #f6faf7;
  color: #183d2c;
}

.site-image-order h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.site-image-order .holiday-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-image-order #holidayPrice {
  font-weight: 700;
}

@media (max-width: 650px) {
  .site-image-viewer.site-image-with-order[open] {
    display: block;
    overflow: auto;
  }

  .site-image-viewer.site-image-with-order img {
    height: 33dvh;
  }

  .site-image-order {
    overflow: visible;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
