/* Capa de fondo oscuro */
.modal-flayer-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

/* Caja contenedora */
.modal-flayer-container {
  position: relative;
  max-width: 520px;
  width: 100%;
  animation: flayerZoom 0.25s ease-out;
}

/* Imagen responsive */
.modal-flayer-container a {
  display: block;
}

.modal-flayer-container img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Botón cerrar flotante */
.modal-flayer-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: #ffffff;
  color: #333333;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-flayer-close:hover {
  background: #e9ecef;
  transform: scale(1.1);
}

@keyframes flayerZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}