/* =========================================================
   ONS SPAN
   ========================================================= */
.page-template-page-span .hero-image {
    height: 100vh;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: 0 -125px;
}
/*
.ons-span-page {
    color: #002241;
}
*/
.span-container {
    width: min(90%, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   SECTION
   ========================================================= */

.span-section {
    padding: 25px 0;
}

.span-personeel {
}

.span-toerleiers {
    background: #fff;
}

/* =========================================================
   SECTION HEADING
   ========================================================= */

.span-section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.span-section-heading span {
    color: #002241;
    font-size: 26px;
    font-weight: 700;
}

.span-section-heading h2 {
    display: inline;
    margin: 0 0 0 5px;

    color: #9d050b;

    font-family: cursive;
    font-size: 58px;
    font-weight: 400;
    line-height: 0.8;
}

.span-section-label {
    margin-top: 12px;

    color: #002241;

    font-size: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* =========================================================
   GRIDS
   ========================================================= */

.span-grid {
    display: grid;
    gap: 15px;
}

/* PERSONNEL */

.span-grid-personnel {
    grid-template-columns: repeat(3, 1fr);
}

/* TOUR LEADERS */

.span-grid-leaders {
    grid-template-columns: repeat(4, 1fr);
}

/* =========================================================
   CARD
   ========================================================= */

.span-card {
    background: #fff;

    border: 1px solid #dfd5c0;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   IMAGE
   ========================================================= */

.span-card-image {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
}

.span-person-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.span-card-content {
    padding: 15px 14px 18px;
    text-align: center;
}

.span-person-name {
    margin: 0 0 3px;

    color: #9d050b;

    font-size: var(--font-body);
    line-height: 1.15;
    font-weight: 700;
}

.span-person-title {
    margin-bottom: 14px;

    color: #002241;

    font-size: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =========================================================
   CARD INFO
   ========================================================= */

.span-card-info {
    margin-top: 12px;

    color: #002241;

    font-size: var(--font-small);
    line-height: 1.45;
}

.span-card-info strong {
    display: block;

    margin-bottom: 4px;

    color: #034d25;

    font-size: 9px;
    letter-spacing: 0.08em;
}

/* =========================================================
   BUTTON
   ========================================================= */

.span-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 15px;
    padding: 5px 15px;

    border: 1px solid #9d050b;
    border-radius: 30px;

    color: #9d050b !important;

    font-size: var(--font-body);
    font-weight: 600;

    text-decoration: none !important;
}

.span-card-button span {
    font-size: var(--font-body);
}

.span-card-button:hover {
    background: #9d050b;
    color: #fff !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .span-grid-leaders {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .span-grid-personnel,
    .span-grid-leaders {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .span-grid-personnel,
    .span-grid-leaders {
        grid-template-columns: 1fr;
    }

    .span-section-heading h2 {
        font-size: 48px;
    }
}

/* =========================================
   ONDERSTEUNENDE PERSONEEL CAROUSEL
========================================= */

.span-carousel {
    position: relative;
    width: 96.5%;
    padding: 0 30px 40px;
    background: #fdfaf2;
    border-radius: 18px;
    box-shadow: 3px 4px 5px rgba(0, 0, 0, 0.25);
}

/* ARROWS */

.span-carousel-arrows {
    display: flex;
    justify-content: center;
    gap: 38px;
    padding: 8px 0 12px;
}

.span-carousel-arrows button {
    width: 50px;
    height: 50px;
    border: 1px solid #111;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-body);
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.span-carousel-arrows button:hover {
    background: #111;
    color: #fff;
}

/* VIEWPORT */

.span-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

/* TRACK */

.span-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    align-items: flex-start;
}

/* CARD */

.span-carousel-card {
    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 0;
    text-align: center;
    position: relative;
}

/* IMAGE */

.span-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
}

.span-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* NAME OVER IMAGE */

.span-card-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    padding: 0 10px;

    color: #fff;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;

    text-shadow:
        2px 2px 3px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
}

/* POSITION */

.span-person-title {
    margin: 10px auto 15px;
    max-width: 90%;
    color: #d79b32;
    font-size: var(--font-small);
    line-height: 1.35;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* READ MORE BUTTON */

/*.span-card-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-width: 160px;
    padding: 6px 12px;

    border: 1px solid #a80000;
    border-radius: 20px;

    background: #fff;

    color: #a80000;
    font-size: var(--font-body);
    font-weight: 600;

    cursor: pointer;
}

.span-card-toggle:hover {
    background: #a80000;
    color: #fff;
}

.span-card-arrow {
    font-size: var(--font-body);
    line-height: 12px;
    transition: transform 0.3s ease;
}*/

/*.span-card-toggle[aria-expanded="true"] .span-card-arrow {
    transform: rotate(180deg);
}
*/
/* DETAILS */

.span-card-details {
    display: none;
    margin: 0 auto;
    padding: 14px 20px 20px;
    background: #fff;
    text-align: center;
}

.span-carousel-card.is-open .span-card-details {
    display: block;
}

/* DETAIL CONTENT */

.span-card-info + .span-card-info {
    margin-top: 20px;
}

.span-card-info strong {
    display: block;
    margin-bottom: 6px;

    color: #006633;
    font-size: var(--font-small);
    font-weight: 700;
}

.span-card-info > div {
    color: #172b4d;
    font-size: var(--font-body);
    line-height: 1.6;
}

/* MOBILE */

@media (max-width: 991px) {
    .span-carousel-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .span-card-name {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .span-carousel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-template-page-span .hero-image {
        background-position: center;
    }

    .span-carousel-card {
        flex: 0 0 100%;
    }

    .span-card-name {
        font-size: 26px;
    }
}

/* =========================================
   PERSONNEL CARD BUTTON ALIGNMENT
   ========================================= */

.span-carousel-track {
    align-items: stretch;
}

.span-carousel-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Keep all position titles the same height */
.span-carousel-card .span-person-title {
    min-height: 4.05em;
    margin: 10px auto 15px;
    max-width: 90%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

/* Push all buttons to the bottom */
.span-carousel-card .span-card-toggle {
    margin-top: auto;
    align-self: center;
}

/* Button styling */
.span-carousel-card .button-rooi {
    min-width: auto;
    width: fit-content;
    align-self: flex-start;
    margin-left: 0;
    padding: 10px 25px;
}

/* =========================================
   PERSON MODAL
   ========================================= */

.span-person-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

/* OPEN */

.span-person-modal.is-open {
    visibility: visible;
    opacity: 1;
}

/* DARK BACKGROUND */

.span-person-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);
}

/* MODAL BOX */

.span-person-modal-content {
    position: relative;
    z-index: 1;

    width: min(90%, 720px);
    max-height: 85vh;
    overflow-y: auto;

    padding: 50px 55px;

    background: #fff;

    border-radius: 10px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

    transform: translateY(20px);

    transition: transform 0.25s ease;
}

.span-person-modal.is-open .span-person-modal-content {
    transform: translateY(0);
}

/* CLOSE BUTTON */

.span-person-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    color: #002241 !important;
    font-size: 32px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: transform 0.2s ease !important;
}

.span-person-modal-close:hover {
    transform: rotate(90deg);
}

/* NAME */

.span-person-modal-content h2 {
    margin: 0 45px 8px 0;
    color: var(--donkerblou);
    font-family: "Poppins", sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

/* POSITION */

.span-person-modal-title {
    color: var(--rooi);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.4;
}

/* DIVIDER */

.span-person-modal-divider {
    width: 70px;
    height: 4px;
    margin: 25px 0;
    background: var(--donkerblou);
}

/* INFORMATION */

.span-modal-info + .span-modal-info {
    margin-top: 30px;
}

.span-modal-info h3 {
    margin: 0 0 8px;

    color: #034d25;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.span-modal-info > div {
    color: #002241;

    font-size: var(--font-body);
    line-height: 1.55;
}

/* PREVENT BODY SCROLL */

body.modal-open {
    overflow: hidden;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {
    .span-person-modal {
        padding: 15px;
    }

    .span-person-modal-content {
        width: 100%;
        max-height: 90vh;

        padding: 45px 25px 30px;
    }

    .span-person-modal-content h2 {
        font-size: 34px;
    }

    .span-person-modal-title {
        font-size: 19px;
    }

    .span-modal-info > div {
        font-size: 19px;
    }
}
