/* .section__images img {
    width: 100%;
    max-width: 100%;
} */

.template-339 img {
    max-width: 100%;
}

/*  Main image height 245px  */

@media (min-width: 991.92px) {
    
    .template-339.template-339--main-image-height-245 .section__images-slider .slider__slide img {
        max-height: 245px;
        object-fit: contain;
    }
}

/*  Main image height 150px - mobile, 200px - tablet  */

@media (max-width: 767.92px) {

    .template-339.template-339--main-image-height-150-mobile .section__images-slider .slider__slide img {
        max-height: 150px;
        object-fit: contain;
    }
}

@media (min-width: 767.92px) and (max-width: 991.92px) {
    
    .template-339.template-339--main-image-height-200-tablet .section__images-slider .slider__slide img {
        max-height: 200px;
        object-fit: contain;
    }
}

.template-339.section-images {
    display: none;
}

.template-339.section-images.is-active {
    display: block;
}

/* .template-339 .js-image-zoom__zoomed-image { */
    /* z-index: 5; */
    /* left: 0; */
    /* right: auto !important; */
    /* height: 500px !important;
    width: 400px !important; */
    /* height: 100% !important; */
    /* width: 100% !important; */
    /* transform: none !important; */
    /* border: 3px solid #8e6e34; */
/* } */

.template-339 .section__image {
    /* position: inherit !important;
    cursor: pointer !important; */
}

.section__image img {
    /* height: auto !important;
    width: 100%; */
}

/*******************************
    SLIDERS
*******************************/

.section__sliders .section__images-slider {
    max-width: 100%;
    flex: 0 0 100%;
}

.section-images--alt .section__thumbs-images:has(.slider__slide:only-child) {
    display: none;
}

@media (min-width: 768px) {

    .section__sliders .section__images-slider {
        max-width: 85%;
        flex: 0 0 85%;
    }
    
    .section-images--alt .section__sliders .section__images-slider {
        max-width: 78%;
        flex: 0 0 78%;
    }

    .section-images--alt .section__thumbs-images:has(.slider__slide:only-child) ~ .section__images-slider {
        margin: 0 auto;
    }
}


.section__sliders .slider-images .slick-arrow {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    z-index: 1;
    border-radius: 50%;
    border: none;
    background: #fff;
    height: 30px;
    width: 30px;
    font-size: 20px;
    color: #aaa;
    padding: 1px 10px;
    opacity: 1;
    transition: opacity .4s;
}

.section__sliders .slider-images .slick-arrow.slick-disabled {
    pointer-events: none;
    opacity: 0;
}

.section__sliders .slider-images .slick-arrow.slick-next {
    left: auto;
    right: 15px;
    padding: 1px 11px;
}

.slider-images,
.section__sliders .slider-images .slick-list,
.section__sliders .slider-images .slick-track,
.section__sliders .slider-images a
/* ,
.section__sliders .slider-images img  */
{
    height: 100%;
}

