/* =========================================================
   Lessen (lessen.php)
   ========================================================= */

.lessen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 64px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--page-top) var(--gutter) var(--page-bottom);
}

.lessen_foto {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--placeholder);
}

.lessen_foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lessen_info {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.75;
}

.lessen_info br {
    display: none;
}

.lessen_title {
    margin-bottom: 24px;
}

.lessen_info p {
    margin: 0 0 16px;
}

.lessen_info table {
    width: 100%;
    margin: 16px 0 24px;
    border-collapse: collapse;
    font-size: 15px;
}

/* De kopregel staat niet in het ontwerp */
.lessen_info table tr:first-child:has(th) {
    display: none;
}

.lessen_info td {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    text-align: center;
    line-height: 1.4;
}

.lessen_info td:first-child {
    font-weight: 600;
    text-align: left;
}

.lessen_info td:last-child {
    text-align: right;
}

.lessen_info table + p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.lessen_button {
    width: fit-content;
    padding: 0;
    border: 1px solid var(--ink);
    background: var(--ink);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.lessen_button:hover {
    background: #333;
    border-color: #333;
}

.lessen_button__link {
    display: block;
    padding: 16px 24px;
    color: var(--paper);
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 900px) {
    .lessen {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lessen_foto {
        aspect-ratio: 4 / 3;
    }
}
