.banner {
    @media (min-width:576px) {
        span {
            display: block;
        }
    }

    h1 {
        position: relative;
    }
}

.home-banner {
    h1 {
        bottom: -0.2em;
        @media (min-width:1200px) {
            font-size: clamp(5rem, 4.75rem + 3vw, 9.5rem);
        }
        @media (max-width:767px) {
            font-size: clamp(2.5rem, 1.75rem + 3vw, 7rem);
        }
    }
    .overlay {
        background-image: linear-gradient(to bottom right, rgba(0,0,0,0.7), rgba(0,0,0,0));
    }

    .video-wrap {
        position: relative;
        .button-wrap {
            position: absolute;
            top: 0;
            left: 0;
            width:100%;
        }
    }
}

.landing-banner {
    h1 {
        bottom: -0.195em;
        max-width: 10em;

        @media (min-width:1580px) {
            bottom: -0.2em;
        }

        @media (min-width:1200px) {
            font-size: clamp(4.25rem, 4rem + 3vw, 8.5rem);
        }

        @media (max-width:767px) {
            font-size: var(--fs-display-1);
        }
    }
}

.landing-banner-alt {
    > div {
        min-height: 100vh;
    }
    h1 {
        max-width: 9.25em;
        bottom: -0.2em;

        @media (min-width:1200px) {
            font-size: clamp(4.25rem, 4rem + 3vw, 8.5rem);
        }

        @media (max-width:767px) {
            font-size: var(--fs-display-1);
        }
    }
    .content-alt {
       position: relative;

       &:before {
        content:"";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 0.75rem;
        background-color: var(--yellow);

        @media (min-width:576px) {
            width: 2rem;
        }

        @media (min-width:768px) {
            width: 2rem;
        }
        @media (min-width:1200px) {
            width: 5rem;
        }
        @media (min-width:1400px) {
            width: 7rem;
        }
       }
    }
}

.detail-banner {
    position: relative;
    .overlay {
        background-image: linear-gradient(rgba(254, 241, 4, 0.98) 18%, rgba(0,0,0,0), rgba(0,0,0,0.8));
    }
    h1 {
        text-transform: uppercase;
        bottom: -0.23em;
        color: var(--yellow);
        padding-top: 2em;

        @media (min-width:1200px) {
            font-size: var(--fs-display-1);
        }
    }
}

.detail-banner-big {
    > div {
        min-height: 100vh;

        @media (max-width:767px) {
            .content.animate--fade-in {
                opacity: 1;
            }
        }
    }
    h1 {
        bottom: 1.25em;
        max-width: 9.25em;

        @media (min-width:768px) {
            bottom: 0.95em;
        }

        @media (min-width:1200px) {
            font-size: clamp(4.25rem, 4rem + 3vw, 8.5rem);
            bottom: 0.65em;
        }

        @media (max-width:767px) {
            font-size: var(--fs-display-1);
        }
    }
    .down-arrow {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

.project-banner {
    h1 {
        margin-bottom: 0.5em;
    }
    h2 {
        margin-top: 0;
    }

    .bc-list {
        padding-bottom: 1rem;
    }

    .tn-image .overlay {
        background-image: linear-gradient(to top right, rgba(254,241,4,0.7), rgba(254,241,4,0) 40%);
    }
}

#p-markets .banner span {
    display: inline;
}

#p-landing-power .banner h1 {
    max-width: none;
    
    span {
        display: inline;
    }
}

#p-advantages {
    .detail-banner-big h1 {
        max-width: 8.5em;
    }
    .banner span {
        display: inline;
    }
}

#p-values {
    .banner span {
        display: inline;
    }
}

#p-careers {
    .detail-banner-big h1 {
        max-width: 8.5em;
    }
    .banner span {
        display: inline;
    }
}

#p-vendors {
    .detail-banner-big h1 {
        max-width: 10em;
    }
    .banner span {
        display: inline;
    }
}

