/*
 Theme Name:   Made I.T. - geo-park.be
 Theme URI:    https://www.madeit.be
 Description:  Child theme of Made I.T.
 Author:       Made I.T.
 Author URI:   https://www.madeit.be
 Template:     madeit
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  geo-park
*/

@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.custom-logo {
    height: auto;
    max-width: 240px;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
    font-family: "Poppins", sans-serif;
}

.alegria {
    font-family: "Alegreya Sans", sans-serif;
}

.navbar a {
    font-weight: 400;
}
.navbar-dark .navbar-nav .nav-link {
    color: white;
}
.navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active {
    color: var(--wp--preset--color--primary);
    border-bottom: 1px solid var(--wp--preset--color--primary);
}

body {
    font-size: var(--wp--preset--font-size--normal);
    line-height: var(--wp--custom--line-height--body);
}
h1, .h1 {
    font-size: var(--wp--preset--font-size--h-1);
}
@media (max-width: 767px) {
    h1, .h1, .has-h-1-font-size {
        font-size: 2.5rem !important;
    }
}

h2, .h2 {
    font-size: var(--wp--preset--font-size--h-2);
}

h3, .h3 {
    font-size: var(--wp--preset--font-size--h-3);
}

h4, .h4 {
    font-size: var(--wp--preset--font-size--h-4);
}

h5, .h5 {
    font-size: var(--wp--preset--font-size--h-5);
}
h6, .h6 {
    font-size: var(--wp--preset--font-size--h-6);
}

h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: 100px;
}


#googlemaps {
    height: 350px;
    width: 100%;
}

form .required {
    color: var(--wp--preset--color--danger);
}


/* MENU COLOR */
.menu li.active a.nav-link {
    color: var(--wp--preset--color--success);
    background-color: transparent;
}
.menu li a.nav-link {
    text-transform: uppercase;
    font-family: 'poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

@media(min-width: 768px) {
    .menu li > a.nav-link {
        transition: all 0.2s ease-in-out;
        background-color: transparent;
    }
    .menu li.active > a.nav-link {
        color: var(--wp--preset--color--success);
        background-color: transparent;
    }
    .menu li > a.nav-link:hover {
        color: var(--wp--preset--color--success);
        background-color: transparent;
    }
    .menu .dropdown-menu li a.nav-link {
        border: none;
    }
    .menu .dropdown-menu li.active a.nav-link {
        color: var(--wp--preset--color--success);
        background-color: transparent;
    }
}

@media (max-width: 767px) {
    .custom-logo-link {
        margin: 0 !important;
    }
}
/** mobile  */
@media (max-width: 991.99px) {
    .navbar.fixed-top {
        overflow: visible;
    }
    .navbar {
        min-height: 100px;
    }
    .navbar > .container {
        height: 100px;
    }
    .custom-logo-link {
        position: relative;
        margin: auto;
        left: 0;
        right: 0;
        text-align: center;
        z-index: -1;
    }
    .custom-logo {
        height: auto;
        max-width: 170px;
    }
    .custom-logo_2 {
        max-width: 256px !important;
        height: auto !important;
    }
    .navbar-toggler {
        order: -1;
    }

    .navbar-collapse {
        position: absolute;
        top: -5px;
        left: 0;
        bottom: 0;
        width: 265px;
        height: 100vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        -webkit-transition: all .3s ease;
        -moz-transition: all .3s ease;
        -ms-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
        background-color: #161d21;

        border-right: 2px solid white;
        transform: translate(-265px, 0px);
    }
    .navbar-collapse.collapsing {
        transform: translate(-265px, 0px);
        height: 100vh !important;
        overflow: hidden;
        transition: all 0.35s ease;
    }
    .navbar-collapse.collapse{
        transform: translate(-265px, 0px);
        transition: all 0.35s ease;
    }
    /* .navbar-toggler.transform,
    .custom-logo-link.transform {
        transform: translate(-265px, 0px);
    } */
    .navbar-toggler.collapsed,
    .custom-logo-link.collapsed {
        transform: translate(0px, 0px);
    }

    .navbar-collapse ul {
        text-align: left;
        margin-top: 50px;
    }
    .navbar-collapse ul li.menu-item {
        text-align: left;
        width: 100%;

        font-weight: 400;
        list-style: none;
        font-size: 13px;
        margin-bottom: 0;
        border-bottom: 1px solid #576871;
    }
    .navbar-collapse ul li.menu-item > a {
        color: #fff;
        padding: 15px 20px 15px 30px;
        display: inline-block;
        line-height: 20px;
        font-weight: 600;
        width: 100%;
    }
}





.wp-block-button__link, .btn, .wp-block-madeitforms-submit-button__link {
    border: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}
.wp-block-button__link.has-success-background-color:hover, .wp-block-madeitforms-submit-button__link.has-success-background-color:hover {
    background-color: var(--wp--preset--color--success) !important;
    color: white !important;
    border-color: var(--wp--preset--color--success) !important;
}
.wp-block-button__link.has-primary-background-color:hover, .btn-primary:hover {
    background-color: var(--wp--preset--color--success) !important;
    color: white !important;
    border-color: var(--wp--preset--color--success) !important;
}
.wp-block-button__link.has-secondary-background-color:hover {
    background-color: var(--wp--preset--color--secondary) !important;
    color: black !important;
    border-color: var(--wp--preset--color--secondary) !important;
}
.wp-block-button__link.has-danger-background-color:hover {
    background-color: var(--wp--preset--color--danger) !important;
    color: white !important;
    border-color: var(--wp--preset--color--danger) !important;
}
.btn-sm .wp-block-button__link {
    padding: 0px 25px;
}

/* Column max container size UPDATE*/
.wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
    padding-right: calc(var(--bs-gutter-x));
    padding-left: calc(var(--bs-gutter-x));
}
.wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
    padding-right: calc(var(--bs-gutter-x));
    padding-left: calc(var(--bs-gutter-x));
}
@media (min-width: 576px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 540px) / 2 + 15px) !important;
        padding-right: calc((100vw - 540px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 540px) / 2 + 15px) !important;
        padding-left: calc((100vw - 540px) / 2 + 15px) !important;
    }
}

