/* GALERIA */

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria {
    width: 1200px;
    height: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    gap: 15px;
}
@media (max-width: 768px) {
    .galeria {
        width: auto;
        flex-direction: column;
        align-items: normal;
        gap: 10px;
    }
}
@media screen and (max-width: 480px) {
    .galeria {
        flex-direction: column;
        width: auto;
    }
}

.elem {
    flex: 0.5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    transition: flex 0.5s ease-in-out;
}

.elem:hover {
    flex: 10;
}

.videorecinto {
    width: 95%; /* O el tamaño que desees */
    height: auto;
    display: flex;
    align-items: center;
    margin-inline: auto;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-gap: 20px;
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-gap: 20px;
}

.box img {
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.1s;
}

.box img:hover {
    transform: scale(1.3);
    transition: 0.5s;
}

.box:nth-child(1) {
    grid-column-start: span 2;
}

.box:nth-child(4) {
    grid-column-start: span 2;
}

.h2class {
    margin-top: 2rem;
    font-family: cinzel, serif;
    text-align: center;
}

.h3class {
    font-family: cinzel, serif;
    text-align: center;
    font: var(--font_8);
    margin: 50px 200px 0 200px;
}

.textgaleriarecinto {
    height: 100vh;
    margin: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: cinzel, serif;
    font-size: xx-large;
    max-width: 600px;
}
@media (max-width: 768px) {
    .textgaleriarecinto {
        font-size: 1rem;
        margin: 3% auto;
        flex-direction: column; /* Apila los elementos si hay más de uno */
        text-align: center;
    }
}

.textorecinto {
    margin: 50px 100px 50px 100px;
    font-family: cinzel, serif;
    font-size: xx-large;
    text-align: center;
}
@media (max-width: 768px) {
    .textorecinto {
        margin: 50px 0 50px 0;
    }
}
@media screen and (max-width: 480px) {
    .textorecinto {
        margin: 50px 0 50px 0;
    }
}