.showroom-detail-slider-container.slider-ehs {
    background-image: url(../images/showroom-detail/ehs/mg-ehs-showroom-back.jpg);
}

.showroom-detail-slider-container {
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}
.swiper-pagination span:nth-child(1):hover,
.swiper-pagination span:nth-child(1) {
    background-color: #a1a1a1 !important;
}
.swiper-pagination span:nth-child(2):hover,
.swiper-pagination span:nth-child(2) {
    background-color: #1a1a1a !important;
}
.swiper-pagination span:nth-child(3):hover,
.swiper-pagination span:nth-child(3) {
    background-color: #b1171f !important;
}
.slider-text {
    position: absolute;
    z-index: 2;
}

.slider-text.top-left {
    top: 160px;
}

.slider-text.bottom-left {
    bottom: 80px;
}

.slider-text.bottom-right {
    bottom: 80px;
    right: 0px;
    width: fit-content;
}

h3.label-new {
    font-size: 1.6rem;
    color: white;
    font-weight: normal;
    font-style: italic;
    margin: 0px;
}

/*slider*/
.swiper-slide,
#slider.slider-element.swiper_wrapper,
#slider.slider-element .swipper_wrapper {
    min-height: 850px;
    height: calc(100vh - 44px);
}

#swiper_wrapper {
    z-index: 0;
}

/*--------------------
    paginations colors
---------------------*/

.swiper-pagination span {
    height: 15px;
    width: 100px;
    transform: skew(0deg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.swiper-pagination-bullet.swiper-pagination-bullet-active,
.swiper-pagination-bullet:hover {
    border-color: white;
}
.swiper-pagination span {
    margin: 10px;
}

.select-color-label {
    font-size: 1.3rem;
    font-weight: 500;
    bottom: 88px;
    display: flex;
    justify-content: center;
    position: relative;
}

.showroom-detail-slider-container .slider-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 12vh;
    max-width: 750px;
}

.showroom-detail-slider-container .slider-caption.top-left {
    left: 60px;
}

.nameplate-container img {
    max-width: 300px;
}

.threesixty-text {
    padding: 0.5rem 0.5rem 0.5rem 0;
    font-size: 1.6rem;
    color: var(--textcolor);
}

.outsides-modal.show .threesixty-container {
    min-height: 100vh;
}
.threesixty-container .transparent-button {
    margin: 10px 10px 10px 0px;
}

.modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
}

.modal-content {
    background-color: #1a1a1a;
    height: auto;
    min-height: 100%;
    border-radius: 0;
}

.modal-body {
    padding: 0;
}

.dark .modal-content:not(.insides) {
    background: linear-gradient(45deg, rgba(49, 50, 51, 1) 0%, rgba(29, 30, 32, 1) 48%, rgba(23, 24, 26, 1) 100%);
}
.threesixty .threesixty_images li {
    display: flex;
    justify-content: center;
    align-items: center;
}
.threesixty .threesixty_images img {
    top: 0px;
    max-height: 100vh;
    max-width: unset;
}

.outsides-modal.show .threesixty {
    min-height: 100vh;
}
.threesixty {
    max-height: 100vh;
}
.img-white-button {
    max-width: 78px;
}

.close.close-modal {
    position: absolute;
    top: 10%;
    right: 10%;
    z-index: 10;
    background-color: transparent;
    border: 1px solid white;
    width: 60px;
    height: 60px;
    opacity: 0.4;
    transition: 0.4s all;
    color: white;
}

.close.close-modal:hover {
    opacity: 1;
}

.close.close-modal i {
    font-size: 2rem;
}

/** Modal 360 insides**/
.insides-modal .modal-dialog.modal-lg {
    max-width: 100% !important;
    width: 100% !important;
    height: 80% !important;
    background-color: #232323;
}
.insides-modal .modal-content,
.insides-modal .modal-body {
    width: 100% !important;
    height: 100% !important;
    background-color: white;
    border: none;
    background-color: #1a1a1a;
}

.insides-modal .img-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50px, -50px);
    z-index: 0;
}

.insides-modal .modal .action.action-close {
    opacity: 1 !important;
    top: 3%;
    right: 1%;
    transform: scale(1);
    color: #d42529;
}

.insides-modal .modal .action.action-close:hover {
    color: #58595b;
}

#panorama-container {
    height: 100%;
    min-width: 400px;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

/**submenu**/
#page-menu {
    justify-content: center;
    align-items: center;
    background-color: #fff !important;
    height: 42px;
}
#page-menu-wrap {
    background-color: #fff !important;
}

.page-menu-row {
    justify-content: center;
    align-items: center;
}
/** Content ***/
#content.showroom-detail-container {
    background-color: #fff;
    margin-top: 1rem;
}

