/*
    Theme Name: Varsinaisen läheltä
    Theme URI: 
    Description: 
    Author: Jani Virtanen
    Author URI:
    Version: 1.0
    License:
    License URI:
    Text Domain:
    Tags:
*/


:root {
    --header-height: 120px;
    --max-content-width: 1000px;
    --max-content-width-with-sidebar: 1200px;
}

@font-face {
    font-family: 'Kumbh Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/wp-content/themes/varsinaisenlahelta/assets/font/kumbh-sans.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, html{
    padding: 0;
    margin: 0;
    font-family: 'Kumbh Sans';
    position: relative;
}

h1{
    font-family: 'Kumbh Sans';
    font-size: 3.0rem;
    font-weight: 800;
    margin-top: 0;
}


h2, .file-list h1{
    font-size: 2.8rem;
    font-family: 'Kumbh Sans';
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

h4{
    font-size: 1.5rem;
    font-family: 'Kumbh Sans';
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

p{
    font-size: 1.2rem;
    line-height: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    margin-top: 0;
}

header{
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    grid-template-rows: auto;
    gap: 30px;
    align-items: center;
    padding: 5px 30px;
    box-sizing: border-box;
}

header > div{
    height: 100%;
}

.header-eu-img-container{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 45px;
}
.header-eu-img-container img{
    height: 35px;
    width: auto;
}

#nav-links{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}

#site-navigation{
    position: absolute;
    top:var(--header-height);
    background-color: #fff;
    width: 100%;
    align-items: center;
    justify-content: right;
    z-index: 2;
}

#language-selector{
    list-style-type: none;
    padding: 0;
    margin: 0 30px 0 0;
    display: inline-flex;
    gap: 5px;
}
#language-selector li{
    display: inline;
    margin: 0;
}

#language-selector li a{
    text-decoration: none;
    font-weight: 700;
}

.main-navigation {
    display: none;
}

.main-navigation.active {
    display: flex;
}
#menu-toggle {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
}
#menu-toggle .hamburger-icon{
    width: 40px;
    height: 40px;
}

/* Responsiivisuuden parantamiseksi lisää hover- ja focus-tilat */
#menu-toggle:hover,
#menu-toggle:focus {
    opacity: 0.8; /* Hieman himmenee hoverilla */
}
#menu-toggle:focus {
    outline: 2px solid #581c22;
    outline-offset: 2px;
}

#site-navigation ul{
    list-style-type: none;
    padding: 0px 0px 15px 0px;
    margin-right: 30px;
}
#site-navigation ul li{
    text-align: right;
}
#site-navigation ul li:not(:first-of-type){
    margin-top: 15px;
}

#site-navigation a{
    font-size: 1.6rem;
    font-family: 'Kumbh Sans';
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

#nav-button-container{
    display: flex;
    justify-content: right;
    align-items: center;
    flex-direction: row;
}

.header-img-container{
    width: 100%;
    min-height: 512px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.header-img-content{
    max-width: 512px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-img-content h1, .header-img-content h2{
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    margin-bottom: 0;
}

.header-img-container.front-page{
    min-height: 720px;
}
.header-img-container.default{
    background-image: url(/wp-content/themes/varsinaisenlahelta/assets/header.png);
    background-size: cover;
    min-height: 512px;
    width: 100%;
}

#header-logo-container{
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (width < 998px) {
    .header-img-container,
    .header-img-container.default, 
    .header-img-content,
    .header-img-container.front-page{
        min-height: 120px;
    }
    .header-img-container h1,
    .header-img-container.default h1,
    .header-img-content h1,
    .header-img-container.front-page h1{
        font-size: 1.8rem;
    }
}

#header-logo{
    height: 100px;
    width: auto;
}

#logo-text-container{
    padding-left: 0px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
}

.logo-text{
    font-size: 2.4rem;
    font-family: 'Kumbh Sans';
    font-weight: 700;
    text-decoration: none;
    color: #000;
}

.page-content-container{
    width: 100%;
    display: flex;
    justify-content: center;
}

.page-content{
    max-width: 1200px;
    padding: 15px;
    box-sizing: border-box;
}


.section-content{
    z-index: 1;
    position: relative;
}

.front-page-intro-section{
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 30px;
    box-sizing: border-box;
    flex-direction: column;
    background-color: #fff;
}

