/*
Theme Name: RF Fotografie Modern
Template: fotoboek
Author: Roy Freriks
Version: 1.16.0
Text Domain: fotoboek-rf-child
*/

:root {
    color-scheme: dark;
    --rf-ink: #111311;
    --rf-panel: #1b1e1b;
    --rf-paper: #f2f0e8;
    --rf-muted: #b3b8ae;
    --rf-line: rgba(242, 240, 232, 0.2);
    --rf-accent: #be645e;
    --rf-accent-ink: #111311;
    --rf-header-bg: rgba(17, 19, 17, 0.96);
    --rf-display: "DM Serif Display", Georgia, serif;
    --rf-body: "DM Sans", sans-serif;
    --primary-color: var(--rf-ink);
    --primary-light-color: var(--rf-panel);
    --secondary-color: var(--rf-muted);
    --text-color: var(--rf-paper);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        color-scheme: light;
        --rf-ink: #f3f1eb;
        --rf-panel: #fffefa;
        --rf-paper: #1b1d19;
        --rf-muted: #555b52;
        --rf-line: rgba(27, 29, 25, 0.18);
        --rf-accent: #8c3f3c;
        --rf-accent-ink: #fffefa;
        --rf-header-bg: rgba(255, 254, 250, 0.96);
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --rf-ink: #f3f1eb;
    --rf-panel: #fffefa;
    --rf-paper: #1b1d19;
    --rf-muted: #555b52;
    --rf-line: rgba(27, 29, 25, 0.18);
    --rf-accent: #8c3f3c;
    --rf-accent-ink: #fffefa;
    --rf-header-bg: rgba(255, 254, 250, 0.96);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    width: 100%;
    overflow-x: clip;
    background: var(--rf-ink);
    color: var(--rf-paper);
    font-family: var(--rf-body);
    font-size: 16px;
    line-height: 1.6;
}

body,
button,
a {
    font-family: var(--rf-body);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--rf-accent);
    outline-offset: 4px;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 10px clamp(20px, 5vw, 76px);
    border-bottom: 1px solid var(--rf-line);
    background: var(--rf-header-bg);
    color: var(--rf-paper);
    backdrop-filter: blur(12px);
}

.rf-logo--dark {
    display: block;
}

.rf-logo--light {
    display: none;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .rf-logo--dark {
        display: none;
    }

    :root:not([data-theme]) .rf-logo--light {
        display: block;
    }
}

:root[data-theme="light"] .rf-logo--dark {
    display: none;
}

:root[data-theme="light"] .rf-logo--light {
    display: block;
}

.rf-theme-toggle {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    padding: 7px 10px;
    background: transparent;
    color: var(--rf-paper);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.rf-theme-toggle:hover {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

.rf-theme-toggle__indicator {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--rf-accent);
}

header .logo {
    max-width: 220px;
    max-height: 62px;
    flex: 0 1 220px;
}

header .logo a {
    display: block;
    width: 100%;
    height: 62px;
}

header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

header .logo .logo-light {
    display: block;
}

header .logo .logo-dark {
    display: none;
}

header .main_menu {
    display: block;
}

header nav > ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav > ul > li {
    display: flex;
    min-height: 44px;
    align-items: center;
}

header nav > ul > li > a {
    border-bottom: 1px solid transparent;
    color: var(--rf-paper);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease;
}

header nav > ul > li:hover > a,
header nav > ul > li.current-menu-item > a,
header nav > ul > li.current-menu-parent > a {
    border-bottom-color: var(--rf-accent);
    color: var(--rf-accent);
}

header nav ul ul {
    background: var(--rf-panel);
    border: 1px solid var(--rf-line);
}

header nav ul ul a {
    color: var(--rf-paper);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--rf-line);
    font-family: var(--rf-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    padding: 10px 12px;
    color: var(--rf-paper);
    cursor: pointer;
}

.menu-toggle img {
    filter: none;
}

.rf-home {
    color: var(--rf-paper);
}

.rf-hero {
    display: grid;
    min-height: min(690px, calc(100svh - 82px));
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    align-items: stretch;
    border-bottom: 1px solid var(--rf-line);
}

.rf-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 72px clamp(24px, 6vw, 94px);
}

.rf-eyebrow {
    margin: 0 0 18px;
    color: var(--rf-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rf-eyebrow span {
    padding: 0 5px;
    color: var(--rf-muted);
}

.rf-hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.08;
}

.rf-hero h1 em {
    color: var(--rf-accent);
    font-style: normal;
}

.rf-hero__intro {
    max-width: 390px;
    margin: 26px 0 32px;
    color: var(--rf-muted);
    font-size: 17px;
}

.rf-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--rf-accent);
    border-radius: 2px;
    padding: 11px 18px;
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.rf-button:hover {
    background: transparent;
    color: var(--rf-accent);
}

.rf-feature {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #292d28;
}

.rf-feature__slide {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--rf-paper);
    text-decoration: none;
}

.rf-feature__slide[hidden] {
    display: none;
}

.rf-feature__image,
.rf-feature__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
}

