/* Product-only enhancement. Keep Classic's dialog, thumbnails and dismissal. */
@media (min-width:1200px) {
  body.zc-gallery-enhanced .zc-product-layout {grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr) minmax(0,1.05fr);gap:24px;}
}
body.zc-gallery-enhanced .zc-gallery-stage {padding:10px;}
body.zc-gallery-enhanced .zc-gallery-stage .product-cover {cursor:zoom-in;}
body.zc-gallery-enhanced .zc-gallery-stage .product-cover img {aspect-ratio:auto;max-height:680px;width:100%;height:auto;object-fit:contain;}
body.zc-gallery-enhanced .zc-gallery-stage .product-cover:focus-visible {outline:3px solid var(--zc-charcoal,#0b1d17);outline-offset:3px;}
body.zc-gallery-enhanced #product-modal .modal-dialog {max-width:1280px;width:calc(100% - 24px);margin:12px auto;}
body.zc-gallery-enhanced #product-modal .modal-content {height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);}
body.zc-gallery-enhanced #product-modal .modal-body {gap:8px;padding:12px;}
body.zc-gallery-enhanced #product-modal figure picture {display:block;overflow:auto;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain;}
body.zc-gallery-enhanced #product-modal .product-cover-modal {cursor:zoom-in;}
body.zc-gallery-enhanced #product-modal figure.zc-photo-actual .product-cover-modal {width:auto;max-width:none;height:auto;max-height:none;aspect-ratio:auto;cursor:zoom-out;margin:0 auto;}
body.zc-gallery-enhanced #product-modal .zc-photo-tools {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;flex:0 0 auto;}
body.zc-gallery-enhanced #product-modal .zc-photo-tools button,
body.zc-gallery-enhanced #product-modal .zc-photo-tools a {font-family:inherit;font-size:13px;font-weight:700;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:2px solid var(--zc-charcoal,#0b1d17);border-radius:24px;color:var(--zc-charcoal,#0b1d17);background:var(--zc-yellow,#ffda23);cursor:pointer;text-decoration:none;}
body.zc-gallery-enhanced #product-modal .zc-photo-tools a {background:#fff;}
body.zc-gallery-enhanced #product-modal .zc-gallery-modal-caption {margin:3px 0 0;font-size:11px;}
body.zc-gallery-enhanced #product-modal .zc-photo-tools :focus-visible {outline:3px solid var(--zc-charcoal,#0b1d17);outline-offset:2px;}
body.zc-gallery-enhanced #product-modal .product-cover-modal:focus-visible {outline:3px solid var(--zc-charcoal,#0b1d17);outline-offset:-3px;}
@media (max-width:575px) {
  body.zc-gallery-enhanced #product-modal .modal-dialog {width:calc(100% - 12px);margin:6px auto;}
  body.zc-gallery-enhanced #product-modal .modal-content {height:calc(100vh - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);}
  body.zc-gallery-enhanced #product-modal .modal-body {padding:8px;}
  body.zc-gallery-enhanced #product-modal .zc-gallery-modal-header {gap:8px;padding:8px 10px;}
  body.zc-gallery-enhanced #product-modal .zc-gallery-modal-header h2 {font-size:12px;line-height:1.3;}
  body.zc-gallery-enhanced #product-modal .zc-photo-tools {gap:6px;}
  body.zc-gallery-enhanced #product-modal .zc-photo-tools button,
  body.zc-gallery-enhanced #product-modal .zc-photo-tools a {font-size:12px;padding:7px 10px;}
}
