/* Keep the complete gallery reachable at every screen size. */
body #dzThumbs.dz-thumbs { display:flex; overflow-x:auto; gap:8px; padding-bottom:8px; scroll-snap-type:x proximity; }
body #dzThumbs .dz-thumb { flex:0 0 96px; min-width:0; scroll-snap-align:start; }
body #dzThumbs .dz-thumb img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
body #dzThumbs .dz-thumb span { font-size:12px; }
body #dzThumbs .dz-thumb[hidden] { display:none; }

/* Desktop: reveal large, translucent controls at the sides of the photo. */
@media (min-width: 1024px) {
  body .dz-gallery-stage .dz-gallery-nav {
    position:absolute; inset:0; width:auto; height:auto; display:block;
    padding:0; margin:0; border:0; border-radius:0;
    background:transparent; box-shadow:none; pointer-events:none; z-index:4;
  }
  body .dz-gallery-stage .dz-gallery-nav button {
    position:absolute; top:50%; transform:translateY(-50%);
    width:48px; height:64px; padding:0; border:1px solid rgba(255,255,255,.4);
    border-radius:10px; background:rgba(255,253,249,.62); color:#65534a;
    backdrop-filter:blur(6px); box-shadow:0 2px 12px rgba(62,43,30,.08);
    font-size:30px; line-height:1; cursor:pointer; opacity:0; pointer-events:none;
    transition:opacity .18s ease, background .18s ease;
  }
  body .dz-gallery-stage #dzPrev { left:14px; right:auto; }
  body .dz-gallery-stage #dzNext { right:14px; left:auto; }
  body .dz-gallery-stage:hover .dz-gallery-nav button,
  body .dz-gallery-stage:focus-within .dz-gallery-nav button {
    opacity:1; pointer-events:auto;
  }
  body .dz-gallery-stage .dz-gallery-nav button:hover { background:rgba(255,253,249,.9); }
  body .dz-gallery-stage .dz-gallery-nav button:focus-visible { outline:2px solid #876b54; outline-offset:3px; }
  body .dz-gallery-stage #dzGalleryCount {
    position:absolute; right:20px; bottom:18px;
    padding:8px 12px; border-radius:99px; background:rgba(255,253,249,.78);
  }
}
@media (min-width:1024px) and (hover:none) {
  body .dz-gallery-stage .dz-gallery-nav button { opacity:1; pointer-events:auto; }
}
@media (prefers-reduced-motion:reduce) {
  body .dz-gallery-stage .dz-gallery-nav button { transition:none; }
}
