/*
Theme Name: Rødovre Kunst
Theme URI: https://xn--rdovrekunstforening-v7b.dk/
Author: Rødovre Kunst- og Kulturforening
Description: Selvstændigt theme til Rødovre Kunst- og Kulturforening.
Version: 1.2.8
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: roedovre-kunst
*/

/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
    --rk-bg: #f2f0eb;
    --rk-paper: #faf9f6;
    --rk-white: #ffffff;
    --rk-ink: #171717;
    --rk-soft-ink: #494844;
    --rk-muted: #77736d;
    --rk-line: #ddd8d0;

    --rk-accent: #b6254c;
    --rk-accent-dark: #8e1939;
    --rk-dark: #151515;

    --rk-max: 1240px;
    --rk-reading: 780px;

    --rk-radius-sm: 12px;
    --rk-radius: 20px;
    --rk-radius-lg: 30px;

    --rk-shadow:
        0 18px 60px rgba(24, 20, 16, .07);
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--rk-bg);
    color: var(--rk-ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: var(--rk-accent);
    color: #fff;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid rgba(182, 37, 76, .35);
    outline-offset: 4px;
}


/* =========================================================
   LAYOUT
========================================================= */

.rk-container {
    width: min(
        var(--rk-max),
        calc(100% - 48px)
    );
    margin-inline: auto;
}

.rk-main {
    min-height: 60vh;
    padding: 64px 0 96px;
}

.rk-front {
    padding-top: 48px;
}

.rk-entry {
    width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.rk-site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(250, 249, 246, .94);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.rk-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.rk-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    color: var(--rk-ink);
    text-decoration: none;
}

.rk-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--rk-dark);
    color: #fff;
    border-radius: 50%;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 18px;
    letter-spacing: -.04em;
}

.rk-brand-text {
    max-width: 190px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.01em;
}

.rk-desktop-nav {
    margin-left: auto;
}

.rk-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rk-menu > li {
    position: relative;
}

.rk-menu a {
    display: block;
    padding: 12px 11px;
    color: var(--rk-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    border-radius: 9px;
    transition:
        background .15s ease,
        color .15s ease;
}

.rk-menu > li > a:hover,
.rk-menu > .current-menu-item > a,
.rk-menu > .current-menu-ancestor > a {
    background: rgba(0, 0, 0, .045);
    color: var(--rk-accent);
}


/* Dropdown */

.rk-menu .sub-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;

    width: 235px;
    margin: 0;
    padding: 8px;

    list-style: none;

    background: var(--rk-white);
    border: 1px solid var(--rk-line);
    border-radius: 14px;
    box-shadow: var(--rk-shadow);

    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);

    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;
}

.rk-menu li:hover > .sub-menu,
.rk-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rk-menu .sub-menu a {
    padding: 11px 12px;
}


/* CTA */

.rk-header-cta {
    flex: 0 0 auto;
    padding: 11px 19px;

    background: var(--rk-accent);
    color: #fff;

    border-radius: 999px;
    text-decoration: none;

    font-size: 14px;
    font-weight: 750;

    transition:
        background .15s ease,
        transform .15s ease;
}

.rk-header-cta:hover {
    background: var(--rk-accent-dark);
    transform: translateY(-1px);
}


/* Mobile toggle */

.rk-menu-toggle {
    display: none;
    margin-left: auto;

    width: 46px;
    height: 46px;

    padding: 0;
    border: 1px solid var(--rk-line);
    border-radius: 50%;

    background: transparent;
    color: var(--rk-ink);

    cursor: pointer;
}

.rk-menu-toggle-lines,
.rk-menu-toggle-lines::before,
.rk-menu-toggle-lines::after {
    display: block;
    width: 19px;
    height: 2px;
    margin: auto;

    background: currentColor;

    content: "";
    transition: transform .2s ease;
}

.rk-menu-toggle-lines {
    position: relative;
}

.rk-menu-toggle-lines::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.rk-menu-toggle-lines::after {
    position: absolute;
    top: 6px;
    left: 0;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--rk-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.rk-entry h1 {
    font-size: clamp(44px, 6vw, 78px);
}

.rk-entry h2 {
    margin-top: 1.2em;
    margin-bottom: .5em;
    font-size: clamp(34px, 4.5vw, 54px);
}

.rk-entry h3 {
    font-size: clamp(25px, 3vw, 34px);
}

.rk-entry p {
    margin-top: 0;
    margin-bottom: 1.35em;
}

.rk-entry > p,
.rk-entry > ul,
.rk-entry > ol {
    max-width: var(--rk-reading);
}


/* =========================================================
   GENERIC PAGE HEADER
========================================================= */

.rk-page-head {
    margin-bottom: 52px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--rk-line);
}

