@import 'number-back.css';
@import 'project-details.css';
@import 'slide.css';

.portfolio {
    max-width: 840px;
    padding: 0 20px;
    width: 100%;
    margin: -400px auto 0 auto;
    opacity: 0;
}

.noScroll {
    overflow: hidden;
    padding-right: 15px;
}

/* Case Study Showcase
================================================== */
.case-study-images li {
    min-height: 200px;
}

.slick-slide {
    outline: none;
}
.case-study-images {
    width: 100%;
    margin:0;
    padding: 0;
    z-index: 2;
    position: relative;
    top: -40px;
}
.case-study-images li {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    list-style:none;
    -webkit-transition: all 300ms linear;
    transition: all 300ms linear;
}
.case-study-images .img-hero-background{
    position: relative;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all 300ms linear;
    transition: all 300ms linear;
    z-index: 1;
    outline: none;
    overflow: visible;
}

.case-study-images.slick-slider .slick-track, .case-study-images.slick-slider .slick-list {
    height: 100%;
}
.case-study-images .slick-list {
    overflow: visible;
}

.case-study-images .slick-current .img-hero-background {
    visibility: visible;
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.case-study-images  .img-hero-background div img{
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(60px) scale(0.6, 1.7);
    transform-origin: center top;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.case-study-images  .img-hero-background div {
    display: block;
    width: calc(50% - 10px);
    margin-bottom: 20px;
}

.case-study-images  .img-hero-background div:nth-child(5) {
    margin-bottom: 0;
}


.case-study-images .slick-current .img-hero-background div img{
    transform: scale(1);
}
/**/

.case-study-images .prevArrow {
    display: none;
    left: 3%;
}

.case-study-images .nextArrow {
    display: none;
    right: 3%;
}

/* #Media
================================================== */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
    }

}

@media (max-width: 767px) {
    .noScroll {
        overflow: hidden;
    }
    .portfolio {
        height: auto;
        padding: 30px 0;
    }
    .case-study-wrapper {
        position: relative;
        transform: none;
        top: unset;
        left: unset;
        padding: 50px 20px 20px 20px;
    }
    .case-study-images {
        display: none !important;
    }
}

@media screen and (min-height: 1200px) {
    .portfolio {
        margin-top: -350px;
    }
}

@media screen and (min-height: 1350px) {
    .portfolio {
        margin-top: -250px;
    }
}

@media screen and (min-height: 1800px) {
    .portfolio {
        margin-top: -90px;
    }
}

@media screen and (min-height: 2400px) {
    .portfolio {
        margin-top: 0;
    }
}
@media screen and (min-height: 2800px) {
    .portfolio {
        margin-top: 50px;
    }
}



/*.case-study-images .websites .img-hero-background div:first-child */
/*    width: 23%;*/
/*    top: 8%;*/
/*    left: 16%;*/
/*}*/
/*.case-study-images .websites .img-hero-background div:nth-child(2) {*/
/*    width: 23%;*/
/*    top: 40%;*/
/*    left: 8%;*/
/*}*/
/*.case-study-images .websites .img-hero-background div:nth-child(3) {*/
/*    width: 21%;*/
/*    top: 22%;*/
/*    left: 70%;*/
/*}*/
/*.case-study-images .websites .img-hero-background div:nth-child(4) {*/
/*    width: 27%;*/
/*    top: 65%;*/
/*    left: 50%;*/
/*}*/

/*.case-study-images .branding .img-hero-background div:first-child {*/
/*    width: 24%;*/
/*    top: 21%;*/
/*    left: 12%;*/
/*}*/
/*.case-study-images .branding .img-hero-background div:nth-child(2) {*/
/*    width: 30%;*/
/*    top: 57%;*/
/*    left: 29%;*/
/*}*/
/*.case-study-images .branding .img-hero-background div:nth-child(3) {*/
/*    width: 25%;*/
/*    top: 10%;*/
/*    left: 73%;*/
/*}*/
/*.case-study-images .branding .img-hero-background div:nth-child(4) {*/
/*    width: 24%;*/
/*    top: 42%;*/
/*    left: 71%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:first-child {*/
/*    width: 26%;*/
/*    top: 8%;*/
/*    left: 7%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:nth-child(2) {*/
/*    width: 27%;*/
/*    top: 50%;*/
/*    left: 12%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:nth-child(3) {*/
/*    width: 27%;*/
/*    top: 17%;*/
/*    left: 68%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:nth-child(4) {*/
/*    width: 25%;*/
/*    top: 62%;*/
/*    left: 52%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:first-child {*/
/*    width: 27%;*/
/*    top: 10%;*/
/*    left: 5%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:nth-child(2) {*/
/*    width: 23%;*/
/*    top: 60%;*/
/*    left: 9%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:nth-child(3) {*/
/*    width: 27%;*/
/*    top: 20%;*/
/*    left: 70%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:nth-child(4) {*/
/*    width: 23%;*/
/*    top: 58%;*/
/*    left: 57%;*/
/*}


 */

/*.case-study-images .websites .img-hero-background div:first-child {*/
/*    width: 25%;*/
/*    left: 10%;*/
/*    top: 12%;*/
/*}*/
/*.case-study-images .websites .img-hero-background div:nth-child(2){*/
/*    width: 26%;*/
/*    left: 3%;*/
/*    top: 33%;*/
/*}*/
/*.case-study-images .websites .img-hero-background div:nth-child(3){*/
/*    width: 24%;*/
/*    left: 69%;*/
/*    top: 25%;*/
/*}*/
/*.case-study-images .websites .img-hero-background div:nth-child(4){*/
/*    width: 29%;*/
/*    top: 60%;*/
/*    left: 46%;*/
/*}*/

/*.case-study-images .branding .img-hero-background div:first-child {*/
/*    width: 29%;*/
/*    top: 15%;*/
/*    left: 3%;*/
/*}*/
/*.case-study-images .branding .img-hero-background div:nth-child(2){*/
/*    width: 31%;*/
/*    top: 62%;*/
/*    left: 29%;*/
/*}*/
/*.case-study-images .branding .img-hero-background div:nth-child(3){*/
/*    width: 27%;*/
/*    top: 10%;*/
/*    left: 74%;*/
/*}*/
/*.case-study-images .branding .img-hero-background div:nth-child(4){*/
/*    width: 25%;*/
/*    top: 50%;*/
/*    left: 72%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:first-child {*/
/*    width: 29%;*/
/*    top: 10%;*/
/*    left: 3%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:nth-child(2){*/
/*    width: 30%;*/
/*    top: 55%;*/
/*    left: 7%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:nth-child(3){*/
/*    width: 28%;*/
/*    top: 25%;*/
/*    left: 69%;*/
/*}*/
/*.case-study-images .logos .img-hero-background div:nth-child(4){*/
/*    width: 26%;*/
/*    top: 64%;*/
/*    left: 50%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:first-child {*/
/*    width: 29%;*/
/*    top: 10%;*/
/*    left: 5%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:nth-child(2) {*/
/*    width: 25%;*/
/*    top: 60%;*/
/*    left: 9%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:nth-child(3) {*/
/*    width: 29%;*/
/*    top: 20%;*/
/*    left: 69%;*/
/*}*/
/*.case-study-images .print .img-hero-background div:nth-child(4) {*/
/*    width: 25%;*/
/*    top: 57%;*/
/*    left: 51%;*/
/*}*/