.rf-feature__placeholder {
    background: linear-gradient(140deg, #374339, #171917 72%);
}

.rf-feature__shade {
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    pointer-events: none;
}

.rf-feature__caption {
    position: absolute;
    right: 34px;
    bottom: 35px;
    left: 34px;
    display: grid;
    gap: 4px;
    /* Altijd lichte tekst: staat op een donkere verloop over de foto */
    color: #fff;
}

.rf-feature__date,
.rf-feature__count {
    color: #e0e3da;
    font-size: 12px;
}

.rf-feature__title {
    font-family: var(--rf-display);
    font-size: 32px;
    line-height: 1.15;
}

.rf-feature__controls {
    position: absolute;
    right: 30px;
    top: 26px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.rf-icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(17, 19, 17, 0.45);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.rf-icon-button:hover {
    background: var(--rf-accent);
    color: var(--rf-ink);
}

.rf-feature__position {
    min-width: 58px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.rf-albums,
.rf-gear {
    padding: 90px clamp(22px, 6vw, 88px) 100px;
}

.rf-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.rf-section-heading .rf-eyebrow {
    margin-bottom: 10px;
}

.rf-section-heading h2,
.rf-about h2,
.rf-contact h2 {
    margin: 0;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.12;
}

.rf-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rf-line);
    color: var(--rf-paper);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.rf-text-link:hover {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

.rf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.rf-filter {
    min-height: 40px;
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    padding: 8px 14px;
    background: transparent;
    color: var(--rf-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rf-filter:hover,
.rf-filter.is-active {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

.rf-album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.rf-album[hidden] {
    display: none;
}

.rf-album {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.rf-album__visual {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(242, 240, 232, 0.24);
    background: var(--rf-panel);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rf-album__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.rf-album:hover .rf-album__image {
    transform: scale(1.035);
}

.rf-album:hover .rf-album__visual {
    border-color: rgba(190, 100, 94, 0.75);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.rf-album__index,
.rf-album__open {
    position: absolute;
    top: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: rgba(17, 19, 17, 0.78);
    color: #fff;
    font-size: 12px;
}

.rf-album__index {
    left: 12px;
    font-variant-numeric: tabular-nums;
}

.rf-album__open {
    right: 12px;
    font-size: 18px;
}

.rf-album__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--rf-muted);
    font-size: 12px;
}

.rf-album__count {
    white-space: nowrap;
}

.rf-album__title {
    margin-top: 5px;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 25px;
    line-height: 1.2;
}

.rf-album:hover .rf-album__title {
    color: var(--rf-accent);
}

.rf-album__description {
    margin-top: 8px;
    color: var(--rf-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rf-album-count,
.rf-empty {
    margin: 30px 0 0;
    color: var(--rf-muted);
    font-size: 13px;
}

.rf-about {
    position: relative;
    display: grid;
    min-height: 390px;
    grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: 74px clamp(22px, 12vw, 180px);
    /* Zelfde achtergrond als de pagina; alleen onderlijn (bovenlijn gaf dubbele lijn onder de header) */
    border-bottom: 1px solid var(--rf-line);
    background: var(--rf-ink);
    color: var(--rf-paper);
}

.rf-about__mark {
    /* Beeldmerk (diafragma) uit de logoset i.p.v. de tekst "RF" */
    width: clamp(120px, 15vw, 210px);
    aspect-ratio: 1;
    justify-self: center;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Ccircle cx='120' cy='120' r='110' fill='none' stroke='%238C3F3C' stroke-width='9.35'/%3E%3Cline x1='120.00' y1='73.80' x2='228.74' y2='136.58' stroke='%238C3F3C' stroke-width='9.35' stroke-linecap='round'/%3E%3Cline x1='160.01' y1='96.90' x2='160.01' y2='222.47' stroke='%238C3F3C' stroke-width='9.35' stroke-linecap='round'/%3E%3Cline x1='160.01' y1='143.10' x2='51.27' y2='205.88' stroke='%238C3F3C' stroke-width='9.35' stroke-linecap='round'/%3E%3Cline x1='120.00' y1='166.20' x2='11.26' y2='103.42' stroke='%238C3F3C' stroke-width='9.35' stroke-linecap='round'/%3E%3Cline x1='79.99' y1='143.10' x2='79.99' y2='17.53' stroke='%238C3F3C' stroke-width='9.35' stroke-linecap='round'/%3E%3Cline x1='79.99' y1='96.90' x2='188.73' y2='34.12' stroke='%238C3F3C' stroke-width='9.35' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    color: transparent;
    font-size: 0;
    opacity: 0.35;
}

.rf-about .rf-eyebrow {
    color: var(--rf-accent);
}

.rf-about h2 {
    color: var(--rf-paper);
}

.rf-about__text {
    max-width: 700px;
    margin: 18px 0 24px;
    color: var(--rf-muted);
    font-size: 16px;
}

.rf-about__text > :first-child {
    margin-top: 0;
}

.rf-about__text > :last-child {
    margin-bottom: 0;
}

/* Omgekeerde knop: donker in lichte modus, licht in donkere modus */
.rf-button--light {
    border-color: var(--rf-paper);
    background: var(--rf-paper);
    color: var(--rf-ink);
}

.rf-button--light:hover {
    background: transparent;
    color: var(--rf-paper);
}

.rf-gear {
    border-bottom: 1px solid var(--rf-line);
}

.rf-gear__content {
    max-width: 820px;
    color: var(--rf-muted);
}

.rf-contact {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 76px clamp(22px, 12vw, 180px);
}

.rf-contact h2 {
    max-width: 700px;
    font-size: 48px;
}

.rf-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rf-accent);
    color: var(--rf-accent);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .rf-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 36px;
    }

    .rf-hero {
        grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    }

    .rf-hero h1 {
        font-size: 46px;
    }
}

@media (max-width: 750px) {
    html {
        scroll-padding-top: 76px;
    }

    header {
        min-height: 72px;
        gap: 10px;
        padding: 8px 14px;
    }

    header .logo {
        max-width: 180px;
        max-height: 52px;
    }

    .rf-site-logo {
        width: min(145px, 42vw);
        height: 52px;
        flex-basis: 145px;
    }

    header .logo a {
        height: 52px;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        gap: 6px;
        padding: 9px 10px;
        font-size: 14px;
    }

    .rf-theme-toggle {
        min-height: 36px;
        gap: 6px;
        padding: 6px 8px;
        font-size: 11px;
    }

    body.resnav_open header .main_menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        height: calc(100svh - 72px);
        overflow-y: auto;
        border-bottom: 1px solid var(--rf-line);
        background: var(--rf-ink);
    }

    header .main_menu {
        display: none;
    }

    header nav > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 18px 26px;
    }

    header nav > ul > li {
        min-height: 56px;
        border-bottom: 1px solid var(--rf-line);
    }

    header nav > ul > li > a {
        display: flex;
        width: 100%;
        min-height: 56px;
        align-items: center;
        font-size: 16px;
    }

    .rf-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .rf-hero__copy {
        padding: 64px 24px 50px;
    }

    .rf-hero h1 {
        max-width: 560px;
        font-size: 42px;
    }

    .rf-hero__intro {
        margin: 20px 0 25px;
        font-size: 16px;
    }

    .rf-feature {
        min-height: 410px;
    }

    .rf-feature__image,
    .rf-feature__placeholder {
        min-height: 410px;
    }

    .rf-feature__caption {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }

    .rf-feature__title {
        font-size: 28px;
    }

    .rf-feature__controls {
        right: 18px;
        top: 18px;
    }

    .rf-albums,
    .rf-gear {
        padding: 66px 20px 72px;
    }

    .rf-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 25px;
    }

    .rf-section-heading h2,
    .rf-about h2 {
        font-size: 36px;
    }

    .rf-album-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rf-album__visual {
        aspect-ratio: 4 / 3;
    }

    .rf-about {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 56px 24px 62px;
    }

    .rf-about__mark {
        /* Kleiner beeldmerk boven de tekst op mobiel */
        width: 64px;
        justify-self: start;
        margin-bottom: 18px;
    }

    .rf-contact {
        min-height: 290px;
        padding: 58px 24px;
    }

    .rf-contact h2 {
        font-size: 38px;
    }
}

@media (max-width: 380px) {
    .rf-hero h1 {
        font-size: 36px;
    }

    .rf-section-heading h2,
    .rf-about h2,
    .rf-contact h2 {
        font-size: 32px;
    }

    .rf-filter {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

.rf-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 12px 16px;
    background: var(--rf-accent);
    color: var(--rf-ink);
    font-weight: 700;
}

.rf-skip-link:focus {
    transform: translateY(0);
}

.rf-site-logo {
    display: block;
    width: min(220px, 52vw);
    height: 62px;
    flex: 0 1 220px;
}

.rf-site-logo__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.rf-footer {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px clamp(22px, 6vw, 88px);
    border-top: 1px solid var(--rf-line);
    color: var(--rf-muted);
    font-size: 13px;
}

.rf-footer p {
    margin: 0;
}

.rf-footer a {
    display: inline-block;
    padding: 10px 0;
    color: var(--rf-paper);
    text-decoration: none;
}

.rf-footer a:hover {
    color: var(--rf-accent);
}

.rf-footer__brand {
    font-family: var(--rf-display);
    font-size: 19px;
}

.container {
    width: min(100%, 1440px);
    margin-inline: auto;
}

.container > .header {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 54px 24px 0;
    color: var(--rf-paper);
}

.container > .header h1 {
    margin: 0 0 16px;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.12;
}

.container > .header p {
    color: var(--rf-muted);
}

.container > .header a {
    color: var(--rf-accent);
}

.fotoalbum__list,
.fotoalbum__list:has(> :nth-child(2)),
.fotoalbum__list:has(> :nth-child(3)),
.fotoalbum__list:has(> :nth-child(4)),
.fotoalbum__list:has(> :nth-child(5)) {
    display: grid;
    width: min(100%, 1440px);
    max-width: 1440px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding: 24px clamp(22px, 6vw, 88px) 90px;
}

.card {
    max-width: none;
    justify-self: stretch;
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    background: var(--rf-panel);
}

.card__image {
    overflow: hidden;
}

.card__image img {
    display: block;
    transition: transform 350ms ease;
}

.card:hover .card__image img {
    transform: scale(1.035);
}

.card__date {
    border-radius: 0;
    background: rgba(17, 19, 17, 0.86);
    color: var(--rf-paper);
}

.card__content {
    gap: 12px;
    padding: 20px 20px 24px;
    color: var(--rf-paper);
}

.card__title {
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 25px;
    font-weight: 400;
}

.card__button .btn,
.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid var(--rf-accent);
    border-radius: 2px;
    padding: 8px 13px;
    color: var(--rf-accent);
    font-size: 13px;
    font-weight: 700;
}

.gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    grid-auto-rows: minmax(220px, 27vw);
    padding: 24px clamp(18px, 4vw, 56px) 88px;
}

.gallery .gallery__foto {
    border: 1px solid var(--rf-line);
    border-radius: 2px;
}

.popup .inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    background: var(--rf-ink);
    color: var(--rf-paper);
}

.popup .information {
    overflow-y: auto;
    padding: 76px 28px 36px;
    color: var(--rf-paper);
}

.popup .information h2,
.popup .information h3 {
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-weight: 400;
}

.popup .information p,
.popup .information .label {
    color: var(--rf-muted);
}

@media (max-width: 900px) {
    .fotoalbum__list,
    .fotoalbum__list:has(> :nth-child(2)),
    .fotoalbum__list:has(> :nth-child(3)),
    .fotoalbum__list:has(> :nth-child(4)),
    .fotoalbum__list:has(> :nth-child(5)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery .horizontal,
    .gallery .vertical,
    .gallery .big {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 750px) {
    .rf-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 24px 20px;
    }

    .fotoalbum__list,
    .fotoalbum__list:has(> :nth-child(2)),
    .fotoalbum__list:has(> :nth-child(3)),
    .fotoalbum__list:has(> :nth-child(4)),
    .fotoalbum__list:has(> :nth-child(5)) {
        grid-template-columns: 1fr;
        padding: 10px 20px 64px;
    }

    .container > .header {
        padding: 44px 20px 0;
    }

    .container > .header h1 {
        font-size: 36px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 42vw;
        gap: 10px;
        padding: 12px 12px 56px;
    }

    .popup .inner {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .popup .information {
        padding: 28px 20px 36px;
    }
}

@media (max-width: 420px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 78vw;
    }
}

.rf-listing__intro {
    max-width: 920px;
    margin: 0 auto;
    padding: 72px 24px 28px;
}

.rf-listing__intro h1,
.rf-page h1,
.rf-detail-heading h1 {
    margin: 0;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
}

.rf-listing__intro > p:last-child,
.rf-listing__description,
.rf-detail-description,
.rf-page__content {
    max-width: 720px;
    margin-top: 18px;
    color: var(--rf-muted);
}

.rf-listing__description > :first-child,
.rf-detail-description > :first-child,
.rf-page__content > :first-child {
    margin-top: 0;
}

.rf-listing__description > :last-child,
.rf-detail-description > :last-child,
.rf-page__content > :last-child {
    margin-bottom: 0;
}

.rf-listing__filters {
    padding: 0 clamp(22px, 6vw, 88px);
}

.rf-listing__grid {
    padding: 10px clamp(20px, 6vw, 88px) 80px;
}

.rf-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 80px;
    color: var(--rf-paper);
}

.rf-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rf-line);
    padding: 8px 12px;
    color: var(--rf-paper);
    text-decoration: none;
}

