/* Estilos para la sección de Resultados */
.results-section {
    padding: 50px 5px;
    background-color: #111;
    text-align: center;
}

.results-section h2 {
    font-size: 36px;
    color: #efb810;
    margin-bottom: 20px;
}

.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.item {
    margin: 15px;
    cursor: pointer;
    color: #fff;

    background-color: var(--tertiary-background-color-dark);
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
}

.item img {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    object-fit: cover;
}

.item p {
    margin-top: 10px;
    font-size: 16px;
}

/* Modal para mostrar elementos */
.dynamic-modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    margin: 50vh 0;
}

.modal-background {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-body {
    display: flex;
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    text-align: left;
}

.modal-gallery {
    flex: 2;
    text-align: center;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    margin-bottom: 10px;
}

.thumbnails {
    display: flex;
    justify-content: center;
}

.thumbnails img {
    width: 75px;
    height: 75px;
    margin: 5px;
    cursor: pointer;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid transparent;
}

.thumbnails img:hover {
    border: 2px solid #efb810;
}

.content-description {
    flex: 1;
    margin-left: 20px;
}

.content-description h3 {
    font-size: 24px;
    color: #efb810;
    margin-bottom: 15px;
}

.content-description p {
    font-size: 16px;
    color: #ddd;
}

/* Cerrar Modal */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {

    .content-description h3 {
        margin-top: 0px;

    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }
    .modal-gallery img {
        max-width: 100%;
        max-height: 40vh;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    .modal-body {
        flex-direction: column;
    }
    .content-description {
        margin-left: 0;
    }
}
