.lodging-gallery-open {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.lodging-gallery-open-label {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: .55rem .8rem;
  background: rgb(13 27 29 / .88);
  color: #f7fbfa;
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .01em;
}

.lodging-gallery-open img {
  transition: transform 180ms ease-out, filter 180ms ease-out;
}

.lodging-gallery-open:hover img {
  filter: brightness(.94);
  transform: scale(1.012);
}

.lodging-gallery-open:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #fff;
  outline-offset: -5px;
  box-shadow: inset 0 0 0 7px #16535a;
}

html.lodging-lightbox-open {
  overflow: hidden;
}

.lodging-lightbox {
  width: min(calc(100vw - 2rem), 88rem);
  max-width: none;
  height: min(calc(100dvh - 2rem), 58rem);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0d1b1d;
  color: #f7fbfa;
}

.lodging-lightbox::backdrop {
  background: rgb(4 13 15 / .88);
}

.lodging-lightbox-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lodging-lightbox-header {
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .65rem .55rem 1rem;
  border-bottom: 1px solid rgb(247 251 250 / .18);
}

.lodging-lightbox-header p {
  margin: 0;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lodging-lightbox-close,
.lodging-lightbox-nav {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgb(247 251 250 / .35);
  border-radius: 0;
  background: transparent;
  color: #f7fbfa;
  font: inherit;
  cursor: pointer;
}

.lodging-lightbox-close {
  font-size: 1.6rem;
  font-weight: 350;
}

.lodging-lightbox-nav {
  font-size: 2rem;
  line-height: 1;
}

.lodging-lightbox-close:hover,
.lodging-lightbox-nav:hover {
  background: #f7fbfa;
  color: #0d1b1d;
}

.lodging-lightbox-close:focus-visible,
.lodging-lightbox-nav:focus-visible {
  outline: 3px solid #c9dcda;
  outline-offset: 3px;
}

.lodging-lightbox-nav:disabled {
  opacity: .35;
  cursor: default;
}

.lodging-lightbox-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: clamp(.75rem, 2vw, 1.5rem);
  touch-action: pan-y;
}

.lodging-lightbox-loading {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  display: none;
  padding: .5rem .7rem;
  background: rgb(13 27 29 / .82);
  color: #d4e0df;
  font-size: .68rem;
  transform: translateX(-50%);
}

.lodging-lightbox.is-loading .lodging-lightbox-loading {
  display: block;
}

.lodging-lightbox.has-error .lodging-lightbox-loading {
  display: block;
}

.lodging-lightbox-stage figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  margin: 0;
}

.lodging-lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  justify-self: center;
  align-self: center;
  object-fit: contain;
}

.lodging-lightbox-stage figcaption {
  max-width: 64rem;
  margin-inline: auto;
  color: #d4e0df;
  font-size: .72rem;
  line-height: 1.45;
  text-align: center;
}

.lodging-lightbox-count {
  grid-column: 1 / -1;
  margin: 0;
  color: #d4e0df;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (max-width: 47.99rem) {
  .lodging-lightbox {
    width: calc(100vw - .75rem);
    height: calc(100dvh - .75rem);
  }

  .lodging-lightbox-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: .6rem .35rem;
    padding: .6rem;
  }

  .lodging-lightbox-stage figure {
    grid-column: 1;
    grid-row: 1;
  }

  .lodging-lightbox-nav {
    position: absolute;
    z-index: 1;
    top: 50%;
    background: rgb(13 27 29 / .82);
    transform: translateY(-50%);
  }

  .lodging-lightbox-prev {
    left: .6rem;
  }

  .lodging-lightbox-next {
    right: .6rem;
  }

  .lodging-lightbox-stage figcaption {
    padding-inline: .5rem;
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lodging-gallery-open img {
    transition: none;
  }
}
