/* Try hovering and changing the height/width */

/**,*/
/**::before,*/
/**::after {*/
/*  box-sizing: border-box;*/
/*  font-family: "Poppins", sans-serif;*/
/*}*/

/*body,*/
/*html {*/
/*  -webkit-text-size-adjust: 100%;*/
/*  -webkit-tap-highlight-color: transparent;*/
/*  -webkit-font-smoothing: antialiased;*/
/*  text-rendering: optimizeLegibility;*/
/*}*/

/*body {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  width: 100%;*/
/*  height: 100vh;*/
/*  overflow: hidden;*/
/*  background: white;*/
/*  margin: 0;*/
/*}*/

#mz-gallery-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#mz-gallery {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: calc(100% - 70px);
  height: calc(100% - 50px);
  max-height: 670px;
  max-width: 1900px;
  margin: 35px 0px;
  background-color: black;
  background-image: radial-gradient(rgba(124, 252, 0, 0.4) 1px, black 1px);
  background-size: 40px 40px;
  border: 1px dotted none;
  outline: 1px dotted none;
  outline-offset: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 0 0 55px;
  scroll-behavior: smooth;
  /* firefox scrollbar */
  scrollbar-color: lawngreen #222;
  scrollbar-width: auto;
  animation: background 300s linear infinite;
}

@keyframes background {
  0% {
    background-position: -300% 100%;
  }
  100% {
    background-position: 100% -300%;
  }
}

#mz-gallery::-webkit-scrollbar {
  height: 25px;
}

#mz-gallery::-webkit-scrollbar-track {
  background: transparent;
}

#mz-gallery::-webkit-scrollbar-thumb {
  background: #666;
}

#mz-gallery::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#mz-gallery::-webkit-scrollbar-thumb:active {
  background: #444;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement {
  height: 25px;
  width: 80px;
  background-color: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-box-arrow-left' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 12.5a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v2a.5.5 0 0 1-1 0v-2A1.5 1.5 0 0 1 6.5 2h8A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 5 12.5v-2a.5.5 0 0 1 1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M.146 8.354a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L1.707 7.5H10.5a.5.5 0 0 1 0 1H1.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3z'/%3E%3C/svg%3E");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment {
  height: 25px;
  width: 80px;
  background-color:  none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-box-arrow-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement:hover,
#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment:hover {
  background-color: none;
}

#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement:active,
#mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment:active {
  background-color: none;
}

#mz-gallery figure {
  position: relative;
  margin: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
  width: auto;
  min-height: 100px;
  margin-right: 60px;
  scroll-snap-align: start;
  transition: none;
}

#mz-gallery figure:nth-child(1) {
  margin-left: 60px;
}

#mz-gallery figure div {
  position: absolute;
  width: 1%;
  height: 1%;
  background: transparent;
  opacity: 0;
  transition: none;
}

#mz-gallery figure div:nth-child(3) {
  top: 0;
  left: 0;
  border-left: 1px dotted  none;
  border-top: 1px solid  none;
  border-radius: 15px 0px 0px 0px;
}

#mz-gallery figure div:nth-child(4) {
  top: 0;
  right: 0;
  border-top: 1px solid white;
  border-right: 1px solid white;
  border-radius: 0px 15px 0px 0px;
}

#mz-gallery figure div:nth-child(5) {
  bottom: 0;
  right: 0;
  border-right: 1px dotted  none;
  border-bottom: 1px solid  none;
  border-radius: 0px 0px 15px 0px;
}

#mz-gallery figure div:nth-child(6) {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
  border-radius: 0px 0px 0px 15px;
}

#mz-gallery figure img {
  height: 100%;
  width: auto;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
  border-radius: 5px;
  opacity: 0.9;
  filter: brightness(1);
  outline: 1px solid transparent;
  outline-offset: -40px;
  transition: none;
}

#mz-gallery figure figcaption {
  position: absolute;
  color: transparent;
  font-size: 18pt;
  line-height: 24pt;
  font-weight: 500;
  padding: 0px 20px;
  text-align: center;
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    none,
    none 1px
  );
  outline: 2px dotted transparent;
  outline-offset: 0px;
  background-size: 40px 40px;
  opacity: 0;
  border-radius: 100%;
  pointer-events: none;
  animation: background 100s linear infinite;
  transition: none;
}

#mz-gallery figure:hover img {
  height: calc(100% - 40px);
  filter: brightness(1.5);
  border-radius: 10px;
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 5px;
  transition: none;
}

#mz-gallery figure:hover {
  padding: 0px 20px;
}

#mz-gallery figure:hover figcaption {
  opacity: 0.8;
  color: white;
  outline: 1px solid  none;
  outline-offset: -20px;
  text-shadow: 1px 1px 3px black, 0px 0px 5px black;
  transition: none;
}

