/* Contenedor de miniaturas de imágenes */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Ajuste automático con tamaño mínimo de 150px */
    gap: 15px; /* Espacio entre las miniaturas */
    margin-top: 30px;
    justify-content: center; /* Centra las miniaturas */
}

/* Estilo para cada miniatura */
.thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px; /* Fijar el ancho de cada miniatura */
    height: 150px; /* Fijar la altura de cada miniatura */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste de la imagen para cubrir el área sin distorsión */
    transition: transform 0.3s ease;
}

/* Efecto de hover para las miniaturas */
.thumbnail:hover img {
    transform: scale(1.05);
}

/* Modal */
.modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

.modal-footer {justify-content: center;}

/* Botones del modal */
.modal-footer button {
    width: 100px;
}

.nav-btn-modal {
    /*position: absolute;
    margin-top: 79px;
    z-index: 10;
    width: 100%;
    background-color: #ffffff52;
    padding: 0;*/
    border-width: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.close_mod {position: absolute; right: 20px;}

.next-prev {background-color: black; border-color: #333; }
.next-prev:hover {background-color: rgb(61, 0, 58); border-color: #333;}
#nextImage, #prevImage { width: 50px;}
#imageModal {background-color: #000000d9;}

/* 
#prevImage, #nextImage, #deleteImage {
    display: none; Los botones de navegación y eliminar solo estarán visibles para los administradores
}
 */




 
        body { 
            font-family: Arial, sans-serif;
            text-align: center; 
            color: #FFF;
            margin: 0;
            padding: 0;
            background-color: #000; 
        }
        .contenedor {
            background-image: url('https://mvsmusiccenter.com/wp-content/uploads/2024/11/mc_Manifesto_Outline-dibujo.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: bottom;
            min-height: 80vh;
            padding-bottom: 20vh;
        }
        .top_gal {
            background-image: url('images/top-galeria.jpg');
            background-repeat: no-repeat;
            background-position: bottom;
            background-size: cover;
            width: 100%;
            height: 30vh;
            min-height: 100px;
            max-height: 300px;
            margin-bottom: 50px;
        }
        .lklogotop {width:80%; max-width: 500px; display: block; margin: -130px auto 0 auto;}
        .lklogotop img {width:100%;}
        .set_eve {margin-bottom: 80px;}
        .pill_gal {background-color: #FFF; color: #001eb1; font-weight: bold; padding: 5px 10px; border-radius: 5px; margin: 5px 15px; display: inline-block; width: auto; }
        .pill_gal:hover {background-color: #ffbe5d; color: black; }
        .img_top_gal {width: 200px; display: block; margin: 0 auto;}

        h1 {font-size: 20px;}
        h2 {font-size: 20px; font-weight: bold;}
        a {color:darkorange; text-decoration: none;}
        label { display: inline-block; text-align: right; width: 100px;}
        .separa-logo {margin: 120px auto 30px auto; width:300px;}
        .a_logopie {display: inline-block; padding: 20px 0 0 0;}
        .a_logopie img { width: 280px;}
        .formlog {margin: 50px 0;}
        .logout {
            background-color: #fff;
            color: blueviolet;
            display: block;
            position: absolute;
            right: 10px;
            top: 10px;
            width: auto;
            padding: 5px 10px;
            border-radius: 5px;
            text-decoration: none;
            text-transform: uppercase;
            font-size: 14px;
            transition: all 0.5s ease-in;
        }
        .logout:hover {background-color: #000;}
        .logout span {font-weight: bold;}
        .btn_back, .btn_back_top {
            background-color: #fff;
            display: block;
            width: auto;
            margin: 50px auto;
            padding: 5px 15px;
            border-radius: 5px;
            color: #000;
        }
        .btn_back_top { margin: 0px auto; }
        .btn_back:hover {background-color: blueviolet;}



/*
body { font-family: sans-serif;
    text-align: center; 
    background-color: #000; 
    color: #FFF;
}
h1 {font-size: 20px;}
a {color:darkorange; text-decoration: none;}*/

/*
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery .thumb {
    width: 150px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 5px;
}

.gallery .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}
*/

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

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #fff;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

.modal-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.modal-controls button {
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.modal-download {
    position: absolute;
    bottom: 20px;
    right: 30px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    font-size: 16px;
    background-color: #1f7700;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
.modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    font-size: 24px;
    line-height: 24px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
.modal-close:hover {
    background-color: #ff0000;
    color: #fff;
}
 */