.room-gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #e8eef6;
}

.room-gallery-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid #d5e1ef;
  border-radius: 50%;
  color: #082f61;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 18px rgba(6, 36, 76, 0.17);
}

.gallery-arrow.previous { left: 10px; }
.gallery-arrow.previous svg { transform: rotate(180deg); }
.gallery-arrow.next { right: 10px; }

.gallery-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 29, 61, 0.8);
  font-size: 8px;
  line-height: 1;
}

.room-gallery-thumbs {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.room-gallery-thumbs button {
  flex: 0 0 58px;
  width: 58px;
  height: 46px;
  padding: 2px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
}

.room-gallery-thumbs button.active { border-color: #1476d4; }

.room-gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.mobile-room-gallery { display: none; }
.modal-summary > .room-gallery + div { margin-top: 12px; }

@media (max-width: 680px) {
  .mobile-room-gallery {
    display: block;
    margin: -4px 0 20px;
  }

  .mobile-room-gallery .room-gallery-thumbs {
    scroll-snap-type: x proximity;
  }

  .mobile-room-gallery .room-gallery-thumbs button {
    flex-basis: 72px;
    width: 72px;
    height: 54px;
    scroll-snap-align: start;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
  }
}
