/* Product page photo gallery (see assets/js/gallery.js) */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 50px; }
.gal-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: #f6efec; }
.gal-track { position: relative; display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -3px; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; display: block; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.88); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.gal-btn:hover { background: #fff; }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
.gal-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.55); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.gal-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; }
.gal-thumb { position: relative; padding: 0; border: 0; background: #f6efec; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.gal-thumb:hover img { opacity: .88; }
.gal-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.42); color: #fff; font-weight: 600; font-size: 1rem; }
.gal-single { grid-template-columns: 1fr; }
.gal-single .gal-thumbs, .gal-single .gal-btn, .gal-single .gal-count { display: none; }
@media (max-width: 900px) {
  .gal { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
  .gal-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; gap: 8px; }
  .gal-more { font-size: .78rem; }
}
