.tour-gallery__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tour-gallery__open:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 22, 18, 0.14);
}
.tour-gallery__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: rgba(8, 6, 5, 0.96);
  color: #f5efe6;
}
.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.photo-lightbox__count {
  font-size: 0.88rem;
  color: rgba(245, 239, 230, 0.72);
}
.photo-lightbox__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.photo-lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }

.photo-lightbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 56px;
  touch-action: pan-y pinch-zoom;
}
.photo-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.photo-lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.photo-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.photo-lightbox__nav--prev { left: max(8px, env(safe-area-inset-left)); }
.photo-lightbox__nav--next { right: max(8px, env(safe-area-inset-right)); }

.photo-lightbox__caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(245, 239, 230, 0.86);
}

@media (max-width: 640px) {
  .photo-lightbox__stage { padding: 4px 44px; }
  .photo-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
