.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    cursor: pointer;
    transition: .25s;
    text-align: center;
}

.news-card:hover {
    transform: translateY(-6px);
}

.news-card img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #555;
    transition: .25s;
}

.news-card:hover img {
    border-color: #f5c518;
}

.news-title {
    margin-top: 12px;
    color: #f5c518;
    font-size: 18px;
    font-weight: bold;
}

/* ================================
   MODAL
================================ */

.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.news-modal.open {
    display: flex;
}

.news-modal img {
    max-width: 90vw;
    max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    display: block;
}

/* Botón cerrar — esquina superior derecha, igual al lightbox */
.news-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: transparent;
    color: #f5c518;
    border: 0px solid !important;
    font-size: 16px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

/* ================================
   CONTROLES DE NAVEGACIÓN
================================ */

.news-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.news-counter {
    text-align: center;
    min-width: 160px;
}

#editionTitle {
    color: #f5c518;
    font-weight: bold;
    font-size: 18px;
    display: block;
}

#editionNumber {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 13px;
    display: block;
}

/* Flechas — mismo estilo que nav-btn del fixture */
.news-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(245,197,24,0.35);
    border-radius: 8px;
    background: rgba(245,197,24,0.08);
    color: #f5c518;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.news-arrow:hover {
    background: rgba(245,197,24,0.2);
    border-color: rgba(245,197,24,0.6);
}

.news-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

/* ================================
   ZOOM
================================ */
 
/* La imagen dentro del modal no limita su tamaño cuando hay zoom */
.news-modal.open img {
    max-width: 90vw;
    max-height: 78vh;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}
 
/* Hint de instrucciones */
#news-zoom-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.5s ease;
}