/*=========================================
  DreamIT :: Custom Slider ( Image Popup )
=========================================*/

.em-custom-slider-wrapper {
    position: relative;
}

.em-custom-slider-item {
    padding: 5px 0;
}

.em-cs-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* background-color: #ffffff; */
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}


/*==========  Thumbnail  ==========*/

.em-cs-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.em-cs-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    -webkit-transition: -webkit-transform 0.6s ease-in-out;
    transition: transform 0.6s ease-in-out;
}

.em-cs-zoom .em-cs-box:hover .em-cs-thumb img {
    -webkit-transform: scale(1.09);
    transform: scale(1.09);
}


/* .em-cs-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 27, 52, 0.55);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    pointer-events: none;
} */

.em-cs-box:hover .em-cs-thumb-overlay {
    opacity: 1;
    visibility: visible;
}


/*==========  Popup trigger  ==========*/

.em-cs-thumb .em-cs-popup-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none;
}

.em-cs-popup-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0b1b34;
    font-size: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    -webkit-transform: scale(0.6);
    transform: scale(0.6);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.em-cs-popup-icon svg {
    width: 18px;
    height: 18px;
    fill: #0b1b34;
}

.em-cs-box:hover .em-cs-popup-icon {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.em-cs-popup-icon:hover {
    -webkit-transform: scale(1.12);
    transform: scale(1.12);
}


/*==========  Content  ==========*/

.em-cs-content {
    padding: 10px 5px !important;
}

.em-cs-title {
    margin: 0 0 10px;
    color: #0b1b34;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}

.em-cs-title a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}

.em-cs-desc {
    margin: 0 0 18px;
    color: #6b7a90;
    font-size: 15px;
    line-height: 1.7;
}

.em-cs-desc p:last-child {
    margin-bottom: 0;
}

.em-cs-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    color: #0b1b34;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.em-cs-btn:hover,
.em-cs-btn:focus {
    text-decoration: none;
}

.em-cs-btn-icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    line-height: 1;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

.em-cs-btn-icon svg {
    width: 1em;
    height: 1em;
}

.em-cs-btn:hover .em-cs-btn-icon {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}


/*==========  Arrows & Dots  ==========*/

.em-custom-slider-wrapper .owl-nav {
    margin: 0;
}

.em-custom-slider-wrapper .owl-nav button.owl-prev,
.em-custom-slider-wrapper .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 50%;
    background-color: #f1f4f9;
    color: #0b1b34;
    font-size: 20px;
    line-height: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.em-custom-slider-wrapper .owl-nav button.owl-prev {
    left: -60px;
}

.em-custom-slider-wrapper .owl-nav button.owl-next {
    right: -60px;
}

.em-custom-slider-wrapper .owl-nav button.owl-prev:hover,
.em-custom-slider-wrapper .owl-nav button.owl-next:hover {
    background-color: #00ABCC;
    color: #ffffff;
}

.em-custom-slider-wrapper .owl-nav button span {
    display: none;
}

.em-custom-slider-wrapper .owl-dots {
    margin-top: 20px !important;
    line-height: 1;
    text-align: center;
}

.em-custom-slider-wrapper .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background-color: #d5dce6;
    border-radius: 50%;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.em-custom-slider-wrapper .owl-dots .owl-dot.active {
    width: 28px;
    border-radius: 10px;
    background-color: #00ABCC;
}


/*=========================================
  Popup / Lightbox
=========================================*/

.em-cs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 60px 70px;
    background-color: rgba(4, 10, 22, 0.93);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.em-cs-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.em-cs-modal-inner {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 100%;
    -webkit-transform: scale(0.94);
    transform: scale(0.94);
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

.em-cs-modal.is-open .em-cs-modal-inner {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.em-cs-modal-body {
    text-align: center;
}


/* image */

.em-cs-modal-body img {
    max-width: 100%;
    max-height: 76vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}


/* video */

.em-cs-modal-body .em-cs-modal-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000000;
}

.em-cs-modal-body .em-cs-modal-video iframe,
.em-cs-modal-body .em-cs-modal-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* custom content */

.em-cs-modal-body .em-cs-modal-html {
    max-height: 76vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0b1b34;
    text-align: left;
}

.em-cs-modal-body .em-cs-modal-html>*:first-child {
    margin-top: 0;
}

.em-cs-modal-body .em-cs-modal-html>*:last-child {
    margin-bottom: 0;
}


/*==========  Caption  ==========*/

.em-cs-modal-caption {
    margin-top: 18px;
    text-align: center;
}

.em-cs-modal-caption h4 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.em-cs-modal-caption p {
    margin: 0;
    color: #c3ccda;
    font-size: 14px;
    line-height: 1.6;
}

.em-cs-modal-counter {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 1px;
}


/*==========  Close & Nav  ==========*/

.em-cs-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 5;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.em-cs-modal-close:hover {
    background-color: #ffffff;
    color: #0b1b34;
}

.em-cs-modal-nav button {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.em-cs-modal-nav button.em-cs-modal-prev {
    left: 16px;
}

.em-cs-modal-nav button.em-cs-modal-next {
    right: 16px;
}

.em-cs-modal-nav button:hover {
    background-color: #ffffff;
    color: #0b1b34;
}

body.em-cs-modal-open {
    overflow: hidden;
}


/*==========  Responsive  ==========*/

@media only screen and (max-width: 1400px) {
    .em-custom-slider-wrapper .owl-nav button.owl-prev {
        left: -20px;
    }
    .em-custom-slider-wrapper .owl-nav button.owl-next {
        right: -20px;
    }
}

@media only screen and (max-width: 991px) {
    .em-custom-slider-wrapper .owl-nav button.owl-prev {
        left: 0;
    }
    .em-custom-slider-wrapper .owl-nav button.owl-next {
        right: 0;
    }
    .em-cs-modal {
        padding: 55px 55px;
    }
}

@media only screen and (max-width: 767px) {
    .em-cs-title {
        font-size: 18px;
    }
    /* .em-cs-content {
        padding: 20px;
    } */
    .em-cs-modal {
        padding: 55px 15px;
    }
    .em-cs-modal-body .em-cs-modal-html {
        padding: 25px;
    }
    .em-cs-modal-nav button.em-cs-modal-prev {
        left: 4px;
    }
    .em-cs-modal-nav button.em-cs-modal-next {
        right: 4px;
    }
    .em-cs-modal-close {
        top: 12px;
        right: 12px;
    }
}