#p-employees {
    .detail-banner-big h1 {
        max-width: 11em;
    }
    .banner span {
        display: inline;
    }
}

#p-grow-your-career, #p-start-your-career {
    .banner span {
        display: inline;
    }

    .landing-banner .content {
        padding-top: 6em;

        @media (min-width:768px) {
            padding-top: 7.75em;
        }
        @media (min-width:992px) {
            padding-top: 9.4em;
        }
        @media (min-width:1200px) {
            padding-top: 11.4em;
        }
        @media (min-width:1400px) {
            padding-top: 13em;
        }
    }
}

#p-companies, .c949 {
    .detail-banner-big h1 {
        max-width: 11.75em;
    }

    .banner span {
        display: inline;
    }
}

.hover-arrow-move:hover {
    .link {
        padding-right: 4rem;
    }
}

.hover-button-arrow-move:hover {
    .btn {
        padding-right: 4.5rem;
    }
}

.hover-button-black:hover {
    .btn {
        background: var(--black);
        color: var(--white);
        padding-right: 4.5rem;
    }
}

.what-we-do-row {
    a.d-block {
        @media (min-width:1400px) {
            min-height: 21em;
        }
    }
}

.about-row {
    a.d-block {
        @media (min-width:1200px) {
            min-height: 18em;
        }
        @media (min-width:1400px) {
            min-height: 21em;
        }
    }
}

.image-content-expand {
    .content {
        display: block;
        background-color:var(--white);
        text-decoration: none;
        transition: 0.25s;
        h3 {
            max-width: 10em;
        }
        p:not(.h6) {
            max-width: 23em;
        }
         &:hover {
            background-color:var(--yellow);
         }

         @media (min-width:576px) {
            max-width: 28em;
            &:hover {
                max-width: 31em;
             }
         }
         @media (min-width:992px) {
            max-width: 32em;
            &:hover {
                max-width: 35em;
             }
         }
         @media (min-width:1400px) {
            max-width: 36em;
            padding: 4.25em;
            &:hover {
                max-width: 39em;
             }
         }
         @media (min-width:1600px) {
            max-width: 38em;
            &:hover {
                max-width: 41em;
             }
         }
         @media (max-width:575px) {
            width: calc(100% - 0.75rem);
         }
    }
}

.project-tile {
    .background-cover {
        position: relative;
        &:after {
            content:"";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            top: 0;
            background-image: linear-gradient(to top right, rgba(254,241,4,0.7), rgba(254,241,4,0) 40%);
            transition: all 0.25s;
            opacity: 0;
        }
    }
    &:hover {
        .background-cover:after {
            /* animation-name: project-tile-hover-in;
            animation-duration: .4s;
            animation-fill-mode: forwards; */
            opacity: 1;
        }
    }
    /* &:not(:hover) {
        .background-cover:after {
            animation-name: project-tile-hover-out;
            animation-duration: .4s;
            animation-fill-mode: forwards;
        }
    } */
    div.mt-auto {
        padding-top: 0 !important;
    }
}

/* The animation code */
@keyframes project-tile-hover-in {
    0%   {height: 0;}
    100% {height:100%;}
}

  /* The animation code */
@keyframes project-tile-hover-out {
    0%   {height: 100%;}
    100% {height:0;}
}

.image-align-right {
    position: relative;

    .container-wrap {  
        @media (min-width:992px) {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
        }
    }

    .tn-image {
        margin-top: 2em;   
        width: calc(100% - 0.75rem);
        @media (min-width:576px) {
            width:22em;
        }
        @media (min-width:992px) {
            margin-left: auto;
            margin-top: 0;
        }
        @media (min-width:1200px) {
            width:25em;
        }
        @media (min-width:1400px) {
            width:28em;
        }
        @media (min-width:1600px) {
            width:30em;
        }
        @media (min-width:1860px) {
            width:33em;
        }
        @media (min-width:2200px) {
            width:36em;
        }
    }
    .display-2 {
        margin-bottom: 0.5em;
        @media (max-width:1399px) {
            font-size: var(--fs-display-1);
        }
        @media (max-width:575px) {
            font-size: var(--fs-3xl);
        }
    }

    &.half-image {
        .tn-image {
            @media (min-width:576px) {
                width:27em;
            }
            @media (min-width:992px) {
                width: calc(50% - 3rem);
            }
            @media (min-width:1600px) {
                width: calc(50% - 5rem);
            }
            .overlay {
                background-image: linear-gradient(to top right, rgba(254, 241, 4, 0.7), rgba(254, 241, 4, 0) 40%);
            }
        }

        .content .h2 {
            @media (min-width:992px) {
                max-width: 13em;
            }
        }
    }
}

