/*****************************
Gallery Section
*****************************/


/**********************/
/* 02.c Galleria 4/5 */
/**********************/

.gallery4-5-mobile{
  width: 100% !important;
  max-width: 1024px !important;   /* límite máximo */
  margin: 0 auto !important;      /* centrar en pantalla grande */
  /*background: rgb(160, 160, 255);*/

  /* Fallback para navegadores viejos */
  position: relative !important;
  padding-top: 125% !important; /* 5/4 = 1.25 = 125% */
  overflow: hidden !important;
}

.gallery4-5-mobile .e-con{
  --padding-inline-start: 0px !important;
  padding-inline-start: 0 !important;
  --padding-inline-end: 0px !important;
  padding-inline-end: 0px !important;
}


.content4-5 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;             /* flex para centrar contenido */
  justify-content: center !important;   /* centra horizontal */
  align-items: center !important;       /* centra vertical */
}


.content4-5 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* rellena sin deformar */
  object-position: center !important; /* centra la imagen */
  display: block !important;      /* quita espacios fantasmas */
}

/* Navegadores modernos usan aspect-ratio y anulan el padding */
@supports (aspect-ratio: 4/5) {
  .gallery4-5-mobile {
    padding-top: 0 !important;      /* anulamos fallback */
    aspect-ratio: 4 / 5 !important; /* cuadrado perfecto */
    position: relative !important;
  }

  .content4-5 {
    position: static !important; /* ya no necesita absolute */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .content4-5 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
  }
}

/*********************/
/* 02.b Galleria 1/1 */
/*********************/

.gallery1-1 {
  width: 100% !important;
  max-width: 800px !important;   /* límite máximo */
  margin: 0 auto !important;      /* centrar en pantalla grande */
  /*background: rgb(160, 160, 255);*/

  /* Fallback para navegadores viejos */
  position: relative !important;
  padding-top: 100% !important; /* 1/1 = 100% */
  overflow: hidden !important;
}


.content1-1 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;             /* flex para centrar contenido */
  justify-content: center !important;   /* centra horizontal */
  align-items: center !important;       /* centra vertical */
}

.content1-1 img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* rellena sin deformar */
  object-position: center !important; /* centra la imagen */
  display: block !important;      /* quita espacios fantasmas */
}


/* Navegadores modernos usan aspect-ratio y anulan el padding */
@supports (aspect-ratio: 1/1) {
  .gallery1-1 {
    padding-top: 0 !important;      /* anulamos fallback */
    aspect-ratio: 1 / 1 !important; /* cuadrado perfecto */
    position: relative !important;
  }

  .content1-1 {
    position: static !important; /* ya no necesita absolute */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .content1-1 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
  }
}


/**********************/
/* 02.c Galleria 16/9 */
/**********************/


.gallery16-9 {
  width: 100% !important;
  max-width: 1200px !important;   /* límite máximo */
  margin: 0 auto !important;      /* centrar en pantalla grande */
  /*background: rgb(220, 220, 255);*/

  /* Fallback para navegadores viejos */
  position: relative !important;
  padding-top: 56.25% !important; /* 9 / 16 = 0.5625 → 56.25% */
  overflow: hidden !important;
}

.content16-9 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;             /* flex para centrar contenido */
  justify-content: center !important;   /* centra horizontal */
  align-items: center !important;       /* centra vertical */
}

.content16-9 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* rellena sin deformar */
  object-position: center !important; /* centra la imagen */
  display: block !important;      /* quita espacios fantasmas */
}


/* Navegadores modernos usan aspect-ratio */
@supports (aspect-ratio: 16/9) {
  .gallery16-9 {
    padding-top: 0 !important;       /* quitamos fallback */
    aspect-ratio: 16 / 9 !important; /* formato panorámico */
    position: relative !important;
  }

  .content16-9 {
    position: static !important; /* ya no necesita absolute */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .content16-9 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
  }

}







/*******************************
08) Custom Gallery Lightbox
********************************/


#full-width-section .row div.gallery-container{
    padding: 10px 0px !important;
}


/* Full-page container */
.custom-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: fit-content; /* Full height of the viewport */
    margin-top: 30px;
    margin-bottom: 30px;
  }

.responsive-box {
    width: 100%; /* Fixed height */
    max-width: 580px; 
    aspect-ratio: 1 / 1; /* Maintain aspect ratio */
    background-color: lightgray; /* Just for visibility */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 0;
}

.responsive-box.box4_5{
   aspect-ratio: 4 / 5 !important; /* Maintain aspect ratio */ 
}

.responsive-box.box16_9{
   aspect-ratio: 16 / 9 !important; /* Maintain aspect ratio */ 
}