.rk-page-eyebrow {
    margin: 0 0 13px;

    color: var(--rk-accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rk-page-title {
    max-width: 900px;
    margin: 0;

    font-size: clamp(46px, 6vw, 76px);
}


/* =========================================================
   FRONT PAGE
========================================================= */

.home .rk-main {
    overflow: hidden;
}

.rk-hero-card {
    position: relative;

    margin-bottom: 94px;
    padding: clamp(34px, 5vw, 72px);

    background: var(--rk-paper);
    border-radius: var(--rk-radius-lg);
    box-shadow: var(--rk-shadow);
}

.rk-hero-card::before {
    position: absolute;
    top: 0;
    right: 11%;

    width: 130px;
    height: 5px;

    background: var(--rk-accent);

    content: "";
}

.rk-hero-card .wp-block-columns {
    gap: clamp(42px, 7vw, 92px);
}

.rk-kicker {
    margin: 0 0 15px !important;

    color: var(--rk-accent);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.rk-display {
    max-width: 720px;
    margin: 0 0 26px !important;

    font-size: clamp(50px, 7vw, 88px) !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;
}

.rk-lead {
    max-width: 670px;

    color: var(--rk-soft-ink);

    font-size: clamp(20px, 2.3vw, 25px);
    line-height: 1.5;
}

.rk-hero-card .wp-block-image img {
    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 22px;
}


/* =========================================================
   SECTIONS
========================================================= */

.rk-section {
    margin-bottom: 100px;
}

.rk-section > h2 {
    max-width: 820px;
    margin-top: 0;
}

.rk-page-intro {
    max-width: 820px;
    margin-bottom: 54px;
}

.rk-card-grid {
    gap: 24px !important;
    align-items: stretch !important;
}

.rk-card-grid > .wp-block-column {
    display: flex;
}

.rk-card {
    width: 100%;
    padding: 30px;

    background: var(--rk-paper);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.rk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rk-shadow);
}

.rk-card h3 {
    margin-top: 0 !important;
}


/* =========================================================
   BLOCK COLUMNS
========================================================= */

.wp-block-columns {
    gap: clamp(30px, 5vw, 70px);
}

.wp-block-column {
    min-width: 0;
}


/* =========================================================
   IMAGES & GALLERIES
========================================================= */

.rk-entry .wp-block-image img,
.rk-entry .wp-block-gallery img {
    border-radius: 16px;
}

.rk-entry figcaption {
    margin-top: 9px;

    color: var(--rk-muted);

    font-size: 13px;
    line-height: 1.45;
}

.wp-block-gallery {
    gap: 18px !important;
}

.wp-block-gallery .wp-block-image {
    overflow: hidden;
    border-radius: 16px;
}

.wp-block-gallery img {
    transition: transform .3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.025);
}

.rk-preview-gallery {
    margin: 32px 0;
}

.rk-preview-gallery .wp-block-image {
    aspect-ratio: 1 / 1;
}

.rk-preview-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}


/* =========================================================
   BUTTONS
========================================================= */

.wp-block-buttons {
    gap: 12px;
}

.wp-block-button__link,
button,
input[type="submit"] {
    padding: 13px 23px !important;

    background: var(--rk-accent) !important;
    color: #fff !important;

    border: 1px solid var(--rk-accent) !important;
    border-radius: 999px !important;

    font-weight: 750 !important;
    text-decoration: none !important;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--rk-accent-dark) !important;
    border-color: var(--rk-accent-dark) !important;
    transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border-color: var(--rk-ink) !important;
    color: var(--rk-ink) !important;
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--rk-ink) !important;
    color: #fff !important;
}


/* =========================================================
   LINKS
========================================================= */

.rk-entry a:not(.wp-block-button__link) {
    color: var(--rk-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rk-entry a:not(.wp-block-button__link):hover {
    color: var(--rk-accent-dark);
}


/* =========================================================
   POST QUERY / OPLEVELSER
========================================================= */

.wp-block-post-template {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    padding: 0;
    list-style: none;
}

.wp-block-post-template > li {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: var(--rk-paper);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);
}

.wp-block-post-template .wp-block-post-featured-image {
    margin: 0;
}

.wp-block-post-template .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: 0;
}

.wp-block-post-template .wp-block-post-title,
.wp-block-post-template .wp-block-post-date,
.wp-block-post-template .wp-block-post-excerpt {
    margin-left: 24px;
    margin-right: 24px;
}

.wp-block-post-template .wp-block-post-title {
    margin-top: 25px;
    margin-bottom: 12px;

    font-size: 27px;
}

.wp-block-post-template .wp-block-post-title a {
    color: var(--rk-ink);
    text-decoration: none;
}

.wp-block-post-template .wp-block-post-title a:hover {
    color: var(--rk-accent);
}

