/* Lazy Loading */

[data-lazy] {
    opacity: 0;
    transition: opacity 0.3s;
}
[data-lazy].is-loaded {
    opacity: 1;
}

/* Scroll Animations */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].is-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Accordions */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.is-active .accordion-content {
    /* max-height set via JS */
}

.accordion-header {
    cursor: pointer;
}

.accordion-item.is-active .accordion-header {
    /* Active styling */
}

/* Tabs */

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-link.is-active { 
    background: #007cba;
    color: white;
}

/* Modals  */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    z-index: 1;
}

body.modal-open {
    overflow: hidden;
}

/* Video Lazy Load */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Style play button */
}

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

/* Parallax  */

[data-parallax] {
    position: relative;
    overflow: hidden;
    height: 100vh; /* of gewenste hoogte */
}

[data-parallax] img {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
}