@media (min-width: 768px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 720px) / 2 + 15px) !important;
        padding-right: calc((100vw - 720px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 720px) / 2 + 15px) !important;
        padding-left: calc((100vw - 720px) / 2 + 15px) !important;
    }
}

@media (min-width: 992px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 960px) / 2 + 15px) !important;
        padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 960px) / 2 + 15px) !important;
        padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    }
}

@media (min-width: 1200px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 1140px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1140px) / 2 + 15px) !important;
    }
}

@media (min-width: 1400px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 1320px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1320px) / 2 + 15px) !important;
    }
}

.wp-block-media-text {
    grid-template-columns: 5% auto !important;
}
.wp-block-media-text .wp-block-media-text__content {
    padding: 0 2%;
}
.wp-block-media-text .wp-block-media-text__content p {
    margin-bottom: 0 !important;
}

/* BLOG */
.blog-post {
    padding: 0;
}
.blog-post-header {
    position: relative;
    background: #000;
    overflow: hidden;
}
.stretched-link:hover .blog-post-header::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);

    -webkit-animation: shine .75s;
    animation: shine .75s;
}
@keyframes shine {
    100% {
        left: 125%;
    }
}
.blog-post-header img {
    transform: scale(1.1);
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);

    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1.1, M12=0, M21=0, M22=1.1, SizingMethod='auto expand')";
    filter: progid:DXImageTransform.Microsoft.Matrix(M11=1.1,M12=0,M21=0,M22=1.1,SizingMethod='auto expand');
    transition: all 0.2s ease-in-out;
}
.stretched-link:hover .blog-post-header img {
    opacity: .8;
    transform: scale(1.0);
    -moz-transform: scale(1.0);
    -webkit-transform: scale(1.0);
    -o-transform: scale(1.0);
    -ms-transform: scale(1.0);
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1.0, M12=0, M21=0, M22=1.0, SizingMethod='auto expand')";
    filter: progid:DXImageTransform.Microsoft.Matrix(M11=1.0,M12=0,M21=0,M22=1.0,SizingMethod='auto expand');

    transition: all 0.2s ease-in-out;
}
.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3n
.blog-post-body h4{
    text-transform: uppercase;
}
.stretched-link {
    text-decoration: none;
    color: #171C24;
    transition: all 0.2s ease-in-out;
}
.stretched-link:hover {
    color: #171C24;
    transition: all 0.2s ease-in-out;
}
.stretched-link:hover .blog-post-body h1,
.stretched-link:hover .blog-post-body h2,
.stretched-link:hover .blog-post-body h3,
.stretched-link:hover .blog-post-body h4 {
    color: var(--wp--preset--color--primary);
    transition: all 0.2s ease-in-out;
}
.post-thumbnail img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.post-img img {
    width: 100%;
    object-fit: cover;
    max-height: 450px;
}
.author-avatar img {
    aspect-ratio: 1;
    width: 48px;
    border-radius: 50px;
    box-shadow: 0 0px 3px 0 rgba(0, 0, 0, 0.1);
}

/* NIEUWSBREIF */
#form_75 .wp-block-columns {
    gap: 0 !important;
    width: max-content;
    margin-inline: auto;
}
#form_75 .wp-block-column:first-child {
    min-width: 500px;
}
@media (max-width: 781px) {
    #form_75 .wp-block-column:first-child {
        min-width: 250px;
    }
}
#form_75 .wp-block-column .wp-block-madeitforms-input-field {
    margin: 0;
    height: 100%;
}
#form_75 .wp-block-column .wp-block-madeitforms-input-field input {
    height: 100%;
    box-shadow: 0 0px 3px 0 rgba(0, 0, 0, 0.1);
    border: none;
}
@media (max-width: 480px) {
    #form_75 .wp-block-columns.is-not-stacked-on-mobile {
        flex-wrap: wrap !important;
    }
    #form_75 .wp-block-column {
        flex-basis: 100% !important;
    }
    #form_75 .wp-block-column:first-child {
        height: 60px;
    }
    #form_75 .wp-block-column .wp-block-madeitforms-submit-field button {
        width: 100% !important;
    }
}
#form_75 .wp-block-column .wp-block-madeitforms-submit-field button {
    width: max-content;
}
.transform-up {
    margin-top: 100px;
}
.transform-up .container {
    margin-top: -100px;
}



