.sv-preken-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .sv-preken-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sv-preken-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sv-preken-card {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sv-preken-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.sv-preken-thumb-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sv-preken-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sv-preken-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.sv-preken-meta {
    padding: 0.5rem 0.75rem 0.75rem;
}

.sv-preken-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.1rem;
}

.sv-preken-desc {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Lightbox */
.sv-preken-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.sv-preken-lightbox-inner {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    padding: 1rem;
    border-radius: 8px;
}

.sv-preken-lightbox-close {
    position: absolute;
    top: 4px;
    right: 8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.sv-preken-lightbox-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.sv-preken-lightbox-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sv-preken-lightbox {
    z-index: 2147483647 !important;
    position: fixed;
}

.sv-preken-lightbox-inner {
    position: relative;
    z-index: 2147483647 !important;
}

/* Paginering bij preken */
.sv-preken-pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sv-preken-pagination-button {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
}

.sv-preken-pagination-button:hover {
    background: #eee;
    border-color: #bbb;
}

.sv-preken-pagination-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
