
html, body {
    overflow-y: auto;
}

.bg-gradient {
    fill: linear-gradient(90deg, rgba(22, 31, 56, 0.60) 13.74%, rgba(43, 61, 111, 0.28) 75.89%, rgba(62, 87, 158, 0.00) 113.18%);
    background-blend-mode: multiply;
}

.case-study-section {
    height: 80vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.case-study-section-container {
    width: 65%;
}

#articleBody h1, #articleClone h1 {
    font-weight: 800;
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 0%;
    margin: 20px 0;
    color: #161F38;
}

#articleBody h1:first-child {
    margin: 8px 0;
}

#articleBody h2, #articleClone h2 {
    font-weight: 800;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0%;
    margin: 20px 0;
}

#articleBody .summary, #articleClone .summary {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0%;
    margin-bottom: 20px;
    color: #161F38;
}

#articleBody p, #articleBody li, #articleClone p, #articleClone li {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #161F38;
}

#articleBody p:first-child, #articleClone p:first-child {
    margin-top: 0;
}

#articleBody .capabilities-list, #articleClone .capabilities-list {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #161F38;
    margin-bottom: 16px;
}

#articleBody .contact-block {
    font-size: 18px;
    color: #161F38;
    width: 100%;
    padding: 20px;
    background: #E4D955;
    text-align: center;
    font-weight: bold;
    box-sizing: border-box;
}

#articleBody .contact-block a {
    color: black;
}

#articleBody .image-container {
    padding: 20px 0;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#articleBody .img-full {
    width: 100%;
    height: 50%;
    display: block;
    object-fit: cover;
}

#articleBody .img-half {
    width: 50%;
    margin: auto;
}

#articleBody:has(.img-caption) .img-full {
    height: 95% !important;
}

#articleBody .image-container.v .img-full {
    object-fit: contain;
    height: 100%;
    max-width: 100%;
}

#articleBody .image-container.v30 {
    height: 30%;
    max-height: 750px;
}

#articleBody .img-caption {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0%;
    text-align: center;
    padding: 12px;
}

#articleBody .gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

#articleBody .gallery-layout .row.top {
    display: flex;
    gap: 20px;
}

#articleBody .gallery-layout .row.bottom {
    display: flex;
}

#articleBody .gallery-layout .image-container {
    flex: 1;
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
}

#articleBody .gallery-layout .row.bottom .image-container {
    aspect-ratio: 2 / 1;
}

#articleBody .gallery-layout .img-full {
    height: 100%;
}

#articleBody .image-gallery-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* height: 500px; */
    position: relative;
    margin-bottom: 16px;
    background-color: lightgray;
    overflow: hidden;
}

#articleBody .image-gallery-slider-track {
    height: 100%;
    display: flex;
    transition: transform 0.35s ease;
}

#articleBody .image-gallery-slide {
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: lightgray;
}

#articleBody .image-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

#articleBody .image-gallery-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: #007C85;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

#articleBody .image-gallery-arrow-btn-right {
    right: 0;
}

#articleBody .image-gallery-arrow-btn-left {
    left: 0;
}

#articleBody .image-gallery-caption {
    position: absolute;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 8px;
}

#articleBody .large-quote, #articleClone .large-quote {
    max-width: 95%;
    margin: 30px 0;
}

#articleBody .large-quote-text, #articleClone .large-quote-text {
    font-weight: 800;
    font-size: 48px;
    line-height: 58px;
    letter-spacing: 0%;
    color: #007C85;
    padding-bottom: 12px;
}

#articleBody .large-quote-attribution, #articleClone .large-quote-attribution {
    font-weight: 800;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
}

#articleBody .wf-button {
    margin-top: 40px;
}

#articleBody .video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 12px;
    position: relative;
}

#articleBody .video-container video:playing {
    z-index: 2;
}

#articleBody .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 10px);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%);
}

#articleBody .video-play-btn {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(../assets/Icons/play.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

#articleBody iframe {
    min-width: 60%;
    aspect-ratio: 560 / 315;
}

#articleBody .stats-wrapper, #articleClone .stats-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    margin: 40px 0;
}

.stats-wrapper .stats-container {
    display: flex;
    flex-direction: column;
    max-width: 25%;
}

