* {
    padding: 0;
    margin: 0;
}

*::selection {
    background: #f04242;
    color: white;
}

html {
    font-size: 62.5%;
    /* 62.5% of the base size of 16px = 10px.*/
}

body {
    --red: rgb(240, 66, 66);
    --black: rgb(30, 30, 30);
    font-family: akagi-pro, sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--black);
    background-color: #FAFAFA;
    -webkit-text-size-adjust: 100%;
    
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, .main_nav, .dash {
    font-family: trade-gothic-next-condensed, sans-serif;
    line-height: 1;
}

h1 {
    font-size: clamp(1.8rem, 5vw + 1rem, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

h4 {
    font-size: 2rem;
    font-weight: 400;
}


#project_head > h3 {
    margin-top: -.6rem;
}

a:link,
a:visited,
a:focus,
a:hover,
a:active {
    color: var(--black);
    text-decoration: none;
}

a:hover{
    color: var(--red);
}

em {
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

b {
    font-style: normal;
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.main_nav {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
}

.city {
    color: var(--red);
    white-space: pre-line;
}

.index a:hover{
    color: var(--black);
}

.emps li {
    text-transform: none;
}

#parked {
    position: absolute;
    overflow: hidden;
    visibility: hidden;
    width: 10px;
    height: 10px;
}

/*
#  
#  ██     ██   ██  ██   ██
#  ██    █__█    ██    █  █
#  ████ ██  ██   ██     ██
#
*/
.dash {
    width: 3rem;
    position: relative;
}
.dash > div {
    position: absolute;
    top: 1.5rem;
    width: 2.4rem;
    height: .3rem;
    background-color: var(--black);

    
}

.animatedDash {
    animation: dashRotate .6s ease-out; 
}

.animatedMenu {
    animation: menuBUREAU .3s ease-in-out forwards;
}

.animatedMenu > ul > li > a:hover {
    color: var(--black);
}



header {
    grid-area: header;
    margin-bottom: 8rem;
}

nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content;
    gap: 2rem;
}

.main_nav {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.sub_nav {
    display: flex;
    flex-direction: column;
    
    text-align: right;

}

.dash {
    grid-area: dash;
}

content {
    grid-area: main;
}



footer {
    grid-area: footer;
}

body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 8rem;
    display: grid;
    grid-template-columns: min-content min-content minmax(70%,100%);
    grid-template-rows: auto;
    grid-template-areas:
        ". . header"
        "nav dash main"
        ". . footer";
    gap: 1.6rem;
}

.info {
    display: flex;

    
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 2rem;
}
.info > div:last-child {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
}

.info > div:first-child {
    max-width: 65ch;
}

.info > div > p {
    flex: 1 1 50%;
}

.text_container {
    margin-top: 2rem;
}

.office > img {
    max-width: 100%;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#
#  ██   ██ ███████  █████  ██████  ███████ ██████  
#  ██   ██ ██      ██   ██ ██   ██ ██      ██   ██ 
#  ███████ █████   ███████ ██   ██ █████   ██████  
#  ██   ██ ██      ██   ██ ██   ██ ██      ██   ██ 
#  ██   ██ ███████ ██   ██ ██████  ███████ ██   ██                                               
#                                                    
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

body > header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 2rem;
}

.main_nav a:hover {
    color: var(--red);
}

.sortnav {
    cursor: pointer;
    user-select: none;
}

.sortnav:hover {
    color: var(--red);
}

.active {
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.arrow {
    margin-top: -.3rem;
    margin-left: .5em;
}

.icons {
    display: flex;
}

.icon-filter {
    width: 2.4rem;
}

.icon-search {
    width: 2.4rem;
}

.menu.on-mobile > div{
    width: 2rem;
    height: .2rem;
    background-color: black;
    margin-top: .5rem;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#
#   ██████  ██████  ███    ██ ████████ ███████ ███    ██ ████████ 
#  ██      ██    ██ ████   ██    ██    ██      ████   ██    ██    
#  ██      ██    ██ ██ ██  ██    ██    █████   ██ ██  ██    ██    
#  ██      ██    ██ ██  ██ ██    ██    ██      ██  ██ ██    ██    
#   ██████  ██████  ██   ████    ██    ███████ ██   ████    ██    
#                                                                 
#                                                                                                                           
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* FLEX *
.index {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 1rem;
}

.index::after {
    content: "";
    flex: auto;
  }

*/

/* GRID */

.index {
    margin-top: .6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem,1fr));
    align-items: start;
    gap: 2rem;
}

.index_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.icons {
    display: flex;
    flex-flow: row;
    gap: 1rem;
    fill: var(--black);
    user-select: none;
}

.icons > *:hover {
    fill: var(--red);
    cursor: pointer;
}
.cat-filter {
    width: 100%;
    overflow: hidden;
}
.cat-filter-box > div {
    flex: 0 1 11rem;
}

.cat-filter-box {
    display: flex;
    gap: 2rem;

    transform: translateX(110%);
    transition: transform ease-out 0.5s;
}

.cat-filter-box.show {
    transform: translateX(0);
}

.cat-filter {
    display: flex;
    flex-flow: row nowrap;
    font-size: 2rem;
    height: 3rem;
}

.item {
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.item:hover .top_img {
    opacity: 1;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.index .item img {
    width: 100%;
    aspect-ratio: 3 / 2;
}

.index .item .text {
    position: relative;
    top: -.3rem;
    line-height: 1.6;
}

.portrait {
    object-fit: contain;
    object-position: left;
}

.landscape {
    object-fit: cover;
    object-position: center;
}

.relpos {
    position: relative;
    align-items: flex-start;
}

.top_img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.content_head {
    /* margin-block: 2rem; */
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    align-content: flex-start;
}

.office > .content_head {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    margin-block: 4rem 2rem;
}

.office > .content_head > div {
    display: flex;
    flex-flow: row wrap;
    column-gap: .5rem;
    align-items: baseline;
    margin-block: 0 0.4rem;
}





@media( min-width: 59em) {
    .office > .content_head {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .office > .content_head > div {
        flex-flow: column wrap;
    }
}


.office > .content_head > div > h2 {
    margin-block: 0;
    font-size: clamp(1.8rem, 2vw, 3rem);
}

.content_head span {
    white-space: nowrap;
    color: var(--red);
}

.emps {
    display: grid;
    grid-template-areas:
        'one'
        'two'
        'three'
        'four'
    ;
    justify-content: start;
    gap: 1rem 2rem;
}

.emps > div > h4, .offices > div > h4 {
    margin-block: .5rem 1rem;
}

@media( min-width: 46em) {
    .emps {
        grid-template-areas:
            'one two'
            'three four'
        ;
    }
}
@media( min-width: 60em) {
    .emps {
        grid-template-areas:
        'one two three'
        'one two four'
        ;        
    }
}

.emps > div:nth-child(1) {
    grid-area: one;
}
.emps > div:nth-child(2) {
    grid-area: two;
}
.emps > div:nth-child(3) {
    grid-area: three;
}
.emps > div:nth-child(4) {
    grid-area: four;
}

.offices {
    margin-block: 2rem;
    display: grid;
    justify-items: start;
    grid-template-columns: 1fr 1fr;
}

/* .emps {
    display: flex;
    flex-flow: row wrap;
    justify-items: flex-start;
} 

.emps div:nth-child(1) {
    min-width: 20rem;
}
*/



.highlight_container {
    position: relative;
    width: calc(100% + 10rem);
    left: -5rem;
    user-select: none;
    display: grid;
    grid-template-columns: 5rem 1fr 5rem;
    align-items: center;
    justify-content: flex-start;
    
}

.highlight_container img {
    object-fit: contain;
    max-width: 100%;
    user-select: none;
    vertical-align: bottom;
    position: relative;
}

.highlight_container > div:nth-child(2) {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    vertical-align: bottom;
    overflow: hidden;
}

.image_credit {
    position: absolute;
    font-size: 1.3rem;
    color: rgba(30,30,30,.5);
    margin-top: 1rem;
}

.img-nav {
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    width: 50vw;
    height: 2rem;
    justify-content: center;
    align-items: start;
    margin-inline: auto;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.img-counter {
    margin-inline: auto;
    /* font-family: trade-gothic-next-condensed, sans-serif; */
    font-size: 2rem;
    font-weight: 600;
}

.img-counter-desktop {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    margin-top: 1rem;
}

.area-arrow--prev.on-desktop > div, .area-arrow--next.on-desktop  {
    user-select: none;
    width: 20px;
    margin-inline: auto;
}
.area-arrow--prev:hover polygon {
    fill: rgb(240, 66, 66);
    cursor: pointer;
}

/* .img-nav .area-arrow--next {
    flex: 0 0 5rem;
} */

.area-arrow--next:hover polygon {
    fill: var(--red);
    cursor: pointer;
}

/* .area-arrow--prev > div, .area-arrow--next > div {
    position: relative;
    width: 20px;
    top: calc(50% - 20px);
    left: calc(3rem - 20px);
    z-index: 20;
} */

.img-nav .area-arrow--prev > div, .img-nav .area-arrow--next > div {
    width: 30px;
    margin-inline: auto;
    top: 0;
}

.post_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40ch, 1fr));
    /* grid-template-rows: masonry; */
    grid-auto-rows: 2rem;
    align-tracks: start;
    justify-tracks: start;
    gap: 1rem;
}

.post_container > .item {
    /* background-color: #FFF; */
    /* border-color: #aaa;
    border-width: 1px;
    border-style: dashed;
    border-radius: .5rem; */
    /* padding: 1rem; */
}


/************************************************************************ /*
// Footer
/************************************************************************ */

footer {
    margin: 2em 0;
    padding-top: 1em;
    border-top: 1px dashed var(--black);
    font-size: 1.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.insta {
    width: 2rem;
}
.insta::after {
    content: '';
}
.copyright {
    font-size: 1.2rem;
}

/***************************/
/* DEV */
/***************************/
.dev {
    position: fixed;
    top: 1vh;
    left: 1vh;
    margin: 1vh 0;
    z-index: 10;
    opacity: 0;
}
.dev > button {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}
.dev > button:hover {
    background-color: var(--red);
}


/**** MEDIA QUERIES ****/

/* Portrait and Landscape */

@media only screen
    and (orientation: landscape) {
        .highlight_container img {
            max-height: 96vh;
        }
        .on-mobile {
            display: none;
        }
    }


@media only screen 
  and (max-device-width: 600px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: portrait) { 
    html {
        font-size: 150%;
    }
    body {
        padding: 1rem;
        grid-template-areas:
            "header nav"
            "main ."
            "footer .";
        grid-template-columns: auto;
    }

    header {
        margin: 0;
    }
    nav {
        width: 100%;
    }

    .title {
        width: 100%;
    }
    
    .index {
        grid-template-columns: repeat(auto-fit, minmax(20rem,1fr));
    }

    .index, .main_nav {
        gap: 2rem;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .sub_nav {
        justify-content: space-between;
        margin-top: .5rem;
        margin-bottom: 2rem;
    }

    .sortnav {
        height: 2rem;
    }
    .on-desktop {
        display: none;
    }
    .highlight_container {
        width: 100%;
        left: 0;
        display: block;
    }
    .highlight_container > div > div:nth-child(2) {
        max-width: 100%;
    }

    .office > .content_head {
        grid-template-columns: 1fr;
        
    }
    .emps {
        grid-template-areas:
            'one'
            'two'
            'three'
            'four'
        ;
    }

}
@media only screen
    and (min-device-width: 800px) {
    .on-mobile {
        display: none;
    }
}

/* Scrollbar jumping FIX */
@media screen and (min-width: 960px) {
    html {
        margin-left: calc(100vw - 100%);
        margin-right: 0;
    }
}