.front-page-intro-section .section-content{
    max-width: 720px;
}

.featured-section{
    padding: 90px 30px;
    box-sizing: border-box;
    background-color: #f0f5df;
}

.featured-section .section-content{
    max-width: 1200px;
    margin: 0 auto;
}

.featured-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 60px;
}
.featured-grid > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
}
.featured-introtext{
    flex: 1 1 auto;
}

.featured-introtext a:has(h2){
    margin-top: 0;
    text-decoration: none;
}

.featured-introtext h2{
    margin-top: 0;
}

@media (width < 980px) {
    .featured-grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.section-content img{
    max-width: 100%;
    height: auto;
}

a{
    color: #000;
}

a.button{
    background-color: #ec6b76;
    padding: 7px 30px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    border: 3px solid #ec6b76;
}

a.button.small{
    padding: 4px 30px;
    font-size: 1.0rem;
}

.front-page-special-section a.button{
    background-color: #fbcb94;
    border-color: #fbcb94;
    color: #000;
}

a.button:focus {
    outline: none;
    border: 3px solid;
    border-color: #581c22;
}

.featured-link{
    margin-bottom: 0;
}

.featured-image-container{
    margin-bottom: 30px;
}



.front-page-special-section{
    background-color: #00838A;
    color: #fff;
    padding: 90px 30px;
    min-height: 360px;
    background-image: url(/wp-content/themes/varsinaisenlahelta/assets/etusivun_nosto_piirros.png);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
}


.front-page-special-section .section-content{
    max-width: 1200px;
}

.front-page-special-section .narrow-content{
    max-width: 520px;
    margin-left: 10%;
}

.front-page-special-section .narrow-content p{
    font-weight: 600;
}

@media (width < 1500px) {
    .front-page-special-section{
        background-position: 130% center;
    }
}

@media (width < 1350px) {
    .front-page-special-section{
        background-position: 130% center;
        min-height: 0;
    }

    .front-page-special-section .narrow-content{
        margin-left: 0;
    }
}

@media (width < 1150px) {
    .front-page-special-section{
        background-position: 150% center;
        min-height: 0;
    }
}

@media (width < 1024px) {
    .front-page-special-section{
        background-image: none;
    }
}

.front-page-event-calendar-section{
    background-color: #feebd5;
    padding: 90px 30px;
    position: relative;
    overflow-x: hidden;
    background-image: url(/wp-content/themes/varsinaisenlahelta/assets/osiotausta.png);
    background-size: auto 450px;
    background-repeat: no-repeat;
    background-position: 100% 95%;
}

@media (width < 1300px) {
    .front-page-event-calendar-section{
        background-size: auto 320px;
    }    
}

@media (width < 1023px) {
    .front-page-event-calendar-section{
        background-size: auto 200px;
    }    
}

@media (width < 980px) {
    .front-page-event-calendar-section{
        background-image: none;
    }    
}

.front-page-event-calendar-section h2{
    text-align: center;
}
.front-page-event-calendar-section .section-content{
    max-width: 900px;
    margin: 0 auto;
}

.front-page-event-calendar-section h2{
    margin-bottom: 45px;
}
.event-image-container{
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-image-container img{
    height: 100%;
    width: auto;
    object-fit: contain;
    width: 100%;
    height: auto;
    object-position: center;
}
.event-row{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.event-details{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 5px;
}
.event-details span.date{
    font-size: 1.1rem;
    font-weight: 500;
}
.event-details span.place{
    font-size: 1.1rem;
    font-weight: 300;
}
.tapahtuma.full .event-details span{
    font-size: 1.2rem;
}

.tapahtuma.full .event-details{
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}


@media (width < 767px) {
    .event-row{
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        
    }
}

.event-row > div:nth-child(2){
    padding: 0 0;
    box-sizing: border-box;
}

.event-row:not(:last-of-type){
    margin-bottom: 45px;
}

.event-row h3, .place-list .place-content h3{
    margin-bottom: 15px;
}

.event-row h3{
    margin-top: 0;
}

.event-row a:has(h3), .place-list a:has(h3){
    text-decoration: none;
}

footer{
    background-color: #e0f1f3;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    padding: 90px 30px;
}

#footer-logo-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer-logo{
    width:200px;
    height: auto;
    margin-bottom: 30px;
}

img.article-image{
    width: 100%;
    height: auto;
    margin-top: 15px;
    margin-bottom: 45px;
}

article.tapahtuma.full{
    margin: 75px auto 75px auto;
    max-width: 800px;
}

.tapahtuma h1{
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.single h2{
    font-size: 1.8rem;
}

.excerpt.full p, .ingress-full{
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
}

.ingress-full{
    margin-top: 30px;
    margin-bottom: 30px;
}

strong{
    font-weight: 700;
}

/* .illustration{
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.illustration.img-1{
    right: 25%;
    bottom: 5%;
}

.illustration.img-1 img{
    width: 75px;
    height: auto;
    transform: rotate(-35deg);
}

.illustration.img-2{
    right: 16%;
    bottom: 5%;
}

.illustration.img-2 img{
    width:130px;
    height: auto;
}

.illustration.img-3{
    right: 1%;
    bottom: 5%;
}

.illustration.img-3 img{
    width:250px;
    height: auto;
    transform: rotate(-5deg);
}

.illustration.img-4{
    right: -5%;
    bottom: 42%;
}

.illustration.img-4 img{
    width:400px;
    height: auto;
    transform: scale(1, -1) rotate(-320deg);
}

@media (width < 1500px) {
    .illustration.img-1 img{
        width: 60px;
        transform: rotate(-35deg);
    }
    
    .illustration.img-2 img{
        width:65px;
    }
    
    .illustration.img-3 img{
        width:160px;
        transform: rotate(-5deg);
    }
    
    .illustration.img-4 img{
        width:250px;
        transform: scale(1, -1) rotate(-320deg);
    }
}

@media (width < 1200px) {
    .illustration{
        display: none;
    }
} */

.content-regular{
    margin: 60px 15px;
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.content-with-sidebar{
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto;
    gap: 0px;
    margin: 60px 15px;
    max-width: var(--max-content-width-with-sidebar);
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.content-with-sidebar > div:nth-child(1){
    border-right: 1px solid #e9ddce;
    padding-right: 30px;
}

.content-with-sidebar > div:nth-child(2){
    padding-left: 30px;
}

.files > div:not(:last-of-type){
    border-bottom: 1px solid #f6f1eb;
}

.file-row{
    display: grid;
    grid-template-columns: 75px 1fr;
    grid-template-rows: auto;
    gap: 30px;
    padding: 30px 0;
}

.file-row h3{
    margin-top: 0;
}

.file-list-icon-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-list-thumbnail{
    width: 100%;
    height: auto;
}

.file-list-type-icon{
    aspect-ratio: 1/1;
    background-color: #00b2bb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px;
    font-weight: 800;
    border-radius: 5px;
}

.sidebar-menu ul{
    list-style-type: none;
    padding: 0;
}

.sidebar-menu ul li:not(:first-of-type){
    margin-top: 5px;
}
.sidebar-menu ul li{
    border-bottom: 1px solid #e9ddce;
    padding: 5px 0;
}
.sidebar-menu ul li a{
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.place-list{
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 60px 30px;
}

@media (width < 1200px) {
    .place-list{
        grid-template-columns: 1fr 1fr;
        gap: 60px 30px;
    }
}

@media (width < 600px) {
    .place-list{
        grid-template-columns: 1fr;
        gap: 45px 30px;
    }
}

.place-image-container img,
.featured-image-container img{
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
}

.place{
    display: flex;
    flex-direction: column;
}

.place-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.place-content .featured-link {
    margin-top: auto;
    max-width: 160px;
}

.footer-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
    margin-top: 60px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-middle-col, .footer-last-col{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.footer-middle-col{
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
}

@media (width < 1150px) {
    .footer-grid{
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        justify-items: center;
        align-items: center;
        column-gap: 30px;
        row-gap: 60px;
        align-items: stretch;
    }

    .footer-last-col{
        grid-column: 1 / span 2;
        grid-row: 2;
    }
    .footer-middle-col p:last-of-type{
        font-size: 1.0rem;
    }
    .footer-middle-col{
        text-align: left;
    }
}

@media (width < 767px) {
    .footer-grid{
        grid-template-columns: 1fr;
        row-gap: 30px;
    }
    .footer-last-col{
        grid-column: 1;
        grid-row: unset;
    }
    .footer-middle-col p:last-of-type{
        font-size: 1.1em;
    }
}

.footer-middle-col p:last-of-type{
    margin-bottom: 0;
}

.some-grid{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
}

.some-grid img{
    width: 45px;
    height: auto;
}

.footer-grid p{
    font-weight: 500;
}

.contacts-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 60px;
    margin-top: 60px;
    margin-bottom: 60px;
}

@media (width < 1023px) {
    .contacts-grid{
        gap: 30px;
    }
}

@media (width < 720px) {
    .contacts-grid{
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

.contact-person{
    display: flex;
    flex-direction: column;
}

.contact-picture img{
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center;
    margin-bottom: 30px;
    display: block;
}

.contact-text{
    text-align: left;
}

.content-regular img{
    max-width: 100%;
    height: auto;
}
/* .flag-grid{
    display: none;
    gap: 30px;
    grid-template-columns: 90px 1fr;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    text-align: left;
}
.flag-grid img{
    max-width: 100%;
    height: auto;
}
.flag-grid p{
    padding: 0;
    margin: 0;
} */
@media (width < 1500px) {
    #header-logo{
        height: 90px;
    }
    .header-eu-img-container img {
        height: 30px;
    }

}
@media (width < 1400px){

    footer h2, .logo-text{
        font-size: 1.8rem;
    }
}
@media (width < 1350px) {
    #header-logo{
        height: 60px;
    }
    header{
        height: 75px;
        grid-template-columns: 1fr 90px 1fr;
        padding: 5px 15px;
    }
    #site-navigation{
        top: 75px;
    }
    .header-eu-img-container {
        margin-left: 30px;
    }
}

#header-logo-mobile-container{
    display: none;
    position: relative;
}

#header-logo-mobile-container img{
    height: 65px;
    width: auto;
    display: block;
}

@media (width < 1150px) {
    #header-logo-container{
        display: none;
    }
    header{
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    /* .flag-grid{
        display: grid;
    } */
    /* #header-logo-mobile-container{
        display: block;
    } */

    
    .header-eu-img-container img{
        height: 30px;
    }

}

@media (width < 720px){
    #logo-text-container .logo-text{
        /* display: none; */
        flex: 1;
        text-align: center;
    }
    .header-eu-img-container {
        margin-left: 20px;
        flex: 1 1 auto;
    }
    header .logo-text{
        font-size: 1.6rem;
    }
}

@media (width < 512px) {
    footer h2, .logo-text{
        font-size: 1.2rem;
    }
    header{
        gap: 15px;
    }
    #language-selector{
        margin-right: 10px;
    }
    #language-selector a{
        font-size: 0.8rem;
    }
    #menu-toggle .hamburger-icon {
        width: 30px;
        height: 30px;
    }
    .header-eu-img-container img{
        height: 30px;
    }
    .header-eu-img-container {
        margin-left: 20px;
    }
    header .logo-text{
        font-size: 1.0rem;
    }
}

