/*
Theme Name: WB Altitude Two Child
Theme URI: https://web.bird.digital/
Author: Web Bird Digital
Author URI: https://web.bird.digital/
Description: A child theme of the Altitude Two Template
Version: 0.0.1
Template: wb_altitude_two
License: Private - Do Not Modify, Do Not Distribute
License URI: https://web.bird.digital/terms-and-conditions/
Text Domain: wb

This theme is private and not to be modified or distributed without permission from Web Bird Digital. This theme remains the property of Web Bird Digital.
*/

/* Fix headerbar shrink animation */
.headerbar-top{
    transition: max-height 0.3s ease, padding 0.3s ease !important;
}
.menu_resize_active .headerbar-top{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix contact block in headerbar */
.headerbar-top .wb-contact-block{
    margin: 0 !important;
}
.wb-contact-block .contact-information>span{
    display: flex;
    flex-direction: column;
}
.headerbar-top .wb-contact-block .contact-information>span{
    flex-direction: row;
    gap: 1em;
    align-items: center;
    align-content: center;
}
.wb-contact-block .contact_section{
    white-space: nowrap;
    display: flex;
    align-items: center;
    align-content: center;
}
.headerbar-top .wb-contact-block .contact_section .symbol{
    display: inline-block;
    width: 20px;
    height: 14px;
}
.headerbar-top .wb-contact-block .contact_section .symbol.symbol__mail{
    width: 22px;
    height:14px;
}
.wb-contact-block .contact_section .symbol>svg{
    width: 19px !important;
}
.headerbar-top .wb-contact-block .contact_section .symbol>svg{
    width: 14px !important;
    fill: var(--wp--preset--color--primary) !important;
}
footer .wb-contact-block .contact_section{
    margin-bottom: 0.6em;
}
footer .wb-contact-block .contact_section .symbol{
    width: 28px;
    height: 18px;
}
footer .wb-contact-block .contact_section .symbol.symbol__mail{
    width: 28px;
    height:19px;
}
footer .wb-contact-block .contact_section .symbol>svg{
    width: 24px;
    max-width: 24px !important;
}

/* Alter design of underline on current menu item */
.headerbar-bottom .wp-block-navigation li.wp-block-navigation-item>a{
    padding: 5px 9px 6px 9px;
    border-radius: 5px;
}
.headerbar-bottom .wp-block-navigation li.wp-block-navigation-item>a::after {
    content: none !important;
}
.wp-block-navigation li.wp-block-navigation-item.current-menu-item>a,
.wp-block-navigation li.wp-block-navigation-item>a.current-menu-ancestor,
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) li.wp-block-navigation-item>a:focus{
    color: #fff !important;
    background-color: var(--wp--preset--color--secondary);
    background: var(--wp--preset--gradient--custom-drg-blue-90) !important;
    font-weight: 600;
}

/* remove margin above main menu */
header .wp-block-navigation{
    margin-top: 0;
}

/* remove margin from start of footer blocks */
footer.wp-block-template-part{
    margin-block-start: 0;
}

/* remove padding on media&text block content area */
/* .wp-block-media-text>.wp-block-media-text__content{
    padding: 0;
} */

/* apply column border radius */
.wp-block-column {
    overflow: hidden;
}

/* Fix range slider for Gravity Forms */
.noUi-tooltip{
    color: var(--wp--preset--color--contrast) !important;
}

/* Slider arrow nav */
.nav_link:hover{
    background-color: transparent !important;
}

/* Logo carousel */
.wb_logocarousel .logocarousel_wrap{
    flex-grow: 1;
    flex-shrink: 0;
}

.wp-block-group.fit-row{
    width: 50%;
    flex-basis: 50%;
}
@media screen and (max-width: 768px){
    .wp-block-group.fit-row{
        width: 100%;
        flex-basis: 100%;
    }
}