/**Parallax divs**/
#select-version.parallax-left-container {
    background-image: url(../images/showroom-detail/hs/mg-hs-showroom-back-version.jpg);
}

.parallax-right-container {
    background-image: url(../images/showroom-detail/hs/mg-hs-prueba-manejo-img.jpg);
}

.gallery-container {
    background-color: #fff;
}

.comparator-container {
    background-image: url(../images/showroom-detail/hs/mg-hs-showroom-back-3.jpg);
}

#find-dealer.parallax-left-container {
    background-image: url(../images/showroom-detail/hs/mg-hs-distribuidor-img.jpg);
}

.mfp-iframe {
    display: flex;
    align-items: center;
    color: var(--textcolor);
    font-size: 1.3rem;
}
.mfp-iframe div {
    margin-right: 1rem;
}

#features-section {
    background: linear-gradient(0deg, rgba(0, 177, 255, 1) 0%, rgba(0, 243, 255, 1) 100%);
    padding: 2rem;
}
.feature-box .fbox-content h3.title {
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--themefont);
    text-transform: none;
}
.feature-box .fbox-content h5.subtitle {
    color: #fff !important;
    font-size: 1rem;
    font-family: var(--themefont);
    text-transform: none;
    border-bottom: none;
    padding: 0;
}
.fbox-border.fbox-effect .fbox-icon i {
    color: #fff;
}
.fbox-border.fbox-effect .fbox-icon i:hover,
.fbox-border.fbox-effect:hover .fbox-icon i {
    color: var(--themecolor);
    box-shadow: 0 0 0 1px var(--themecolor);
}
.fbox-border.fbox-effect .fbox-icon i:hover,
.fbox-border.fbox-effect:hover .fbox-icon i .top-cart-item-image:hover,
.grid-filter.style-3 li.activeFilter a,
.post-timeline .entry:hover .entry-timeline,
.post-timeline .entry:hover .timeline-divider,
.cart-product-thumbnail img:hover,
.fbox-outline .fbox-icon a,
.fbox-border .fbox-icon a,
.heading-block.border-color::after,
.page-item.active .page-link,
.page-link:focus,
.dark .cart-product-thumbnail img:hover {
    border-color: #fff;
}
.fbox-border.fbox-effect .fbox-icon i::after {
    background-color: #fff;
}
.border-left-white {
    border-left: 1px solid #fff;
}

.dark .bg-overlay-bg,
.bg-overlay-bg.dark {
    background: linear-gradient(0deg, rgba(0, 177, 255, 0.5) 0%, rgba(0, 243, 255, 0.5) 100%);
    opacity: 0.5;
    cursor: pointer;
}
.bg-overlay-content {
    cursor: pointer;
}
.bg-overlay .bg-overlay-content i {
    color: #fff;
    /* font-size: 25px; */
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.bg-overlay .bg-overlay-content i::before {
    font-size: 30px;
}

/* Grid Gallery*/

.grid-item {
    padding: 0px;
}
.description.description-grid .grid-title,
.description.description-grid p {
    pointer-events: none;
}
.grid-title {
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--textcolor);
}

.description-preview p {
    font-size: 1.1rem;
    color: var(--textcolor);
}

.action.action-close {
    top: 20%;
    color: var(--textcolor);
    transition: all 0.4s;
}
.action.action-close:hover {
    color: var(--themecolor);
}
.preview.preview-open.preview-image-loaded .img-wrap {
    transition: all 0.5s;
}
.preview.preview-open.preview-image-loaded .img-wrap.not-animated {
    opacity: 1;
}

.grid .description h1,
.description p {
    color: var(--textcolor) !important;
}

.description.description-preview {
    text-align: left;
}

.preview::before {
    background-color: #fff;
}

.gallery-buttons-container {
    display: flex;
    justify-content: flex-start;
    margin: 2rem 0px;
}

.next-button,
.previous-button,
.action.action-close {
    background-color: transparent;
    border: 1px solid var(--textcolor);
    width: 60px;
    height: 60px;
    opacity: 0.4;
    transition: 0.4s all;
    color: var(--textcolor);
    margin-right: 10px;
}

.action.action-close {
    opacity: 0;
}
.preview-image-loaded .action-close {
    opacity: 0.4;
}
.next-button:hover,
.previous-button:hover,
.action-close:hover,
.action-close:hover i {
    opacity: 1;
    color: var(--textcolor);
}

.next-button i,
.previous-button i,
.action-close i {
    font-size: 2rem;
}

.details ul li {
    margin: 0px !important;
}

.gallery-container {
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    display: flex;
    justify-content: center;
}

/** Galleries End**/

