.photo-viewer-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: transparent; color: #fff; }
.photo-viewer-dialog[open] { display: grid; place-items: center; }
.photo-viewer-dialog::backdrop { background: rgba(0,0,0,.82); }
.photo-viewer-stage { position: relative; z-index: 1; max-width: 100%; touch-action: pan-y; }
.photo-viewer-image { display: block; width: auto; height: auto; max-width: min(1440px, 100vw); max-height: calc(100dvh - 96px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.photo-viewer-dismiss {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* On phones, the opened photograph floats inside a softer, spacious viewer. */
@media (max-width: 680px), (max-height: 500px) and (pointer: coarse) {
  .photo-viewer-dialog { padding: calc(72px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px)); }
  .photo-viewer-dialog::backdrop { background: rgba(5,22,39,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .photo-viewer-stage { width: max-content; max-width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; background: rgba(8,27,46,.18); box-shadow: 0 20px 56px rgba(1,10,20,.3); }
  .photo-viewer-image { max-width: calc(100vw - 30px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); max-height: calc(100dvh - 104px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border-radius: 19px; object-fit: contain; }
}

.photo-viewer-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.photo-viewer-arrow--previous { inset-inline-start: 8px; }
.photo-viewer-arrow--next { inset-inline-end: 8px; }

/* Cream glass surfaces shared by hotel and hut photo controls. */
.stay-photo-glass,
.photo-viewer-arrow {
  color: #102744;
  border: 1px solid rgba(255, 252, 246, .86);
  border-radius: 999px;
  background: rgba(249, 241, 229, .88);
  box-shadow: 0 4px 14px rgba(15, 24, 37, .15), inset 0 1px 0 rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (hover: hover) {
  :is(a, button):is(.stay-photo-glass, .photo-viewer-arrow):not([aria-disabled="true"]):hover {
    background: rgba(255, 248, 238, .98);
  }
}

:is(a, button).stay-photo-glass:focus-visible,
.photo-viewer-dialog :focus-visible,
.stay-photo-dots button:focus-visible {
  outline: 2px solid #102744;
  outline-offset: -4px;
}

.photo-viewer-dialog > .photo-viewer-dismiss:focus-visible { outline-color: #fff; }

.stay-photo-toolbar {
  position: absolute;
  z-index: 2;
  inset: var(--stay-photo-toolbar-top, 13px) 12px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.stay-photo-features {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 6px 5px;
  list-style: none;
}

.stay-photo-features > li {
  display: grid;
  place-items: center;
  padding-inline: clamp(5px, 1.8vw, 9px);
}

.stay-photo-features > li + li { border-inline-start: 1px solid rgba(16, 39, 68, .2); }
.stay-photo-toolbar .stay-photo-features svg {
  width: 19px;
  height: 19px;
  color: inherit;
  stroke-width: 1.9;
}

.stay-photo-dots {
  position: absolute;
  z-index: 2;
  bottom: 37px;
  left: 50%;
  display: flex;
  gap: 0;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 3px 6px;
  transform: translateX(-50%);
  overflow-x: auto;
  scrollbar-width: none;
}

.stay-photo-dots button {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.stay-photo-dots button::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 39, 68, .46);
  content: '';
}

.stay-photo-dots button[aria-pressed="true"]::before {
  width: 15px;
  background: #102744;
}

.stay-photo-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 12px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.stay-photo-arrow--previous { inset-inline-start: 12px; }
.stay-photo-arrow--next { inset-inline-end: 12px; }

:is(.stay-photo-arrow, .photo-viewer-arrow) > svg {
  display: block;
  width: 17px;
  height: 20px;
  stroke-width: 2;
}

:is(.stay-photo-arrow--next, .photo-viewer-arrow--next) > svg,
[dir="rtl"] :is(.stay-photo-arrow--previous, .photo-viewer-arrow--previous) > svg {
  transform: rotate(180deg);
}

[dir="rtl"] :is(.stay-photo-arrow--next, .photo-viewer-arrow--next) > svg { transform: none; }

:is(.stay-photo-arrow, .photo-viewer-arrow)[aria-disabled="true"] {
  opacity: .22;
  cursor: default;
}