.rf-pagination .current,
.rf-pagination a:hover {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

.rf-album-detail {
    min-height: 60vh;
}

.rf-detail-heading {
    /* Reset: de algemene header-regel (sticky balk) gold ook voor deze <header> */
    position: static;
    z-index: auto;
    display: block;
    width: auto;
    max-width: 940px;
    min-height: 0;
    margin: 0 auto;
    padding: 44px 24px 36px;
    border-bottom: 0;
    background: none;
    backdrop-filter: none;
}

.rf-back-link {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--rf-muted);
    font-size: 14px;
    text-decoration: none;
}

.rf-back-link:hover {
    color: var(--rf-accent);
}

.rf-detail-heading .rf-eyebrow {
    margin-bottom: 12px;
}

.rf-detail-count {
    margin: 12px 0 0;
    color: var(--rf-muted);
    font-size: 13px;
}

.rf-detail-description {
    margin-top: 20px;
    font-size: 16px;
}

.rf-photo-grid {
    /* Uitgevulde rijen: elke foto houdt zijn eigen verhouding (--ar = breedte/hoogte) */
    --rf-row: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px clamp(16px, 4vw, 56px) 88px;
}

/* Vulstuk zodat de laatste rij niet wordt uitgerekt */
.rf-photo-grid::after {
    content: "";
    flex-grow: 1000;
}

.rf-photo {
    position: relative;
    display: block;
    overflow: hidden;
    flex: var(--ar, 1.5) 1 calc(var(--ar, 1.5) * var(--rf-row));
    aspect-ratio: var(--ar, 1.5);
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    padding: 0;
    background: var(--rf-panel);
    cursor: zoom-in;
}

.rf-photo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.rf-photo:hover .rf-photo__image {
    transform: scale(1.035);
}

.rf-photo__open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: rgba(17, 19, 17, 0.82);
    color: #fff;
}

.rf-viewer {
    position: fixed;
    inset: 0;
    display: grid;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 18px;
    border: 0;
    padding: 76px 28px 32px;
    background: var(--rf-ink);
    color: var(--rf-paper);
}

/* Gesloten fotovenster echt verbergen (display: grid hierboven overschreef dit) */
.rf-viewer:not([open]) {
    display: none;
}

.rf-viewer::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.rf-viewer__toolbar {
    position: absolute;
    top: 18px;
    right: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rf-viewer__toolbar .rf-icon-button,
.rf-viewer__arrow {
    color: var(--rf-paper);
    cursor: pointer;
}

.rf-viewer__figure {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
}

.rf-viewer__frame {
    position: relative;
    display: block;
    max-width: 100%;
}

.rf-viewer__figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 160px);
    object-fit: contain;
}

.rf-viewer__caption {
    width: min(100%, 780px);
    color: var(--rf-muted);
    font-size: 14px;
    text-align: center;
}

.rf-viewer__caption strong,
.rf-viewer__caption > span {
    display: block;
}

.rf-viewer__caption strong {
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 23px;
    font-weight: 400;
}

.rf-viewer__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 14px 0 0;
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    background: color-mix(in srgb, var(--rf-panel) 70%, transparent);
}

/* Cameragegevens als specificatiebalk: vakken met icoon + label en de waarde eronder */
.rf-viewer__meta:empty {
    display: none;
}

.rf-viewer__meta .rf-viewer__spec {
    display: flex;
    min-width: 92px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 18px;
    border-left: 1px solid var(--rf-line);
    text-align: left;
}

.rf-viewer__meta .rf-viewer__spec:first-child {
    border-left: 0;
}

.rf-viewer__meta dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--rf-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rf-viewer__meta dt svg {
    flex: 0 0 auto;
    color: var(--rf-accent);
}

.rf-viewer__meta dd {
    margin: 0;
    color: var(--rf-paper);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rf-viewer__arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--rf-line);
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
}