.grid-filter li a {
    margin-left: 5px;
    font-size: 1rem;
    color: #b3b3b3;
    background-color: #f1f6f8;
    text-align: center;
    border: none;
    border-radius: unset !important;
    display: flex;
    justify-content: center;
}

.grid-filter {
    border: none !important;
}

.parallax-text-container {
    background-color: transparent;
    color: var(--textcolor);
    padding: 50px;
    display: flex;
    width: 100%;
    flex-direction: column;
    font-size: 1.5rem;
}
.parallax-description p {
    color: var(--textcolor);
}

#drivetest-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

#drivetest-section .left-content {
    width: 50%;
    height: auto;
    min-height: 45vh;
    background-image: url(../images/showroom-detail/ehs/mg-ehs-conocela-pruebala-img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#drivetest-section .right-content {
    width: 50%;
    height: auto;
    min-height: 45vh;
    border-left: 5px solid var(--themecolor);
    background-color: #f1f6f8;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.subtitle-container,
.datasheets-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;
}
.subtitle-container {
    margin-bottom: 2rem;
}
.subtitle-container.see-more {
    margin-top: 3rem;
}
.datasheets-container {
    flex-direction: row;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.subtitle {
    border-bottom: 1px solid var(--themecolor);
    width: fit-content;
    padding: 1rem 0px;
}

.subtitle-container .subtitle.text-white {
    color: #fff !important;
}

/** Comparator**/
.comparator-container {
    background-image: none;
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    display: flex;
    justify-content: center;
}

.section.section-comparator,
.section.section-gallery {
    background-color: transparent;
    overflow: visible;
    margin: 0px;
    padding: 30px 0px;
}

.section.section-comparator .content-wrap {
    padding: 0px 45px;
}
.version-image img {
    max-width: 282px;
}
.car-version {
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.5s all;
    background-color: #f1f6f8;
}
.car-version:hover {
    background-color: rgba(0, 177, 255, 0.4);
}
.section.section-comparator .version-title {
    font-size: 1.6rem;
    color: var(--textcolor);
}

.section.section-comparator .version-price {
    font-size: 2.2rem;
    color: var(--textcolor);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #999999;
    padding-bottom: 1rem;
}

.section.section-comparator .version-subtitle {
    margin-top: 1rem;
    color: var(--textcolor);
}
.section.section-comparator .version-features {
    list-style: none;
}

.section.section-comparator .version-features li {
    border-bottom: 1px solid #999999;
    font-size: 0.9rem;
    color: var(--textcolor);
    padding: 7px 0px;
}
.section.section-comparator .owl-nav {
    top: 0px;
    position: absolute;
    width: 100%;
}
.section.section-comparator button.owl-prev,
.section.section-comparator button.owl-next {
    display: block;
    opacity: 0.6 !important;
    border-radius: 0px;
    color: white;
    background-color: transparent;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border: 1px solid white;
}
.section.section-comparator button.owl-next,
.owl-carousel:hover .owl-nav .owl-next,
.section.section-comparator button.owl-next:hover {
    right: -15px;
    top: 38px;
}

.section.section-comparator button.owl-prev,
.owl-carousel:hover .owl-nav .owl-prev,
.section.section-comparator button.owl-prev:hover {
    left: -15px;
    top: 38px;
}

.section.section-comparator button.owl-prev:hover,
.section.section-comparator button.owl-next:hover {
    opacity: 1 !important;
}

.owl-carousel.shop-carousel {
    display: flex;
    justify-content: center;
}
/** Comparator End**/

#find-dealer.parallax-left-container {
    margin-bottom: 4rem !important;
}

#find-dealer .parallax-left-left-container {
    background-color: #1a1a1a;
    color: white;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    max-width: 580px;
    flex-direction: column;
    float: right;
    font-size: 1.6rem;
    border: none;
    border-left: 6px solid #d42529;
    top: 20px;
    position: relative;
}

/**fix-gallery buttons*/

.description-preview .button.menu-link {
    padding: 8px 22px;
}

.description-terms {
    font-size: 0.8rem;
}

