/* SHOP photos: complete compositions, touch and keyboard image previews. */
.zodiac-card .product-image { background: #fff; }
.zodiac-card .product-image::before { padding-top: 100%; }
.zodiac-card .zodiac-cover { position: absolute; inset: 0; display: block; }
.zodiac-card .product-image img { object-fit: contain; background: #fff; }
.zodiac-card .zodiac-cover:focus-visible { outline: 3px solid #846676; outline-offset: -4px; }
.zodiac-cover { cursor: zoom-in; }
.zodiac-card .product-actions { pointer-events: none; }
.zodiac-card .product-actions a, .zodiac-card .product-actions button { pointer-events: auto; }
.zodiac-gallery .zodiac-main { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid #eee7e9; background: #fff; cursor: zoom-in; border-radius: 10px; }
.zodiac-gallery .zodiac-main img { display: block; object-fit: contain; background: #fff; transition: transform .2s ease; }
.zodiac-gallery .zodiac-main::before { content: none; }
.zodiac-main:focus-visible { outline: 3px solid #846676; outline-offset: 3px; }
.gallery-enlarge { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px #312d3526; font-size: 23px; color: #51434b; pointer-events: none; }
.gallery-hint { margin: 9px 0 14px; color: #70636b; font-size: 13px; text-align: center; }
.gallery-desktop-hint { display: none; }
.zodiac-gallery .thumbnail-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zodiac-gallery .thumbnail { width: 100%; height: auto; aspect-ratio: 1; min-width: 0; background: #fff; }
.zodiac-gallery .thumbnail img { object-fit: contain; }
.zodiac-photo-note { font-size: 13px; line-height: 1.6; color: #70636b; margin: 10px 0 20px; }
.zodiac-dates { font-size: 14px; margin-top: 14px; }
.gallery-dialog { position: fixed; inset: 0; width: min(94vw, 1000px); max-width: 1000px; max-height: 94dvh; margin: auto; padding: 0; border: 0; border-radius: 10px; background: #fff; overflow: auto; box-shadow: 0 12px 80px #0005; color: #312d35; }
.gallery-dialog::backdrop { background: #19151bd9; }
.gallery-viewport { position: relative; width: 100%; aspect-ratio: 1; max-height: calc(90dvh - 140px); overflow: hidden; touch-action: none; cursor: zoom-in; background: #fff; }
.gallery-viewport.is-magnified { cursor: grab; }
.gallery-viewport.is-magnified:active { cursor: grabbing; }
.gallery-dialog .gallery-viewport img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; transform-origin: center; user-select: none; -webkit-user-select: none; pointer-events: none; }
.gallery-toolbar { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 12px 4px; border-top: 1px solid #eee7e9; }
.gallery-toolbar button { min-width: 44px; min-height: 44px; padding: 5px 12px; border: 1px solid #dfd5db; border-radius: 6px; background: #fff; color: #312d35; cursor: pointer; font: 16px/1.3 Arial, sans-serif; }
.gallery-toolbar button:disabled { opacity: .4; cursor: default; }
.gallery-toolbar button:focus-visible { outline: 3px solid #846676; outline-offset: 2px; }
.gallery-toolbar output { min-width: 48px; text-align: center; font: 14px/1.3 Arial, sans-serif; }
.gallery-dialog .gallery-gesture-hint { margin: 0; padding: 7px 14px 14px; font: 13px/1.5 Arial, sans-serif; color: #70636b; text-align: center; }
.gallery-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; padding: 0; border: 1px solid #dfd5db; border-radius: 50%; font: 32px/1 Arial, sans-serif; color: #312d35; background: #fff; cursor: pointer; box-shadow: 0 2px 12px #0002; }
.gallery-close:focus-visible { outline: 3px solid #846676; }
.lx-product-media[data-gallery-preview] { cursor: zoom-in; position: relative; }
.lx-product-media[data-gallery-preview] img { object-fit: contain; background: #fff; }
html.gallery-modal-open { overflow: hidden; }
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .zodiac-card .zodiac-cover { bottom: auto; aspect-ratio: 1; }
  .zodiac-card .product-actions { position: relative; transform: none; }
  .zodiac-card .product-actions form, .zodiac-card .product-actions a { flex: 1; }
  .zodiac-card .product-actions button { width: 100%; height: 100%; }
  .zodiac-card .quick-add, .zodiac-card .view-details { font-size: 10px; letter-spacing: .04em; padding: 12px 5px; }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .zodiac-card:hover .product-image img, .zodiac-card:focus-within .product-image img { transform: scale(1.2); }
  .zodiac-gallery .zodiac-main.is-zoomed img { transform: scale(2); }
  .gallery-desktop-hint { display: inline; }
  .gallery-touch-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zodiac-card .product-image img, .zodiac-gallery .zodiac-main img { transition: none; }
}