#mz-gallery figure:hover div {
  width: 25%;
  height: 25%;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 1145px) {
  #mz-gallery figure {
    scroll-snap-align: center;
  }
  #mz-gallery {
    scroll-padding: 0px 0px 0px 0px !important;
  }
}

@media (max-width: 610px) {
  #mz-gallery {
    max-height: 320px;
  }
  #mz-gallery figure {
    margin-right: 20px;
  }
  #mz-gallery figure:nth-child(1) {
    margin-left: 20px;
  }
}

@media (max-height: 425px) {
  #mz-gallery figure figcaption {
    font-size: 14pt;
    line-height: 20pt;
  }
}

@media (max-height: 340px) {
  #mz-gallery {
    background-size: 30px 30px;
    scroll-padding: 0 0 0 28px;
  }
  #mz-gallery figure {
    margin-right: 30px;
  }
  #mz-gallery figure:nth-child(1) {
    margin-left: 30px;
  }
  #mz-gallery figure figcaption {
    font-size: 12pt;
    line-height: 18pt;
    font-weight: 400;
    background-size: 30px 30px;
  }
}

@media (max-height: 280px) {
  #mz-gallery::-webkit-scrollbar {
    height: 20px;
  }
  #mz-gallery::-webkit-scrollbar-button:single-button:horizontal:decrement,
  #mz-gallery::-webkit-scrollbar-button:single-button:horizontal:increment {
    width: 80px;
    height: 20px;
    background-size: 15px;
  }
}

@media (max-height: 230px) {
  #mz-gallery figure figcaption {
    font-size: 10pt;
    line-height: 12pt;
  }
  #mz-gallery figure:hover figcaption {
    outline-offset: -10px;
  }
  #mz-gallery figure:hover img {
    outline-offset: 10px;
  }
}

@media (max-height: 165px) {
  #mz-gallery {
    scroll-padding: 0 0 0 18px;
    margin: 0px;
  }
  #mz-gallery figure {
    margin-right: 20px;
  }
  #mz-gallery figure:nth-child(1) {
    margin-left: 20px;
  }
}

/* touch screen devices */

@media (pointer: coarse) {
  #mz-gallery, #mz-gallery-bottom {
    pointer-events: auto;
  }
  #mz-gallery::-webkit-scrollbar {
    height: 35px;
  }
  #mz-gallery {
    scroll-snap-type: unset;
    scroll-padding: unset;
    scroll-behavior: unset;
  }
  #mz-gallery figure {
    scroll-snap-align: unset;
  }
  #mz-gallery figure figcaption {
    width: 100%;
    height: 30%;
    bottom: 0;
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    animation: unset;
    border-radius: 0;
    padding: 0px 15px;
    border-top: 1px solid  none;
  }
}
/* Cambiar overflow en #mz-gallery-container para ocultar la barra de desplazamiento */
#mz-gallery-container, #mz-gallery-container-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: auto; /* Oculta la barra de desplazamiento */
}
  
/* Asegurarse de que la barra de desplazamiento esté oculta */
  #mz-gallery, #mz-gallery-bottom {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: calc(100% - 70px);
    height: 400px;
    max-height: 400px;
    margin: 35px 0px;
    background-color: transparent;
    background-image: none;
    background-size: 40px 40px;
    border: none;
    outline: none;
    outline-offset: 20px;
    overflow: hidden; /* Oculta la barra de desplazamiento */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 0 0 55px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Oculta la barra de desplazamiento en Firefox */
    z-index: 10;
  }
  
  #mz-gallery::-webkit-scrollbar, #mz-gallery-bottom::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento en Chrome, Safari y Opera */
  }
  
  #mz-gallery figure, #mz-gallery-bottom figure {
    position: relative; 
    margin: unset;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;  /* Tamaño fijo de las figuras */
    height: 300px; /* Tamaño fijo de las figuras */
    margin-right: 60px;
    scroll-snap-align: start;
    transition: all 0.3s ease-in-out;
  }
  
  #mz-gallery figure:nth-child(1), #mz-gallery-bottom figure:nth-child(1) {
    margin-left: 60px;
  }
  
  #mz-gallery figure div, #mz-gallery-bottom figure div {
    position: absolute;
    width: 1%;
    height: 1%;
    background: transparent;
    opacity: 0;
    transition: none;
  }
  
  #mz-gallery figure div:nth-child(3), #mz-gallery-bottom figure div:nth-child(3) {
    top: 0;
    left: 0;
    border-left: 1px dotted none;
    border-top:1px dotted none;
    border-radius: 15px 0px 0px 0px;
  }
  
  #mz-gallery figure div:nth-child(4), #mz-gallery-bottom figure div:nth-child(4) {
    top: 0;
    right: 0;
    border-top: 1px solid white;
    border-right: 1px solid white;
    border-radius: 0px 15px 0px 0px;
  }
  
  #mz-gallery figure div:nth-child(5), #mz-gallery-bottom figure div:nth-child(5) {
    bottom: 0;
    right: 0;
    border-right: 1px dotted 1px dotted none;
    border-bottom: 1px solid 1px dotted none;
    border-radius: 0px 0px 15px 0px;
  }
  
  #mz-gallery figure div:nth-child(6), #mz-gallery-bottom figure div:nth-child(6) {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
    border-radius: 0px 0px 0px 15px;
  }