.rf-viewer__arrow:hover {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

.rf-page {
    min-height: 60vh;
    padding: 62px 24px 96px;
}

.rf-page__article {
    max-width: 920px;
    margin: 0 auto;
}

.rf-page__edit a {
    color: var(--rf-accent);
}

@media (max-width: 900px) {
    .rf-photo-grid {
        --rf-row: 220px;
    }
}

@media (max-width: 750px) {
    .rf-listing__intro {
        padding: 50px 20px 20px;
    }

    .rf-listing__intro h1,
    .rf-page h1,
    .rf-detail-heading h1 {
        font-size: 38px;
    }

    .rf-listing__filters {
        padding: 0 20px;
    }

    .rf-detail-heading {
        padding: 28px 20px 26px;
    }

    .rf-back-link {
        margin-bottom: 32px;
    }

    .rf-photo-grid {
        gap: 9px;
        padding: 8px 12px 56px;
    }

    /* Mobiel: foto en gegevens op volle breedte, pijlen zweven over de foto */
    .rf-viewer {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 72px 12px 22px;
    }

    .rf-viewer__arrow {
        position: absolute;
        top: 42%;
        z-index: 2;
        background: rgba(17, 19, 17, 0.6);
        color: #fff;
        backdrop-filter: blur(4px);
    }

    .rf-viewer__arrow--previous {
        left: 18px;
    }

    .rf-viewer__arrow--next {
        right: 18px;
    }

    .rf-viewer__figure img {
        max-height: calc(100svh - 150px);
    }

    .rf-viewer__arrow {
        width: 38px;
        height: 38px;
    }

    .rf-page {
        padding: 48px 20px 72px;
    }
}

@media (max-width: 420px) {
    .rf-photo-grid {
        --rf-row: 150px;
    }
}

/* Contactformulier (Contact Form 7) in de stijl van het thema */
.rf-page .wpcf7 {
    max-width: 640px;
    margin: 34px 0 28px;
}

.rf-page .wpcf7-form p {
    margin: 0 0 20px;
}

.rf-page .wpcf7-form label {
    display: grid;
    gap: 8px;
    color: var(--rf-paper);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.rf-page .wpcf7-form-control-wrap {
    display: block;
}

.rf-page .wpcf7 input[type="text"],
.rf-page .wpcf7 input[type="email"],
.rf-page .wpcf7 textarea {
    width: 100%;
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    padding: 12px 14px;
    background: var(--rf-panel);
    color: var(--rf-paper);
    font: 400 16px/1.5 var(--rf-body);
    transition: border-color 160ms ease;
}

.rf-page .wpcf7 textarea {
    min-height: 170px;
    resize: vertical;
}

.rf-page .wpcf7 input:focus,
.rf-page .wpcf7 textarea:focus {
    border-color: var(--rf-accent);
    outline: none;
}

.rf-page .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.rf-page .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--rf-muted);
    font-weight: 400;
}

.rf-page .wpcf7-acceptance input {
    margin-top: 4px;
    accent-color: var(--rf-accent);
}

.rf-page .wpcf7-submit {
    min-height: 48px;
    border: 1px solid var(--rf-accent);
    border-radius: 2px;
    padding: 11px 22px;
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
    font: 700 14px var(--rf-body);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.rf-page .wpcf7-submit:hover {
    background: transparent;
    color: var(--rf-accent);
}

.rf-page .wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rf-page .wpcf7-not-valid-tip,
.rf-page .wpcf7-response-output {
    font-size: 13px;
}

.rf-page .wpcf7 form .wpcf7-response-output {
    margin: 18px 0 0;
    border-radius: 2px;
    padding: 12px 14px;
}

.rf-contact-alt {
    color: var(--rf-muted);
    font-size: 14px;
}

.rf-contact-alt a {
    color: var(--rf-accent);
}

/* Menulinks in het thema-lettertype (parent gebruikt het niet-geladen "Outfit") */
html body header .main_menu > ul > li > a {
    font-family: var(--rf-body);
    font-size: 15px;
    font-weight: 600;
}

/* Balkje onder actief menu-item en bij hover, in de accentkleur */
html body header .main_menu > ul > li > a {
    border-bottom: 3px solid transparent;
    padding-bottom: 4px;
    transition: border-color 160ms ease, color 160ms ease;
}

@media (min-width: 751px) {
    html body header .main_menu > ul > li:hover > a,
    html body header .main_menu > ul > li.current-menu-item > a {
        border-bottom: 3px solid var(--rf-accent);
        color: var(--rf-paper);
    }
}

/* Mobiel menu: accentstreep links i.p.v. eronder */
@media (max-width: 750px) {
    html body header .main_menu > ul > li > a {
        border-bottom: 0;
        border-left: 3px solid transparent;
    }

    html body header .main_menu > ul > li.current-menu-item > a {
        border-left-color: var(--rf-accent);
    }
}

/* 404-pagina */
.rf-404 {
    display: grid;
    min-height: 62vh;
    place-content: center;
    gap: 6px;
    padding: 72px 24px;
    text-align: center;
}

.rf-404 h1 {
    margin: 0;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 400;
    line-height: 1.1;
}

.rf-404 p:not(.rf-eyebrow) {
    max-width: 520px;
    margin: 10px auto 26px;
    color: var(--rf-muted);
}

.rf-404 .rf-button {
    justify-self: center;
}

/* Contactblok homepage: tekst links, Instagram-kaart rechts */
@media (min-width: 901px) {
    .rf-contact {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
        align-items: center;
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .rf-contact .rf-instagram {
        margin-top: 40px;
    }
}

/* Instagram-kaart */
.rf-instagram {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 18px;
    width: 100%;
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    padding: 26px;
    background: var(--rf-panel);
}

.rf-instagram__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--rf-accent);
    border-radius: 50%;
    color: var(--rf-accent);
}

.rf-instagram__icon svg {
    width: 24px;
    height: 24px;
}

.rf-instagram__body p {
    margin: 0;
}