.text-mg-blue {
    font-weight: 400;
}
.parallax-right-container .find-title,
.parallax-description p {
    font-size: 1rem;
}
/**media queries***/
@media (max-width: 1024px) {
    .preview.preview-open.preview-image-loaded {
        display: block !important;
        /* justify-content: space-evenly; */
        width: 100% !important;
        background-color: #232323;
    }
    .action.action-close {
        top: 0%;
        color: white;
        transition: all 0.4s;
    }
    .description.description-preview {
        position: absolute;
        top: unset;
        bottom: 0px;
        left: 0px;
        justify-content: flex-end;
    }
    .details ul {
        display: flex;
        flex-wrap: wrap;
    }
    .description.description-preview li {
        display: block;
    }
    .grid-item {
        width: 40vw;
        max-width: 200px;
    }
    .description.description-preview li a.button {
        margin-top: 5px;
    }
    .preview.preview-open.preview-image-loaded .original {
        top: 10%;
        width: 90% !important;
        max-width: 100% !important;
        margin-left: 5% !important;
    }
    .preview.preview-open.preview-image-loaded .details,
    .preview.preview-open.preview-image-loaded .sub-title,
    .preview.preview-open.preview-image-loaded p {
        display: block !important;
    }

    .swiper-pagination {
        bottom: 25vh !important;
    }

    .select-color-label {
        bottom: 30vh;
    }

    .threesixty-container .swiper-pagination {
        bottom: 10vh !important;
    }

    .swiper-pagination span {
        height: 15px;
        width: 15vw;
        max-width: 100px;
        transform: skew(0deg);
        margin: 5px;
    }
    .nameplate-container img {
        max-width: 35vw;
    }
    /*slider*/
    .swiper-slide,
    #slider.slider-element.swiper_wrapper,
    #slider.slider-element .swipper_wrapper {
        height: 100vh;
        max-height: 100vh;
        min-height: unset !important;
    }

    .slider-text.top-left {
        top: 100px;
    }
    .slider-text.bottom-left {
        bottom: 5vh;
    }

    .page-menu-row {
        justify-content: space-between;
    }
    .page-menu-row .page-menu-nav {
        left: 0;
        right: auto;
    }

    .showroom-detail-slider-container .slider-caption {
        max-width: 80%;
        top: 7vh;
    }
    #select-version.parallax-left-container .parallax-left-right-container .car-model-container {
        min-height: unset;
        margin: 2rem 0px;
        justify-content: center;
    }
    .button.button-small:not(.principal-link) {
        font-size: 1rem;
    }

    #test-drive .parallax-right-right-container,
    #find-dealer .parallax-left-left-container {
        width: 100%;
        margin-top: 48%;
    }
    #drivetest-section {
        flex-direction: column;
    }
    #drivetest-section .left-content,
    #drivetest-section .right-content {
        width: 100%;
    }
    #drivetest-section .right-content {
        border: none;
    }
    .border-left-white {
        border-left: none;
    }
}

@media screen and (max-width: 767px) {
    .px-5 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }
    .insides-modal .img-loader {
        transform: translate(-25px, -25px);
        width: 50px;
        height: 50px;
    }
    .showroom-detail-slider-container .slider-caption {
        top: 10vh;
    }
    .section.section-comparator,
    .section.section-gallery {
        padding: 0px;
    }
    #select-version.parallax-left-container .parallax-left-right-container .car-model-container {
        bottom: 4rem;
    }
    #find-dealer.parallax-left-container {
        margin-bottom: 2rem !important;
    }
    .select-color-label {
        bottom: 22vh;
    }
}

@media screen and (max-width: 359px) {
    .swiper-pagination {
        bottom: 30vh !important;
    }
    .threesixty-container .swiper-pagination {
        bottom: 10vh !important;
    }
    .threesixty-container .swiper-pagination {
        bottom: 10vh !important;
    }
    .slider-text.bottom-left {
        bottom: 0vh;
    }
    .img-white-button {
        max-width: 55px;
    }
    .showroom-detail-slider-container .slider-caption {
        top: 15vh;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    #page-menu.sticky-page-menu:not(.dots-menu) #page-menu-wrap {
        top: 60px !important;
    }
    .showroom-detail-slider-container .slider-caption {
        max-width: 60%;
        top: 4vh;
    }
    .nameplate-container img {
        max-width: 25vw;
    }
    #select-version .parallax-left-left-container {
        width: 100%;
        margin-top: 10%;
    }
    .parallax-left-container .parallax-left-right-container {
        margin-left: 0px;
        min-height: 500px;
    }

    #select-version.parallax-left-container .parallax-left-right-container .car-model-container {
        width: 320px;
        margin-top: 280px;
        margin-left: -80px;
        bottom: 0px;
    }
}
@media screen and (min-width: 1024px) {
    .insides-modal .modal-content {
        background-position: center center;
        background-size: 200px 200px;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    #panorama-container {
        height: 50%;
        width: 90%;
        min-width: 400px;
        overflow: hidden;
        background-color: transparent;
    }
}

/*mobile landscape*/
@media screen and (max-height: 500px) and (orientation: landscape) {
    .swiper-slide,
    #slider.slider-element.swiper_wrapper,
    #slider.slider-element .swipper_wrapper {
        min-height: 750px !important;
    }
    .swiper-pagination {
        bottom: 45vh !important;
    }
    .select-color-label {
        bottom: 53vh;
    }
    .showroom-detail-slider-container .slider-caption {
        max-width: 60%;
        top: 10vh;
    }
}