.image-align-left {
    position: relative;

    .container-wrap {  
        @media (min-width:992px) {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
        }
    }

    .tn-image {
        margin-top: 2em;
        width: calc(100% - 0.75rem);
        @media (min-width:576px) {
            width:22em;
        }
        @media (min-width:992px) {
            margin-top: 0;
        }
        @media (min-width:1200px) {
            width:25em;
        }
        @media (min-width:1400px) {
            width:28em;
        }
    }
    .display-2 {
        margin-bottom: 0.5em;
        @media (max-width:1399px) {
            font-size: var(--fs-display-1);
        }
        @media (max-width:575px) {
            font-size: var(--fs-3xl);
        }
    }

    &.half-image {
        .tn-image {
            @media (min-width:576px) {
                width:27em;
            }
            @media (min-width:992px) {
                width: calc(50% - 3rem);
            }
            @media (min-width:1600px) {
                width: calc(50% - 5rem);
            }
            .overlay {
                background-image: linear-gradient(to top right, rgba(254, 241, 4, 0.7), rgba(254, 241, 4, 0) 40%);
            }
        }
        .content .h2 {
            @media (min-width:992px) {
                max-width: 11em;
            }
        }
    }
}

.image-content-right {
    position: relative;

    .overlay {
        background-image: linear-gradient(to top right, rgba(254,241,4,0.7), rgba(254,241,4,0) 40%);
    }

    .content {
        display: block;
        position: relative;
        background-color:var(--white);
        text-decoration: none;
        transition: 0.25s;
        max-width: 39em;
        @media (min-width:1200px) {
            margin: 3em 0;
        }
        @media (min-width:1400px) {
            max-width: 41em;
        }
        @media (min-width:1900px) {
            max-width: 48em;
        }
        @media (max-width:767px) {
            width: calc(100% - 2rem);
        }
        @media (max-width:575px) {
            width: calc(100% - 0.75rem);
        }

        p {
            max-width: 33em;
        }
    }
}

.slider--stats {
    .number {
        display: block;
        font-variation-settings: var(--font-expanded);
        font-size: var(--fs-display-2);
        line-height: var(--leading-display);
    }

    .content {
        max-width: 20em;
        display: block;
    }

    .slick-list {
        margin: 0 -1.75rem;
    }
    .slick-slide {
        margin: 0 1.75rem;
    }    
}

.expertise-tile {
    .video-wrap {
        position: relative;

        @media (min-width:768px) {
            height: 100%;
            width: 100%;
        }
        @media (max-width:767px) {
            padding-bottom: 56.25%;
        }

        &:after {
            content:"";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            top: 0;
            background-image: linear-gradient(to top right, rgba(254,241,4,0.7), rgba(254,241,4,0) 40%);
            transition: all 0.25s;
            opacity: 0;
        }
    }

    &:hover {
        .video-wrap:after {
            opacity: 1;
        }
    }
}

.contact-info {
    @media (min-width:1400px) {
        padding: 4.25em;
    }
}

.sidebar {
    .sidebar-item {
        margin-bottom: 3em;

        &:last-child {
            margin-bottom: 0;
        }
    }
    hr {
        margin: 1.25rem 0;
    }
}

