﻿.embla {
    margin: auto;
    --slide-height: 19rem;
    --slide-spacing: 1rem;
    --slide-size: 100%;
    position: relative;
}

.embla__viewport {
    overflow: hidden;
    height: inherit;
}

.embla__container {
    backface-visibility: hidden;
    display: flex;
    touch-action: pan-y pinch-zoom;
    margin-left: 0;
}

.embla__slide {
    flex: 0 0 var(--slide-size);
    min-width: 0;
    padding-left: 0;
    margin: 0;
}

.embla__slide__number {
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    border-radius: 1.8rem;
    font-size: 4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--slide-height);
}

.embla__controls {
    display: flex;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.8rem;
    position: absolute;
    top: calc( 50% - 23.5px);
    width: inherit;
    margin: 0;
    width: calc(100% - 20px);
    margin: 0 10px;
}

.embla__buttons {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    width: inherit;
}

.embla__button {
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    width: 3.6rem;
    height: 3.6rem;
    z-index: 1;
    border-radius: 50%;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .embla__button:disabled {
        color: var(--detail-high-contrast);
    }

.embla__button__svg {
    width: 35%;
    height: 35%;
}

.embla__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
}

.embla__dot {
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .embla__dot:after {
        background-color: white;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        content: '';
    }

.embla__dot--selected:after {
    background-color: #AAD14E;
}

.dotContainer {
    width: 100%;
    justify-content: center;
    display: flex;
}

/*Thumbnails*/

.embla-thumbs {
    --thumbs-slide-spacing: 0.8rem;
    --thumbs-slide-height: 6rem;
    margin-top: var(--thumbs-slide-spacing);
}

.embla-thumbs__viewport {
    overflow: hidden;
}

.embla-thumbs__container {
    display: flex;
    flex-direction: row;
    margin-left: calc(var(--thumbs-slide-spacing) * -1);
}

.embla-thumbs__slide {
    flex: 0 0 22%;
    min-width: 0;
    padding-left: var(--thumbs-slide-spacing);
}

@media (min-width: 576px) {
    .embla-thumbs__slide {
        flex: 0 0 10%;
    }
}

.embla-thumbs__slide__number {
    border-radius: 1.8rem;
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--detail-high-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--thumbs-slide-height);
    width: 100%;
}

.embla-thumbs__slide--selected .embla-thumbs__slide__number {
    color: var(--text-body);
}

.embla__button {
    background: rgba(255,255,255,0.3);
    transition: all ease 0.3s;
}

    .embla__button:hover {
        background: black;
    }

    .embla__button svg {
        color: black;
        transition: all ease 0.3s;
    }

    .embla__button:hover svg {
        color: white;
    }

/*Responsive*/


@media (max-width: 1375px) {
    .embla {
        left: 0;
    }

    .embla__slide {
        width: 100%;
        padding: 0px;
    }

        .embla__slide img {
            width: 100% !important;
            height: auto !important;
        }

   

    .embla-thumbs {
        display: none;
    }

    .embla__controls {
        width: calc(100% - 20px);
        margin: 0 10px;
    }
}

/*Landscape*/

@media screen and (orientation:landscape) and (max-width: 767px) {
    .modalContainer {
        margin-top: 0px !important;
    }

    .embla img {
        height: 100% !important;
        width: auto !important;
    }
    .emblaSearch.embla img {
        height: inherit !important;
        width: 356px !important;
    }
}

/*LazyLoad*/

.embla__lazy-load {
    position: relative;
    height: 100%;
    width: 100%;
    background: white;
    z-index: 99999;
}

.embla__lazy-load__spinner {
    border: 0.4rem solid #AAD14E;
    border-left: 0.4rem solid white;
    font-size: 1rem;
    display: inline-flex;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    text-indent: -9999em;
    animation: loading 1.1s infinite linear;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
}

    .embla__lazy-load__spinner:after {
        border-radius: inherit;
        width: 5rem;
        height: 5rem;
    }

.embla__lazy-load__img {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.embla__lazy-load--has-loaded {
    width: 100%;
}

.embla__lazy-load--has-loaded .embla__lazy-load__img {
    opacity: 1;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}





.embla__controls.emblaBtnPrev, .embla__controls.emblaBtnNext {
    width: 60px;
}
.embla__controls.emblaBtnNext {
    right:0px;
}


.emblaSearch .embla__slide img {
    width: calc(100vw - 27px) !important;
    height: inherit !important;
}

.emblaSearch .embla__slide {
    height: 233px;
}

@media screen and (min-width: 768px) {

    .emblaSearch .embla__slide {
        overflow: hidden !important;
    }
}


@media screen and (min-width: 1024px) {
    .emblaSearch .embla__slide img {
        /*width: 356px !important;*/
        height: inherit !important;
        object-fit: contain;
    }

    .emblaSearch .embla__slide {
        height: 237px;
    }
}


@media screen and (max-width: 500px) {
    .embla{
        height:100vh !important;
    }

        .embla.emblaSearch {
            height: 100% !important;
        }
}