/*
Theme Name: adamstel architecten
Template:   twentytwentyfour
Description: A 2025 theme for adamstel architecten building on the the Twenty Twenty-Four theme.
Author: Emile Proper
Version: 1.0
Date: july 20225
*/

header .header-right {
    gap: 0;
}

header .is-layout-flex {
    flex-wrap: nowrap;

}
@media only screen and (min-width: 999px)  { 
    header .is-layout-flex {
        height: -webkit-fill-available;
    }
}
header h4.wp-block-heading {
    font-style: normal;
    font-weight: 400;
    margin-top: 0.7em;
}

@media only screen and (max-width: 999px)  {       
    header .wp-block-group.is-vertical.is-layout-flex {
        align-items: flex-end;
        flex-grow: 1;
        margin-right: var(--wp--preset--spacing--20);
    }
}

@media only screen and (max-width: 599px)  {       
    header h4.wp-block-heading {
    font-size: 1em;
    }
}

@media only screen and (max-width: 781px)  {
    .teaser h2 {
    padding-top: var(--wp--preset--spacing--30);
    }
    .closer h2 {
    padding-top: unset;
    padding-bottom: var(--wp--preset--spacing--30);
    }
}  

@media (max-width: 781px) {
    .visie-aankeiler .wp-block-column {
         border-radius: var(--wp--preset--spacing--20);
         padding-top: var(--wp--preset--spacing--30);
    }
}

@media only screen and (max-width: 500px)  {       
    header h4.wp-block-heading {
    display: none;
    }
}
@media (min-width: 600px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: unset;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

@media (min-width: 999px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open:not(.always-shown)  {
        display: none;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        background-color: inherit;
        display: block;
        position: relative;
        width: 100%;
        z-index: auto;
    }
}


:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {
    background-color: var(--wp--preset--color--accent-4);
    transition: opacity 0.5s ease;
    opacity: .7;
}

.no-radius img {
    border-radius: 0 !important;
}

.home .portfolio-meta {
    display: none;
}

.home .entry-content {
    margin-top: var(--wp--preset--spacing--50);
}

.home .titelblok {
    display: none;
}
.home .wp-block-query h2 {
    margin-bottom: 1em;
}

.home .visie-aankeiler, .home .wp-block-group.has-background.opener {
    padding: 0;
    border-radius: var(--wp--preset--spacing--20);
}


.home .visie-aankeiler img {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.home .visie-aankeiler a {
    text-decoration: none;
}

@media  (max-width: 781px)  {      
   .home .visie-aankeiler  {
    padding: var(--wp--preset--spacing--30) !important;
    border-radius: var(--wp--preset--spacing--20) !important;
} 

   .home .visie-aankeiler img {
       border-radius: var(--wp--preset--spacing--20);
    }

    .home .visie-aankeiler figure {
        float: unset;
        margin-left: auto;
        margin-right: auto;
    }
}

.wp-block-cb-slide-v2.cb-slide {
    display: flex;
    align-items: center; /* Vertically centers the image */
    justify-content: center; /* Horizontally centers the image (optional) */
    height: 100%; /* Ensure the parent has a defined height */
}

.wp-block-cb-slide-v2.cb-slide figure {
    margin: 0 auto; /* Optional: Horizontally centers the figure */
    width: 100%; /* Optional: Ensures the figure takes full width */
    text-align: center; /* Optional: Centers the image if it's inline */
}

.wp-block-post-featured-image :where(img) {
    aspect-ratio: 7/3;
}

.single .portfolio-meta img {
 aspect-ratio: 7/3;
}
.entry-content > *:last-child {
    margin-bottom: var(--wp--preset--spacing--50);
}
.portfolio-meta {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
}

@media only screen and (max-width: 599px)  {  
    .portfolio-meta {
        padding-left: var(--wp--preset--spacing--10);
        padding-right: var(--wp--preset--spacing--10);
    }
}

.entry-content  figure.wp-block-gallery, .entry-content  figure {
    margin-top: var(--wp--preset--spacing--40);
    margin-bottom: var(--wp--preset--spacing--40);
}
.wp-block-columns.alignwide, .single-portofio .entry-content .wp-block-group {
    margin-top: var(--wp--preset--spacing--40);;
    margin-bottom: var(--wp--preset--spacing--40);
}

.wp-block-gallery figure img, .entry-content figure img {
    border-radius: var(--wp--preset--spacing--20);
} 

.entry-content img.no-corner {
    border-radius: 0 !important;
    
}
.wp-block-group.has-background {
    padding: var(--wp--preset--spacing--20);
    border-radius:var(--wp--preset--spacing--20);
}

/* Ensure columns have the same height */
.equal-height-columns {
    display: flex;
}

/* Set the aspect ratio for images inside the columns */
.equal-height-columns .wp-block-column img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Maintain a 16:9 aspect ratio */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: var(--wp--preset--spacing--20);
    border: 0;
}

/* Optional: Add some spacing or styling as needed */
.equal-height-columns .wp-block-column {
    padding: 10px;
    box-sizing: border-box;
}

/* Ensure columns have the same height */
.equal {
    display: flex;
    align-items: stretch; /* Stretch columns to the same height */
}

/* Make sure the image column adapts to the text column height */
.equal .wp-block-column {
    display: flex;
    align-items: stretch;
}
/* Make sure the image column adapts to the text column height */
.equal .wp-block-column figure {
    display: flex;
    align-items: stretch;
}

.equal img {
    height: 100%;
    height: auto;
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: var(--wp--preset--spacing--20);
    border: 0;
}

/* Media query for screens smaller than 1200px */
@media (max-width: 1199px) and ( min-width: 779px) {
    .equal .wp-block-column {
        flex: 1;
        flex-basis: 50% !important;
        max-width: 50%;
    }
}

/* Optional: Add some spacing or styling as needed */
.equal .wp-block-column {
    padding: 10px;
    box-sizing: border-box;
}


.aligncenter.is-type-video.is-provider-vimeo.wp-block-embed-vimeo {
    display:flex;
    justify-content: center;
}

/* Details */
.wp-block-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    line-height: 1.3;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 500;
    font-size: medium;
    background-color: var(--wp--preset--color--accent-3);
    border-radius: var(--wp--preset--spacing--20);
}