.stats-wrapper .stats-container .stats-num {
    font-weight: 800;
    font-size: 48px;
    line-height: 58px;
    letter-spacing: 0%;
    color: #161F38;
}

.stats-wrapper .stats-container .stats-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0%;
    color: #161F38;
}

#articleBody .h-bar {
    height: 2px;
    background-color: #E4D955;
    margin: 56px 0;
}

#articleBody .contributor-heading, #articleClone .contributor-heading {
    font-weight: 800;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
    color: #161F38;
}

#articleBody .contributor, #articleClone .contributor {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #161F38;
    margin: 12px 0;
}

#articleBody .contributor span, #articleClone .contributor span {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 3px;
    text-decoration-thickness: 0%;
}

#articleBody .text-with-image {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

#articleBody .text-with-image > div:nth-child(1) {
    width: 50%;
}

#articleBody .text-with-image > div:nth-child(2) {
    max-width: 45%;
}

#articleBody .text-with-image .img-full {
    height: 100%;
    object-fit: contain;
}

#articleBody video {
    margin: 10px 0;
    width: 100%;
}

.indent {
    margin-left: 32px !important;
}

.no-space-below {
    margin-bottom: 0 !important;
}

.aspect-three-halves {
    aspect-ratio: 3 / 2 !important;
}

/* PDF EXPORT */

.export-article-header {
    font-weight: 800;
    font-size: 48px;
    line-height: 80px;
    letter-spacing: 0%;
    color: #161F38;
}

#articleClone {
    width: 100%;
}

#articleClone .gallery-layout,
#articleClone .image-container,
#articleClone .image-full,
#articleClone .wf-button,
#articleClone .h-bar,
#articleClone .video-container {
    display: none;
}

#articleClone .contributor span {
    text-decoration: none;
}

/* GALLERY VIEW */

#galleryViewModalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
}

#galleryViewModal {
    width: 100%;
    height: 100%;
    background-color: rgba(22,24,56,0.8);
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding: 20px 283px;
    box-sizing: border-box;
}

#galleryViewModal .icon-close {
    align-self: flex-end;
}

#galleryView {
    position: relative;
    width: 100%;
    height: 85%;
    aspect-ratio: 16 / 9;
    background-color: lightgray;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../assets/Phase1_Images/Case_Studies/Chevrolet/Corvette-1.png);
}

.gallery-view-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: #007C85;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-view-btn:hover {
    background: #161F38;
}

.gallery-view-btn .icon {
    width: 35px;
    height: 35px;
}

#galleryViewRight {
    right: 0;
}

#galleryViewBottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0%;
    gap: 48px;
}

#galleryViewCaption {
    height: 2lh;
}

#galleryViewPagination {
    font-weight: 800;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0%;
    text-align: right;
}

@media only screen and (max-width: 1200px) {
    #galleryViewModal {
        padding: 31px 122px;
    }
}

@media only screen and (max-width: 1000px) {
    #galleryViewModal {
        padding: 31px 72px;
    }

    #articleBody .video-play-btn {
        width: 80px;
        height: 80px;
    }
}

@media only screen and (max-height: 650px) {
    .case-study-section-container {
        width: 85%;
    }

    .section-headline {
        font-size: 56px;
        line-height: 60px;
    }

    #articleSection {
        padding: 60px 6%;
    }
}

