/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- BODY GENERAL STYLES --- */
body {
    font-family: "Mulish", sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

/* --- NAVIGATION --- */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}



/* --- GALLERY SECTION --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Imágenes más grandes */
    gap: 2px; /* Espacio mínimo entre imágenes */
    margin: 2%; /* Reduce el margen exterior */
    background-color: rgba(241, 241, 241, 0.206);
}

.gallery figure {
    display: flex;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    /* margin: 3%; */
    flex-direction: column;
    align-items: center;
}

.gallery figure:hover {
    transform: scale(1.02);
}

.gallery img {
    width: 100%; /* Ocupa todo el espacio disponible */
    height: auto;
    border-radius: 0;
    box-shadow: none; /* Opcional: elimina la sombra si quieres un look más limpio */
}


.gallery figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #737373;/* Cambio a un gris oscuro para mayor legibilidad */
    text-align: center;
}

/* --- MODAL --- */
/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: hidden;
}

/* Contenedor del contenido del modal */
.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%; /* Se reduce el tamaño máximo */
    max-height: 80%;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: transparent; /* Evita colores de fondo molestos */
}

/* Ajustes para la imagen dentro del modal */
.modal img {
    width: auto; /* Mantiene la proporción original */
    height: auto; /* Mantiene la proporción original */
    max-width: 80%; /* La imagen no sobrepasa el 80% del viewport */
    max-height: 80%; /* Evita que la imagen sea muy grande */
    margin: auto; /* Centra la imagen dentro del modal */
    display: block;
    margin-top:10%;
    border-radius: 0; 
}


/* --- CLOSE BUTTON --- */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* --- VIDEO CONTAINER --- */
.video-container {
    position: relative;
    width: 80%;
    /* margin-left: 10%; */
    padding-bottom: 57%;
    overflow: hidden;
    border-radius: 8px;
    /* margin-bottom: 10px; */
    margin: 5% 0 2% 10%;
}
.video-container2 {
    position: relative;
    width: 80%;
   margin: 5% 0 0% 10%;
   
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}
.video-container2 figcaption{
    padding-left: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-container3 {
        
                 margin-top: 10%;
    }

/* --- INDEX SECTION (WORK) --- */
#work {
    padding: 5%;
    background-color: rgba(243, 243, 243, 0.37);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Se adapta mejor */
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    text-align: center;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-item p {
    text-transform: uppercase;
    padding: 10px 0px 20px 0px;
    color: rgb(35, 35, 35);
}

/* Ocultar texto en work si es necesario */

.project-grid {
    display: flex;
    justify-content: center;
    gap: 0%;
    flex-wrap: wrap;
    margin-top: 11%;
}

.project-item {
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    padding-bottom: 2%;
    margin: 4%;
}
.project-item a {
    text-decoration: none;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 0px;
}

.project-item p {
    margin-top: 10px;
    font-size: 1rem;
}

.project-detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.project-image {
    width: 100%;
    
    margin-bottom: 20px;
}

.more p{
    font-size: 100%;
        padding: 0% 3% 3% 3%;
    column-count: 2;
    font-weight: 80;
    column-gap: 40px; /* Espacio entre columnas */
    text-align: justify;
}

.bg-video2{
    width: 100%;
}
@media (max-width: 1200px) {
    .gallery{
        justify-items: center;
    }
    .more figure{
        margin: 0% 0 0 9%;
    
    }
}
@media (max-width: 768px) {
    .more p{
        font-size: 100%;
            padding: 0% 3% 3% 3%;
        column-count: 1;
        font-weight: 80;
        column-gap: 40px; /* Espacio entre columnas */
        text-align: justify;
    }
    .video-container2 {
    position: relative;
    width: 100%;
    margin-left: 0%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

    
}

.bg-video{
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: 1;

  filter: contrast(1.1) saturate(1.15);
}

.bg-video:hover{
    filter:none;
}

@media (max-width: 480px ) {
        .gallery img {
                margin: 0 6% 0 0%;

    }
    .gallery_bh{
        right:5%;
    }
    .video-container{
            width: 100%;
        right: 8%;
    }
    .more figure{
        margin: 0% 0 0 8%;
    
    }
    .video-container3 {
         right: 3%;
                 margin-top: 36%;
    }
    .video-container2 {
         right: 3%;
    }
    .photos .video-container2 {
         right: 0%;
    }
}