/* 🔥 Asegurar que el modal esté oculto al cargar */
/* 🔥 Modal debe mostrarse cuando está activo */
/* 🔥 Modal debe mostrarse cuando está activo */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(172, 166, 166, 0.5);
    align-items: center;
    justify-content: center;
}

/* ✅ Mostrar modal cuando tiene la clase 'active' */
.modal.active {
    display: flex !important;
}

.modal-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

/* ❌ Botón de cierre */
.close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 48px;
    font-weight: bold;
    color: red;
    cursor: pointer;
}

.close:hover {
    color: darkred;
}

/* 🖼 Imagen de la tabla (Thumbnail de 75x75) */
.thumb-image {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
}

/* 🎠 Carrusel de imágenes (150x150) */
.carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-image {
    width: 150px;
    height: 150px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel-image:hover {
    transform: scale(1.1);
}

/* 🔘 Botón "View Details" centrado */
.view-details-btn {
    background-color: #0056b3;
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    display: block;
    margin: auto;
}

.view-details-btn:hover {
    background-color: #007bff;
}