@media only screen and (max-width: 800px) and (orientation: portrait) {
    #menu {
        position: absolute;
    }

    .case-study-section {
        height: 60vh;
    }

    .case-study-section-container {
        margin-top: 9%;
    }

    .section-headline {
        font-size: 32px;
        line-height: 42px;
    }

    #articleSection {
        padding: 75px 3%;
    }

    #articleSectionContainer {
        flex-direction: column;
    }

    #articleReturn {
        align-items: center;
    }

    #articleReturnText {
        max-width: unset;
    }

    #articleBody {
        padding: 40px 0;
        width: 95%;
        max-width: 95%;
    }

    #articleBody h1, #articleClone h1 {
        font-weight: 800;
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0%;
    }

    #articleBody p, #articleBody li, #articleClone p, #articleClone li {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0%;
    }

    #articleBody .large-quote-text, #articleClone .large-quote-text {
        font-weight: 800;
        font-size: 32px;
        line-height: 42px;
        letter-spacing: 0%;
    }

    #articleBody .large-quote-attribution, #articleClone .large-quote-attribution {
        margin-top: 8px;
    }

    .indent {
        margin-left: 0 !important;
    }

    #articleBody .image-container {
        margin-bottom: 24px;
    }

    #articleBody .image-container.v30 {
        width: 75%;
        margin: auto;
    }

    #articleBody .image-container.v .img-full {
        width: 100%;
    }

    #articleBody .gallery-layout {
        margin-bottom: 24px;
    }

    #articleBody .gallery-layout .row.top {
        flex-direction: column;
    }

    #articleBody .gallery-layout .image-container {
        height: 100%;
    }

    #articleBody .image-gallery-arrow-btn {
        width: 60px;
        height: 60px;
    }

    #articleBody .image-gallery-arrow-btn .icon {
        width: 30px;
        height: 30px;
    }

    #articleBody .contact-block {
        font-size: 14px;
        padding: 14px;
    }

    #articleBody .text-with-image {
        flex-direction: column;
    }

    #articleBody .text-with-image > div:nth-child(1) {
        width: unset;
    }

    #articleBody .text-with-image > div:nth-child(2) {
        max-width: unset;
    }

    .stats-wrapper .stats-container .stats-num {
        font-weight: 800;
        font-size: 32px;
        line-height: 42px;
        letter-spacing: 0%;
    }

    #galleryViewModal {
        width: 100%;
        height: 100%;
        padding: 0;
        align-items: center;
    }

    #galleryViewModal .icon-close {
        width: 28px;
        height: 28px;
        position: absolute;
        top: 42px;
        right: 20px;
    }
    
    #galleryView {
        height: unset;
    }

    .gallery-view-btn {
        width: 65px;
        height: 65px;
    }

    .gallery-view-btn .icon {
        width: 28px;
        height: 28px;
    }

    #galleryViewLeft {
        left: 2%;
    }

    #galleryViewRight {
        right: 2%;
    }

    #galleryViewBottom {
        width: 85%;
        flex-direction: column;
        gap: unset;
    }

    #galleryViewCaption {
        height: unset;
    }

    #galleryViewPagination {
        text-align: center;
        margin-top: 20px;
    }

    #landingMenu {
        display: flex;
    }
}

@media only screen and (max-width: 500px) and (orientation: portrait) {
    .section-headline {
        font-size: 24px;
        line-height: 32px;
    }

    #articleSection {
        padding: 45px 3%;
    }

    #articleBody .large-quote-text, #articleClone .large-quote-text {
        font-weight: 800;
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0%;
    }
}

@media only screen and (max-width: 400px) and (orientation: portrait) {
    .case-study-section-container {
        width: 87.5%;
        margin-top: 12%;
    }

    .section-headline {
        font-size: 18px;
        line-height: 24px;
    }

    #articleReturn .icon {
        width: 15px;
        height: 15px;
    }

    #articleReturnText {
        font-size: 16px;
        line-height: 24px;
    }

    #articleBody p, #articleBody li, #articleClone p, #articleClone li {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
    }
    
    #articleBody .large-quote-text, #articleClone .large-quote-text {
        font-size: 18px;
        line-height: 24px;
    }

    #articleBody .large-quote-attribution, #articleClone .large-quote-attribution {
        font-size: 14px;
        line-height: 20px;
    }

    .wf-button {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-nav-email {
        font-size: 20px;
        line-height: 32px;
    }

    #articleFooterContinueHeader {
        font-weight: 800;
        font-size: 24px;
        line-height: 32px;
    }
    
    #articleFooterNextProjectTitle {
        font-weight: 800;
        font-size: 16px;
        line-height: 24px;
    }

    .icon-arrow {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-height: 500px) and (orientation: landscape) {
    .section-headline {
        font-size: 30px;
        line-height: 42px;
    }

    #articleSectionContainer {
        gap: 4px;
    }

    #articleBody .large-quote-text, #articleClone .large-quote-text {
        font-size: 28px;
        line-height: 34px;
    }

    #articleFooterContinueHeader {
        font-size: 24px;
        line-height: 30px;
    }

    #articleFooterNextProjectTitle {
        font-size: 18px;
        line-height: 24px;
    }
}