/* Room photo viewer. The closed slider stays the same size. */
.slider-3 .slide-content-wrapper {
  cursor: zoom-in;
}

.hsg-gallery {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #111;
  touch-action: none;
  overscroll-behavior: none;
}

.hsg-gallery[hidden] {
  display: none !important;
}

.hsg-gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hsg-gallery-close,
.hsg-gallery-prev,
.hsg-gallery-next {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 17, 17, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hsg-gallery-close {
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
}

.hsg-gallery-prev,
.hsg-gallery-next {
  top: 50%;
  transform: translateY(-50%);
}

.hsg-gallery-prev {
  left: max(0.75rem, env(safe-area-inset-left));
}

.hsg-gallery-next {
  right: max(0.75rem, env(safe-area-inset-right));
}

.hsg-gallery-prev[hidden],
.hsg-gallery-next[hidden] {
  display: none !important;
}

.hsg-gallery-prev:disabled,
.hsg-gallery-next:disabled {
  opacity: 0.35;
  cursor: default;
}

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

html.hsg-gallery-open,
body.hsg-gallery-open {
  overflow: hidden;
}

body.hsg-gallery-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
