.salon-viewer {
  position: fixed;
  inset: 0;
  width: min(100%, 1240px);
  max-width: 100%;
  max-height: 100%;
  height: 100dvh;
  margin: auto;
  padding: clamp(10px, 2.4vw, 30px);
  border: 0;
  color: #f2e6d6;
  background: transparent;
  overflow: auto;
}
.salon-viewer::backdrop {background: #100a0af5;}
.salon-viewer-inner {
  display: grid;
  min-height: min(100%, 100dvh - 30px);
  grid-template-rows: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
}
.salon-viewer-stage {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(42px, 1fr) minmax(0, auto) minmax(42px, 1fr);
  gap: clamp(3px, 2vw, 25px);
}
.viewer-image {
  display: block;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: min(75dvh, 870px);
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
.viewer-arrow, .viewer-close {
  cursor: pointer;
  color: #f2e6d6;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bc91698a;
  background: #261919;
  font: 31px/1 Georgia, serif;
}
.viewer-arrow:hover, .viewer-close:hover {background:#4a3026}
.viewer-arrow:first-child {justify-self:end;}
.viewer-arrow:last-child {justify-self:start;}
.viewer-close {justify-self: end;}
.salon-viewer-info {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 5px 22px;
  padding: 0 5px;
  text-align:center;
  font-size: 14px;
  line-height: 1.45;
}
.viewer-record { color: #e1b883; text-decoration: underline; text-underline-offset: .22em; }
body:has(.salon-viewer[open]) {overflow:hidden;}


@media (max-width: 599px) {
  .viewer-image {max-height: 68dvh;}
  .salon-viewer-stage {grid-template-columns: 40px minmax(0,1fr) 40px;}
  .viewer-arrow {width: 38px;}
}
