body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    padding: 50px 0 0 0;
    margin-bottom: 0;
    font-size: 40px;
}
h2 {
    text-align: center;
    color: #999;
    margin-top: 0;
    margin-bottom: 30px;
    padding: 20px 0 50px 0;
    border-bottom: 2px solid #ccc;
    font-size: 35px;
}

a {
	text-decoration: none;
	color: #3167d3;
}

.volver {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.volver button {
	border: none;
    background-color: rgb(255, 99, 12);
    color: white;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.volver button:hover {
    background-color: #0056b3;
}

.logo {
    width: 100%;
    text-align: center;
}

.logo img {
	max-width: 800px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 10px;
}

.foto img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.paginacion {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 100px;
    padding: 50px;
    font-size: 24px;
    border-top: 2px solid #ccc;
}

.paginacion a,
.paginacion span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    background-color: #eaeaea;
    color: #333;
    border-radius: 4px;
}

.paginacion a:hover {
    background-color: #ccc;
}

.paginacion .actual {
    background-color: #555;
    color: #fff;
    font-weight: bold;
}



/* ===== Lightbox general ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* ===== Contenedor de imagen ===== */
.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ===== Botón cerrar (X) ===== */
.cerrar {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 3rem;
    color: white;
    background: #222;
    border-radius: 20px;
    padding: 12px 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid #ccc;
}

.cerrar:hover {
    background-color: #555;
}

/* ===== Flechas de navegación ===== */
.flecha {
    position: absolute;
    top: 50%;
    font-size: 4rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.3s;
}

.flecha:hover {
    background-color: rgba(255,255,255,0.2);
}

.flecha.izquierda {
    left: -60px;
}

.flecha.derecha {
    right: -60px;
}

/* ===== Ajustes móviles ===== */
@media screen and (max-width: 768px) {
    .flecha {
        font-size: 3rem;
        padding: 8px;
    }

    .flecha.izquierda {
        left: -40px;
    }

    .flecha.derecha {
        right: -40px;
    }

    .cerrar {
        font-size: 2.5rem;
        top: -20px;
        right: -20px;
        padding: 10px 14px;
    }
}
