.work-grid {
    min-height: 70vh;
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px; 
    width: 90%;
    margin: auto;
    padding-bottom: 300px;
}

.small .work-grid {
    min-height: 70vh;
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(auto, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px; 
    width: 90%;
    margin: auto;
    padding-bottom: 300px;
}

.max{
    max-width: 1600px!important;
    margin: auto;
    /* padding: 0 40px; */
}

ul.work-grid a {
    color: #fff;
}

.work-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    /* margin: 0 auto 10%; */
}

.work-grid li {
    overflow: hidden;
    transition:all .3s ease;
    cursor: pointer;
}

.caption {
    position: absolute;
    height: 100%;
    padding: 10px;
    background: #5c8cff8c;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:all .3s ease;
    text-align: center;
}

.caption span {
    display: block;
}

.client {
    font-family: 'Poppins';
    font-size: 1.2rem;
}

.caption .proj-desc {
    font-size: .9rem;
    margin-top: 8px;
    text-align: center;
    width: 80%;
    line-height: 1.4;
}


.work-grid li:hover .caption{
    bottom: 3px;
    opacity: 1;
    transition:all .3s ease
}

.work-grid li:hover img{
    opacity: .6;
}






.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: 100vh;
  background: #5c8cffad;
  z-index:10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shadowbox{
  position: fixed;
  max-width: 1000px;
  width: 90%;
}

.shadowbox img {
    align-self: center;
    max-width: 1000px;
    width: 100%;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,.5);
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.info {
    z-index: 505;
    background: #e62323ad;
    position: absolute;
    bottom: 2px;
    height: 80px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
}

.info span {
    display: block;
    margin-bottom: 10px;
}

.close-btn {
    height: 24px;
    width: 24px;
    position: absolute;
    right: 12px;
    top: 12px;
    background: black;
    /* border-radius: 50%; */
    background: url(../assets/close-btn.svg) center no-repeat;
    background-size: 100%;
    z-index: 500;
}

.borrower-type-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
}

/* Case Studies */

.case-study figure {
    margin-top: 30px;
}

.proj-nav {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 30px;
    line-height: 2;
    font-size: 1.2rem;
}

.proj-nav a{
    color:#fff;
}

.sticky{
    position: sticky;
}

.case-study figcaption {
    font-size: 1.2rem;
    margin-top: 10px;
    line-height: 1.4;
}

.banner {
    height: 23vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
}

ul.casestudies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 80px;
    grid-row-gap: 0px;
    margin-top: 70px;
}

ul.casestudies-grid p{
  font-size:1rem;
}

.casestudies-grid li img {
    width: 100%;
    border-radius: 5px;
}

.casestudies-grid li a {
    color: #fff;
    width: 100%;
    margin: auto;
    display: block;
}

.casestudies-grid li {
    width: 100%;
}

html {
  scroll-behavior: smooth;
}

.right-box {
    width: calc(50% - 20px);
    overflow: hidden;
    float: left;
    height: 70vh;
    border-radius: 0 20px 20px 0;
}

.left-box {
    width: calc(50% - 20px);
    float: right;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #4a73d4;
    padding: 40px;
    text-align: center;
    left: 0%;
    border-radius: 20px 0 0 20px;
}

.small .right-box {
    width: 90%;
    overflow: hidden;
    height: 40vh;
    border-radius: 20px 20px 0 0;
    background-position: center!important;
    background-size: cover!important;
    float: none;
    margin: auto;
}

.small .left-box {
    width: 90%;
    margin:auto;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #4a73d4;
    padding: 40px;
    text-align: center;
    left: 0%;
    border-radius: 0px 0 20px 20px;
    float: none;
}

.left-box ul {
    margin: 20px 0 30px;
    line-height: 2;
}

.left-box h3 {
    margin: 0;
}

li.study {
    margin: 150px 0;
    overflow: hidden;
}

.right-box img {
    height: 100%;
}

.left-box a {
    background: #ffffff;
    width: 160px;
    margin: auto;
    padding: 10px 20px;
    font-size: 1.2rem;
    display: inline-block;
    margin: 0 auto;
    border-radius: 50px;
    transition:all .3s ease;
}

.left-box a:hover {
    background:#ffffffbd;
}