/* --- FUNDAMENTAL --- */
.fpe-lazy { opacity: 0; transition: opacity 0.5s ease; }
.fpe-lazy.fpe-loaded { opacity: 1 !important; }

/* --- 1. IMAGEN DESTACADA --- */
.fpe-featured-wrapper { position: relative; display: block; width: 100%; }
.fpe-badge { 
    position: absolute; bottom: 85px; right: 20px; 
    background: rgba(0,0,0,0.8); color: #fff; 
    font-size: 14px; font-weight: bold; display: flex; 
    align-items: center; z-index: 10; line-height: 1;
}
.fpe-badge .dashicons-camera { 
    background: #e1b12c; color: #000; width: 36px !important; 
    height: 36px !important; font-size: 20px !important;
    display: flex !important; align-items: center !important; 
    justify-content: center !important; margin: 0;
}

/* --- 2. CUSTOM LIGHTBOX (v2.0.7 - Basado en Carrusel Vídeos) --- */
.fpe-lb-overlay {
    max-width: 100% !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Transparencia similar al carrusel */
    z-index: 99999; /* Z-index alto como en el carrusel */
    display: none; 
    justify-content: center; 
    align-items: center;
    overflow: hidden;
}

.fpe-lb-container { 
    position: relative;
    width: 100%;
    max-width: 1200px; /* Ancho máximo de escritorio */
    margin: 0 auto;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fpe-lb-media { 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Imagen pegada al texto inferior */
    background: #000;
}

#fpe-lb-img { 
    max-width: 100%; 
    max-height: 75vh; /* Reserva espacio para el texto */
    object-fit: contain; 
    display: block;
}

.fpe-lb-info { 
    background: #1a1a1a; 
    padding: 20px; 
    color: #fff; 
    width: 100%;
    max-width: 1000px; /* Alineado con el ancho del reproductor de vídeo */
    box-sizing: border-box;
}

.fpe-lb-row1 { display: flex; justify-content: center; align-items: center; gap: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 10px; }
.fpe-lb-row2 { font-size: 16px; line-height: 1.6; color: #eee; text-align: left; max-height: 15vh; overflow-y: auto; }

/* Botones Navegación (Estilo Carrusel de Vídeos) */
.fpe-lb-close { 
    position: fixed; top: 20px; right: 20px; 
    color: white; font-size: 45px; cursor: pointer; 
    z-index: 100003; line-height: 1; 
}

.fpe-lb-nav { 
    position: fixed; top: 50%; transform: translateY(-50%); 
    background: rgba(255, 255, 255, 0.1); color: white; border: none;
    width: 45px; height: 65px; cursor: pointer; z-index: 100002;
    font-size: 40px; line-height: 65px; text-align: center; border-radius: 8px;
    transition: background 0.3s;
}
.fpe-lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.fpe-prev { left: 40px; } .fpe-next { right: 40px; }

/* --- 3. AJUSTES MÓVIL --- */
@media (max-width: 900px) {
    .fpe-prev { left: 10px; }
    .fpe-next { right: 10px; }
    .fpe-lb-nav { width: 35px; height: 50px; font-size: 30px; line-height: 50px; }
    #fpe-lb-img { max-height: 55vh; }
    .fpe-lb-info { padding: 15px; }
}