html:has(.tour-photo-viewer[open]) { overflow: hidden; }
.tour-photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: max(4.5rem, env(safe-area-inset-top)) 1rem 1rem;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}
.tour-photo-viewer[open] { display: grid; place-items: center; }
.tour-photo-viewer::backdrop { background: #fff; }
.tour-photo-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.tour-photo-close {
  position: absolute;
  z-index: 1;
  top: max(.75rem, env(safe-area-inset-top));
  right: max(.75rem, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #bccbd6;
  border-radius: 50%;
  background: #fff;
  color: #173b55;
  font: 2rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.tour-photo-close:hover { background: #edf5fa; }
.tour-photo-close:focus-visible { outline: 2px solid #1e6395; outline-offset: 3px; }
.tour-photo-viewer form { position: absolute; inset: 0; pointer-events: none; }
.tour-photo-close { pointer-events: auto; }
