.photo-gallery { min-width: 0; background: #edf2ef; }
.photo-gallery > .detail-gallery,
.photo-gallery > .seo-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: clamp(240px, 42vw, 480px);
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}
.photo-gallery > .detail-gallery { height: clamp(240px, 38vw, 400px); }
.photo-gallery > div > a { display: block; min-width: 0; min-height: 0; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.photo-gallery > div > a > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-gallery-controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; font-size: .85rem; }
.photo-gallery-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1.6rem; cursor: pointer; }
.photo-gallery-controls button:disabled { opacity: .35; cursor: default; }
.photo-gallery-controls a { margin-left: auto; color: var(--green); font-weight: 700; }