footer.site-footer {
    background-color: #f2f2f2 !important;
    color: black;
    border-top: none;
}
footer.site-footer .copy {
    background-color: var(--wp--preset--color--success) !important;
    color: white !important;
}
footer.site-footer .copy a {
    color: white !important;
    text-decoration: none !important;
}

@media (max-width: 991px) {
    .single-navigation {
        top: 20% !important;
    }
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    border: none;
    border-radius: 0;
    width: max-content;
    height: 80px;
    background-color: #44433C;
    display: flex;
    align-items: center;

    transition: all .3s ease;
}
.post-navigation .nav-previous {
    padding-left: 22px;
}
.post-navigation .nav-next {
    flex-direction: row-reverse;
    padding-right: 22px;
    right: 0;
    position: fixed;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
}
.post-navigation .nav-next a {
    flex-direction: row-reverse;
}
.post-navigation .nav-previous a .title,
.post-navigation .nav-next a .title {
    display: none;
    width: 0;
    overflow: hidden;

    transition: width .5s ease-in-out;
}

.post-navigation .nav-previous a:hover .title, 
.post-navigation .nav-next a:hover .title {
    display: flex;
    width: max-content;

    transition: width .5s ease-in-out;
}
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover  {
    background-color: var(--wp--preset--color--primary);
    transition: background-color .5s ease-in-out;
}
.post-navigation .nav-previous:hover a,
.post-navigation .nav-next:hover a {
    color: #43433C;
    transition: background-color .5s ease-in-out;
}
.post-navigation .nav-previous:hover .navicon-prev svg,
.post-navigation .nav-next:hover .navicon-next svg {
    fill: #43433C;
    transition:  .5s ease-in-out;
}

select {
    border: none !important;
    border-radius: 0;
    background-color: white !important;
    box-shadow: 0 0px 3px 0 rgba(0, 0, 0, 0.1);
}



/* Stijl voor de gallery op de pagina */
.single-propertie .wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    height: 350px;
    gap: 10px;
    margin: 0;
    position: relative;
    scroll-behavior: smooth;
}

.single-propertie .wp-block-gallery .wp-block-image {
    flex: 0 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.single-propertie .wp-block-gallery .wp-block-image {
    width: calc(33.33% - 10px); /* Maximaal 3 foto's naast elkaar met ruimte voor gap */
    cursor: pointer;
}

.single-propertie .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Stijl voor de geselecteerde foto in de gallery */
.single-propertie .wp-block-gallery .wp-block-image.active {
    opacity: 1;
    order: 1;
}
.single-propertie .wp-block-gallery .wp-block-image.beforeActive {
    order: 0 !important; /* Voor de actieve afbeelding */
    opacity: 0.5;
}
.single-propertie .wp-block-gallery .wp-block-image.afterActive {
    order: 2; /* Na de actieve afbeelding */
    opacity: 0.5;
}
.single-propertie .wp-block-gallery .wp-block-image.more {
    order: 3; /* Extra afbeeldingen die buiten het zicht zijn */
    opacity: 0.3; /* Lagere opacity voor extra afbeeldingen */
}

/* Stijl voor niet-geselecteerde foto's in de gallery */
.single-propertie .wp-block-gallery .wp-block-image:not(.active) {
    opacity: 0.5;
}

/* Stijl voor de foto-popup */
.single-propertie .photo-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}


.single-propertie .photo-popup .close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.single-propertie .photo-popup .close:hover,
.single-propertie .photo-popup .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.single-propertie .photo-popup .popup-content {
    margin: auto;
    display: block;
    max-width: 1400px;
    width: 100%;
    margin-top: 116px;
    height: calc(100vh - 230px);
    object-fit: cover;
}

.single-propertie .photo-popup .prev, 
.single-propertie .photo-popup .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
}

.single-propertie .photo-popup .prev {
    left: 0;
}

.single-propertie .photo-popup .next {
    right: 0;
}

.single-propertie .photo-popup .prev:hover,
.single-propertie .photo-popup .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.single-propertie .wp-block-gallery .prev,
.single-propertie .wp-block-gallery .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    background: black;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    z-index: 1;
}
.single-propertie .wp-block-gallery .prev {
    left: 25%;
}
.single-propertie .wp-block-gallery .next {
    right: 25%;
}
.acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
}

// Fixes potential theme css conflict.
.acf-map img {
   max-width: inherit !important;
}