.slider--timeline {
    margin-bottom: 42px;
    .number {
        display: block;
        font-variation-settings: var(--font-expanded);
        font-size: var(--fs-display-2);
        line-height: var(--leading-display);
    }

    .slick-track {
        display: flex !important;
    }

    .slick-slide {
        height: inherit !important;
    }

    .content-wrap {
        display: flex;
        flex-direction: column;
        height: 100%;

        .crop-image55 {
            margin-top: auto;
        }
    }

    .slick-prev, .slick-next {
        top: calc(100% + 4px);
        transform: none;
        background-color: var(--yellow);

        &:before {
            font-size: var(--fs-md);
        }
    }

    .slick-next {
        right: -0;
    }

    .slick-prev {
        left: initial;
        right: 45px;
    }

    .crop-image55 {
        position: relative;

        &:before, &:after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            width: 1px;
            background-color: var(--white);
        }

        &:before {
            left: 0;
        }
        &:after {
            right: 0;
        }
    }
}

.slider--timeline-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
}

.why-work {
    h3.add-span-bold {
        position: relative;
        margin-bottom: 0;
        bottom: -0.23em;
    }
}

.slider--why-work-wrap {
    position: relative;

    .bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
}

.slider--why-work {

    .slick-track {
        display: flex !important;
    }

    .slick-slide {
        height: inherit !important;
        padding: 0.5em 0;
    }
    
    .tile {
        box-shadow: 0 0 10px rgba(0,0,0,.15);
        height: 100%;
    }

    .slick-disabled {
        opacity: 0;
        pointer-events:none;
    }

    .slick-prev, .slick-next {
        background-color: var(--yellow);
    }

    @media (min-width:768px) {
        .slick-prev, .slick-next {
            top: 3em;
            transform: none;
        }
    
        .slick-next {
            right: initial;
            left: 100%;
        }
    
        .slick-prev {
            left: initial;
            right: 100%;
        }
    }

    @media (min-width:992px) {
        .slick-prev, .slick-next {
            top: 4.5em;
        }
    }

    @media (min-width:1280px) {
        .slick-prev, .slick-next {
            top: 6.5em;
        }

        .slick-next {
            left: calc(100% + 15px);
        }
    
        .slick-prev {
            right: calc(100% + 15px);
        }
    }
    
}

.career-image-content {
    position: relative;

    .overlay {
        background-image: linear-gradient(rgba(0,69,69,0), var(--teal) 80%);
    }
    .content {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
    }
}

.page-cta .btn {
    margin: 0 1.8rem;

    &:hover {
        margin-right: 0;
    }
}

.slider--image-gallery {
    img {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        max-height: 280px;
        width: 100%;
        height: -webkit-fill-available;
        object-fit: cover;

        @media (min-width: 768px) {
            max-height: 360px;
        }

        @media (min-width: 1200px) {
            max-height: 560px;
        }
    }

    .slick-track {
        display: flex !important;
    }

    .slick-slide {
        height: inherit !important;
    }

    .slick-prev, .slick-next {

        &:before {
            font-size: var(--fs-md);
        }
    }
}

/* Video Pause/Play Button */
.pause-play {
  position: absolute;
  width: 2.25rem;
  height: 2.25rem;
  bottom: 1rem;
  right: 1rem;
  color: var(--white);
  opacity: 0.7;
  z-index: 2;

  .btn-pause, .btn-play {
    position: absolute;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 2.25rem;
    color: inherit;

    i {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  @media (max-width:575px) {
    width: 1.75rem;
    height: 1.75rem;
    bottom: 0.75rem;
    right: 0.75rem;

    .btn-pause, .btn-play {
      width: 1.75rem;
      height: 1.75rem;
      font-size: 1.75rem;
    }
  }

  .btn-play {
    display: none;
  }

  &.paused {
    .btn-pause {
      display: none;
    }

    .btn-play {
      display: block;
    }
  }
}

.bg-gradient-yellow-to-bottom-right + .related-markets {
    margin-top: 0;
}