/* =================================================================ada
   1. LIMPIEZA TOTAL: Ocultar títulos automáticos y cabeceras del tema
   =================================================================== */
.page-header, 
.archive-header, 
.entry-header, 
.site-main > header,
.page-title,
.entry-title,
h1.entry-title {
    display: none !important;
}

/* Ocultar líneas divisorias no deseadas del tema */
hr, 
.entry-content hr, 
.wp-block-separator {
    display: none !important;
}

/* ===================================================================
   2. ESTILOS BASE Y ESTRUCTURA DE LA FICHA DE FOTOGRAFÍA
   =================================================================== */
.cristiada-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
}

.cristiada-flex-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media screen and (min-width: 768px) {
    .cristiada-flex-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.cristiada-columna {
    flex: 1;
    box-sizing: border-box;
}

/* Botones institucionales */
.btn-cristiada {
    display: inline-block;
    background-color: #8B4513;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 200ms ease-in-out;
    border: none;
    cursor: pointer;
}
.btn-cristiada:hover {
    background-color: #6d3710;
}
.btn-cristiada:active {
    background-color: #4e2709;
}

/* Visor miniatura */
.visor-miniatura {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    cursor: zoom-in;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.visor-miniatura img {
    width: 100%;
    height: auto;
    display: block;
}

/* Enlaces de metadatos */
.meta-link {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}
.meta-link:hover {
    text-decoration: underline;
}

/* ===================================================================
   3. LIGHTBOX / VISOR DE ZOOM INTERACTIVO
   =================================================================== */
#cristiadaModalZoom {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    box-sizing: border-box;
    user-select: none;
}

.modal-content-wrapper {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 40px 20px 140px 20px;
    box-sizing: border-box;
    text-align: center;
    cursor: grab;
}
.modal-content-wrapper:active {
    cursor: grabbing;
}

#imagenZoomAmpliada {
    width: 50vw;
    max-width: none;
    height: auto;
    display: inline-block;
    transition: width 0.1s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #fff;
    border-radius: 4px;
    pointer-events: none;
}

/* Barra de herramientas flotante inferior */
.modal-toolbar-inferior {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    z-index: 1000000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    max-width: 95vw;
    box-sizing: border-box;
}

.btn-toolbar {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-toolbar:hover {
    background: rgba(255, 255, 255, 0.15);
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.toolbar-indicator {
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.btn-toolbar-close {
    background: #8B4513;
    color: white;
    padding: 6px 14px;
}
.btn-toolbar-close:hover {
    background: #6d3710;
}

@media screen and (max-width: 480px) {
    .modal-toolbar-inferior {
        padding: 6px 12px;
        gap: 6px;
    }
    .btn-toolbar {
        padding: 4px 8px;
        font-size: 13px;
    }
}