@media (width < 410px) {
    header{
        padding: 2px 5px;
    }
    footer h2, .logo-text{
        font-size: 1.0rem;
    }
    header .logo-text{
        font-size: 0.9rem;
    }
    .header-eu-img-container {
        margin-left: 15px;
    }
    .header-eu-img-container img{
        height: 18px;
    }
}

@media (width < 1024px) {
    .content-regular,
    article.tapahtuma.full{
        margin-top: 45px;
        margin-bottom: 45px;
    }

    .page-content-container h2,
    .page-content h2,
    .content-regular h2,
    .page-content h1,
    .section-content h2,
    .content-with-sidebar h1{
        font-size: 2.0rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .single h2{
        font-size: 1.6rem;
    }

    h3.ingress-full, .excerpt.full p, h2.ingress-full{
        font-size: 1.2rem;
        margin-top: 15px;
        margin-bottom: 30px;
    }
    p{
        font-size: 1.0rem;
        line-height: 1.6rem;
    }
    img.article-image {
        margin-top: 0px;
        margin-bottom: 15px;
    }

    .place-list, .events-list{
        margin-top: 45px;
    }

    .front-page-intro-section,
    .front-page-event-calendar-section,
    .featured-section,
    .front-page-special-section{
        padding: 45px 15px;
    }

    .front-page-event-calendar-section .event-row:first-of-type {
        margin-top: 45px;
    }

    /* .front-page-event-calendar-section .event-row:not(:last-of-type) {
        margin-bottom: 30px;
    } */
    #footer-logo {
        width: 150px;
    }

    footer {
        padding: 45px 15px;
    }

    .footer-grid{
        margin-top: 30px;
    }

    #footer-upper-text p:last-of-type{
        margin-bottom: 0;
    }

    a.button {
        padding: 5px 15px;
        font-size: 1.0rem;
    }

    .event-row p:last-of-type, .place-list .place-content p:last-of-type{
        margin-bottom: 15px;
    }

    .featured-image-container {
        margin-bottom: 15px;
    }
}

