
/* case studies */
.sg_case-studies {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.sg_case-studies > .article {
    position: relative;
}
.sg_case-studies > .article > .thumb {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
}
.sg_case-studies > .article > .thumb:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.35);
    z-index: 1;
    transition: all 0.35s;
}
.sg_case-studies > .article:hover > .thumb:before {
    opacity: 0.5;
}
.sg_case-studies > .article > .thumb > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 5s;
}
.sg_case-studies > .article:hover > .thumb > img {
    transform: scale(1.1);
}
.sg_case-studies > .article > .thumb > .details {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: #fff;
    z-index: 2;
}
.sg_case-studies > .article > .thumb > .details .l {
    display: block;
    margin-bottom: 15px;
}
.sg_case-studies > .article > .thumb > .details h4 {
    font-size: 30px;
    line-height: 1em;
    margin: 0 0 5px;
}
.sg_case-studies > .article > .thumb > .details p {
    font-size: 18px;
}
.sg_case-studies > .article > .cta {
    position: relative;
    display: block;
    text-align: center;
}

/* row archive */
.sg_case-studies--row {
    position: relative;
}
.sg_case-studies--row > .article {
    position: relative;
    display: -ms-flex;
    display: flex;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: rgb(100 100 111 / 20%) 0px 7px 29px 0px;
    margin-bottom: 50px;
    overflow: hidden;
}
.sg_case-studies--row > .article > .thumb {
    position: relative;
    -ms-flex: 0 0 350px;
    flex: 0 0 350px;
    background-color: #222;
}
.sg_case-studies--row > .article > .thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.sg_case-studies--row > .article > .info {
    padding: 50px;
}
.sg_case-studies--row > .article:nth-child(even) {
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}


/* single */
.page-case_study--single .animated-site--bg .floating-particles-1 > div:first-child {
    left: 15%;
}

.page-case_study--single .sg_case-details {
    position: relative;
    background-color: #fff;
    padding: 50px 35px;
    border-radius: 15px;
    height: 100%;
}
.page-case_study--single .sg_case-details > .item {
    display: block;
    margin-bottom: 15px;
}
.page-case_study--single .sg_case-details > .item > label {
    display: block;
    font-family: var(--headings-font-family);
    border-bottom: 1px solid #e3e3e3;
}
.page-case_study--single .sg_case-details > .item a {
    text-decoration: underline;
}

.page-case_study--single .sg_case-stats--row {
    position: relative;
    background-color: #fff;
    padding: 50px 35px;
    border-radius: 15px;
    display: flex;
    display: -ms-flex;
    -ms-justify-content: space-around;
    justify-content: space-around;
}
.page-case_study--single .sg_case-stats--row > .item {
    position: relative;
    padding: 25px;
    text-align: center;
    -ms-flex: 0 0 33.33%;
    flex: 0 0 33.33%;
}
.page-case_study--single .sg_case-stats--row > .item:not(:last-child):after {
    position: absolute;
    content: '';
    top: 0;
    right: -1px;
    bottom: 0;
    width: 1px;
    background-color: #e3e3e3;
}
.page-case_study--single .sg_case-stats--row > .item h3 {
    font-size: 40px;
    font-family: var(--headings_1-font-family);
    margin-bottom: 5px;
}

.page-case_study--single .sg_case-keyphrase--info {
    position: relative;
    display: -ms-flex;
    display: flex;
    margin: 0 -15px;
}
.page-case_study--single .sg_case-keyphrase--info > .item {
    -ms-flex: 0 0 calc(33.33% - 30px);
    flex: 0 0 calc(33.33% - 30px);
    max-width: calc(33.33% - 30px);
    margin: 15px;
}
.page-case_study--single .sg_case-keyphrase--info .item {
    width: 100%;
}
.page-case_study--single .sg_case-keyphrase--info .item > h4 {
    display: block;
    height: 40px;
    white-space: nowrap;
}
.page-case_study--single .sg_case-keyphrase--info .item > .thumb,
.page-case_study--single .sg_case-keyphrase--info .item > .thumb-label {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    overflow: hidden;
}
.page-case_study--single .sg_case-keyphrase--info .item > .thumb > img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.page-case_study--single .sg_case-keyphrase--info .item > .thumb-label {
    display: -ms-flex;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-justify-content: center;
    justify-content: center;
    -ms-align-items: center;
    align-items: center;
    width: 100%;
    background-color: var(--sg-color-primary);
    color: #fff;
}
.page-case_study--single .sg_case-keyphrase--info .item > .thumb-label > h3 {
    font-size: 40px;
    line-height: 1em;
    margin-bottom: 5px;
}

@media only screen and (max-width: 767px) {
    
    .sg_case-studies--row > .article > .thumb {
        -ms-flex: 0 0 150px;
        flex: 0 0 150px;
    }

}

@media only screen and (max-width: 575px) {

    body.page-case_studies .section-case-banner-mobile,
    body.page-case_study--single .section-case-banner-mobile {
        padding: 50px 25px 150px;
        color: #fff;
        background-image: url('../img/header-bg-sm.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: bottom center;
        text-align: center;
    }

    body.page-case_studies .animated-site--bg .top,
    body.page-case_study--single .animated-site--bg .top {
        display: none;
    }
    
    .sg_case-studies--row > .article {
        -ms-flex-direction: column !important;
        flex-direction: column !important;
    }
    .sg_case-studies--row > .article > .thumb {
        height: 200px;
    }

}