@media (min-width: 600px) {
    .responsive-box {
        width: 98%; /* Fixed height */
        max-width: 780px;
    }
    .custom-container {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (min-width: 800px) {
    .responsive-box {
        width: 94%; /* Fixed height */
        max-width: 960px;
    }
    .custom-container {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

@media (min-width: 1024px) {
    .responsive-box {
        width: 95%; /* Fixed height */
        max-width: 1200px;
    }
    .custom-container {
        margin-top: 55px;
        margin-bottom: 55px;
    }
}


/*.custom-gallery-container{
    width: 100%;
    max-width: 1200px;
    max-height: 600px;
    margin: auto;
    padding: 10px;
    display: block;
}*/


/*.custom-dynamic-gallery{
    display: block;
    z-index: 0;
    width: 100%;
    height: 100%;
}*/

.custom-gallery {
    display: flex;
    flex-direction: row;
    z-index: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.thumbs-wrapper {
    backface-visibility: hidden;
    display: flex;
    transition: transform 0.5s ease; /* Smooth horizontal slide */
    /*transform: translateX(-1000px);*/   /*Uncomment for having a translation on x*/  
}



.custom-gallery-item {
    display: block;
    height: 100%;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.custom-gallery  a{
    display: block;
    min-height: 100%;
    min-width: 100%;
}


.custom-gallery-thumbnail {
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
    object-fit: contain; /* Ensures the image covers the space */
    transition: transform 0.5s ease;
}


.custom-gallery-bottom-bar{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 0.5rem 0.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    justify-items: center;
    justify-content: center;
}

.custom-gallery-bottom-bar.box4_5{
        /*background: rgba(100, 0, 0, 0.6);*/
        padding: 1.5rem 0.2rem;
}

.custom-gallery-bottom-bar.box16_9{
        padding: 1.5rem 0.2rem;
}

.custom-gallery-title {
    width: 100%;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.custom-gallery-bottom-bar > .custom-gallery-title{
    margin-bottom: 0.2rem;
}

.custom-gallery-button{
    width: 35%;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    margin-bottom: 0.3rem;
}

.custom-gallery-button a{
    width: fit-content;
    text-align: center;
    padding: 0.1rem;
    z-index: 22;
    background-color: #ee2c1a;
    color: #fff;
    border-radius: 0.5rem;
}


/* Navigation buttons */
.custom-gallery-prev, .custom-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.8rem;
}

/* Navigation buttons */
.custom-gallery-prev.box4_5, .custom-gallery-next.box4_5 {
    top:50%;
}

.custom-gallery-prev {
    left: 1rem;
}

.custom-gallery-next {
    right: 1rem;
}

@media (min-width: 748px) {
    .custom-gallery-bottom-bar{
        padding: 1.5rem 0.2rem;
    }
    .custom-gallery-prev, .custom-gallery-next {
        top: 50%;
        font-size: 2rem;
        padding: 13px 26px;
    }
    .custom-gallery-title  {
        width: 100%;
        font-size: 1.6rem;
    }

    /*Buton en 4_5*/
    .custom-gallery-button{
        width: 35%; 
        font-size: 1.2rem;
    }

    .custom-gallery-bottom-bar > .custom-gallery-title{
      margin-bottom: 0.4rem;
    }

}

@media (min-width: 1024px) {
    .custom-gallery-title  {
        width: 100%;
        font-size: 2.3rem;
    }
    .custom-gallery-button{
        width: 35%; 
        font-size: 1.5rem;
    }
    .custom-gallery-bottom-bar > .custom-gallery-title{
      margin-bottom: 0.7rem;
    }

    .custom-gallery-bottom-bar > .custom-gallery-title{
        text-transform: uppercase;
}
}




/*******************************
08) a. Magnific PopUp Overlay
********************************/

/*Remove full screen and zoom view and leave the Magnific PopUp Modal*/
.dialog-type-lightbox, .dialog-widget-content {
    display: none !important;
}

.mfp-figure button{
    font-size: 2rem;
}


.mfp-bottom-bar{
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 10px;
    min-height: fit-content;
}

/* Mostrar el título en la bottom-bar */
.mfp-title {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    width: 70%;
    position: relative;
    line-height: 3.2rem;
}

.mfp-description {
    display: block;
    font-size: 1.5rem;
    line-height: 1.8rem;
    font-weight: bold;
    color: white;
    width: 100%;
    position: relative;
    word-wrap: break-word;
    margin-top: 0.3rem;
}

.mfp-button {
    display: block;
    font-size: 1.6rem;
    line-height: 1.8rem;
    font-weight: bold;
    width: 100%;
    position: relative;
    word-wrap: break-word;
    margin-top: 0.3rem;
}

.mfp-button a{
    background-color: #fa4307;
    color: white;
}