/* Asegurarse de que las imágenes en ambas galerías tengan el mismo tamaño */
/* Establecer un tamaño fijo para las imágenes en ambas galerías */
#mz-gallery figure img, #mz-gallery-bottom figure img {
  width: 300px;  /* Ajusta el ancho para llenar el contenedor */
  height: 300px; /* Ajusta la altura para llenar el contenedor */
  object-fit: cover; /* Ajusta la imagen para llenar el contenedor sin distorsionarse */
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
  border-radius: 5px;
  opacity: 0.9;
  filter: none; /* Eliminar el filtro de brillo */
  outline: none; /* Eliminar el borde */
  outline-offset: 0;
  transition: all 0.3s ease-in-out;
  transform: scale(1);
  transform-origin: center;
}
  
  #mz-gallery figure figcaption, #mz-gallery-bottom figure figcaption {
    position: absolute;
    color: transparent;
    font-size: 18pt;
    line-height: 24pt;
    font-weight: 500;
    padding: 0px 20px;
    text-align: center;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
      rgba(124, 252, 0, 0.7) 1px,
      rgba(0, 0, 0, 0.9) 1px
    );
    outline: 2px dotted transparent;
    outline-offset: 0px;
    background-size: 40px 40px;
    opacity: 0;
    border-radius: 100%;
    pointer-events: none;
    animation: background 100s linear infinite;
    transition: none;
  }
  
  #mz-gallery figure:hover img, #mz-gallery-bottom figure:hover img {
    transform: scale(1.2); /* Aumentar el tamaño utilizando transform */
    filter: brightness(1.5);
    border-radius: 10px;
    outline: 1px solid rgba(255, 255, 255, 0.8);
    outline-offset: 5px;
    z-index: 10;
  }
  
  #mz-gallery figure:hover, #mz-gallery-bottom figure:hover {
    padding: 0px 20px;
  }
  
  #mz-gallery figure:hover figcaption, #mz-gallery-bottom figure:hover figcaption {
    transform: scale(1.2); /* Aumenta el tamaño utilizando transform */
  filter: brightness(1.5);
  border-radius: 10px;
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 5px;
  transition: all 0.3s ease-in-out; /* Transición suave */
}
  
  #mz-gallery figure:hover div, #mz-gallery-bottom figure:hover div {
    width: 25%;
    height: 25%;
    opacity: 1;
    transition: none;
  }
 /* Estilos para los botones de navegación */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 2em;
}

/* Botón de navegación izquierda */
#prev-button,
#prev-button-bottom {
  left: 10px; 
  background-color: rgba(224, 224, 11, 0.599);/* Ajusta la posición desde el borde izquierdo */
}

/* Botón de navegación derecha */
#next-button,
#next-button-bottom {
  right: 10px;
  background-color: rgba(224, 224, 11, 0.599); /* Ajusta la posición desde el borde derecho */
}

/* Efecto hover para los botones */
.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* Estilo para la imagen ampliada */
#expanded-img {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: 0%;
  margin-left: 0%;
  margin-bottom: 10%;
  margin-right: 10%;
  transform: translate(-50%, -50%);
  max-width: 50%; /* Ajusta este valor según el tamaño deseado */
  max-height: 70%; /* Ajusta este valor según el tamaño deseado */
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 1000;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: none; /* Oculta la imagen ampliada por defecto */
  transition: all 0.3s ease-in-out;
}

/* 📱 Para pantallas más pequeñas como móviles */
@media screen and (max-width: 768px) {
  #expanded-img {
    max-width: 80%; /* Aumenta el tamaño en móviles */
    min-width: 200px; /* Reduce el tamaño mínimo */
  }
}

/* 📱 Para pantallas muy pequeñas (como celulares pequeños) */
@media screen and (max-width: 480px) {
  #expanded-img {
    max-width: 90%;
    min-width: 150px;
  }
}

/* Superposición */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none; /* Oculta la superposición por defecto */
}

/* Quitar el efecto de iluminación al poner el cursor sobre la imagen */
#mz-gallery figure:hover img {
  filter: none; /* Eliminar el filtro de brillo */
  outline: none; /* Eliminar el borde */
  outline-offset: 0;
  height: 100%;
  border-radius: 5px;
  transition: none;
}
#mz-gallery-bottom figure:hover img {
  filter: none; /* Eliminar el filtro de brillo */
  outline: none; /* Eliminar el borde */
  outline-offset: 0;
  height: 100%;
  border-radius: 5px;
  transition: none;
}
