#mf-visor-global .mf-visor-cerrar,
#mf-cnc-visor .mf-cerrar-foto,
#mf-cnc-lightbox .mf-cnc-cerrar,
.mf-close-gallery-btn {
  width:60px!important;
  height:26px!important;
  min-width:60px!important;
  min-height:26px!important;
  max-width:60px!important;
  padding:0 4px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  color:#073844!important;
  border:2px solid #078FCA!important;
  border-radius:9px!important;
  outline:1px solid #075B80!important;
  outline-offset:2px!important;
  font-size:10px!important;
  font-weight:600!important;
  box-shadow:0 2px 5px rgba(0,0,0,.12)!important;
}

/* MF-DESTELLO-FUERTE-INICIO */

/* Tres destellos azules de alta visibilidad */
@keyframes mfCerrarDestelloFuerte {
  0%, 100% {
    background:#ffffff;
    color:#073844;
    box-shadow:0 2px 5px rgba(0,0,0,.12);
    border-color:#078FCA;
  }

  50% {
    background:#078FCA;
    color:#ffffff;
    box-shadow:
      0 0 0 4px rgba(7,143,202,.55),
      0 0 20px 7px rgba(7,143,202,.65);
    border-color:#ffffff;
  }
}

/* Seleccion de los visores que hemos configurado */
#mf-visor-global .mf-visor-cerrar,
#mf-cnc-visor .mf-cerrar-foto,
#mf-cnc-lightbox .mf-cnc-cerrar,
.mf-close-gallery-btn {
  animation:none!important;
}

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #mf-visor-global .mf-visor-cerrar:hover,
  #mf-cnc-visor .mf-cerrar-foto:hover,
  #mf-cnc-lightbox .mf-cnc-cerrar:hover,
  .mf-close-gallery-btn:hover {
    animation:mfCerrarDestelloFuerte .55s ease-in-out 3!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  #mf-visor-global .mf-visor-cerrar,
  #mf-cnc-visor .mf-cerrar-foto,
  #mf-cnc-lightbox .mf-cnc-cerrar,
  .mf-close-gallery-btn {
    animation:none!important;
  }
}

/* MF-DESTELLO-FUERTE-FIN */

/* Cierre de cada galería abierta, sin modificar sus fotografías o videos. */
.mf-standardized-gallery {
  --mf-standard-photo-height:220px;
  --mf-standard-video-height:420px;
  --mf-standard-columns:repeat(2,minmax(0,1fr));
}

.mf-standard-video-watermark::after {
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:30%;
  height:16%;
  background:url("optimized/modelformy-logo-transparente.webp") center/contain no-repeat;
  opacity:.28;
  pointer-events:none;
}

.mf-standard-enlarge:focus-visible {
  outline:3px solid #187cf5;
  outline-offset:2px;
}

@media(max-width:650px) {
  .mf-standardized-gallery { --mf-standard-columns:minmax(0,1fr); }
}

.mf-gallery-close-panel {
  position:relative!important;
  padding-top:54px!important;
}

.mf-gallery-close-panel > .mf-gallery-close-control {
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:10!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
  cursor:pointer;
}

@media(max-width:650px) {
  .mf-gallery-close-panel { padding-top:50px!important; }
  .mf-gallery-close-panel > .mf-gallery-close-control {
    top:10px!important;
    right:10px!important;
  }
}
