/* ---------------------------------------------------------------------- */
/*  Generic –> Box Sizing
/* ---------------------------------------------------------------------- */

*, *:before, *:after {box-sizing: border-box;}


:root {
    --spacer: 36px;
    --spacer-2x: 60px;


    --base-font-size: 16px; 
    --medium-font-size: 32px;
    --big-font-size: 46px;
}

@media all and (max-width: 768px) {
    :root {
        --spacer: 10px;
        --spacer-2x: 20px;
    
    
        --base-font-size: 16px; 
        --medium-font-size: 18px;
        --big-font-size: 30px;
    }
}

/* ---------------------------------------------------------------------- */
/*  Generic –> Shared
/* ---------------------------------------------------------------------- */

html, body {
    font-family: "HK", serif;
    font-weight: 400;
    font-style: normal;
    
    font-size: var(--base-font-size);
     color: #000000; 
     line-height: 1.4; 
     background-color: #fff;
}

img.logo {
    width: 220px;
}


body {margin:0;}
img {max-width: 100%;}
h1 {
    margin: 0;  
    font-size: var(--big-font-size); 
    font-weight: 300; 
    line-height: 1.2; 
}

h2 {
    margin: 0;  
    font-size: var(--medium-font-size); 
    font-weight: 500; 
    line-height: 1.2; 
}

a {
    color: #000000;
    text-decoration: underline;
}


.grid.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    align-items: center;
}

.grid .media {
    padding: 80px;
    height: 100vh;
}

.grid .media figure {
    padding: 0;
    margin: 0;
    position: relative;
}
.grid .media figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 160px);
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s linear;
}
.grid .media figure img.active {
    opacity: 1;
}
.grid .content {
    background-color: #A7ADA5;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    display: block;
    margin-bottom: var(--spacer);
}

.text {
    margin-top: var(--spacer-2x);
}
@media all and (max-width: 800px) {

    .grid.cols-2 {
        grid-template-columns: 1fr;
    }


    .grid .media {
        order: 2;
        padding: 40px;
    }
    .grid .content{
        order: 1;
       
    }

    .grid .media figure img {
       
        height: calc(100vh - 80px);
    }


}