.wp-block-details summary:after {
	content: "";
    background-image: url("/wp-content/themes/adamstel/assets/chevron_down.svg");
	width: 1.5rem;
    min-width: .5rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    transition: .3s;
    background-position: center;
    margin-left: 2rem;
}

.wp-block-details[open] summary:after {
	transform: rotate(360deg);
	background-image: url("/wp-content/themes/adamstel/assets/chevron_up.svg");

}

.wp-block-details p {
    border-bottom: solid #ccc;
    padding: 1.2rem 1.5rem;
    max-width: var(--wp--style--global--content-size);
}

.wp-block-details:last-of-type {
    background-image: none !important;
    margin-bottom: 4rem;
}

.wp-block-details[open] {
	padding-bottom: 2em;
}
summary::-webkit-details-marker {
	display: none;
}
::-webkit-details-marker {
  display: none;
}

:where(.wp-block-details *:focus) {
    outline-width: 0px;
    outline-style: none;
}

.tablepress>:where(thead,tfoot)>tr>*, .tablepress thead .dt-orderable-asc:hover, .tablepress thead .dt-orderable-desc:hover, .tablepress thead .dt-ordering-asc, .tablepress thead .dt-ordering-desc  {
    background-color: var(--wp--preset--color--contrast-2);
    color: var(--wp--preset--color--base-2);
    font-family: var(--wp--preset--font-family--montserrat);
}

.tablepress thead .dt-orderable-asc .dt-column-order, .tablepress thead .dt-orderable-desc .dt-column-order, .tablepress thead .dt-ordering-asc .dt-column-order, .tablepress thead .dt-ordering-desc .dt-column-order {
    color: var(--wp--preset--color--base-2);
}
.alignwide .dt-container {
    max-width: var(--wp--style--global--wide-size);
}
/* SITE OPENER */
.site-opener .right-column {
    display: flex;
}

.site-opener .right-image img {
    height: 100%;
    object-fit: cover;
    border-radius: var(--wp--preset--spacing--20);
}

/* SITE Project Loop */
html .post-type-archive-project h1 {
    margin-top: var(--wp--preset--spacing--40) !important;
}
/* .project-loop {
    padding-top: var(--wp--preset--spacing--50);
} */
.project-loop .wp-block-group {
padding-top: 0 !important;
}
.entry-content .project-loop figure {
    margin-top: 0;
}

.project-loop ul, .archive-loop, .search-results ul  {
    background: none !important;
}

.project-loop li, .archive-loop li, .search-results .wp-block-query li   {
     border-radius: var(--wp--preset--spacing--20);
     background-color: var(--wp--preset--color--contrast-3) !important; 
}

.project-loop li .wp-block-group, .archive-loop li .wp-block-group, .search-results li .wp-block-group {
    padding: 1em;
}
.search-results li .wp-block-group a { 
    color: var(--wp--preset--color--contrast-2);
}
.project-loop h5:last-of-type a {
    color: var(--wp--preset--color--contrast-2) !important;
    text-decoration: none;
}

.archive-loop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-loop h2 a {
        color: var(--wp--preset--color--contrast-2);
        text-decoration: none;
        display: inline-block;
        font-family: inherit;
        font-size: inherit;
        font-style: inherit;
        font-weight: inherit;
        letter-spacing: inherit;
        line-height: inherit;
}

.archive-loop li.li-load-more {
    background-color: var(--wp--preset--color--accent-2) !important;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.load-more {
    cursor: pointer;
    font-family: var(--wp--preset--font-family--montserrat);
    color: var(--wp--preset--color--contrast-2);
    font-size: xxx-large;
    line-height: normal;
    text-align: right;
    padding: 1em;
}
/* Archive */

.post-type-archive-project .time-block {
    display:none;
}
.time-block {
    width:100%
}
.time-block time {
    float: none;
    margin: 1em;
    padding: .7em;
    background: #eee;
    color: var(--wp--preset--color--contrast-1);
    font-family: monospace;
    font-family: monospace;
    font-size: 12px;
    margin-left: 0;
    border-radius: .5em;
}

@media only screen and (max-width: 800px)  {    
    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: 1fr;
    }
}


@media only screen and (min-width: 801px) and (max-width: 1200px) {    
    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

footer .wp-block-group.has-background {
    padding: 1em;
    border-radius: 0em !important;
}

footer {
font-family: var(--wp--preset--font-family--montserrat) !important;

}
footer h2 {
    text-transform: uppercase;
}

footer .wp-block-group .wp-block-column a, footer .kleine-lettertjes a {
    text-decoration: none;
    font-weight: 400;

}
footer .alignwide.kleine-lettertjes{
    font-size: .7em;
    color: var(--wp--preset--color--contrast-3);
    margin: 0;
    padding: 0;
}