/* =============================================
   MODUS DIGITAL - CAROUSEL
   Hero carousels, video sections, titles
   ============================================= */

/* -----------------------------------------
   Base carousel
   ----------------------------------------- */
.carousel {
    background-color: var(--md-color-gray-50);
    overflow: hidden;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M16 256a240 240 0 1 1 480 0A240 240 0 1 1 16 256zm496 0A256 256 0 1 0 0 256a256 256 0 1 0 512 0zM290.3 130.3l-120 120c-3.1 3.1-3.1 8.2 0 11.3l120 120c3.1 3.1 8.2 3.1 11.3 0s3.1-8.2 0-11.3L187.3 256 301.7 141.7c3.1-3.1 3.1-8.2 0-11.3s-8.2-3.1-11.3 0z'/%3E%3C/svg%3E");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M496 256A240 240 0 1 1 16 256a240 240 0 1 1 480 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM221.7 381.7l120-120c3.1-3.1 3.1-8.2 0-11.3l-120-120c-3.1-3.1-8.2-3.1-11.3 0s-3.1 8.2 0 11.3L324.7 256 210.3 370.3c-3.1 3.1-3.1 8.2 0 11.3s8.2 3.1 11.3 0z'/%3E%3C/svg%3E");
}

/* -----------------------------------------
   Page-top carousel: inner & device frames
   ----------------------------------------- */
