html.viewing-photo { overflow: hidden; }
[data-view-photo] { cursor: zoom-in; }
.hero-photo > [data-view-photo],
.home-choice-photo > [data-view-photo],
.service-detail-art > [data-view-photo] { display: block; }
dialog.photo-viewer {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  height: min(980px, calc(100% - 32px));
  height: min(980px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 12px 18px;
  border: 1px solid #d4d4ca;
  border-radius: 8px;
  background: #f6f5f1;
  color: #242923;
  overflow: hidden;
}
.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}
.photo-viewer::backdrop { background: rgb(22 26 23 / 78%); }
.photo-viewer-toolbar, .photo-viewer-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.photo-viewer button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #bdbfb4;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.photo-viewer button:focus-visible { outline: 2px solid #ab4928; outline-offset: 2px; }
.photo-viewer button:hover, .photo-viewer [aria-pressed="true"] { background: #e7e6de; }
.photo-viewer [data-close] { margin-left: auto; }
.photo-viewer [data-close] span { margin-left: 5px; font-size: 21px; vertical-align: middle; }
.photo-viewer-stage { min-width: 0; overflow: auto; overscroll-behavior: contain; }
.photo-viewer-stage img { display: block; width: 100%; height: 100%; object-fit: contain; margin: auto; }
.photo-viewer-stage.original-size img { width: auto; height: auto; max-width: none; max-height: none; }
.photo-viewer-stage p { text-align: center; }
.photo-viewer [hidden] { display: none; }
.photo-viewer-description { flex: 1; text-align: center; min-width: 0; line-height: 1.35; }
.photo-viewer [data-caption] {
  display: block;
  max-height: 4.1em;
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.photo-viewer [data-counter] { font-size: 13px; color: #586056; font-variant-numeric: tabular-nums; }
.photo-viewer [data-step] { font-size: 23px; }
@media (max-width: 600px) {
  dialog.photo-viewer { width: calc(100% - 16px); height: calc(100dvh - 24px); padding: 10px; }
  .photo-viewer-controls { gap: 6px; }
}
