/* Galería final de noticias. Espaciado y colores independientes del tema. */
.lu-single .lu-news-gallery {
    margin-block: 2.5rem 2rem;
    min-width: 0;
}
.lu-news-gallery *, .lu-news-gallery *::before, .lu-news-gallery *::after { box-sizing: border-box; }
.lu-news-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.lu-news-gallery-heading h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    line-height: 1.25;
}
.lu-news-gallery-controls {
    align-items: center;
    gap: .65rem;
    display: none;
}
.lu-news-gallery.lu-news-gallery-ready .lu-news-gallery-controls { display: flex; }
.lu-news-gallery-arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cfc6d2;
    border-radius: 50%;
    background: #fff;
    color: #5f1d63;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.lu-news-gallery-arrow:hover:not(:disabled) { background: #f5edf5; }
.lu-news-gallery-arrow:disabled { opacity: .42; cursor: default; }
.lu-news-gallery-arrow:focus-visible, .lu-news-gallery-open:focus-visible,
.lu-news-gallery-close:focus-visible, .lu-news-gallery-viewport:focus-visible {
    outline: 3px solid #762f7f;
    outline-offset: 3px;
}
.lu-news-gallery-status { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.lu-news-gallery-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.lu-news-gallery-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: stretch;
}
.lu-news-gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 0;
    margin: 0;
}
.lu-news-gallery-slide figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.lu-news-gallery-open {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background: #f5f3f5;
    padding: 12px;
    width: 100%;
    height: clamp(240px, 42vw, 480px);
    cursor: zoom-in;
}
.lu-news-gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    box-shadow: none;
    border: 0;
    margin: auto;
}
.lu-news-gallery-slide figcaption {
    color: #414141;
    font-size: .9rem;
    line-height: 1.55;
    padding: .65rem .9rem;
    text-align: center;
    background: #faf8fa;
}
.lu-news-gallery-dialog {
    border: 0;
    border-radius: 12px;
    padding: 48px 14px 14px;
    width: min(96vw, 1400px);
    max-width: 1400px;
    max-height: 94vh;
    background: #17151a;
    color: #fff;
}
.lu-news-gallery-dialog::backdrop { background: rgba(0, 0, 0, .86); }
.lu-news-gallery-dialog img {
    display: block;
    object-fit: contain;
    width: 100%;
    max-height: calc(94vh - 78px);
    margin: auto;
}
.lu-news-gallery-close {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 40px;
    min-height: 40px;
    background: transparent;
    color: white;
    font-size: 1.8rem;
    border: 1px solid #aaa;
    border-radius: 50%;
    cursor: pointer;
}
@media (max-width: 600px) {
    .lu-news-gallery-heading { align-items: flex-start; }
    .lu-news-gallery-open { height: clamp(250px, 88vw, 390px); padding: 8px; }
    .lu-news-gallery-slide figcaption { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lu-news-gallery-viewport { scroll-behavior: auto; }
}