.carousel-page-top .carousel-inner {
    background-image: linear-gradient(180deg, #FFFFFF 0%, var(--md-color-gray-50) 100%);
}

.carousel-page-top .carousel-type-desktop {
    max-width: 70%;
    max-height: 600px;
    border-top: 20px solid #898484;
    border-left: 20px solid #898484;
    border-right: 20px solid #595050;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.carousel-page-top .carousel-type-smartphone {
    max-width: 50%;
    max-height: 600px;
    border-top: 10px solid #898484;
    border-left: 10px solid #898484;
    border-right: 10px solid #595050;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* -----------------------------------------
   Page-top carousel: items & overlays
   ----------------------------------------- */
.carousel-page-top .carousel-item {
    min-height: 730px;
    background-size: cover;
    background-position: center;
}

.fix-height {
    min-height: 600px !important;
}

.carousel-page-top .carousel-item::before {
    content: '';
    display: block;
    background: var(--md-gradient-carousel-bg);
    opacity: 0.8;
    width: 40%;
    height: 130%;
    top: -110px;
    right: -100px;
    position: absolute;
    transform: matrix(0.98, 0.21, -0.21, 0.98, 0, 0);
    animation: shrink 8s infinite alternate;
}
.carousel-subpage .carousel-item::before {
    opacity: .33;
}

/* -----------------------------------------
   Page-top carousel: project items
   ----------------------------------------- */
.carousel-page-top .project-carousel-item {
    min-height: auto;
    background-size: contain;
    background-repeat: no-repeat;
}
.project-carousel-item img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------
   Page-top carousel: caption & video overlay
   ----------------------------------------- */
.carousel-page-top .carousel-item .carousel-caption,
.carousel-page-top .md-video-overlay {
    position: absolute;
    right: 15.625%;
    left: 15.625%;
    bottom: unset;
    padding-top: unset;
    padding-bottom: unset;
    color: #fff;
    top: calc(50% + 50px);
    transform: translateY(-50%);
    max-width: 50%;
    z-index: var(--md-z-caption);
    text-align: left;
}

/* -----------------------------------------
   Carousel variant: light-shadow
   ----------------------------------------- */
.carousel-light-shadow .carousel-caption h5 {
    font-size: var(--md-font-size-2xl);
    line-height: 38px;
    font-weight: bold;
    margin-bottom: 38px;
}

.carousel-light-shadow .carousel-caption p {
    font-size: 21px;
    line-height: 24px;
}

.carousel-light-shadow .carousel-caption {
    right: unset;
    bottom: unset;
    left: unset;
    padding-top: unset;
    padding-bottom: unset;
    color: #000;
    text-align: left;
}

.carousel-light-shadow .carousel-indicators {
    position: absolute;
    justify-content: unset;
    margin-right: unset;
    margin-bottom: 37px;
    margin-left: 47px;
    max-width: 33%;
}

.carousel-light-shadow .carousel-indicators [data-bs-target]:first-of-type {
    border-top-left-radius: var(--md-radius-xl);
    border-bottom-left-radius: var(--md-radius-xl);
}

.carousel-light-shadow .carousel-indicators [data-bs-target]:last-of-type {
    border-top-right-radius: var(--md-radius-xl);
    border-bottom-right-radius: var(--md-radius-xl);
}

.carousel-light-shadow .carousel-indicators [data-bs-target] {
    background-color: var(--md-color-primary);
    width: 120px;
    height: 17px;
    padding: 0;
    margin-right: 2.5px;
    margin-left: 2.5px;
    border: unset;
}

.carousel-light-shadow {
    border-radius: var(--md-radius-xl);
    background-color: var(--md-color-white);
    padding: 47px 54px;
    box-shadow: var(--md-shadow-carousel);
}

/* -----------------------------------------
   Carousel variant: light (no shadow)
   ----------------------------------------- */
.carousel-light {
    border-radius: var(--md-radius-xl);
    background-color: var(--md-color-white);
    padding: 47px 54px;
}

.carousel-light .carousel-caption h5 {
    font-size: var(--md-font-size-2xl);
    line-height: 38px;
    font-weight: bold;
    margin-bottom: 38px;
}

.carousel-light .carousel-caption p {
    font-size: 21px;
    line-height: 24px;
}

.carousel-light .carousel-caption {
    right: unset;
    bottom: unset;
    left: unset;
    padding-top: unset;
    padding-bottom: unset;
    color: #000;
    text-align: left;
}

.carousel-light .carousel-indicators {
    position: absolute;
    justify-content: unset;
    margin-right: unset;
    margin-bottom: 37px;
    margin-left: 47px;
    max-width: 33%;
}

.carousel-light .carousel-indicators [data-bs-target]:first-of-type {
    border-top-left-radius: var(--md-radius-xl);
    border-bottom-left-radius: var(--md-radius-xl);
}

.carousel-light .carousel-indicators [data-bs-target]:last-of-type {
    border-top-right-radius: var(--md-radius-xl);
    border-bottom-right-radius: var(--md-radius-xl);
}

.carousel-light .carousel-indicators [data-bs-target] {
    background-color: var(--md-color-blue-teal);
    width: 120px;
    height: 17px;
    padding: 0;
    margin-right: 2.5px;
    margin-left: 2.5px;
    border: unset;
}

/* -----------------------------------------
   Carousel variant: dark
   ----------------------------------------- */
.carousel-dark .carousel-caption h5 {
    font-size: 51px;
    line-height: 59px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--md-color-white);
}

.carousel-dark .carousel-caption p {
    font-size: 21px;
    line-height: 24px;
    max-width: 514px;
}

.carousel-dark .carousel-caption {
    right: unset;
    bottom: unset;
    left: unset;
    padding-top: unset;
    padding-bottom: unset;
    color: var(--md-color-white);
    text-align: left;
}

.carousel-dark .carousel-indicators {
    position: absolute;
    justify-content: unset;
    margin-right: unset;
    margin-bottom: 37px;
    margin-left: 47px;
    max-width: 33%;
}

.carousel-dark .carousel-indicators [data-bs-target]:first-of-type {
    border-top-left-radius: var(--md-radius-xl);
    border-bottom-left-radius: var(--md-radius-xl);
}

.carousel-dark .carousel-indicators [data-bs-target]:last-of-type {
    border-top-right-radius: var(--md-radius-xl);
    border-bottom-right-radius: var(--md-radius-xl);
}

.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: var(--md-color-white);
    width: 120px;
    height: 17px;
    padding: 0;
    margin-right: 2.5px;
    margin-left: 2.5px;
    border: unset;
}

.carousel-dark {
    background-color: var(--md-color-blue-teal);
    padding: 47px 54px;
}

/* -----------------------------------------
   Titles (.md-title, .md-title-alt)
   ----------------------------------------- */
.md-title {
    font-family: var(--md-font-display);
    font-size: var(--md-font-size-xl);
    line-height: 32px;
}

h4.md-title {
    font-family: var(--md-font-display);
    font-size: var(--md-font-size-3xl);
    line-height: 46px;
}

.md-title-alt {
    font-family: var(--md-font-accent);
    font-weight: var(--md-font-weight-regular);
    font-size: 34px;
    line-height: 40px;
}

h4.md-title-alt {
    font-size: var(--md-font-size-xl);
    line-height: 32px;
}

.page-modus-moment .md-title-alt {
    color: var(--md-color-pink);
}

/* -----------------------------------------
   Carousel caption titles & text
   ----------------------------------------- */
.carousel-page-top .carousel-item .carousel-caption .md-title,
.md-video-overlay h1 {
    font-size: var(--md-font-fluid-hero);
    line-height: var(--md-line-height-tight);
    text-align: left;
    margin-bottom: 12px;
    transition-timing-function: ease-out;
    font-family: var(--md-font-display);
}

