/* Estilos propios de la página: Noticias */

/* CONTENEDOR */
.cdc-gallery-2 {
    background: linear-gradient(135deg, #1fa84f, #14863e);
    padding: 40px 20px;
    border-radius: 16px;
    max-width: 900px;
    margin: 40px auto;
}

/* TITULO */
.cdc-gallery-2 h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

/* GRID 2 COLUMNAS */
.cdc-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* ITEM */
.cdc-item-2 {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.cdc-item-2:hover {
    transform: scale(1.03);
}

.cdc-item-2 img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* MODAL */
.cdc-modal-2 {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.cdc-modal-2 img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* CERRAR */
.cdc-close-2 {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    font-weight: bold;
}