/* COVER BLOCK OVERLAYS */
html .wp-duotone-drg.wp-block-image img,
html .wp-duotone-drg.wp-block-image .components-placeholder,
html .wp-duotone-drg.wp-block-cover > .wp-block-cover__image-background,
html .wp-duotone-drg.wp-block-cover > .wp-block-cover__video-background,
html .wp-duotone-drg.wp-block-post-featured-image img,
html .wp-duotone-drg.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
html .wp-duotone-drg.wp-block-post-featured-image .components-placeholder__illustration,
html .wp-duotone-drg.wp-block-post-featured-image .components-placeholder::before,
html .is-style-drg-duotone.wp-block-media-text .wp-block-media-text__media img {
    filter: url('#drg-filter');
    overflow: hidden;
}
html .wp-duotone-alt.wp-block-image img,
html .wp-duotone-alt.wp-block-image .components-placeholder,
html .wp-duotone-alt.wp-block-cover > .wp-block-cover__image-background,
html .wp-duotone-alt.wp-block-cover > .wp-block-cover__video-background,
html .wp-duotone-alt.wp-block-post-featured-image img,
html .wp-duotone-alt.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
html .wp-duotone-alt.wp-block-post-featured-image .components-placeholder__illustration,
html .wp-duotone-alt.wp-block-post-featured-image .components-placeholder::before,
html .is-style-alt-duotone.wp-block-media-text .wp-block-media-text__media img {
    filter: url('#alt-filter');
    overflow: hidden;
}
html .wp-duotone-drk.wp-block-image img,
html .wp-duotone-drk.wp-block-image .components-placeholder,
html .wp-duotone-drk.wp-block-cover > .wp-block-cover__image-background,
html .wp-duotone-drk.wp-block-cover > .wp-block-cover__video-background,
html .wp-duotone-drk.wp-block-post-featured-image img,
html .wp-duotone-drk.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
html .wp-duotone-drk.wp-block-post-featured-image .components-placeholder__illustration,
html .wp-duotone-drk.wp-block-post-featured-image .components-placeholder::before,
html .is-style-drk-duotone.wp-block-media-text .wp-block-media-text__media img {
    filter: url('#drk-filter');
    overflow: hidden;
}


html .wp-duotone-drg.wp-block-image,
html .wp-duotone-drg.wp-block-cover,
html .wp-duotone-alt.wp-block-image,
html .wp-duotone-alt.wp-block-cover,
html .wp-duotone-drk.wp-block-image,
html .wp-duotone-drk.wp-block-cover,
html .is-style-drg-duotone.wp-block-media-text .wp-block-media-text__media,
html .is-style-alt-duotone.wp-block-media-text .wp-block-media-text__media,
html .is-style-drk-duotone.wp-block-media-text .wp-block-media-text__media,
html .wp-duotone-drg.wp-block-post-featured-image,
html .wp-duotone-alt.wp-block-post-featured-image,
html .wp-duotone-drk.wp-block-post-featured-image{
    overflow: hidden;
}

.wp-block-column > .wp-block-image{
    display: inline-block;
}