#carouselExampleSlidesOnly .carousel-caption h1,
#carouselHomepageHeader .carousel-caption .md-title,
#carouselPageHeader .carousel-caption .md-title {
    font-family: var(--md-font-display);
    font-size: var(--md-font-fluid-hero);
    line-height: var(--md-line-height-tight);
    margin-bottom: 12px;
}

#carouselHomepageHeader .carousel-caption .md-paragraph-lg,
#carouselPageHeader .carousel-caption h2 {
    font-size: var(--md-font-fluid-subtitle);
    line-height: 1.3;
}
.carousel-subpage .carousel-item .carousel-caption h1 {
    font-size: 59px;
    line-height: 55px;
}

.carousel-page-top .carousel-item .carousel-caption strong,
.md-video-overlay strong {
    color: var(--md-color-primary);
}

.carousel-page-top .carousel-item .carousel-caption .md-paragraph-lg,
.md-video-overlay p {
    font-size: 35px;
    line-height: 42px;
    font-weight: var(--md-font-weight-regular);
    margin-bottom: 0;
}

.carousel-page-top .carousel-item .carousel-caption a.md-link,
.md-video-overlay a.md-link {
    color: #ffffff !important;
    display: inline-block;
    text-decoration: none;
    vertical-align: bottom;
    font-size: var(--md-font-size-lg);
    line-height: 44px;
    margin-left: 30px;
}

.carousel-page-top .carousel-item .carousel-caption a.md-link strong,
.md-video-overlay a.md-link strong {
    color: #ffffff;
}

/* -----------------------------------------
   Page-top carousel: arrow overrides
   ----------------------------------------- */
.carousel-page-top .carousel-control-prev-icon {
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23218AAB'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23218AAB' viewBox='0 0 448 512'%3E%3C!-- Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --%3E%3Cpath d='M231.536 475.535l7.071-7.07c4.686-4.686 4.686-12.284 0-16.971L60.113 273H436c6.627 0 12-5.373 12-12v-10c0-6.627-5.373-12-12-12H60.113L238.607 60.506c4.686-4.686 4.686-12.284 0-16.971l-7.071-7.07c-4.686-4.686-12.284-4.686-16.97 0L3.515 247.515c-4.686 4.686-4.686 12.284 0 16.971l211.051 211.05c4.686 4.686 12.284 4.686 16.97-.001z'/%3E%3C/svg%3E");
}

.carousel-page-top .carousel-control-next-icon {
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23218AAB'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23218AAB' viewBox='0 0 448 512'%3E%3C!-- Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --%3E%3Cpath d='M216.464 36.465l-7.071 7.07c-4.686 4.686-4.686 12.284 0 16.971L387.887 239H12c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h375.887L209.393 451.494c-4.686 4.686-4.686 12.284 0 16.971l7.071 7.07c4.686 4.686 12.284 4.686 16.97 0l211.051-211.05c4.686-4.686 4.686-12.284 0-16.971L233.434 36.465c-4.686-4.687-12.284-4.687-16.97 0z'/%3E%3C/svg%3E");
}

/* -----------------------------------------
   Page-top carousel: h2 (subtitle)
   ----------------------------------------- */
.carousel-page-top .carousel-item h2 {
    font-size: 35px;
    line-height: 42px;
    text-align: left;
    font-weight: normal;
    max-width: 498px;
}

/* -----------------------------------------
   Section: Video header (homepage hero)
   ----------------------------------------- */
section.md-homepage-video-section {
    min-height: 600px;
    position: relative;
}

#video-bg {
    background-size: cover;
    background-position: center;
    width: 100%;
}

.md-video-opacity {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
    background: var(--md-gradient-video-overlay);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
}

/* -----------------------------------------
   Section: Inline video player
   ----------------------------------------- */
.md-video-section {
    padding-top: 87px;
    padding-bottom: 120px;
}
.md-video-element {
    border-radius: var(--md-radius-4xl);
    /* overflow: hidden; */
    /* position: relative; */
}

.btn-control-sound {
    z-index: 1010;
    position: absolute;
    bottom: 20px;
    right: 20px;
    display:none;
}

.md-video-section:hover .btn-control-sound {
  display:block;
}

/* -----------------------------------------
   Embed responsive (video containers)
   ----------------------------------------- */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: var(--md-radius-4xl);
}

/* Video consent fallback */
.md-video-consent-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--md-color-dark) 0%, var(--md-color-blue-teal) 100%);
    border-radius: var(--md-radius-4xl);
    z-index: var(--md-z-sticky);
    padding: 40px;
}

.md-video-fallback-content {
    text-align: center;
    color: #ffffff;
    max-width: 500px;
}

.md-video-fallback-content i {
    font-size: 64px;
    line-height: 64px;
    color: var(--md-color-accent);
    margin-bottom: 24px;
    display: block;
}

