/**
 * Styles for Kerstendal Activities and the existing Wist-u-dat components.
 */

.kerstendal-activiteiten-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.kerstendal-activiteiten-card {
    border: 1px solid #e1e8ed;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}
.kerstendal-activiteiten-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.kerstendal-activiteiten-card-link:hover .kerstendal-activiteiten-title,
.kerstendal-activiteiten-card-link:focus .kerstendal-activiteiten-title {
    text-decoration: underline;
}
.kerstendal-activiteiten-image-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kerstendal-activiteiten-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f5f7f9;
}
.kerstendal-activiteiten-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.kerstendal-activiteiten-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}
.kerstendal-activiteiten-meta {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 700;
    color: #52606d;
}
.kerstendal-activiteiten-excerpt {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kerstendal-wist-u-dat-single-image {
    margin: 0 0 24px;
    width: min(220px, 100%);
    border-radius: 18px;
    overflow: hidden;
    background: #f5f7f9;
}
.kerstendal-wist-u-dat-single-image img {
    width: 100%;
    height: auto;
    display: block;
}
.kerstendal-activiteiten-detail-box {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    background: #f8fafc;
}
.kerstendal-activiteiten-detail-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
}
.kerstendal-activiteiten-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.kerstendal-activiteiten-detail-list li {
    margin: 0;
}
.kerstendal-activiteiten-detail-list a {
    text-decoration: underline;
}
.kerstendal-activiteiten-link {
    margin-top: auto;
    font-weight: 600;
}
.kerstendal-wist-u-dat-wrap {
    position: relative;
}
.kerstendal-wist-u-dat-viewport {
    position: relative;
    min-height: 100%;
}
.kerstendal-wist-u-dat-item {
    display: none;
}
.kerstendal-wist-u-dat-item.is-active {
    display: block;
    animation: kerstendalWistFade 0.5s ease;
}
.kerstendal-wist-u-dat-card {
    border: 1px solid #e1e8ed;
    border-radius: 25px;
    background: #f8fafc;
    overflow: hidden;
}
.kerstendal-wist-u-dat-card.has-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: stretch;
}
.kerstendal-wist-u-dat-card-content {
    padding: 20px;
    min-width: 0;
}
.kerstendal-wist-u-dat-card-image-wrap {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #f5f7f9;
}
.kerstendal-wist-u-dat-card-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #f5f7f9;
}
.kerstendal-wist-u-dat-label {
    display: block;
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #52606d;
}
.kerstendal-wist-u-dat-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.3;
}
.kerstendal-wist-u-dat-excerpt {
    margin: 0;
    line-height: 1.6;
    color: #1f2933;
    white-space: normal;
    overflow: visible;
}
.kerstendal-wist-u-dat-all-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    text-decoration: underline;
}
.kerstendal-wist-u-dat-overview {
    display: grid;
    gap: 18px;
}
.kerstendal-wist-u-dat-overview-item {
    border: 1px solid #e1e8ed;
    border-radius: 25px;
    background: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: stretch;
}
.kerstendal-wist-u-dat-overview-content {
    padding: 20px;
    min-width: 0;
}
.kerstendal-wist-u-dat-overview-image-wrap {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #f5f7f9;
}
.kerstendal-wist-u-dat-overview-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #f5f7f9;
}
.kerstendal-wist-u-dat-overview-item .kerstendal-wist-u-dat-title {
    margin-bottom: 8px;
}
@keyframes kerstendalWistFade {
    from { opacity: 0.3; }
    to { opacity: 1; }
}
@media (max-width: 1024px) {
    .kerstendal-activiteiten-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 782px) {
    .kerstendal-activiteiten-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .kerstendal-activiteiten-content {
        padding: 16px;
    }
    .kerstendal-wist-u-dat-card.has-image,
    .kerstendal-wist-u-dat-overview-item {
        grid-template-columns: 1fr;
    }
    .kerstendal-wist-u-dat-card-image-wrap,
    .kerstendal-wist-u-dat-overview-image-wrap {
        min-height: 180px;
        order: -1;
    }
    .kerstendal-wist-u-dat-card-content,
    .kerstendal-wist-u-dat-overview-content {
        padding: 16px;
    }
}

/* Post editor fields. */
.kerstendal-activiteiten-date-list-wrap > p:first-child {
    margin-bottom: 8px;
}

.kerstendal-activiteiten-date-row {
    border: 1px solid #dcdcde;
    padding: 8px;
    margin: 8px 0;
    background: #fff;
}

.kerstendal-activiteiten-date-row > p:first-child {
    margin: 0 0 6px;
}

.kerstendal-activiteiten-date-row > p:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0 0 8px;
}

.kerstendal-activiteiten-date-row input[type="date"],
.kerstendal-activiteiten-date-row input[type="time"],
#kerstendal_activiteiten_gerelateerde_activiteit {
    width: 100%;
}

.kerstendal-activiteiten-room-option {
    display: block;
    margin: 4px 0;
}