.section__sliders .slider-images img {
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {

    .section__sliders .slider-images-thumbs .slick-track,
    .section__sliders .slider-images-thumbs .slick-list {
        min-height: 220px;
    }
}

.section__sliders .section__thumbs-images {
    max-width: 100%;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    
    .section__sliders .section__thumbs-images {
        max-width: 15%;
        flex: 0 0 15%;
    }
    
    .section-images--alt .section__sliders .section__thumbs-images {
        max-width: 22%;
        flex: 0 0 22%;
    }

    .section-images--alt .slider-images-thumbs,
    .section-images--alt .slider-images-thumbs .slick-list.draggable {
        /* height: 100% !important; */
    }
}

.slider-images-thumbs .slider__slide {
    cursor: pointer;
}

@media (max-width: 767px) {
    
    .slider-images-thumbs:not(.slick-initialized) {
        display: flex;
        justify-content: center;
    }
}

.section__sliders video {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.section__sliders .slider-images video {
    max-width: 93%;
    margin: 0 auto;
}

@media (min-width: 767px) {
    .section__sliders .slider-images video {
        /* max-width: 90%; */
        max-width: 99%;
    }
}

/*  aspect-ratio   */

.template-339.aspect-ratio .slider-images-thumbs img {
    aspect-ratio: 3 / 2;
    object-fit: contain !important;
}

.template-339 .section__thumbs-images.hide-if-only-child:has(.slider__slide:only-child) {
    display: none;
}

.template-339 .section__thumbs-images.hide-if-only-child:has(.slider__slide:only-child) ~ .section__images-slider {
    max-width: 100%;
    flex: 0 0 100%;
}

/*  .template-339--alt  */

.template-339.template-339--alt .section__sliders {
    flex-direction: column-reverse !important;
}

.template-339.template-339--alt .section__sliders .section__images-slider,
.template-339.template-339--alt .section__sliders .section__thumbs-images {
    max-width: 100%;
    flex: 0 0 100%;
}

.template-339.template-339--alt img {
    border-radius: 20px;
}

.template-339.template-339--alt .section__sliders .slider-images .slick-arrow {
    background: transparent;
    color: #fff;
    font-size: 35px;
    transform: scale(0) translateY(-50%);
    transition: transform .3s;
}

.template-339.template-339--alt .section__sliders .slider-images:hover .slick-arrow {
    transform: scale(1) translateY(-50%);
}

/* Always show arrows on alt-style */

.template-339.template-339--alt.template-339--always-show-arrows .section__sliders .slider-images .slick-arrow {
    transform: scale(1) translateY(-50%);
    font-size: 20px;
    border-radius: 50%;
    border: none;
    background: #fff;
}

.template-339.template-339--alt.template-339--always-show-arrows .section__sliders .slider-images .slick-arrow {
    color: var(--color-5);
}

/*  .slick-slider-loading  */

.slider-images.slick-slider-loading {
    overflow: hidden;
    display: flex;
}

.slider-images.slick-slider-loading[data-slider-to-show="1"]:not(.slick-initialized) > a {
    max-width: 100%;
    flex: 0 0 100%;
}

.slider-images-thumbs.slick-slider-loading {
    /*visibility: hidden;*/
    /*height: 0;*/
    display: flex;
    overflow: hidden;
}

.section__thumbs-images[data-desktop-slides-to-show="4"] .slider-images-thumbs.slick-slider-loading:not(.slick-initialized) > div {
    max-width: 20%;
    flex: 0 0 20%;
}

@media ( min-width: 766.92px ) {
    
    .section__thumbs-images[data-desktop-slides-to-show="4"] .slider-images-thumbs.slick-slider-loading:not(.slick-initialized) > div {
        max-width: 25%;
        flex: 0 0 25%;
    }
}

.template-339.template-339--unified-image-resize 
.section__images-slider .slider__slide a,
.template-339.template-339--unified-image-resize 
.section__images-slider .slider__slide img {
    height: 100%;
    max-height: 380px;
    object-fit: contain;
}

.template-339.template-339--unified-image-resize 
.section__thumbs-images .slider__slide a,
.template-339.template-339--unified-image-resize 
.section__thumbs-images .slider__slide img {
    height: 100%;
    max-height: 140px;
    object-fit: contain;
}

.template-339.template-339--unified-image-resize .section__sliders .section__images-slider {
    max-width: 100%;
    flex: 0 0 100%;
}

.template-339.template-339--unified-image-resize .section__sliders .section__thumbs-images {
    max-width: 100%;
    flex: 0 0 100%;
}

@media (min-width: 991.92px) {

    .template-339.template-339--unified-image-resize 
    .section__images-slider .slider__slide a,
    .template-339.template-339--unified-image-resize 
    .section__images-slider .slider__slide img {

        height: 100%;
        max-height: 460px;
        object-fit: contain;
    }
    
    .template-339.template-339--unified-image-resize 
    .section__thumbs-images .slider__slide a,
    .template-339.template-339--unified-image-resize 
    .section__thumbs-images .slider__slide img {
        
        height: 100%;
        max-height: 140px;
        object-fit: contain;
    }
}

@media (min-width: 992px) {
    .template-339.template-339--unified-image-resize .section__sliders .slider-images-thumbs .slick-track,
    .template-339.template-339--unified-image-resize .section__sliders .slider-images-thumbs .slick-list {
        min-height: unset!important;
    }
}

.template-339.template-339--youtube-thumbnails .slider__slide  {
    aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
    .template-339.template-339--youtube-thumbnails .slider__slide  {
        aspect-ratio: 16 / 9;
    }
}

.template-339.template-339--youtube-thumbnails .slider-images-thumbs .slider__slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper {
    position: relative;
    display: inline;
    width: 100%;
}

.template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: var(--color-3);
    border-radius: 50%;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 12px;
    border-color: transparent transparent transparent #fff;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 768px) {
    .template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper::before {
        width: 50px;
        height: 50px;
    }

    .template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper::after {
        border-width: 10px 0 10px 17px;
    }
}

@media (min-width: 992px) {
    .template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper::before {
        width: 60px;
        height: 60px;
    }

    .template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper::after {
        border-width: 12px 0 12px 20px;
    }
}

.template-339.template-339--youtube-thumbnails .youtube-thumb-wrapper:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* On mobile to show 5.5 slides and on desktop 3.5 */

.template-339.thumbs-show-3-and-half-and-4-half-slides .section__thumbs-images:has(.slick-slide[data-slick-index="5"]) .slick-list {
    overflow: visible;
}

.template-339.thumbs-show-3-and-half-and-4-half-slides .section__thumbs-images:has(.slick-slide[data-slick-index="5"]) {
    overflow: hidden;
    padding-right: 11% !important;
}

@media min-width( 767.92px ) {
    
    .template-339.thumbs-show-3-and-half-and-4-half-slides .section__thumbs-images:has(.slick-slide[data-slick-index="3"]) {
        padding-right: 14% !important;
    }
}