.md-video-fallback-content h4 {
    font-size: var(--md-font-size-xl);
    line-height: 34px;
    font-weight: var(--md-font-weight-bold);
    margin-bottom: 16px;
    color: #ffffff;
}

.md-video-fallback-content p {
    font-size: var(--md-font-size-md);
    line-height: 26px;
    margin-bottom: 32px;
    color: #ffffff;
}

.md-video-fallback-content .btn {
    margin-top: 8px;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}
.embed-responsive .embed-responsive-item, .embed-responsive embed, .embed-responsive iframe, .embed-responsive object, .embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -----------------------------------------
   Responsive: max-width 1199.98px
   ----------------------------------------- */
@media screen and (max-width:1199.98px) {
    .md-title {
        font-size: 26px;
        line-height: 30px;
    }
    .carousel-page-top .carousel-item {
        min-height: 570px;
    }
}

/* -----------------------------------------
   Responsive: max-width 1024px
   ----------------------------------------- */
@media screen and (max-width: 1024px) {
    .carousel-page-top .carousel-item .carousel-caption,
    .md-video-overlay {
        max-width: 70%;
    }

    .carousel-page-top .carousel-item .carousel-caption h1 {
        font-size: 34px;
        line-height: 42px;
        font-weight: var(--md-font-weight-black);
        max-width: 690px;
        margin-bottom: 17px;
        transition-timing-function: ease-out;
    }

    .carousel-page-top .carousel-item .carousel-caption h2 {
        font-size: var(--md-font-size-lg);
        line-height: 28px;
    }

    .carousel-page-top .carousel-item {
        min-height: 540px;
    }

    .carousel-page-top .carousel-type-desktop {
        border-top: 12px solid #898484;
        border-left: 12px solid #898484;
        border-right: 12px solid #595050;
    }

    .carousel-page-top .carousel-type-smartphone {
        border-top: 6px solid #898484;
        border-left: 6px solid #898484;
        border-right: 6px solid #595050;
    }

    .carousel-page-top .carousel-item {
        min-height: 470px;
    }
}

/* -----------------------------------------
   Responsive: max-width 767px
   ----------------------------------------- */
@media (max-width: 767px) {
    #carouselHomepageHeader .carousel-inner .carousel-item .carousel-caption {
        padding-left: 24px;
        padding-right: 24px;
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* -----------------------------------------
   Responsive: max-width 575.98px
   ----------------------------------------- */
@media screen and (max-width: 575.98px) {
    .md-video-consent-fallback {
        padding: 30px 20px;
    }

    .md-video-fallback-content i {
        font-size: 48px;
        line-height: 48px;
        margin-bottom: 20px;
    }

    .md-video-fallback-content h4 {
        font-size: var(--md-font-size-lg);
        line-height: 28px;
        margin-bottom: 12px;
    }

    .md-video-fallback-content p {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 24px;
    }

    .carousel-page-top .carousel-item {
        min-height: 450px;
        background-size: cover;
        background-position: center;
    }

    .carousel-page-top .project-carousel-item {
        min-height: auto;
    }

    .carousel-page-top .carousel-item .carousel-caption {
        max-width: 100%;
    }

    .carousel-page-top .carousel-item .carousel-caption a.md-link {
        margin-left: 0;
        display: block;
    }

    .carousel-page-top .carousel-item .carousel-caption h1 {
        font-size: 34px;
        line-height: 42px;
        font-weight: var(--md-font-weight-black);
        max-width: 100%;
        margin-bottom: 17px;
        transition-timing-function: ease-out;
    }

    .carousel-page-top .carousel-item .carousel-caption h2 {
        font-size: var(--md-font-size-lg);
        line-height: 28px;
    }

    .carousel-page-top .carousel-item .carousel-caption p {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 0;
    }
}

/* -----------------------------------------
   UX overrides (from modus-digital-ux.css)
   ----------------------------------------- */
.carousel-page-top .carousel-item h2 {
    max-width: 650px !important;
}

#carouselHomepageHeader .carousel-caption .md-paragraph-lg,
#carouselPageHeader .carousel-caption h2 {
    font-size: var(--md-font-fluid-caption);
}

.carousel-caption .d-inline.align-start a.btn {
    display: inline-block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.carousel-caption .d-inline.align-start a.btn + a.btn {
    margin-left: 1rem !important;
}

.carousel-caption.md-align-left .d-inline.align-start {
    display: inline-block !important;
    margin-top: 1rem !important;
}

@media (max-width: 575px) {
    .carousel-caption .d-inline.align-start a.btn {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 1rem !important;
    }
}