.wp-block-post-template .wp-block-post-date {
    order: -1;
    margin-top: 23px;

    color: var(--rk-accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wp-block-post-template .wp-block-post-excerpt {
    margin-bottom: 24px;

    color: var(--rk-soft-ink);

    font-size: 15px;
}


/* =========================================================
   SINGLE POSTS
========================================================= */

.rk-article {
    max-width: 920px;
    margin-inline: auto;
}

.rk-article-meta {
    margin-bottom: 15px;

    color: var(--rk-accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rk-article-title {
    margin: 0 0 42px;

    font-size: clamp(46px, 6vw, 76px);
}

.rk-article-image {
    margin-bottom: 50px;
}

.rk-article-image img {
    width: 100%;
    max-height: 680px;

    object-fit: cover;

    border-radius: 24px;
}

.rk-article .rk-entry {
    max-width: var(--rk-reading);
    margin-inline: auto;
}


/* =========================================================
   WP FORMS
========================================================= */

.wpforms-container {
    max-width: 760px !important;

    padding: clamp(24px, 4vw, 38px) !important;

    background: var(--rk-paper);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);
}

.wpforms-container label {
    color: var(--rk-ink) !important;
    font-weight: 700 !important;
}

.wpforms-container input:not([type="checkbox"]):not([type="radio"]),
.wpforms-container textarea,
.wpforms-container select {
    min-height: 50px !important;

    padding: 12px 14px !important;

    background: #fff !important;
    border: 1px solid #cbc5bc !important;
    border-radius: 10px !important;

    color: var(--rk-ink) !important;

    box-shadow: none !important;
}

.wpforms-container textarea {
    min-height: 140px !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
    border-color: var(--rk-accent) !important;
    box-shadow:
        0 0 0 3px rgba(182, 37, 76, .11)
        !important;
}


/* =========================================================
   CTA
========================================================= */

.rk-cta {
    margin-top: 90px;
    padding: clamp(38px, 6vw, 72px);

    background: var(--rk-dark);
    color: #fff;

    border-radius: var(--rk-radius-lg);
}

.rk-cta h2,
.rk-cta h3,
.rk-cta p {
    color: #fff !important;
}

.rk-cta .is-style-outline .wp-block-button__link {
    border-color: rgba(255, 255, 255, .65) !important;
    color: #fff !important;
}


/* =========================================================
   FOOTER
========================================================= */

.rk-footer {
    padding: 74px 0 30px;

    background: var(--rk-dark);
    color: rgba(255, 255, 255, .72);
}

.rk-footer-top {
    display: grid;
    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 60px;
}

.rk-footer-brand {
    max-width: 560px;
}

.rk-footer-kicker {
    margin-bottom: 14px;

    color: rgba(255, 255, 255, .5);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rk-footer-title {
    margin: 0;

    color: #fff;

    font-size: clamp(34px, 4vw, 50px);
}

.rk-footer h3 {
    margin-top: 0;

    color: #fff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rk-footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.rk-footer-links li + li {
    margin-top: 9px;
}

.rk-footer a {
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
}

.rk-footer a:hover {
    color: #fff;
}

.rk-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 24px;

    border-top: 1px solid rgba(255, 255, 255, .11);

    color: rgba(255, 255, 255, .45);

    font-size: 13px;
}


/* =========================================================
   404
========================================================= */

.rk-empty {
    max-width: 700px;
    padding: 80px 0;
}

.rk-empty h1 {
    font-size: clamp(52px, 8vw, 94px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {

    .rk-desktop-nav,
    .rk-header-cta {
        display: none;
    }

    .rk-menu-toggle {
        display: block;
    }

    .rk-site-header.menu-open .rk-desktop-nav {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;

        display: block;

        max-height: calc(100vh - 82px);
        overflow: auto;

        padding: 18px 24px 30px;

        background: var(--rk-paper);
        border-bottom: 1px solid var(--rk-line);
    }

    .rk-menu {
        display: block;
    }

    .rk-menu a {
        padding: 13px 5px;

        font-size: 17px;
    }

    .rk-menu .sub-menu {
        position: static;

        width: auto;

        margin-left: 17px;
        padding: 0;

        background: transparent;
        border: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .rk-menu .sub-menu a {
        padding: 9px 5px;

        color: var(--rk-muted);

        font-size: 15px;
    }

    .wp-block-post-template {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .rk-footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .rk-footer-brand {
        grid-column: 1 / -1;
    }
}


@media (max-width: 780px) {

    body {
        font-size: 16px;
    }

    .rk-container {
        width: min(
            var(--rk-max),
            calc(100% - 28px)
        );
    }

    .rk-header-inner {
        min-height: 72px;
    }

    .rk-brand-mark {
        width: 40px;
        height: 40px;
    }

    .rk-brand-text {
        font-size: 12px;
    }

    .rk-site-header.menu-open .rk-desktop-nav {
        top: 72px;
    }

    .rk-main {
        padding-top: 36px;
        padding-bottom: 70px;
    }

    .rk-front {
        padding-top: 20px;
    }

    .rk-page-head {
        margin-bottom: 38px;
    }

    .rk-page-title {
        font-size: 48px;
    }

    .rk-hero-card {
        margin-bottom: 66px;
        padding: 25px;

        border-radius: 20px;
    }

    .rk-display {
        font-size: 48px !important;
    }

    .rk-hero-card .wp-block-columns {
        gap: 30px;
    }

    .rk-hero-card .wp-block-image img {
        aspect-ratio: 4 / 3;
    }

    .rk-section {
        margin-bottom: 70px;
    }

    .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .rk-card {
        padding: 24px;
    }

    .rk-cta {
        margin-top: 60px;
        padding: 30px 24px;

        border-radius: 20px;
    }

    .rk-footer {
        padding-top: 55px;
    }

    .rk-footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rk-footer-brand {
        grid-column: auto;
    }

    .rk-footer-bottom {
        display: block;
    }

    .rk-footer-bottom > * + * {
        margin-top: 8px;
    }
}


@media (max-width: 520px) {

    .rk-brand-text {
        max-width: 145px;
    }

    .rk-display {
        font-size: 42px !important;
    }

    .rk-page-title {
        font-size: 43px;
    }

    .wp-block-buttons {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .wp-block-button,
    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================
   DESIGN PASS 2
========================================================= */


/* ---------------------------------------------------------
   Header polish
--------------------------------------------------------- */

.rk-site-header {
    box-shadow:
        0 1px 0 rgba(0,0,0,.03),
        0 8px 35px rgba(0,0,0,.035);
}

.rk-brand-mark {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #191919 0%,
            #2b2927 100%
        );
}

.rk-brand-mark::after {
    position: absolute;
    width: 18px;
    height: 45px;

    top: -9px;
    right: -6px;

    background: var(--rk-accent);

    content: "";
    transform: rotate(28deg);
}

.rk-brand-mark {
    isolation: isolate;
}

.rk-brand-mark::after {
    z-index: -1;
}

@media (min-width: 1081px) {

    /*
     * "Bliv medlem" findes som header CTA.
     * Menupunktet bevares til mobil.
     */

    .rk-desktop-nav .menu-item-87 {
        display: none;
    }
}


/* ---------------------------------------------------------
   Front page polish
--------------------------------------------------------- */

.home .rk-hero-card {
    min-height: 610px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 3% 0%,
            rgba(182,37,76,.08),
            transparent 32%
        ),
        var(--rk-paper);
}

.home .rk-hero-card::after {
    position: absolute;

    bottom: -62px;
    left: -60px;

    width: 170px;
    height: 170px;

    border: 1px solid rgba(182,37,76,.18);
    border-radius: 50%;

    content: "";
    pointer-events: none;
}

.home .rk-hero-card .wp-block-image {
    position: relative;
}

.home .rk-hero-card .wp-block-image::before {
    position: absolute;

    top: -18px;
    left: -18px;

    width: 72%;
    height: 72%;

    border: 1px solid rgba(0,0,0,.12);
    border-radius: 22px;

    content: "";

    transform: rotate(-2deg);
    pointer-events: none;
}

.home .rk-hero-card .wp-block-image img {
    position: relative;
    z-index: 2;

    box-shadow:
        0 25px 70px rgba(20,16,14,.17);
}

.home .rk-section {
    position: relative;
}

.home .rk-section:nth-of-type(even) {
    padding-top: 18px;
}

.home .rk-card {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home .rk-card h3 {
    font-size: 29px;
}

.home .rk-art-section {
    padding:
        clamp(32px,5vw,62px);

    background: #e9e5de;
    border-radius: 30px;
}

.home .rk-preview-gallery img {
    filter: saturate(.92);
}


/* ---------------------------------------------------------
   Generic page polish
--------------------------------------------------------- */

.rk-page-head {
    position: relative;

    max-width: 980px;

    padding-top: 34px;
    padding-bottom: 44px;
}

.rk-page-head::before {
    position: absolute;

    top: 0;
    left: 0;

    width: 54px;
    height: 4px;

    background: var(--rk-accent);

    content: "";
}

.rk-page-title {
    text-wrap: balance;
}

.rk-entry > .wp-block-group:first-child {
    margin-top: 0;
}


/* ---------------------------------------------------------
   Contact
--------------------------------------------------------- */

.rk-contact-intro,
.rk-membership-intro,
.rk-events-intro {
    max-width: 840px;
    margin-bottom: 56px;
}

.rk-contact-intro h2,
.rk-membership-intro h2,
.rk-events-intro h2 {
    margin-top: 0;
}

.rk-contact-grid {
    align-items: stretch !important;
}

.rk-contact-grid > .wp-block-column:first-child {
    display: grid;
    gap: 22px;
}

.rk-contact-card {
    position: relative;

    padding: clamp(26px,4vw,38px);

    background: var(--rk-paper);

    border: 1px solid var(--rk-line);
    border-radius: 20px;
}

.rk-contact-card:first-child {
    border-top:
        4px solid var(--rk-accent);
}

.rk-contact-card h3 {
    margin:
        5px 0 15px !important;

    font-size: 31px;
}

.rk-contact-label {
    margin: 0 !important;

    color: var(--rk-accent);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.rk-contact-link {
    margin:
        24px 0 0 !important;

    font-size:
        clamp(18px,2vw,22px);
    font-weight: 750;
}

.rk-contact-link a {
    text-decoration: none !important;
}

.rk-contact-image {
    height: 100%;
}

.rk-contact-image img {
    width: 100%;
    height: 100%;

    min-height: 620px;

    object-fit: cover;

    border-radius: 24px !important;
}


/* ---------------------------------------------------------
   Membership
--------------------------------------------------------- */

.rk-membership-grid {
    align-items: flex-start !important;
}

.rk-form-panel {
    padding:
        clamp(27px,4vw,46px);

    background: var(--rk-paper);

    border:
        1px solid var(--rk-line);

    border-radius: 24px;
}

.rk-form-panel > h3 {
    margin-top: 0 !important;

    font-size: 36px;
}

.rk-form-panel .wpforms-container {
    margin:
        30px 0 0 !important;

    padding:
        0 !important;

    background: transparent;

    border: 0;

    max-width: none !important;
}

.rk-form-panel
.wpforms-container
.wpforms-field {
    padding:
        10px 0 !important;
}

.rk-form-panel
.wpforms-container
.wpforms-submit-container {
    padding-top:
        22px !important;
}

.rk-membership-card {
    padding:
        clamp(28px,4vw,40px);

    background: var(--rk-dark);
    color: rgba(255,255,255,.78);

    border-radius: 24px;
}

.rk-membership-card h3,
.rk-membership-card h4,
.rk-membership-card p {
    color: inherit !important;
}

.rk-membership-card h4 {
    color: #fff !important;

    font-family: inherit;
    font-size: 15px;

    letter-spacing: 0;
}

.rk-membership-card
.rk-contact-label {
    color: #d9718e !important;
}

.rk-membership-price {
    margin:
        5px 0 22px !important;

    color: #fff !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(60px,7vw,88px);

    line-height: 1;
    letter-spacing: -.05em;
}

.rk-membership-price span {
    font-family: inherit;
    font-size: .35em;
    letter-spacing: 0;
}

.rk-membership-card
.wp-block-separator {
    margin:
        28px 0;

    border-color:
        rgba(255,255,255,.14);
}

.rk-membership-card
.rk-contact-link a {
    color: #fff !important;
}

.rk-bank-details {
    margin-top: 22px;

    padding: 20px;

    background:
        rgba(255,255,255,.07);

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 14px;
}

.rk-bank-details p:last-child {
    margin-bottom: 0;
}

.rk-membership-image {
    margin-top: 24px;
}

.rk-membership-image img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}


/* ---------------------------------------------------------
   Events
--------------------------------------------------------- */

.rk-events-query
.wp-block-post-template {
    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 26px;
}

.rk-events-query
.wp-block-post-template > li {
    background:
        var(--rk-paper);

    border:
        1px solid var(--rk-line);

    border-radius:
        20px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.035);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.rk-events-query
.wp-block-post-template > li:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.075);
}

.rk-events-query
.wp-block-post-featured-image {
    margin: 0;
}

.rk-events-query
.wp-block-post-featured-image img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius:
        19px 19px 0 0;
}

.rk-event-body {
    padding:
        25px 25px 28px;
}

.rk-event-body
.wp-block-post-date {
    margin:
        0 0 10px !important;

    color: var(--rk-accent);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rk-event-body
.wp-block-post-title {
    margin:
        0 0 16px !important;

    font-size:
        clamp(24px,2.3vw,30px);
}

.rk-event-body
.wp-block-post-excerpt {
    margin: 0 !important;

    color: var(--rk-soft-ink);

    font-size: 15px;
    line-height: 1.65;
}

.rk-event-body
.wp-block-post-excerpt__more-link {
    display: inline-block;

    margin-top: 13px;

    color: var(--rk-accent);

    font-weight: 750;

    text-decoration: none;
}

.rk-events-query
.wp-block-query-pagination {
    margin-top: 54px;
}

.rk-events-query
.wp-block-query-pagination a,
.rk-events-query
.wp-block-query-pagination span {
    padding:
        8px 13px;

    text-decoration: none;
}


/* ---------------------------------------------------------
   Footer polish
--------------------------------------------------------- */

.rk-footer {
    position: relative;
    overflow: hidden;
}

.rk-footer::before {
    position: absolute;

    width: 350px;
    height: 350px;

    right: -170px;
    bottom: -190px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 50%;

    content: "";
}

.rk-footer::after {
    position: absolute;

    width: 160px;
    height: 160px;

    right: 10px;
    bottom: -70px;

    border:
        1px solid rgba(182,37,76,.45);

    border-radius: 50%;

    content: "";
}

.rk-footer > .rk-container {
    position: relative;
    z-index: 2;
}


/* ---------------------------------------------------------
   Responsive pass 2
--------------------------------------------------------- */

@media (max-width: 1080px) {

    .rk-events-query
    .wp-block-post-template {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .rk-contact-image img {
        min-height: 520px;
    }
}


@media (max-width: 780px) {

    .home .rk-hero-card {
        min-height: 0;
    }

    .home
    .rk-hero-card
    .wp-block-image::before {
        display: none;
    }

    .rk-contact-intro,
    .rk-membership-intro,
    .rk-events-intro {
        margin-bottom: 38px;
    }

    .rk-contact-image img {
        min-height: 0;

        aspect-ratio:
            4 / 3;
    }

    .rk-events-query
    .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .rk-form-panel {
        padding: 23px;
    }

    .rk-membership-card {
        padding: 27px 23px;
    }
}


/* =========================================================
   RK_FIXED_HEADER
========================================================= */

:root {
    --rk-header-height: 88px;
}

body {
    padding-top: var(--rk-header-height);
}

.rk-site-header {
    position: fixed !important;

    top: 0;
    right: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    transform: none !important;
    translate: none !important;

    margin: 0 !important;

    will-change: auto;
}

body.admin-bar .rk-site-header {
    top: 32px;
}

@media (max-width: 782px) {

    body.admin-bar .rk-site-header {
        top: 46px;
    }
}


/* =========================================================
   DESIGN PASS 3 — ART & GALLERIES
========================================================= */


/* ---------------------------------------------------------
   Art hub
--------------------------------------------------------- */

.rk-art-hub-intro {
    max-width: 850px;
    margin-bottom: 56px;
}

.rk-art-hub-intro h2 {
    margin-top: 0;
}

.rk-art-mosaic {
    display: grid;

    grid-template-columns:
        1.55fr 1fr;

    grid-template-rows:
        repeat(2, minmax(240px, 1fr));

    gap: 18px;

    margin:
        0 0 72px;

    min-height: 680px;
}

.rk-art-mosaic figure {
    position: relative;

    height: 100%;
    min-height: 0;

    overflow: hidden;

    border-radius: 22px;

    background: #ddd8d0;
}

.rk-art-mosaic-main {
    grid-row: 1 / 3;
}

.rk-art-mosaic img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 0 !important;

    transition:
        transform .4s cubic-bezier(.2,.7,.2,1),
        filter .4s ease;
}

.rk-art-mosaic figure:hover img {
    transform: scale(1.025);

    filter:
        saturate(1.04)
        contrast(1.015);
}

.rk-art-mosaic figcaption {
    position: absolute;

    right: 16px;
    bottom: 16px;
    left: 16px;

    z-index: 2;

    width: fit-content;
    max-width: calc(100% - 32px);

    margin: 0 !important;
    padding:
        8px 12px;

    background:
        rgba(20,20,20,.72);

    color: #fff !important;

    border-radius: 999px;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    font-size: 12px !important;
    line-height: 1.3 !important;
}

.rk-art-mosaic figure::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.18),
            transparent 42%
        );

    pointer-events: none;

    content: "";
}


.rk-art-navigation {
    gap: 22px !important;
    align-items: stretch !important;
}

.rk-art-navigation >
.wp-block-column {
    display: flex;
}

.rk-art-nav-card {
    position: relative;

    width: 100%;
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding:
        clamp(30px,4vw,48px);

    overflow: hidden;

    border-radius: 24px;
}

.rk-art-nav-card h3 {
    margin:
        5px 0 17px !important;

    font-size:
        clamp(32px,4vw,47px);
}

.rk-art-nav-card p {
    max-width: 480px;
}

.rk-art-nav-card
.wp-block-buttons {
    margin-top: auto;
    padding-top: 25px;
}

.rk-art-nav-current {
    background:
        var(--rk-dark);

    color:
        rgba(255,255,255,.76);
}

.rk-art-nav-current h3 {
    color: #fff;
}

.rk-art-nav-current
.rk-kicker {
    color: #e787a0;
}

.rk-art-nav-archive {
    background:
        #e7e2da;

    border:
        1px solid #d7d0c6;
}


/* ---------------------------------------------------------
   Art pages
--------------------------------------------------------- */

.page-id-147 .rk-entry,
.page-id-148 .rk-entry {
    max-width: none;
}

.page-id-147
.rk-entry > p:first-of-type {
    max-width: 900px;

    color:
        var(--rk-soft-ink);

    font-size:
        clamp(18px,2vw,21px);

    line-height: 1.7;
}

.page-id-147
.wp-block-gallery,
.page-id-148
.wp-block-gallery {
    display: grid !important;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:
        28px 20px !important;

    margin-top: 48px;
}

.page-id-147
.wp-block-gallery
.wp-block-image,
.page-id-148
.wp-block-gallery
.wp-block-image {
    width: auto !important;

    display: block !important;

    overflow: visible;

    background: transparent;

    border-radius: 0;
}

.page-id-147
.wp-block-gallery img,
.page-id-148
.wp-block-gallery img {
    width: 100% !important;

    aspect-ratio: 4 / 5;

    display: block;

    object-fit: cover;

    border-radius: 16px !important;

    box-shadow:
        0 12px 35px rgba(25,20,18,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.page-id-147
.wp-block-gallery
.wp-block-image:hover img,
.page-id-148
.wp-block-gallery
.wp-block-image:hover img {
    transform:
        translateY(-4px);

    box-shadow:
        0 20px 45px rgba(25,20,18,.13);
}

.page-id-147
.wp-block-gallery figcaption,
.page-id-148
.wp-block-gallery figcaption {
    position: static !important;

    margin:
        12px 2px 0 !important;

    padding: 0 !important;

    background: transparent !important;

    color:
        var(--rk-soft-ink) !important;

    font-size:
        13px !important;

    line-height:
        1.5 !important;

    text-align: left;
}


/* ---------------------------------------------------------
   Front page stronger visual rhythm
--------------------------------------------------------- */

.home .rk-section {
    padding-top: 75px;

    border-top:
        1px solid var(--rk-line);
}

.home
.rk-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.home
.rk-section > .rk-kicker {
    margin-bottom:
        13px !important;
}

.home
.rk-section > h2 {
    margin-bottom:
        34px;
}

.home
.rk-art-section {
    border: 0;

    padding:
        clamp(38px,6vw,70px);

    box-shadow:
        inset 0 0 0 1px
        rgba(0,0,0,.035);
}

.home
.rk-art-section > h2 {
    font-size:
        clamp(42px,5vw,65px);
}


/* ---------------------------------------------------------
   Lightbox
--------------------------------------------------------- */

.rk-lightbox-image {
    cursor: zoom-in;
}

body.rk-lightbox-open {
    overflow: hidden;
}

.rk-lightbox {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: grid;
    place-items: center;

    padding:
        clamp(20px,5vw,60px);

    background:
        rgba(14,14,14,.94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.rk-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.rk-lightbox-stage {
    max-width:
        min(1200px, 94vw);

    max-height:
        90vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;
}

.rk-lightbox-stage img {
    max-width: 100%;
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 30px 100px rgba(0,0,0,.45);
}

.rk-lightbox-caption {
    max-width: 780px;

    color:
        rgba(255,255,255,.78);

    font-size: 14px;

    text-align: center;
}

.rk-lightbox-close {
    position: absolute;

    top: 20px;
    right: 24px;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    padding: 0 !important;

    background:
        rgba(255,255,255,.08) !important;

    border:
        1px solid
        rgba(255,255,255,.18) !important;

    border-radius:
        50% !important;

    color: #fff !important;

    font-size:
        30px !important;

    font-weight:
        300 !important;

    line-height: 1;

    cursor: pointer;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {

    .rk-art-mosaic {
        min-height: 560px;
    }

    .page-id-147
    .wp-block-gallery,
    .page-id-148
    .wp-block-gallery {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media (max-width: 680px) {

    .rk-art-mosaic {
        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            340px 220px;

        min-height: 0;

        gap: 12px;
    }

    .rk-art-mosaic-main {
        grid-column:
            1 / 3;

        grid-row:
            auto;
    }

    .rk-art-navigation {
        display: block;
    }

    .rk-art-navigation >
    .wp-block-column +
    .wp-block-column {
        margin-top: 16px;
    }

    .rk-art-nav-card {
        min-height: 280px;

        padding:
            27px 23px;
    }

    .page-id-147
    .wp-block-gallery,
    .page-id-148
    .wp-block-gallery {
        grid-template-columns:
            1fr;

        gap:
            34px !important;
    }

    .page-id-147
    .wp-block-gallery img,
    .page-id-148
    .wp-block-gallery img {
        aspect-ratio:
            auto;
    }

    .home .rk-section {
        padding-top:
            50px;
    }

    .rk-lightbox-close {
        top: 12px;
        right: 12px;
    }
}


/* =========================================================
   FINAL POLISH
========================================================= */

html {
    scroll-padding-top:
        calc(var(--rk-header-height) + 28px);
}

body {
    overflow-x: clip;
}

.rk-main {
    position: relative;
}


/* Header */

.rk-site-header {
    contain: layout style;
}

.rk-header-inner {
    width: min(
        var(--rk-max),
        calc(100% - 48px)
    );
}

.rk-menu > li > a {
    white-space: nowrap;
}

.rk-menu .sub-menu {
    z-index: 100;
}


/* Page rhythm */

.rk-entry > *:first-child {
    margin-top: 0;
}

.rk-entry > *:last-child {
    margin-bottom: 0;
}

.rk-entry h2,
.rk-entry h3,
.rk-entry h4 {
    text-wrap: balance;
}

.rk-entry p {
    text-wrap: pretty;
}


/* Better ordinary content pages */

.rk-entry > ul,
.rk-entry > ol {
    padding-left: 1.35em;
}

.rk-entry li + li {
    margin-top: .35em;
}

.rk-entry blockquote {
    max-width: 820px;

    margin:
        48px 0;

    padding:
        8px 0 8px 28px;

    border-left:
        4px solid var(--rk-accent);

    color:
        var(--rk-soft-ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(22px,3vw,31px);

    line-height: 1.45;
}


/* Images */

.rk-entry img {
    vertical-align: middle;
}

.rk-entry .wp-block-image {
    margin-top: 30px;
    margin-bottom: 30px;
}


/* Homepage */

.home .rk-display {
    text-wrap: balance;
}

.home .rk-lead {
    text-wrap: pretty;
}

.home .rk-hero-card {
    isolation: isolate;
}

.home .rk-card p:last-child {
    margin-bottom: 0;
}


/* Artwork */

.rk-art-mosaic {
    isolation: isolate;
}

.rk-art-nav-card {
    isolation: isolate;
}


/* Events */

.rk-events-query
.wp-block-post-template > li {
    overflow: hidden;
}

.rk-events-query
.wp-block-post-title a {
    color: var(--rk-ink) !important;
    text-decoration: none !important;
}

.rk-events-query
.wp-block-post-title a:hover {
    color: var(--rk-accent) !important;
}


/* Forms */

.wpforms-container
.wpforms-required-label {
    color:
        var(--rk-accent) !important;
}

.wpforms-container
.wpforms-error {
    color:
        #a4163a !important;
}

.wpforms-container
label.wpforms-error {
    margin-top: 7px !important;

    font-size:
        13px !important;
}

.wpforms-confirmation-container-full {
    padding:
        22px 25px !important;

    background:
        #eef5ec !important;

    border:
        1px solid #bfd2ba !important;

    border-radius:
        14px !important;

    color:
        #294425 !important;
}


/* Single experience */

.rk-article .rk-entry > .rk-card {
    max-width: var(--rk-reading);

    margin:
        42px auto;

    padding:
        28px;

    background:
        var(--rk-paper);

    border:
        1px solid var(--rk-line);

    border-radius:
        18px;
}


/* Footer */

.rk-footer-title {
    text-wrap: balance;
}

.rk-footer-links a {
    display: inline-block;

    padding:
        2px 0;
}

.rk-footer-links a:hover {
    transform:
        translateX(2px);
}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 1080px) {

    .rk-header-inner {
        width:
            min(
                var(--rk-max),
                calc(100% - 36px)
            );
    }

    .rk-site-header.menu-open
    .rk-desktop-nav {
        box-shadow:
            0 18px 35px
            rgba(0,0,0,.08);
    }
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 780px) {

    .rk-header-inner {
        width:
            calc(100% - 28px);
    }

    .rk-brand {
        min-width: 0;
    }

    .rk-brand-text {
        overflow: hidden;

        text-overflow: ellipsis;
    }

    .rk-menu-toggle {
        flex:
            0 0 46px;
    }

    .rk-page-head {
        padding-top:
            27px;

        padding-bottom:
            32px;

        margin-bottom:
            34px;
    }

    .rk-page-title {
        line-height:
            1.02;
    }

    .rk-main {
        padding-bottom:
            62px;
    }

    .rk-entry
    .wp-block-columns {
        gap:
            25px;
    }

    .rk-entry
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        margin-bottom:
            0;
    }

    .rk-contact-card {
        padding:
            24px 21px;
    }

    .rk-contact-link {
        overflow-wrap:
            anywhere;
    }

    .rk-footer-title {
        font-size:
            36px;
    }

    .rk-footer-bottom {
        line-height:
            1.6;
    }
}


/* ---------------------------------------------------------
   Small phones
--------------------------------------------------------- */

@media (max-width: 430px) {

    .rk-brand-text {
        max-width:
            132px;
    }

    .rk-brand-mark {
        flex:
            0 0 40px;
    }

    .rk-display {
        font-size:
            39px !important;
    }

    .rk-page-title {
        font-size:
            39px;
    }

    .rk-hero-card {
        padding:
            22px;
    }

    .rk-art-mosaic {
        grid-template-rows:
            280px 175px;
    }
}


/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        transition-duration:
            .01ms !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;
    }
}


/* =========================================================
   RK_ART_SHOWCASE_FINAL
   Kunst skal vises helt og må ikke beskæres.
========================================================= */

.rk-art-showcase {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));

    gap: 26px;

    margin:
        0 0 72px;
}

.rk-art-work {
    display: flex;
    flex-direction: column;

    margin: 0;

    overflow: hidden;

    background:
        var(--rk-paper);

    border:
        1px solid var(--rk-line);

    border-radius:
        20px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.045);
}

.rk-art-work-image {
    min-height: 460px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background:
        #e9e6e0;
}

.rk-art-work-image img {
    display: block;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 410px !important;

    object-fit: contain !important;

    border-radius:
        8px !important;

    box-shadow:
        0 12px 34px rgba(0,0,0,.10);

    cursor: zoom-in;
}

.rk-art-work figcaption {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding:
        22px 24px 25px;

    color:
        var(--rk-soft-ink);

    font-size:
        14px;

    line-height:
        1.45;
}

.rk-art-work figcaption strong {
    color:
        var(--rk-ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        23px;

    font-weight:
        500;
}


/*
 * Hvis gammel mosaik ligger i browser-cache,
 * må den heller aldrig beskære kunstværker.
 */

.page-id-30 .rk-art-mosaic img {
    object-fit:
        contain !important;
}


@media (max-width: 950px) {

    .rk-art-showcase {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media (max-width: 650px) {

    .rk-art-showcase {
        grid-template-columns:
            1fr;

        gap:
            20px;

        margin-bottom:
            48px;
    }

    .rk-art-work-image {
        min-height:
            0;

        padding:
            20px;
    }

    .rk-art-work-image img {
        max-height:
            540px !important;
    }
}


/* RK_EVENT_DATE_CARDS */

.rk-events-query .wp-block-post-date {
    display: none;
}

.rk-events-query .wp-block-post-excerpt__excerpt {
    margin-top: 14px;
}


/* =========================================================
   RK_EVENT_GRID_FINAL
========================================================= */

.rk-event-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:
        26px;
}

.rk-event-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        var(--rk-paper);

    border:
        1px solid var(--rk-line);

    border-radius:
        17px;

    box-shadow:
        0 8px 24px rgba(0,0,0,.035);
}

.rk-event-card-image {
    display: block;

    aspect-ratio:
        4 / 2.5;

    overflow: hidden;

    background:
        #e8e5df;
}

.rk-event-card-image img {
    display: block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}

.rk-event-card-body {
    display: flex;
    flex-direction: column;

    flex:
        1;

    padding:
        20px 20px 23px;
}

.rk-event-card-title {
    margin:
        0 0 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(21px,2vw,27px);

    font-weight:
        500;

    line-height:
        1.05;
}

.rk-event-card-title a {
    color:
        var(--rk-ink);

    text-decoration:
        none;
}

.rk-event-card-title a:hover {
    color:
        var(--rk-accent);
}

.rk-event-date {
    margin:
        0 0 12px;

    color:
        var(--rk-accent);

    font-size:
        12px;

    font-weight:
        700;

    letter-spacing:
        .04em;

    text-transform:
        uppercase;
}

.rk-event-excerpt {
    margin-bottom:
        20px;

    color:
        var(--rk-soft-ink);

    font-size:
        14px;

    line-height:
        1.55;
}

.rk-event-excerpt p {
    margin:
        0;
}

.rk-event-read-more {
    margin-top:
        auto;

    color:
        var(--rk-accent);

    font-size:
        13px;

    font-weight:
        700;

    text-decoration:
        none;
}

.rk-event-read-more:hover {
    text-decoration:
        underline;
}


@media (max-width: 950px) {

    .rk-event-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media (max-width: 620px) {

    .rk-event-grid {
        grid-template-columns:
            1fr;
    }
}


/* =========================================================
   RK_EVENT_CARD_TYPOGRAPHY_FIX
========================================================= */

.rk-entry .rk-event-grid .rk-event-card-title {
    margin:
        0 0 10px !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:
        25px !important;

    font-weight:
        500 !important;

    line-height:
        1.12 !important;

    letter-spacing:
        -.015em !important;

    text-wrap:
        balance;
}

.rk-entry .rk-event-grid .rk-event-card-title a {
    color:
        var(--rk-ink) !important;

    font-size:
        inherit !important;

    line-height:
        inherit !important;

    text-decoration:
        none !important;
}

.rk-entry .rk-event-grid .rk-event-card-title a:hover {
    color:
        var(--rk-accent) !important;
}

.rk-entry .rk-event-grid .rk-event-date {
    margin:
        0 0 12px !important;

    color:
        var(--rk-accent) !important;

    font-size:
        11px !important;

    font-weight:
        700 !important;

    line-height:
        1.35 !important;

    letter-spacing:
        .055em !important;
}

.rk-entry .rk-event-grid .rk-event-excerpt {
    margin:
        0 0 20px !important;

    color:
        var(--rk-soft-ink) !important;

    font-size:
        14px !important;

    line-height:
        1.55 !important;
}

.rk-entry .rk-event-grid .rk-event-read-more {
    font-size:
        13px !important;
}

.rk-event-card-body {
    padding:
        19px 20px 22px;
}


@media (max-width: 780px) {

    .rk-entry .rk-event-grid .rk-event-card-title {
        font-size:
            23px !important;
    }
}


@media (max-width: 620px) {

    .rk-entry .rk-event-grid .rk-event-card-title {
        font-size:
            22px !important;

        line-height:
            1.15 !important;
    }
}
