.out-cast-project-top-row {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: .6em
}
a.project-gallery__bottom-row__image img,a.video-container img{object-fit:cover;}


@media(min-width:768px) {
    .out-cast-project-top-row {
        flex-direction: row;
        margin-bottom: 2em
    }
}

.out-cast-project-row-left {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    height: 12.1428571429rem
}


@media(min-width:768px) {
    .out-cast-project-row-left {
        max-width: 100%;
        margin-bottom: auto;
        height: 21.4285714286rem
    }
}

@media(min-width:1366px) {
    .out-cast-project-row-left {
        height: 28.5714285714rem
    }
}

.out-cast-project-row-left img {
    display: inline-block;
    margin-right: 1em;
    width: 50%;
      object-fit:cover;
}

@media(min-width:768px) {
    .out-cast-project-row-left img {
        margin-right: 2rem
    }
}

.out-cast-project-row-right {
    margin: 0 2em
}

@media(min-width:768px) {
    .out-cast-project-row-right {
        align-self: flex-end
    }
}


.out-cast-project-bottom-row-container {
    display: flex;
    padding: 0;
    height: 10rem
}

@media(min-width:768px) {
    .out-cast-project-bottom-row-container {
        padding: 0 30px;
        height: 28.5714285714rem
    }
}

@media(min-width:1366px) {
    .out-cast-project-bottom-row-container {
        height: 37.1428571429rem
    }
}

.project-gallery__bottom-row__image {
    display: block;
    background-size: cover;
    height: 100%;
    width: 100%
}

@media(min-width:768px) {
    .project-gallery__bottom-row__image {
        width: 100%;
        height: 520px;
        aspect-ratio: 1;
        margin-bottom: 2em;
        display: inline-block;
/*         max-height: 331px; */
    }
}

.project-bottom-row-link {
    display: none;
    text-align: center
}

.project-gallery__bottom-row__link--mobile {
    display: block;
    margin: 3em 2em;
    text-align: left
}

@media(min-width:768px) {
    .project-gallery__bottom-row__link--mobile {
        display: none !important
    }
    .project-bottom-row-link {
        text-align: right;
        display: block
    }
}

.project-bottom-row-link a {
    padding-bottom: .5em;
    font-family: SofiaPro-Bold;
    font-size: .7857142857rem;
    letter-spacing: 2px;
    color: #1c3a5b;
    text-transform: uppercase;
    -webkit-transition: all .5s;
    transition: all .5s;
    position: relative
}

.project-bottom-row-link a:after {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    content: ".";
    color: transparent;
    background: #1c3a5b;
    height: 1px;
    -webkit-transition: all .5s;
    transition: all .5s
}

.project-bottom-row-link a:hover {
    color: rgba(0, 0, 0, .7)
}

.project-bottom-row-link a:hover:after {
    width: 0
}

.project-bottom-row-left {
    text-align: right;
    min-width: 50%;
    height: 12em;
    
}

@media(min-width:768px) {
    .project-bottom-row-left {
        margin-right: 0;
    width: 49%;
    padding-right: 1em;
        min-height: 200px;
        max-height: 200px
    }
}

@media(min-width:1366px) {
    .project-bottom-row-left {
        min-height: 300px;
        max-height: 300px
    }
}

.project-bottom-row-right {
    min-height: 12em;
    height: 12em;
    flex-grow: 1;
      padding-left: 1em;
    width: 50%;
}

@media(min-width:768px) {
    .project-bottom-row-right {
        height: auto
    }
}

.project-bottom-row-right-mobile {
    height: 100%;
      display: none;
}

@media(min-width:768px) {
    .project-bottom-row-right-mobile {
        display: none
    }
}

.project-bottom-row-right-mobile img {
    height: 100%
}

.project-bottom-row-right .video-container {
/*     display: none; */
    margin-top: 2em;
    min-height: 150px;
    width: 100%;
    background-size: cover
}

@media(min-width:768px) {
    .project-bottom-row-right .video-container {
        margin-top: auto;
        display: block;
        max-width: 100%;
        height: 520px
          
    }
}

.project-bottom-row-right .video-container .video-react .video-react-big-play-button {
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: none;
    background-color: #1c3a5b;
    border-radius: 100%;
    width: 2em;
    height: 2em
}

.project-bottom-row-right .video-container .video-react .video-react-big-play-button:before {
    top: 15%
}

.project-gallery-title {
    font-size: 1.5rem
}

.main-project-gallery-list {
    margin-bottom: 3em
}

@media(min-width:768px) {
    .main-project-gallery-list {
        max-width: 50%;
        margin-bottom: 0
    }
}



.project-gallery-list-item {
    margin-right: -5px;
    margin-top: -1px;
    color: #1c3a5b;
    border: 1px solid #1c3a5b;
    display: inline-block;
    font-size: .7142857143rem;
    text-transform: uppercase;
    padding: 1em 2em;
    white-space: nowrap;
    -webkit-transition: all .5s;
    transition: all .5s
}

.project-gallery-list-item a {
    color: #1c3a5b
}

ul.main-project-gallery-list {
    padding-left: 0px;
}

section.out-cast-project-gallery {
    margin-bottom: 200px;
    margin-top: 120px;
}

.animation-wrapper1 {
    display: block;
    width: 100%;
}




.project-bottom-row-left {
/*     max-height: 331px !important;
    height: 331px; */
}

a.project-gallery__bottom-row__image img {
    height: 100%;
    width: 100%;
    max-width: 100%;
  display: inline-block;
}

a.video-container img {
    height: 100%;
  width:100%;
}
.project-bottom-row-right {
    max-height: 520px;
}
@media(max-width:1024px) {
  .project-bottom-row-right .video-container,.project-gallery__bottom-row__image{height:250px;,}  
}

@media(max-width:767px){
  .out-cast-project-top-row,.out-cast-project-bottom-row-container{flex-wrap:wrap; height:auto;flex-direction: unset;}
  .out-cast-project-row-left{flex-wrap:wrap; height:auto; width:100%;}
  .project-bottom-row-right{padding:0;}
  .out-cast-project-row-right{flex-wrap:wrap; height:auto; width:100%; margin:0; padding:0 2rem;order: -1;} 
  .out-cast-project-row-left img { display: inline-block; margin: 0 0 2em; width: 100%; }
  .project-bottom-row-left { height: auto; margin: 0 0 2em; min-width: inherit; text-align: right; width: 100%; padding:0;}
  .project-bottom-row-right{ height:auto;}
  a.video-container img{width:100%;}
  .project-bottom-row-right .video-container{height:auto !important;}
  a.project-gallery__bottom-row__image img{height:auto;}
}