/* Team Block */
.team-member:hover {
    cursor: pointer;
}
.team-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background-color: rgba(0,0,0,0.6);
    padding: 3rem;
}
.team-member.popup-active .team-popup {
    display: block;
}
.team-popup__inner {
    max-width: 1200px;
    max-height: 80vh;
    height: auto;
    width: 70vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    overflow: auto;
    margin-left: auto;
    margin-right: auto;
}
.wp-block-wb-teamblock.team-member {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.team-member .team-title {
    font-weight: 400;
    font-style: normal;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.1px;
    text-transform: none;
    margin-top: 1em;
    margin-bottom: 0px;
    color: var(--wp--preset--color--primary);
}
.team-member > .team-title {
    text-align: center;
}
.team-member .team-subtitle {
    margin-top: .2rem;
    font-weight: 300;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-transform: none;
    font-size: 22px;
    text-align: center;
    color: var(--wp--preset--color--secondary);
    flex-grow: 2;
}
.team-member .team-readmore {
    font-size: 18px;
    text-align: center;
    margin-top: 0px;
    position: relative;
    text-transform: lowercase;
    letter-spacing: normal;
}
.team-member .team-image-wrapper {
    position: relative;
    overflow: hidden;
}
.team-readmore {
    display:none;
}
.team-image-wrapper > img {
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.team-popup-content{
    cursor: initial;
}

.team-member .team-popup .team-image-wrapper::after {
    content:'';
    padding-bottom:100%;
    display:block;
}

.entry-content .team-member .team-popup img.team-image {
    position: absolute;
}

.team-popup-header {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1.5em;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--wp--preset--color--primary);
}

.team-popup-header .team-image-wrapper {
    width: 300px;
    margin-right: 1.5em;
}
.team-popup-header .team-subtitle {
    margin-bottom: 0px;
}

/* Accordion Block */
.accordion-head.has-contrast-background-color{
    background-color: var(--wp--preset--color--primary) !important;
}
:root :is(.entry-content,.additional-content,.is-layout-constrained)>*:where(.wp-block-wb-accordion){
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Fix border radius on images in columns */
.wp-block-column .wp-block-group + .wp-block-image{
    margin-bottom: -5px;
}

/* Gravity Forms tweaks */
html .gform-theme--api,
html .gform-theme--foundation{
    --gf-form-gap-y: 15px;
    --gf-ctrl-textarea-height: 90px;
    --gf-ctrl-file-zone-padding-x: 20px;
    --gf-ctrl-file-zone-padding-y: 20px;
    
    --gf-ctrl-size-md: 34px;
    --gf-ctrl-size-lg: 43px;
    --gf-ctrl-size-xl: 50px;
}
.gsection_title{
    margin: 0 !important;
}
html .gform-theme--foundation .gfield textarea.small{
    min-block-size: 4rem;
}
html .gform-theme--framework .gfield--type-image_choice.gfield--image-choice-appearance-card .gchoice{
    flex-basis: calc(33.33% - var(--gf-field-img-choice-gap) * 2 / 3 ) !important;
    width: calc(33.33% - var(--gf-field-img-choice-gap) * 2 / 3 ) !important;
    flex-grow: 0;
    flex-shrink: 0;
    max-width: none;
}
html .gform-theme--framework .gfield--type-image_choice .gfield-choice-image{
    object-fit: contain;
}

html .gform-theme--framework .gfield--type-image_choice .gfield-choice-image-wrapper{
    aspect-ratio: 3 / 2;
}
html .gform-theme--framework .gfield--type-image_choice .gfield-choice-image-wrapper img{
    max-width: 250px;
    max-height: 200px;
    margin-left: auto;
    margin-right: auto;
}

html .partial_entry_warning{
    font-size: 0.8rem;
    opacity: 0.7;
}

.popup_inner{
    max-height: 90% !important;
}

@media screen and (max-width: 1550px){
    .pribanner_content.half_width {
        width: 100%;
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-bottom: calc( 2rem + 50px );
    }
}
@media screen and (min-width: 600px) and (max-width: 999px){
    header .wp-block-navigation{
        gap: 4px;
        font-size: 15px !important;
    }
    
    .has-xx-large-font-size{
        font-size: 3rem !important;
    }
}
@media screen and (max-width: 599px){
    .has-xx-large-font-size{
        font-size: 2.4rem !important;
    }
    
    html .team-popup{
        padding: 3em 1em;
    }
    html .team-popup__inner{
        width: calc( 100vw - 2em );
    }
    
    html .gform-theme--api,
    html .gform-theme--foundation{
        --gf-form-gap-y: 10px;
        --gf-ctrl-textarea-height: 70px;
    }
    
    html .gform-theme--framework .gfield--type-image_choice.gfield--image-choice-appearance-card .gchoice{
        width: 100% !important;
        flex-basis: 100% !important;
    }
    html .gform-theme--framework .gfield--type-image_choice .gfield-choice-image-wrapper{
        aspect-ratio: 3 / 1;
    }
    html .gform-theme--framework .gfield--type-image_choice .gfield-choice-image-wrapper img{
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    html .gf_step_label{
        display: none;
    }
}
