/* cumple.css */

/* Variables de color */
:root {
    --cafe-franciscano: #4B2E2A; /* Tono café similar al hábito de los frailes */
    --cafe-hover: #603d3b; /* Café más claro para efectos de hover */
    --cafe-texto: #f5e8dc; /* Color de texto claro */
}

/* Estilo para el cuerpo de la página */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Menú Horizontal */
.menu-horizontal {
    background-color: var(--cafe-franciscano);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.menu-horizontal .logo {
    height: 50px;
    margin: 5px 15px;
}

.menu-horizontal ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-grow: 1;
}

.menu-horizontal ul li {
    padding: 14px 20px;
}

.menu-horizontal ul li a {
    color: var(--cafe-texto);
    text-align: center;
    text-decoration: none;
    display: block;
}

.menu-horizontal ul li a:hover {
    background-color: var(--cafe-hover);
}

/* Media Queries para hacer el menú responsivo */
@media (max-width: 768px) {
    .menu-horizontal ul {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-horizontal ul li {
        padding: 10px 0;
    }
}

/* Contenedor de la Galería */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

#month-header {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    margin: 20px 0;
}

/* Elemento de la Galería */
.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    overflow: hidden;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
}

.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Información del Fraile */
.fraile-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fraile-info h3 {
    margin: 5px 0;
    font-size: 1.2em;
    color: var(--cafe-franciscano);
    text-align: center;
}

.fraile-info p {
    margin: 0;
    color: var(--cafe-franciscano);
    text-align: center;
}

/* Efecto de Hover para el Elemento de la Galería */
.gallery-item:hover {
    transform: scale(1.05);
    transition: transform 0.4s ease-in-out;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(75, 46, 42, 0.9); /* Fondo café semitransparente */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--cafe-texto);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--cafe-texto);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(96, 61, 59, 0.8);
}

/* Media Queries para Lightbox en pantallas pequeñas */
@media (max-width: 600px) {
    .prev, .next {
        font-size: 30px;
        padding: 20px;
    }

    .close {
        font-size: 30px;
    }
}


/* Contenedor de la Galería */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

#month-header {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    margin: 20px 0;
}

/* Elemento de la Galería */
.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    overflow: hidden;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s ease-in-out; /* Transición más suave */
}

.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Información del Fraile */
.fraile-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fraile-info h3 {
    margin: 5px 0;
    font-size: 1.2em;
    color: #333;
    text-align: center;
}

.fraile-info p {
    margin: 0;
    color: #333;
    text-align: center;
}

/* Efecto de Hover para el Elemento de la Galería */
.gallery-item:hover {
    transform: scale(1.05);
    transition: transform 0.4s ease-in-out;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px; /* Ajustado para que no quede demasiado espacio arriba */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 100%; /* Ocupa el 100% del ancho disponible */
    height: auto; /* La altura se ajusta automáticamente según el ancho */
    max-width: 90vw; /* Máximo ancho de 90% de la vista */
    max-height: 90vh; /* Máxima altura de 90% de la vista */
    object-fit: contain; /* Ajusta la imagen para que quepa sin distorsionar */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Media Queries para Lightbox en pantallas pequeñas */
@media (max-width: 600px) {
    .prev, .next {
        font-size: 30px; /* Aumenta el tamaño del texto en pantallas pequeñas */
        padding: 20px;
    }

    .close {
        font-size: 30px; /* Reduce el tamaño del botón de cerrar en pantallas pequeñas */
    }
}