.rf-instagram__label {
    color: var(--rf-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rf-instagram__handle {
    display: inline-block;
    margin: 4px 0 8px;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 26px;
    line-height: 1.15;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rf-instagram__handle:hover {
    color: var(--rf-accent);
}

.rf-instagram__text {
    color: var(--rf-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rf-instagram__button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Footer: Instagram-icoon met accountnaam (specifieker dan .rf-footer a) */
.rf-footer a.rf-footer__instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rf-footer__instagram svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Instagram-kaart op de contactpagina even breed als het formulier */
.rf-page .rf-instagram {
    max-width: 640px;
    margin-top: 12px;
}

/* Specificatiebalk op mobiel: raster van 3 vakken */
@media (max-width: 750px) {
    .rf-viewer__meta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .rf-viewer__meta .rf-viewer__spec {
        min-width: 0;
        padding: 8px 10px;
        border-left: 0;
        border-top: 1px solid var(--rf-line);
    }

    .rf-viewer__meta .rf-viewer__spec:nth-child(-n + 3) {
        border-top: 0;
    }

    .rf-viewer__meta .rf-viewer__spec:not(:nth-child(3n + 1)) {
        border-left: 1px solid var(--rf-line);
    }

    .rf-viewer__meta dt {
        min-width: 0;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .rf-viewer__meta dd {
        font-size: 13px;
        white-space: normal;
    }
}

/* ===== Knoppen: dunne rand in accentkleur, pijl in een rondje ===== */
.rf-button,
.rf-button--light {
    gap: 14px;
    min-height: 50px;
    border: 1px solid var(--rf-accent);
    padding: 7px 8px 7px 20px;
    background: transparent;
    color: var(--rf-paper);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.rf-button > span[aria-hidden="true"] {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
    font-size: 15px;
    line-height: 1;
    transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.rf-button:hover,
.rf-button--light:hover,
.rf-button:focus-visible {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

.rf-button:hover > span[aria-hidden="true"],
.rf-button:focus-visible > span[aria-hidden="true"] {
    background: var(--rf-accent-ink);
    color: var(--rf-accent);
    transform: translateX(2px);
}

/* ===== Header: rustige icoonknoppen ===== */
.rf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rf-theme-toggle {
    border-color: transparent;
    background: transparent;
}

.rf-theme-toggle:hover {
    border-color: transparent;
}

.rf-theme-toggle__icon {
    display: none;
    flex: 0 0 auto;
}

.rf-theme-toggle[data-mode="light"] .rf-theme-toggle__icon--light,
.rf-theme-toggle[data-mode="dark"] .rf-theme-toggle__icon--dark {
    display: block;
}

/* Zonder JavaScript: toon in elk geval één icoon */
.rf-theme-toggle:not([data-mode]) .rf-theme-toggle__icon--dark {
    display: block;
}

.rf-burger {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
}

.rf-burger::before,
.rf-burger::after,
.rf-burger > span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
}

.rf-burger::before {
    top: 0;
}

.rf-burger > span {
    top: 6px;
}

.rf-burger::after {
    top: 12px;
}

.menu-toggle[aria-expanded="true"] .rf-burger::before {
    top: 6px;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .rf-burger > span {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .rf-burger::after {
    top: 6px;
    transform: rotate(-45deg);
}

@media (max-width: 750px) {
    html body .menu-toggle,
    html body .rf-theme-toggle {
        display: inline-grid;
        width: 44px;
        height: 44px;
        min-height: 44px;
        place-items: center;
        border: 0;
        padding: 0;
        background: transparent;
        color: var(--rf-paper);
    }

    html body .rf-theme-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .rf-theme-toggle__icon {
        width: 21px;
        height: 21px;
    }

    .menu-toggle:hover,
    .rf-theme-toggle:hover {
        color: var(--rf-accent);
    }

    /* Volgorde rechts: kleurmodus, dan menu */
    .rf-site-header .rf-theme-toggle {
        order: 2;
        margin-left: auto;
    }

    .rf-site-header .menu-toggle {
        order: 3;
        margin-left: -6px;
    }
}

/* Getekende pijl (vervangt ↗/↘ tekens) */
.rf-arrow {
    display: block;
    flex: 0 0 auto;
}

.rf-button > span[aria-hidden="true"] .rf-arrow {
    width: 15px;
    height: 15px;
}

/* ===== "i"-knopje op elke foto in het album ===== */
.rf-photo__info {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(17, 19, 17, 0.62);
    color: #fff;
    font-family: var(--rf-display);
    font-size: 18px;
    font-style: italic;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rf-photo__info:hover {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
    transform: scale(1.08);
}

/* ===== Fotovenster: werkbalk rechts (positie + i-knop) ===== */
.rf-viewer__tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rf-viewer__info-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--rf-line);
    border-radius: 50%;
    background: transparent;
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 20px;
    font-style: italic;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rf-viewer__info-toggle:hover,
.rf-viewer__info-toggle[aria-pressed="true"] {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

.rf-viewer__toolbar {
    z-index: 3;
}

/* ===== Infopaneel ===== */
.rf-viewer__info {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(360px, 100%);
    overflow-y: auto;
    padding: 84px 26px 28px;
    border-left: 1px solid var(--rf-line);
    background: var(--rf-panel);
    color: var(--rf-paper);
    animation: rf-info-in 220ms ease;
}

.rf-viewer__info[hidden] {
    display: none;
}

/* Alleen beweging animeren: paneel blijft zichtbaar, ook als een browser de animatie overslaat */
@keyframes rf-info-in {
    from { transform: translateX(16px); }
    to { transform: none; }
}

@keyframes rf-info-up {
    from { transform: translateY(24px); }
    to { transform: none; }
}

.rf-viewer__info .rf-eyebrow {
    margin: 0 0 8px;
}

.rf-viewer__info h2 {
    margin: 0 0 6px;
    font-family: var(--rf-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
}

.rf-viewer__info h2[hidden] {
    display: none;
}

.rf-viewer__info-text {
    margin: 0 0 6px;
    color: var(--rf-muted);
    font-size: 14px;
}

.rf-viewer__info-text:empty {
    display: none;
}

/* Gegevens als lijst: icoon + label links, waarde rechts */
.rf-viewer__info .rf-viewer__meta {
    display: block;
    width: auto;
    margin: 14px 0 0;
    border: 0;
    background: none;
}

.rf-viewer__info .rf-viewer__meta .rf-viewer__spec {
    display: grid;
    min-width: 0;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--rf-line);
}

.rf-viewer__info .rf-viewer__meta .rf-viewer__spec:first-child {
    border-top: 0;
}

.rf-viewer__info .rf-viewer__meta dt {
    font-size: 11px;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.rf-viewer__info .rf-viewer__meta dd {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Foto schuift opzij als het paneel open is (desktop) */
@media (min-width: 751px) {
    .rf-viewer.has-info {
        padding-right: 388px;
    }

    .rf-viewer.has-info .rf-viewer__arrow--next {
        margin-right: 0;
    }

    .rf-viewer.has-info .rf-viewer__toolbar {
        right: 384px;
    }
}

/* Mobiel: paneel als onderblad */
@media (max-width: 750px) {
    .rf-viewer__info {
        top: auto;
        left: 0;
        width: 100%;
        max-height: 58vh;
        padding: 22px 20px 28px;
        border-top: 1px solid var(--rf-line);
        border-left: 0;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
        animation-name: rf-info-up;
    }

    .rf-viewer__info .rf-viewer__meta {
        display: block;
        width: auto;
    }

    .rf-viewer__info .rf-viewer__meta .rf-viewer__spec {
        grid-template-columns: 120px minmax(0, 1fr);
        padding: 10px 0;
        border-left: 0;
    }

    .rf-viewer__info .rf-viewer__meta .rf-viewer__spec:not(:first-child) {
        border-top: 1px solid var(--rf-line);
    }
}

/* ===== Albumoverzicht: wisselende foto's ===== */
.rf-album__image--next {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease, transform 350ms ease;
}

.rf-album__image--next.is-visible {
    opacity: 1;
}

/* ===== Mobiel compact: schermruimte zo goed mogelijk benutten ===== */
@media (max-width: 750px) {
    html {
        scroll-padding-top: 62px;
    }

    /* Lagere menubalk */
    html body header.rf-site-header {
        min-height: 60px;
        padding: 4px 8px 4px 16px;
    }

    .rf-site-logo {
        width: min(132px, 40vw);
        height: 44px;
        flex-basis: 132px;
    }

    body.resnav_open header .main_menu {
        height: calc(100svh - 60px);
    }

    /* Homepage */
    .rf-hero__copy {
        padding: 22px 16px 30px;
    }

    .rf-hero h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    .rf-hero__intro {
        margin: 14px 0 20px;
        font-size: 15px;
    }

    .rf-feature,
    .rf-feature__image,
    .rf-feature__placeholder {
        min-height: 340px;
    }

    .rf-albums,
    .rf-gear {
        padding: 34px 16px 40px;
    }

    .rf-section-heading {
        gap: 10px;
        margin-bottom: 18px;
    }

    .rf-section-heading h2,
    .rf-about h2,
    .rf-contact h2 {
        font-size: 30px;
    }

    .rf-filters {
        gap: 6px;
        margin-bottom: 20px;
    }

    .rf-album-grid {
        gap: 26px;
    }

    .rf-about {
        padding: 34px 16px 40px;
    }

    .rf-contact {
        min-height: 0;
        padding: 34px 16px 40px;
    }

    .rf-contact__link {
        margin-top: 16px;
    }

    /* Albumoverzicht en categorieën */
    .rf-listing__intro {
        padding: 20px 16px 14px;
    }

    .rf-listing__filters {
        padding: 0 16px;
    }

    .rf-listing__grid {
        padding: 6px 16px 48px;
    }

    /* Albumpagina */
    .rf-detail-heading {
        padding: 16px 16px 16px;
    }

    .rf-back-link {
        margin-bottom: 14px;
        padding: 6px 0;
    }

    .rf-detail-heading .rf-eyebrow {
        margin-bottom: 6px;
    }

    .rf-photo-grid {
        gap: 6px;
        padding: 4px 6px 40px;
    }

    /* Losse pagina's (Wie ben ik?, Contact) */
    .rf-page {
        padding: 20px 16px 48px;
    }

    .rf-listing__intro h1,
    .rf-page h1,
    .rf-detail-heading h1 {
        font-size: 32px;
    }

    .rf-eyebrow {
        margin-bottom: 8px;
    }

    .rf-404 {
        min-height: 0;
        padding: 40px 16px;
    }

    /* Footer compacter */
    .rf-footer {
        min-height: 0;
        gap: 4px;
        padding: 18px 16px;
    }
}

/* Hero: bolletjes als positie-aanduiding */
.rf-feature__dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 4px;
}

.rf-feature__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: width 220ms ease, background 220ms ease, border-radius 220ms ease;
}

.rf-feature__dot.is-active {
    width: 20px;
    border-radius: 4px;
    background: var(--rf-accent);
}

/* Mobiel: met infopaneel open de foto bovenin tonen, zodat foto én gegevens in beeld zijn */
@media (max-width: 750px) {
    .rf-viewer.has-info {
        align-items: start;
        padding-top: 70px;
    }

    .rf-viewer.has-info .rf-viewer__figure {
        height: auto;
        justify-content: flex-start;
    }

    .rf-viewer.has-info .rf-viewer__figure img {
        max-height: 36vh;
    }

    .rf-viewer.has-info .rf-viewer__arrow {
        top: calc(70px + 18vh - 19px);
    }

    .rf-viewer__info {
        max-height: 54vh;
    }
}

/* Mobiel met infopaneel open: foto bovenin, boven het onderblad */
@media (max-width: 750px) {
    .rf-viewer.has-info {
        align-items: start;
    }

    .rf-viewer.has-info .rf-viewer__figure {
        height: calc(42vh - 72px);
        justify-content: center;
    }

    .rf-viewer.has-info .rf-viewer__figure img {
        max-height: calc(42vh - 84px);
    }

    .rf-viewer.has-info .rf-viewer__arrow {
        top: calc(21vh + 30px);
    }
}

/* Venster zelf krijgt de focus bij openen: geen focusring om het kruisje */
.rf-viewer:focus {
    outline: none;
}

/* i-knopje op de foto in het fotovenster */
.rf-viewer__photo-info {
    z-index: 1;
    cursor: pointer;
}

.rf-viewer__photo-info[aria-pressed="true"] {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

/* Geen focusrand in het venster zelf */
.rf-viewer:focus {
    outline: none;
}

/* Grotere iconen in het infopaneel */
.rf-viewer__info .rf-viewer__meta dt {
    gap: 10px;
}

.rf-viewer__info .rf-viewer__meta dt svg {
    width: 20px;
    height: 20px;
}

.rf-viewer__info .rf-viewer__meta .rf-viewer__spec {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
}

@media (max-width: 750px) {
    .rf-viewer__info .rf-viewer__meta .rf-viewer__spec {
        grid-template-columns: 140px minmax(0, 1fr);
    }
}

/* i-knopje op de foto in het fotovenster: duidelijk zichtbaar */
.rf-viewer .rf-viewer__photo-info {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.rf-viewer .rf-viewer__photo-info:hover {
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
    transform: scale(1.08);
}

/* Actief (paneel open): omgekeerde kleuren */
.rf-viewer .rf-viewer__photo-info[aria-pressed="true"] {
    border-color: var(--rf-accent);
    background: #fff;
    color: #111311;
}

/* Korte puls bij de eerste foto die je opent */
.rf-viewer__photo-info.is-hint {
    animation: rf-info-pulse 1.4s ease 0.3s 2;
}

@keyframes rf-info-pulse {
    0% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(190, 100, 94, 0.7); }
    70% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 16px rgba(190, 100, 94, 0); }
    100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(190, 100, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .rf-viewer__photo-info.is-hint {
        animation: none;
    }
}

/* Sluitknop fotovenster: geen grijze standaardachtergrond van Safari */
.rf-viewer .rf-icon-button {
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

/* ===================================================================
   Rustiger uiterlijk: foto's centraal, minder kaders, labels en tekst
   =================================================================== */

/* Albumkaarten: dun kader om de foto (op verzoek teruggezet), titel en één regel info */
.rf-album__visual {
    border: 1px solid var(--rf-line);
    border-radius: 2px;
    box-shadow: none;
}

.rf-album:hover .rf-album__visual {
    border-color: var(--rf-accent);
    box-shadow: none;
}

.rf-album__title {
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.2;
}

.rf-album .rf-album__meta {
    display: block;
    margin-top: 4px;
    color: var(--rf-muted);
    font-size: 13px;
}

/* Beschrijving maximaal 2 regels */
.rf-album__description {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.rf-album-grid {
    row-gap: 44px;
}

/* Sectiekoppen zonder extra labels */
.rf-section-heading {
    align-items: baseline;
    margin-bottom: 28px;
}

/* Filters als rustige tekstlinks i.p.v. kaders */
.rf-filters {
    gap: 4px 22px;
}

.rf-filter,
.rf-filter:hover,
.rf-filter.is-active {
    min-height: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 6px 0;
    background: transparent;
    color: var(--rf-muted);
    font-size: 14px;
    font-weight: 500;
}

.rf-filter:hover {
    color: var(--rf-paper);
}

.rf-filter.is-active {
    border-bottom-color: var(--rf-accent);
    color: var(--rf-paper);
}

/* Minder scheidingslijnen tussen secties */
.rf-hero,
.rf-about,
.rf-gear {
    border-top: 0;
    border-bottom: 0;
}

/* "Wie ben ik?" op de homepage: portret naast een korte intro */
.rf-about--compact {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 300px) minmax(0, 560px);
    justify-content: center;
    align-items: center;
    gap: 56px;
}

.rf-about__portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}

.rf-about--compact .rf-about__text {
    margin: 14px 0 24px;
}

/* Contact homepage: één kolom, Instagram als regel */
.rf-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rf-instagram-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--rf-muted);
    font-size: 15px;
    text-decoration: none;
}

.rf-instagram-line svg {
    width: 20px;
    height: 20px;
    color: var(--rf-accent);
}

.rf-instagram-line strong {
    color: var(--rf-paper);
    font-weight: 600;
}

.rf-instagram-line:hover strong {
    color: var(--rf-accent);
}

/* Albumpagina: dunne kaders rond de foto's (op verzoek teruggezet) */
.rf-photo {
    border: 1px solid var(--rf-line);
    border-radius: 2px;
}

/* i-knopje op tegels: desktop pas bij hover, touch klein en doorzichtig */
@media (hover: hover) and (pointer: fine) {
    .rf-photo .rf-photo__info {
        opacity: 0;
        transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
    }

    .rf-photo:hover .rf-photo__info,
    .rf-photo:focus-visible .rf-photo__info {
        opacity: 1;
    }
}

@media (hover: none) {
    .rf-photo .rf-photo__info {
        right: 8px;
        bottom: 8px;
        width: 28px;
        height: 28px;
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(17, 19, 17, 0.4);
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .rf-about--compact {
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 750px) {
    .rf-about--compact {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
    }

    .rf-about__portrait img {
        aspect-ratio: 1;
        border-radius: 50%;
    }

    .rf-album__title {
        font-size: 20px;
    }

    .rf-filters {
        gap: 2px 18px;
    }

    .rf-instagram-line {
        margin-top: 22px;
        font-size: 14px;
    }
}

/* Contact en "Wie ben ik?" uitgelijnd met de albums */
.rf-contact {
    padding-right: clamp(22px, 6vw, 88px);
    padding-left: clamp(22px, 6vw, 88px);
}

/* Mobiel: rond portretje naast de kop, tekst op volle breedte eronder */
@media (max-width: 750px) {
    .rf-about--compact {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "portrait content";
        align-items: start;
        gap: 4px 16px;
    }

    .rf-about--compact .rf-about__portrait {
        grid-area: portrait;
    }

    .rf-about--compact .rf-about__content {
        display: contents;
    }

    .rf-about--compact h2 {
        grid-column: 2;
        align-self: center;
        margin: 0;
    }

    .rf-about--compact .rf-about__text,
    .rf-about--compact .rf-button {
        grid-column: 1 / -1;
    }

    .rf-about--compact .rf-button {
        justify-self: start;
    }

    .rf-about--compact .rf-about__text {
        margin: 14px 0 20px;
    }

    .rf-contact {
        padding-right: 16px;
        padding-left: 16px;
    }
}


/* Mobiel: link "Alle fotoalbums" weg (staat al als knop in het bovenste blok) */
@media (max-width: 750px) {
    .rf-albums .rf-section-heading .rf-text-link {
        display: none;
    }
}

/* ===== Mobiel: footer over de volle breedte ===== */
@media (max-width: 750px) {
    .rf-footer {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand insta"
            "copy copy";
        align-items: center;
        gap: 10px 16px;
        padding: 18px 16px 22px;
    }

    .rf-footer__brand {
        grid-area: brand;
    }

    .rf-footer a.rf-footer__instagram {
        grid-area: insta;
        justify-self: end;
    }

    .rf-footer p {
        grid-area: copy;
        padding-top: 12px;
        border-top: 1px solid var(--rf-line);
        text-align: center;
    }
}

/* ===== Mobiel: "Bekijk alle albums" als volle, opvallende knop ===== */
@media (max-width: 750px) {
    .rf-hero .rf-button {
        display: flex;
        width: 100%;
        min-height: 56px;
        justify-content: space-between;
        padding: 8px 8px 8px 20px;
        border-color: var(--rf-accent);
        background: var(--rf-accent);
        color: var(--rf-accent-ink);
        font-size: 16px;
    }

    .rf-hero .rf-button > span[aria-hidden="true"] {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        background: var(--rf-accent-ink);
        color: var(--rf-accent);
    }

    .rf-hero .rf-button:active {
        transform: scale(0.98);
    }
}

/* ===== Delen in het fotovenster ===== */
.rf-share {
    position: relative;
}

.rf-viewer__share-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--rf-line);
    border-radius: 50%;
    background: transparent;
    color: var(--rf-paper);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.rf-viewer__share-toggle:hover,
.rf-viewer__share-toggle[aria-expanded="true"] {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

.rf-share__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 210px;
    padding: 6px;
    border: 1px solid var(--rf-line);
    border-radius: 6px;
    background: var(--rf-panel);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.rf-share__menu[hidden] {
    display: none;
}

.rf-share__menu button {
    border: 0;
    border-radius: 4px;
    padding: 11px 12px;
    background: transparent;
    color: var(--rf-paper);
    font: 500 14px var(--rf-body);
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.rf-share__menu button[hidden] {
    display: none;
}

.rf-share__menu button:hover,
.rf-share__menu button:focus-visible {
    background: color-mix(in srgb, var(--rf-accent) 18%, transparent);
    color: var(--rf-paper);
}

.rf-share__status {
    padding: 0 12px;
    color: var(--rf-accent);
    font-size: 12px;
}

.rf-share__status:empty {
    display: none;
}

/* ===== Tags in het infopaneel ===== */
.rf-viewer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rf-line);
}

.rf-viewer__tags[hidden] {
    display: none;
}

.rf-viewer__tags-label {
    width: 100%;
    margin: 0 0 2px;
    color: var(--rf-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.rf-tag {
    border: 1px solid var(--rf-line);
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--rf-paper);
    font-size: 13px;
    text-decoration: none;
}

.rf-tag:hover {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

@media (max-width: 750px) {
    .rf-viewer__tools {
        gap: 10px;
    }
}

/* i-knopje rechtsboven, zodat het niet over het watermerk (rechtsonder) valt */
.rf-photo .rf-photo__info,
.rf-viewer .rf-viewer__photo-info {
    top: 12px;
    bottom: auto;
}

@media (hover: none) {
    .rf-photo .rf-photo__info {
        top: 8px;
    }
}

/* Infopaneel zacht laten infaden (browsers zonder @starting-style tonen het gewoon direct) */
.rf-viewer__info {
    transition: opacity 260ms ease, transform 260ms ease;
}

/* Alleen op desktop (muis): op telefoons is de fade niet betrouwbaar, daar alleen inschuiven */
@media (hover: hover) and (pointer: fine) {
    @starting-style {
        .rf-viewer__info {
            opacity: 0;
        }
    }
}

/* Mobiel: geen grote knop bovenaan; rustige link onder de laatste albums */
.rf-albums__more {
    display: none;
}

@media (max-width: 750px) {
    .rf-hero .rf-button {
        display: none;
    }

    .rf-albums__more {
        display: inline-flex;
        margin-top: 30px;
    }
}

/* ===== Meerdere foto's selecteren ===== */
.rf-select-toggle {
    display: block;
    margin: 0 clamp(16px, 4vw, 56px) 10px auto;
    border: 1px solid var(--rf-line);
    border-radius: 999px;
    padding: 8px 16px;
    background: transparent;
    color: var(--rf-paper);
    font: 600 13px var(--rf-body);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.rf-select-toggle:hover,
.rf-select-toggle[aria-pressed="true"] {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
}

/* In selectiemodus geen i-knopjes en een vinkje-rondje per foto */
.is-selecting .rf-photo .rf-photo__info {
    display: none;
}

.is-selecting .rf-photo {
    cursor: pointer;
}

.is-selecting .rf-photo::after {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(17, 19, 17, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    color: transparent;
    content: "✓";
    font: 700 15px/1 var(--rf-body);
}

.is-selecting .rf-photo.is-selected {
    outline: 3px solid var(--rf-accent);
    outline-offset: -3px;
}

.is-selecting .rf-photo.is-selected .rf-photo__image {
    opacity: 0.8;
    transform: scale(0.97);
}

.is-selecting .rf-photo.is-selected::after {
    border-color: var(--rf-accent);
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

/* Actiebalk onderin */
.rf-select-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px clamp(16px, 4vw, 56px) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rf-line);
    background: var(--rf-header-bg);
    color: var(--rf-paper);
    backdrop-filter: blur(12px);
}

.rf-select-bar[hidden] {
    display: none;
}

.rf-select-bar__count {
    font-size: 14px;
    font-weight: 600;
}

.rf-select-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rf-select-share {
    position: relative;
}

.rf-select-bar__share,
.rf-select-bar__done {
    min-height: 42px;
    border: 1px solid var(--rf-accent);
    border-radius: 999px;
    padding: 8px 18px;
    font: 600 14px var(--rf-body);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.rf-select-bar__share {
    background: var(--rf-accent);
    color: var(--rf-accent-ink);
}

.rf-select-bar__share:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rf-select-bar__done {
    border-color: var(--rf-line);
    background: transparent;
    color: var(--rf-paper);
}

/* Deelmenu klapt omhoog open vanuit de balk */
.rf-select-share__menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
}

/* Ruimte onderaan zodat de balk geen foto's afdekt */
.is-selecting .rf-photo-grid {
    padding-bottom: 110px;
}

/* ===================================================================
   Homepage-hero: persoonlijke intro + ruimere, mooiere foto (desktop)
   =================================================================== */
.rf-hero__intro {
    max-width: 520px;
    margin: 26px 0 30px;
    color: var(--rf-muted);
    font-size: 16px;
    line-height: 1.7;
}

.rf-hero__intro p {
    margin: 0 0 14px;
}

.rf-hero__intro a {
    color: var(--rf-paper);
    text-decoration-color: var(--rf-accent);
    text-underline-offset: 3px;
}

.rf-hero__intro a:hover {
    color: var(--rf-accent);
}

.rf-hero__signature {
    margin-top: 20px;
    color: var(--rf-muted);
}

.rf-hero__signature span {
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 30px;
    line-height: 1.2;
}

@media (min-width: 751px) {
    .rf-hero {
        min-height: min(860px, calc(100svh - 82px));
        grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
        border-bottom: 0;
    }

    .rf-hero__copy {
        padding: 56px clamp(24px, 5vw, 80px);
    }

    /* Foto met witruimte eromheen en zachte hoeken */
    .rf-hero .rf-feature {
        /* Rondom overal dezelfde ruimte */
        margin: 24px;
        border-radius: 6px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    }

    .rf-feature__image,
    .rf-feature__placeholder {
        min-height: 100%;
    }

    .rf-feature__caption {
        right: 40px;
        bottom: 40px;
        left: 40px;
    }

    .rf-feature__title {
        font-size: 36px;
    }
}

/* Zachte overvloeier tussen de albums i.p.v. hard wisselen */
.rf-feature__slide {
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms ease, visibility 0s linear 0s;
}

.rf-feature__slide[hidden] {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 0s linear 900ms;
}

/* Langzame zoom op de actieve foto */
@media (prefers-reduced-motion: no-preference) {
    .rf-feature__slide.is-active .rf-feature__image {
        animation: rf-hero-zoom 7s ease-out both;
    }
}

@keyframes rf-hero-zoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* Mobiel: geen eerste foto, intro direct onder de kop */
@media (max-width: 750px) {
    .rf-hero .rf-feature {
        display: none;
    }

    .rf-hero__copy {
        padding-bottom: 6px;
    }

    .rf-hero__intro {
        margin: 16px 0 6px;
        font-size: 15px;
    }

    .rf-hero__signature span {
        font-size: 26px;
    }
}

/* Desktop: bredere tekstkolom en introtekst */
@media (min-width: 751px) {
    .rf-hero {
        grid-template-columns: minmax(420px, 1fr) minmax(0, 1.05fr);
    }

    .rf-hero__intro {
        max-width: 640px;
    }
}

/* ===== Albumkaarten als "album": kader om de hele kaart + gestapelde bladen erachter ===== */
.rf-album {
    position: relative;
    isolation: isolate;
    padding: 12px 12px 16px;
    border: 1px solid var(--rf-line);
    border-radius: 6px;
    background: var(--rf-panel);
    transition: border-color 180ms ease, transform 180ms ease;
}

/* Twee bladen achter de kaart, iets verschoven: leest als een stapel foto's */
.rf-album::before,
.rf-album::after {
    position: absolute;
    z-index: -1;
    border: 1px solid var(--rf-line);
    border-radius: 6px;
    background: var(--rf-panel);
    content: "";
    transition: transform 220ms ease;
}

.rf-album::before {
    inset: 6px -6px -6px 6px;
    opacity: 0.75;
}

.rf-album::after {
    inset: 12px -12px -12px 12px;
    opacity: 0.45;
}

.rf-album:hover,
.rf-album:focus-visible {
    border-color: var(--rf-accent);
}

@media (prefers-reduced-motion: no-preference) {
    .rf-album:hover::before {
        transform: translate(2px, 2px);
    }

    .rf-album:hover::after {
        transform: translate(4px, 4px);
    }
}

/* Foto binnen de kaart: geen eigen kader meer nodig */
.rf-album .rf-album__visual,
.rf-album:hover .rf-album__visual {
    border: 0;
    border-radius: 3px;
}

.rf-album .rf-album__title {
    margin-top: 12px;
}

/* Ruimte voor de uitstekende bladen */
.rf-album-grid {
    column-gap: 36px;
    row-gap: 48px;
    padding-right: 12px;
}

@media (max-width: 750px) {
    .rf-album-grid {
        row-gap: 36px;
    }
}

/* Wisselende albumfoto's: rustiger overvloeien */
.rf-album__image--next {
    transition: opacity 1500ms ease, transform 350ms ease;
}

/* Album-kader rustiger: één subtiel blad erachter, geen dubbele stapel, geen gekleurde rand */
.rf-album {
    padding: 10px 10px 14px;
    border-color: color-mix(in srgb, var(--rf-line) 70%, transparent);
}

.rf-album::after {
    display: none;
}

.rf-album::before {
    inset: 5px -5px -5px 5px;
    opacity: 0.5;
}

.rf-album:hover,
.rf-album:focus-visible {
    border-color: var(--rf-line);
}

.rf-album-grid {
    column-gap: 28px;
    padding-right: 6px;
}

/* ===== Albumkaarten in polaroid-stijl (vervangt kader + stapel) ===== */
.rf-album {
    padding: 10px 10px 18px;
    border: 0;
    border-radius: 2px;
    /* Vaste "fotopapier"-kleur, in beide thema's gelijk */
    background: #fbf9f4;
    color: #1b1d19;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 10px 26px rgba(0, 0, 0, 0.22);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.rf-album::before,
.rf-album::after {
    display: none;
}

.rf-album:hover,
.rf-album:focus-visible {
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 16px 34px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    .rf-album:hover {
        transform: translateY(-3px) rotate(-0.4deg);
    }
}

.rf-album .rf-album__visual {
    border-radius: 0;
}

.rf-album .rf-album__title {
    margin-top: 14px;
    padding: 0 4px;
    color: #1b1d19;
}

.rf-album .rf-album__meta,
.rf-album .rf-album__description {
    padding: 0 4px;
    color: #5d625a;
}

.rf-album-grid {
    column-gap: 28px;
    row-gap: 40px;
    padding-right: 0;
}

/* Lichte modus: iets donkerdere schaduw zodat de polaroid loskomt van de lichte achtergrond */
:root[data-theme="light"] .rf-album {
    box-shadow: 0 1px 2px rgba(27, 29, 25, 0.12), 0 8px 22px rgba(27, 29, 25, 0.12);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .rf-album {
        box-shadow: 0 1px 2px rgba(27, 29, 25, 0.12), 0 8px 22px rgba(27, 29, 25, 0.12);
    }
}

/* Polaroid volgt het thema: licht papier in lichte modus, donker papier in donkere modus */
:root {
    --rf-polaroid: #23261f;
    --rf-polaroid-ink: #f2f0e8;
    --rf-polaroid-muted: #a9aea4;
}

:root[data-theme="light"] {
    --rf-polaroid: #fbf9f4;
    --rf-polaroid-ink: #1b1d19;
    --rf-polaroid-muted: #5d625a;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --rf-polaroid: #fbf9f4;
        --rf-polaroid-ink: #1b1d19;
        --rf-polaroid-muted: #5d625a;
    }
}

.rf-album {
    background: var(--rf-polaroid);
    color: var(--rf-polaroid-ink);
}

.rf-album .rf-album__title {
    color: var(--rf-polaroid-ink);
}

.rf-album .rf-album__meta,
.rf-album .rf-album__description {
    color: var(--rf-polaroid-muted);
}

/* Lichte modus: dunne grijze rand om de polaroid */
:root[data-theme="light"] .rf-album,
:root[data-theme="light"] .rf-album:hover {
    border: 1px solid #d6d2ca;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .rf-album,
    :root:not([data-theme]) .rf-album:hover {
        border: 1px solid #d6d2ca;
    }
}

/* Footer: alleen copyright, gecentreerd */
.rf-footer,
html body .rf-footer {
    display: flex;
    justify-content: center;
    text-align: center;
}

.rf-footer p {
    padding-top: 0;
    border-top: 0;
}

/* Instagram in de header, naast de licht/donker-knop */
.rf-header-instagram {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: var(--rf-paper);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.rf-header-instagram svg {
    width: 19px;
    height: 19px;
}

.rf-header-instagram:hover,
.rf-header-instagram:focus-visible {
    color: var(--rf-accent);
}

/* Licht/donker-knop direct naast Instagram */
.rf-site-header .rf-theme-toggle {
    margin-left: 4px;
}

@media (max-width: 750px) {
    .rf-header-instagram {
        order: 1;
        width: 44px;
        height: 44px;
        justify-content: center;
        margin-left: auto;
    }

    .rf-header-instagram svg {
        width: 21px;
        height: 21px;
    }

    .rf-header-instagram__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .rf-site-header .rf-theme-toggle {
        margin-left: -8px;
    }
}

/* Desktop: menu in het midden houden, Instagram + kleurmodus rechts */
@media (min-width: 751px) {
    .rf-site-header .main_menu {
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
    }

    .rf-header-instagram {
        margin-left: 0;
    }
}

/* Wie ben ik?: leesbare tekst, opening en handtekening */
.page-id-19 .rf-page__content {
    font-size: 17px;
    line-height: 1.75;
}

.page-id-19 .rf-page__content p {
    margin: 0 0 18px;
}

.rf-about-lead {
    color: var(--rf-paper);
    font-family: var(--rf-display);
    font-size: 28px;
    line-height: 1.2;
}

.rf-about-lead strong {
    font-weight: 400;
}

.page-id-19 .rf-page__content strong {
    color: var(--rf-paper);
}

.rf-about-signature {
    color: var(--rf-paper);
}

.page-id-19 .wp-block-image {
    max-width: 420px;
    margin-top: 32px;
}

.page-id-19 .wp-block-image img {
    border-radius: 4px;
}