@media (width < 650px) {
    .content-with-sidebar{
        grid-template-columns: 1fr;
        row-gap: 30px;
        margin-top: 0;
        margin-bottom: 45px;
        padding-left: 0;
        padding-right: 0;
    }
    .content-with-sidebar > div:nth-child(1){
        border-right: 0px solid #e9ddce;
        padding-right: 0;
    }
    .sidebar-menu ul{
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    .sidebar-menu ul li{
        border-bottom: 0;
        margin: 0 !important;
    }

    /* .content-with-sidebar > div:nth-child(2){
        padding: 0 15px;
    } */
    .content-with-sidebar > div:nth-child(2) {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (width < 470px) {
    .sidebar-menu ul{
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 1px;
        padding: 0;
        background-color: #e9ddce;
        list-style: none;
        padding-bottom: 1px;
    }
    .sidebar-menu ul li{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 15px;
        background-color: #fff;
        flex: 1;
        min-width: 32%;
        box-sizing: border-box;
    }
    /* .sidebar-menu ul li a{
        color: #fff;
    } */
    .sidebar-menu ul li:not(:last-of-type){
      
    }
}
.pagination-container{
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid #e9ddce;
    padding-top: 15px;
    display: flex;
    flex-direction: row;
}
.pagination{
    display: flex;
    flex-direction: row;
    gap: 10px;
    list-style-type: none;
    padding: 0;
    margin: 0 0 0 15px;
}

.pagination a, .pagination span{
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
}

.pagination a.current{
    text-decoration: none;
}

@media (width < 500px) {
    .pagination-container{
        flex-direction: column;
    }
    .pagination{
        margin: 15px 0 0 0;
    }
}

.section-content.events-list{
    margin-top: 60px;
}

.logo-cloud{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
    margin-top: 45px;
    margin-bottom: 45px;
}

.logo-cloud img{
    flex: 1 1 auto;
    width: 100%;
    height: auto;
}

@media (width < 950px) {
    .logo-cloud{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (width < 767px) {
    .footer-middle-col p:last-of-type{
        font-size: 0.9rem;
        line-height: 1.2rem;
        font-weight: 300;
    }
    /* .flag-grid{
        max-width: 480px;
    } */
}
        
@media (width < 500px) {
    .footer-middle-col{
        text-align: left;
    }
}

/* @media (width < 400px) {
    .flag-grid{
        grid-template-columns: 90px 1fr;
        gap: 10px;
    }
} */

.newsletter-grid{
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;
    align-items: center;
    justify-content:  center;
}
.newsletter-grid p{
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
}
.newsletter-grid div{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@media (width < 450px) {
    .newsletter-grid{
        gap: 10px;
    }
    .newsletter-grid p{
        font-size: 0.9rem;
        line-height: 1.2rem;
    }
}

@media (width < 340px) {
    .newsletter-grid{
        gap: 5px;
    }
    .newsletter-grid p{
        font-size: 0.8rem;
        line-height: 1.1rem;
    }
}

.link-buttons{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-section h2{
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sr-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}

.skip-to-content-link {
    left: 0px;
    position: absolute;
    transform: translateY(-100%);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #fff;
}

.skip-to-content-link {
    background-color: #ec6b76;
    left: 0;
    padding: 15px;
    position: absolute;
    transform: translateY(-100%);
    box-sizing: border-box;
    z-index: 1000;
    border: 2px solid #fff;
  }
  
  .skip-to-content-link:focus {
    transform: translateY(0%);
    border: 2px solid #581c22;
  }