/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/** category & single page */

.image-container img {
    min-width:100%;
    min-height:100%;
    height:auto;
}


.project {
    padding: 0;
    background-color: #ECF3FC;
    margin: 2rem 1rem 5rem 1rem;
    scroll-margin-top: 200px;
}

@media only screen and (max-width: 767px) {
    .project {
        margin: 2rem 0 5rem 0;
    }
}

.project--image {
    position: relative;
    padding-top: calc(1 / 1.5 * 100%);
    overflow: hidden;
}

.project--image > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project--image > .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(54,54,54,.8);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 13px;
    z-index: 999;
    line-height: 17px;
}

.project__facts{
    margin: 2rem .5rem 1rem 1rem;
    padding-right: 2rem;
}

@media only screen and (max-width: 991px) {
    .project__facts {
        margin: 2rem 2rem;
    }
    .project__gallery .project--image {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

.project__facts h2.project__facts__title {
    color: #043972;
    text-transform: none !important;
    text-align: left;
    margin-bottom: 15px;
    padding-top: 0;
    font-weight: 400;
}

.project__facts__meta__row {
    margin-bottom: 10px;
    border-bottom: 1px solid #92B1D3;
    line-height: 1.4rem;
}

.project__facts__meta__row__label {
    font-weight: 500;
}

.project__facts__meta__row__content{

}


.project__details {
    margin: 2rem 1rem 0 2rem;
    padding-bottom: 0.5rem;
}

@media only screen and (max-width: 767px) {
    .project__details {
        margin: 1rem 1rem 0 2rem;
        padding-bottom: 0.5rem;
    }
}

.project__details__header {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.project__gallery {
    margin: 2rem 2rem 0 2rem;
    padding-bottom: 2rem;
}

/** Slider */

.projects {
    padding-top: 2rem;
}

.projects-slider {
    display: flex;
}

.projects-slider .project-tile {
    margin: 30px;
}

.projects-slider .slick-prev,
.projects-slider .slick-next {
    font-size: 0;
    position: absolute;
    bottom: 20px;
    color: #053972;
    border: 0;
    background: none;
    z-index: 1;
    width: 50px;
    height: 50px;
}

.projects-slider .slick-prev:before,
.projects-slider .slick-next:before {
 content: '';
}


.projects-slider .slick-prev {
    left: -5%;
}

.projects-slider .slick-prev:after {
    content: "\f104";
    font: 40px/1 'Font Awesome 5 Pro';
}

.projects-slider .slick-next {
    right: -5%;
    text-align: right;
}

.projects-slider .slick-next:after {
    content: "\f105";
    font: 40px/1 'Font Awesome 5 Pro';
}


.projects-slider .slick-prev:hover:after,
.projects-slider .slick-next:hover:after {
    color: #053972;
}

@media only screen and (max-width: 981px){
    .projects-slider .projects-slider__slide__badge,
    .projects-slider .projects-slider__slide__title {
        font-size: 18px;
    }
}

/* project filter & grid */

.filtr-item.project-item {
    margin-bottom: 20px;
    margin-top: 20px;
    padding-bottom: 35px;
}
.filtr-item.project-item a {
    text-decoration: none;
}

.filtr-item.project-item a:hover {
    text-decoration: none;
}

#project-grid.row {
   margin-left:0;
}

.project-filter__filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.project-filter__filters__row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto 1rem auto;
    align-items: center;
    justify-content: center;
}

.project-filter__filter__item {
    font-size: 18px;
    background-color: #ecf3fd;
    color: #043972;
    padding: 4px 7px;
    font-weight: 400;
    margin: 5px 8px;
    cursor: pointer;
    display: block;
    white-space: nowrap;
}

.project-filter__filter__item.active {
    background-color: #043972;
    color: #ecf3fd;
}
.project-filter__filter__item:hover {
    background-color: #CBDDEF;
    text-decoration: none;
}
.project-filter__filter__item.active:hover {
    background-color: #043972;
    color: #ecf3fd;
}

.et_pb_code_inner .project-filter .filtr-item.project-item {
    padding-bottom: 35px;
}

@media (max-width: 1500px) and (min-width: 1200px){
    .et_pb_code_inner .project-filter .filtr-item.project-item {
        -ms-flex: 0 0 33%;
        flex: 0 0 33%;
        max-width: 33%;
    }
}
@media only screen and (max-width: 767px) {
    .projects-slider .project-tile {
        margin: 17px;
    }
}
/* project tile */

.project-tile {
    min-height: 200px;
    overflow: hidden;
    background: white;
    position: relative;
}
.project-tile:hover:after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(54,54,54,.1);
    transition: 0.5s;
}
.project-tile__image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 100%;
    height: auto;
}

.project-tile__image .caption {
    position: absolute;
    bottom: 5px;
    left: 0;
    background: rgba(54,54,54,.8);
    padding: 5px 10px;
    color: #ffffff;
    font-size: 13px;
    z-index: 999;
    line-height: 17px;
}

.project-tile__image img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.project-tile__title {
    display: block;
    position: relative;
    width: 100%;
    height: 80px;
    background-color: #f4f4f4;
    color: #053972;
    font-size: 17px;
    line-height: 1.2rem;
    font-weight: 400;
    padding: 10px 15px 15px 15px;
    margin-top: -5px;
}

.project-tile__badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #053972;
    color: #FFFFFF;
    padding: 3px 5px;
}
.projects-slider a:hover{
    text-decoration: none;
}
@media only screen and (max-width: 1200px){
    .project-tile__title {
        font-size: 16px;
        line-height: 1.1rem;
    }
}

@media only screen and (max-width: 720px) {
    .filtr-item.project-item {
        padding-left: 0;
        padding-right: 0;
    }
}