/*
Theme Name: VAA v1
Theme URI: 
Author: 
Author URI: 
Template: twentytwentythree
Description: Child of TT3
Requires at least: 5.8
Tested up to: 6.2
Requires PHP: 5.7
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: vaav1
Tags: blog, news, portfolio, one-column, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, sticky-post, threaded-comments, translation-ready, 
*/

/* Theme Custom CSS start */
html,
body {
    scroll-behavior: smooth;
}
.home .home-button {
    display: none;
}
.wp-site-blocks {
    padding-top: 0;
    padding-bottom: 0;
}

details summary {
    font-size: 2rem;
    background-color: var(--wp--preset--color--tertiary);
    padding: 0.5rem;
}

.footer-cover .wp-block-cover__image-background.is-repeated {
    background-size: auto 283px;
    background-position: 50% 0 !important;
}

.brand {
    align-items: stretch;
    justify-content: space-between;

    --wp--preset--font-size--x-large: clamp(1.3rem, 3vw, 2rem);
    --wp--preset--font-size--large: clamp(1rem, 1.5vw, 1.75rem);
}
.home h1 {
    font-size: clamp(2.625rem, -1.41348rem + 8.4135vw, 3.25rem);
}
.wp-block-post-featured-image.fit-image img {
    object-fit: contain !important;
}

.entry-content ul li {
    margin-bottom: 1rem;
}

.brand nav ul li {
    aspect-ratio: 135 / 55;
    flex-basis: 55px;
    background-color: var(--wp--preset--color--tertiary);
    font-size: var(--wp--preset--font-size--large) !important;
    line-height: 55px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 150px;
    align-items: stretch !important;
}
.brand nav ul li:nth-child(1) {
    background-color: #fcc578;
}
.brand nav ul li:nth-child(2) {
    background-color: #f4eccc;
}
.brand nav ul li:nth-child(3) {
    background-color: var(--wp--preset--color--tertiary);
}
.brand nav ul li:nth-child(4) {
    background-color: #f9a719;
}
.brand nav ul li:nth-child(5) {
    background-color: #94d5d2;
}

.brand nav ul li a {
    display: block;
    width: 100%;
    height: 100%;
}

.brand nav ul {
    align-items: stretch !important;
    justify-items: stretch;
    justify-content: space-between;
}
.brand .wp-block-navigation.is-vertical {
    align-items: stretch !important;
}
.brand nav {
    align-items: stretch;
    justify-content: space-between;
}
.brand > div {
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 15px;
}

.brand-column header {
    position: sticky;
    top: 3rem;
}
.brand a {
    text-decoration: none;
}
.brand-box {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 15rem;
    position: relative;
}
.brand .wp-block-navigation .wp-block-navigation-item:hover {
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
}
.newsfeed li {
    aspect-ratio: 1 / 1;
}
.newsfeed li > div {
    aspect-ratio: 1 / 1;
    width: 100%;
}
.home .wp-block-post-title.main-title {
    display: none;
}
.members-grid img {
    aspect-ratio: 5 / 2;
    object-fit: contain;
    object-position: center center;
}

@media screen and (max-width: 640px) {
    .brand nav ul li {
        flex-basis: 45px;
        line-height: 45px;
    }
    .brand > div {
        gap: 12px;
        width: 80vw;
    }
    .brand-box {
        min-width: 50vw;
    }
    .content-column {
        padding-top: 0rem !important;
    }
}
@media screen and (min-width: 641px) and (max-width: 1150px) {
    .brand > div {
        justify-content: center !important;
    }
    .brand-box {
    }
}

@media screen and (max-width: 600px) {
    .members-grid ul {
        grid-template-columns: 1fr 1fr !important;
    }
}

.site-title-en,
.site-title-fr {
    /* position: absolute; */
    line-height: 1.2;
}

@keyframes crossfade {
    0 {
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.9;
    }
    55% {
        opacity: 0;
    }
}

#trp-floater-ls.trp-top-right {
    right: 3.5rem !important;
}

.trp-color-dark #trp-floater-ls-language-list .trp-language-wrap a:hover {
    background: transparent !important;
    border-radius: inherit !important;
    width: inherit !important;
}

.wp-block-query li h2.has-large-font-size {
    font-size: clamp(1.5rem, 2vw, 2.5rem) !important;
}

@media screen and (min-width: 600px) and (max-width: 1200px) {
    .wp-block-query .columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .brand nav {
        width: 14rem;
    }
    .brand nav li {
        aspect-ratio: none !important;
        max-width: 14rem !important;
    }
}

.is-layout-grid h1,
.is-layout-grid h2,
.is-layout-grid h3,
.is-layout-grid h4,
.is-layout-grid h5,
.is-layout-grid h6 {
    word-break: keep-all;
}
