/* Nieuws archive */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.news-grid .news-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-grid .news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-grid .news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-grid .news-content {
    padding: 15px;
    text-align: center;
}

.news-grid .news-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 8px;
}

.news-grid .news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

/* Nieuws single page */
.news-article {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #222;
    text-align: left;
}

.news-article .news-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-article .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    align-items: center;
}

.news-article .news-meta i {
    vertical-align: middle;
    margin-right: 5px;
    color: #888;
}

/* Galerij met automatische layout */
.news-article .news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 60px;
}

/* Beperk maximale breedte als er maar 1 afbeelding is */
.news-article .news-gallery:has(img:only-child) {
    display: flex;
    justify-content: center;
}

.news-article .news-gallery:has(img:only-child) img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Algemene galerijstijl */
.news-article .news-gallery img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.news-article .news-gallery img:hover {
    transform: scale(1.03);
}

.news-article .news-content {
    line-height: 1.7;
    font-size: 1rem;
    color: #333;
}

.news-article .news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-article .news-back {
    margin-top: 40px;
}

.news-article .news-back .button {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.news-article .news-back .button:hover {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* Responsieve fix: op mobiel gewoon 100% breed */
@media (max-width: 768px) {
    .news-article .news-gallery:has(img:only-child) img {
        max-width: 100%;
    }
}
