/* ==========================================================================
   Oster Child — Galería de producto
   Video principal en reproducción automática + zoom de lupa.

   Este archivo se carga DESPUÉS de todos los CSS del tema padre
   (normalize → webflow → oster-b38129 → new_style → custom), por lo que
   sobrescribe sin necesidad de !important.

   No reemplaza nada del padre: solo agrega las clases nuevas de la galería.
   ========================================================================== */

/* --- Slide de video (primer slide de la galería) --- */
.gallery-interior .video-principal__wrap {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-color: #fff;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.gallery-interior .video-principal {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background-color: #fff;
}

/* Botón de sonido */
.gallery-interior .video-principal__sonido {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(0, 23, 56, .75);
  color: #fff;
  font-size: 16px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s ease;
  z-index: 3;
}

.gallery-interior .video-principal__sonido:hover {
  background-color: #001738;
}

.gallery-interior .video-principal__sonido-on { display: none; }
.gallery-interior.is-audio-on .video-principal__sonido-off { display: none; }
.gallery-interior.is-audio-on .video-principal__sonido-on { display: inline; }

/* --- Miniatura del video --- */
.gallery-interior .thumb--video {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: 50%;
}

.gallery-interior .thumb__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  background-color: #fff;
}

/* --- Zoom de lupa sobre las imágenes --- */
.gallery-interior .js-zoom {
  position: relative;
}

.gallery-interior .is-zoomable {
  cursor: zoom-in;
}

/* Indicador de lupa: aparece en reposo, desaparece al ampliar */
.gallery-interior .zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 23, 56, .6);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 18px 18px;
  opacity: .85;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-interior .is-zoomable:hover .zoom-hint { opacity: 0; }

/* En táctil el zoom se hace con pellizcar dentro del lightbox */
@media (hover: none), (pointer: coarse) {
  .gallery-interior .zoom-hint { display: none; }
}

@media screen and (max-width: 767px) {
  .gallery-interior .video-principal__wrap { min-height: 350px; }
  .gallery-interior .video-principal { max-height: 350px; }
}

@media screen and (max-width: 479px) {
  .gallery-interior .video-principal__wrap { min-height: 300px; }
  .gallery-interior .video-principal { max-height: 300px; }
  .gallery-interior .video-principal__sonido {
    width: 34px; height: 34px; line-height: 34px; right: 8px; bottom: 8px;
  }
}
