.gallery-strip__photo {
  position: relative;
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.gallery-strip__photo::after {
  content: '+' / '';
  position: absolute;
  inset: 10px 10px auto auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(28 28 26 / 75%);
  color: #fff;
  font: 400 19px/1 sans-serif;
  pointer-events: none;
}

.gallery-strip__photo:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

.tour-redesign .gallery-strip__card:focus-within .gallery-strip__caption {
  opacity: 1;
}

.gallery-strip__photo + .gallery-strip__caption {
  pointer-events: none;
}

.gallery-strip__track.is-dragging .gallery-strip__photo {
  cursor: grabbing;
}

.tour-gallery-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px 24px;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: auto;
}

.tour-gallery-viewer[open] {
  display: grid;
  place-items: center;
}

.tour-gallery-viewer::backdrop {
  background: rgb(28 28 26 / 90%);
}

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

.tour-gallery-viewer figure {
  max-width: min(100%, 1100px);
  text-align: center;
}

.tour-gallery-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 128px);
  max-height: calc(100dvh - 128px);
  margin-inline: auto;
  border-radius: 10px;
  object-fit: contain;
}

.tour-gallery-viewer figcaption {
  margin-top: 8px;
  font-size: 14px;
}

.tour-gallery-viewer form {
  position: absolute;
  top: 12px;
  right: 16px;
}

.tour-gallery-viewer__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  color: #fff;
  font: 400 27px/1 sans-serif;
  cursor: pointer;
}

.tour-gallery-viewer__close:hover {
  background: rgb(255 255 255 / 27%);
}

.tour-gallery-viewer__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
