.h2-title {
    text-align: center;
    padding: .5em 0;
    color: var(--color4);
    font-size: 2em;
}
/* --- Trailer --- */

.media-trailer{
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.media-trailer video{
    width: 80%;
    max-width: 1200px;
    background-color: var(--color2); /* por si tarda en cargar */
}

/* --- SCREENSHOTS GRID --- */
.screenshots-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px; 
    gap: 1em;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}
.screenshots-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color2);
    border-radius: 5px;
}
.screenshot1 { 
    grid-area: 1 / 1 / 2 / 2;
}
.screenshot2 { 
    grid-area: 1 / 2 / 2 / 3; 
}
.screenshot3 { 
    grid-area: 2 / 1 / 3 / 2;
}
.screenshot4 { 
    grid-area: 2 / 2 / 3 / 3; 
}
.screenshot-grande { 
    grid-area: 1 / 3 / 3 / 5; 
} 
.screenshot-ancha { 
    grid-area: 3 / 1 / 5 / 5; 
}

/* --- VIDEOS GRID --- */
.videos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 80%;
    max-width: 900px;
    margin: 2rem auto;
}
.videos-container div {
    background-color: var(--color2);
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video-large {
    grid-column: 1 / -1; 
    min-height: 350px;
}
.videos-container video {
    width: 100%;
    height: 100%;
    object-fit: fit;
    outline: none;
}

/* --- MEDIA QUERIES --- */

@media (max-width: 600px) {
    
    .screenshots-container{
        grid-template-columns: 1fr;
        width: 90%;
        gap: 3rem;
    }
    .media-trailer video {
        width: 95%;
    }
    .videos-container {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 2rem;
    }

    .screenshot1, .screenshot2, .screenshot3, .screenshot4, .screenshot-grande, .screenshot-ancha {
        grid-area: auto; 
    }
    .screenshots-container img {
        height: auto;
        aspect-ratio: 16 / 9; /* para mantener la proporción de las imágenes */
    }

    .video-large {
        min-height: 250px; 
    }
}