/****** CATEGORY PAGES *****/
/* 4 boxes per row (in desktop) */
.insert-container .image-box{
    width: calc(25% - 10px);
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    background-color: #555555a4;
}

@media only screen and (max-width: 630px) {
    .insert-container .image-box{
        width: calc(50% - 10px);
    }
}

@media only screen and (max-width: 350px) {
    .insert-container .image-box{
        width: calc(100% - 10px);
    }
}

/****** SUB-CATEGORY PAGES (residential, transit, etc) ******/
.sub-category-icons-row{
    display: flex;
    justify-content: space-evenly;
    align-items: baseline;
    /* max-width: 1000px; */
    margin: auto;
    flex-wrap: wrap;
}

.sub-category-icon-box-caption{
    text-align: center;
    margin-top: 20px;
}

.sub-category-icon-box {
    margin: 5px;
}

.hero-container.sub-category {
    width: 100%;
    position: relative;
    margin-bottom: 50px;
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-container.sub-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.sub-category-hero-box-caption{
    position: absolute;
    bottom: 0;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
    background-color: #555555a4;
    font-size: 2rem;
    font-weight: 700;
    /* font-weight: 900; */
    color: white;
}

/******* SEARCH RESULTS ********/
/* 3 boxes per row (in desktop) */
.insert-container .result-box{
    width: calc(25% - 10px);
    box-sizing: border-box;
}

.insert-container .result-box:hover{
    transform: scale(1.01);
}

@media only screen and (max-width: 630px) {
    .insert-container .result-box{
        width: calc(50% - 10px)
    }
}

@media only screen and (max-width: 350px) {
    .insert-container .result-box{
        width: calc(100% - 10px)
    }
}

/******* PROJECT VIEW ********/
/* Slider */
.project-box-parent-container{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* .swiper-slide{ */
    /* padding-bottom: 30px !important; */
    /* background-position: center; */
    /* background-size: cover; */
    /* width: 75%; */
    /* background: none; */
    /* overflow: hidden; */
    /* cursor: grab; */
    /* aspect-ratio: 16/9; */
    /* -webkit-backdrop-filter: blur(4px); */
    /* backdrop-filter: blur(4px); */
/* } */

.project-box-parent-container .swiper-slide{
    /* background-position: center; */
    /* background-size: cover; */
    width: 75%;
    background: none;
    overflow: hidden;
    cursor: grab;
    aspect-ratio: 16/9;
    -webkit-backdrop-filter: blur(4px);
    /* backdrop-filter: blur(4px); */
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%,rgb(255, 255, 255) 20%, rgb(255, 255, 255) 80%, rgba(0, 0, 0, 0) 100%);
}


.project-box-parent-container .swiper-slide img{
    object-fit: contain;
}

.project-box-parent-container .mySwiper{
    height: fit-content;
    max-height: 70vh;
    height: 100%;
}

.project-box-parent-container .swiper-button-next, .project-box-parent-container .mySwiper .swiper-button-prev{
    color: #E4610F;
    /* font-weight: 700; */
    font-size: 3rem;
}

/* Hide the default arrows to show own */
.project-box-parent-container .swiper-button-next::after, .project-box-parent-container .swiper-button-prev::after {
    content: "";
}

/* Wash out inactive slides and their corner icons */
.project-box-parent-container .swiper-slide:not(.swiper-slide-active) img, .project-box-parent-container .swiper-slide:not(.swiper-slide-active) .corner-icon{
    filter: contrast(15%) brightness(180%);
}

.project-box-parent-container  .swiper-slide-shadow-coverflow{
    background-image: none !important;
  }

.project-tags{
    margin: 15px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.project-tag{
    padding: 5px 8px;
    margin: 5px;
    /* background-color: #EB894B; */
    color: black;
    text-decoration: underline;
    border-radius: 5px;
    transition: background-color 1s;
}

.project-tag:hover{
    /* color: white; */
    color: #E4610F;
    /* background-color: #E4610F; */
    /* -webkit-transition: background-color 500ms linear; */
    /* -ms-transition: background-color 500ms linear; */
    /* transition: background-color 500ms linear; */
}

.project-name {
    margin-top: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    color: #5F5F5F;
}

.project-location {
    margin-top: 5px;
    font-weight: 400;
    font-size: 1.2rem;
    text-align: center;
    color: #5F5F5F;
}

.project-caption{
    margin-top: 25px;
    text-align: center;
    padding: 25 15 50 15;
}

.project-box-parent-container .other-entity-header {
    font-size: 1.3rem;
}

.project-box-parent-container > .button > *{
    padding: 3px;
    font-weight: bold;
}

/* Popup image */
.popup-parent{
    background-color: black;
    /* display: none; */
    height: 0;
    width: 0;
    position: fixed;
    /* Start off in the center for zoom in effect */
    top: 50%;
    bottom: 0%;
    left: 50%;
    right: 0%;
    opacity: 0;
    z-index: -5;
    transition: all 0.5s ease;
    /* Prevent double clicking text selection (sometimes when.... */
    /* ...clicking img next/previous arrows fast, it gets highlighted) */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}

.popup-parent.show{
    top: 0;
    left: 0;
    /* display: block; */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    opacity: 1;
    z-index: 50;
    transition: all 0.5s ease;
}

/* Hide all media in popup by default */
.popup-video, .popup-youtube-vimeo, .popup-iframe, .popup-img-parent, .popup-iframe-btn-parent{
    display: none;
}

.popup-img-parent.show{
    /* width: 85%; */
    flex-basis: 85%;
    display: block;
    /* overflow: hidden; */
}



.popup-img.show{
    display: block;
    object-fit: contain;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.popup-video.show{
    /* max-width: 85%; */
    overflow: hidden;
    flex-basis: 85%;
    /* height: 100%; */
    display: block;
}

.popup-youtube-vimeo.show{
    /* width: 100%; */
    flex-basis: 85%;
    flex-grow: 1;
    height: 100%;
    display: block;
    border: 0;
}

.popup-iframe-btn{
    padding: 10px;
    /* margin: 10px 20vw; */
    /* height: 100%; */
    display: block;
    background-color: #E4610F;
    color: white;
    cursor: pointer;
    width: fit-content;
    margin: auto;
}

/* When popup preview img is displayed, container for left/right arrows */
.popup-arrow-parent{
    /* width: calc(7% + 3rem); */
    flex-basis: 15%;
    flex-shrink: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    background: rgba(0, 0, 0, 0.85);
}

.popup-arrow-parent.disabled{
    cursor: default;
}

.popup-arrow-parent .arrow{
    color: #E4610F;
    font-size: 3rem;
}

.popup-arrow-parent .arrow.disabled{
    opacity: 0.35;
}

.popup-parent .close-btn {
    color: #dedede;
    position: fixed;
    z-index: 5;
    top: 30px;
    right: 15px;
    margin-top: 3px;
    font-size: 40px;
    cursor: pointer;
}

/* On desktop */
@media only screen and (min-width: 1008px) {
    /* Show iframe to 360 or whatever other website */
    .popup-iframe.show{
        /* width: 85vw; */
        border: none;
        flex-basis: 85%;
        height: 100%;
        display: block;
    }
}

/* Less than desktop */
@media only screen and (max-width: 1007px) {
    /* Show button to 360 or other website */
    .popup-iframe-btn-parent.show{
        display: block;
        flex-basis: 85%;
    }
}

@media only screen and (max-width: 630px) {
    /* On mobile, show slider images in a larger size (otherwise too small) */
    .project-box-parent-container .swiper{
        height: 40vh;
    }
    .swiper-slide.project .displayImg{
        height: 100%;
        object-fit: cover !important;
        width: 95% !important;
        height: 85% !important;
    }
    .popup-arrow-parent{
        width: calc(3% + 3rem);
    }
    .popup-video.show{
        max-width: 75%;
        /* height: 100%; */
        display: block;
    }
}

@media only screen and (max-width: 350px) {
    .popup-arrow-parent{
        width: calc(1% + 3rem);
    }
    .popup-iframe-btn-parent.show{
        
    }
}

/******** ABOUT US *********/
.about-hero-container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-img{
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}
.about-hero-logo{
    position: absolute;
    z-index: 1;
    max-width: 10%;
    display: none;
}

@media only screen and (max-width: 1100px) {
    .about-hero-logo{
       max-width: 20%;
    }
}

@media only screen and (max-width: 630px) {
    .about-hero-logo{
        max-width: 30%;
    }
}

.about-text{
    margin: auto;
    max-width: 1200px;
    padding: 50px;
}

/******** PEOPLE *********/
.insert-container.authors{
    display: flex;
    margin: 25px;
    flex-wrap: wrap;
}

.insert-container.authors > *{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    border-bottom: #e0e0e0 solid 1px;
}

.insert-container.authors > *:last-child{
    border-bottom: none;
}

.person-container{
    width: calc(20%);
    box-sizing: border-box;
    padding: 25 15 25 15;
    min-width: 150px;
    aspect-ratio: 1;
}

.person-container > div:first-of-type {
    font-weight: 700;
}

.person-container img{
    object-fit: cover;
    aspect-ratio: 1;
    width: 100%;
    filter: grayscale(100%);
    aspect-ratio: 1;
}

.person-container > .author-caption:first-of-type{
    margin-top: 5px;
}
