/* WP Admin Bar - bottom aligned */
#wpadminbar {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
}
html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* SHM Popup Styles */
.shm-popup-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.shm-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shm-popup-container {
    position: relative;
    background-color: #fff;
    max-width: 700px;
    width: 90%;
    margin: 40px auto;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.shm-popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    color: #333;
    text-decoration: none;
    line-height: 1;
    z-index: 1;
}

.shm-popup-close:hover,
.shm-popup-close:focus {
    color: #3aa6b1;
    text-decoration: none;
}

.shm-popup-image {
    margin-bottom: 20px;
    text-align: center;
}

.shm-popup-image img {
    max-width: 100%;
    height: auto;
}

.shm-popup-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.shm-popup-text {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.shm-popup-text p {
    margin-bottom: 15px;
}

.shm-popup-video {
    margin-top: 20px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.shm-popup-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Home hero video */
.hero-video-section {
    position: relative;
    width: 100%;
    padding-bottom: 38%;
    min-height: 450px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 177.78vh;
    height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-video-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-overlay .text-block {
    margin-top: 175px;
    margin-bottom: 85px;
    height: 250px;
}

.hero-video-overlay .text-block h1 {
    font-size: 55px;
    font-family: Droid Serif, serif;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.75);
}

.hero-video-overlay .text-block a {
    font-family: Droid Serif, serif;
    color: #fff;
    width: 100%;
    text-decoration: underline;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.75);
}

.hero-video-play {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-video-play:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Video fullscreen modal */
.video-modal-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-wrap {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.video-modal-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.video-modal-close:hover {
    opacity: 1;
}

/* Hero image - modern object-fit instead of imgLiquid */
.hero-img {
    position: relative;
    overflow: hidden;
}

.hero-img > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-img > .hero-margin {
    position: relative;
    z-index: 1;
}

/* Homepage exhibition text block */
.home-exhibition-bg {
    background: #fff;
    width: 100%;
    padding: 30px 0;
}

.home-exhibition-bg .home-exhibition-text {
    height: auto !important;
    padding: 0;
}

.home-exhibition-text h2 {
    margin-top: 0;
}

.exhibition-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.exhibition-layout.has-video {
    align-items: center;
}

.exhibition-image {
    flex-shrink: 0;
    width: 250px;
}

.exhibition-image img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s;
}

.exhibition-image img:hover {
    opacity: 0.85;
}

.exhibition-video {
    flex: 0 0 45%;
}

.exhibition-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.exhibition-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Collectie tekst padding override */
.collectie-hero-video + .content-block-background .makers-text {
    padding-bottom: 30px;
}

/* Collectie hero video background */
.collectie-hero-video {
    position: relative;
    width: 100%;
    padding-bottom: 33%;
    overflow: hidden;
}

.collectie-hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 177.78vh;
    height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.collectie-hero-video-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.exhibition-content {
    flex: 1;
}

.exhibition-btn-mobile {
    display: none;
}

.home-exhibition-text p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 15px;
}

.home-exhibition-text .btn.shm-popup-trigger {
    max-width: 350px;
    cursor: pointer;
}

/* Doneer form - override wpcf7 conflicts */
.doneer .wpcf7-form-control-wrap {
    float: none;
    width: 100%;
}

.doneer .wpcf7-form-control-wrap input,
.doneer .wpcf7-form-control-wrap textarea {
    border: 1px solid #d4d4d4;
}

.doneer .wpcf7 form p {
    padding: 0;
    margin-top: 10px;
}

/* Bestuur styles */
.bestuur-intro {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 30px;
}

.bestuur-lijst {
    width: 100%;
}

.bestuur-lid {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.bestuur-lid:last-child {
    border-bottom: none;
}

.bestuur-lid .bestuur-foto {
    flex-shrink: 0;
    width: 225px;
    margin-right: 30px;
}

.bestuur-lid .bestuur-foto img {
    width: 100%;
    height: auto;
}

.bestuur-lid .bestuur-info {
    flex: 1;
}

.bestuur-lid .bestuur-naam {
    font-size: 24px;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}

.bestuur-lid .bestuur-functie {
    color: #3aa6b1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.bestuur-lid .bestuur-biografie {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.bestuur-lid .bestuur-biografie p {
    margin-bottom: 10px;
}

.bestuur-voetnoot {
    padding: 20px 0;
    font-style: italic;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

@media (max-width: 1350px) and (min-width: 768px) {
    .hero-video-overlay .text-block h1 {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .home-exhibition-text {
        padding: 20px 15px;
    }

    .exhibition-layout {
        flex-direction: column;
    }

    .exhibition-image {
        display: none;
    }

    .exhibition-video {
        width: 100%;
    }

    .hero-video-section {
        padding-bottom: 56.25%;
    }

    .hero-video-overlay .text-block {
        margin-top: 145px;
        margin-bottom: 50px;
        height: auto;
    }

    .hero-video-section {
        min-height: 0;
        padding-bottom: 0;
    }

    .hero-video-overlay {
        position: relative;
    }

    .hero-video-overlay .text-block {
        margin-top: 130px;
        margin-bottom: 30px;
        height: auto;
        padding-right: 60px;
    }

    .hero-video-overlay .text-block h1 {
        font-size: 34px;
    }


    .collectie-hero-video {
        padding-bottom: 56.25%;
    }

    .exhibition-btn-mobile {
        display: inline-block;
        margin-top: 15px;
    }

    .bestuur-lid {
        flex-direction: column;
    }

    .bestuur-lid .bestuur-foto {
        width: 150px;
        margin-right: 0;
        margin-bottom: 20px;
        align-self: flex-start;
    }

    .shm-popup-container {
        padding: 25px;
        margin: 20px auto;
    }

    .shm-popup-content h2 {
        font-size: 20px;
    }
}
