.custom-galery-main-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    width: 936px !important;
    height: auto !important;
    border-radius: 16px !important;
}

.top-left-buttons {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.top-right-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.image-counter {
    display: flex;
    align-items: center;
    /*width: 79px;*/
    height: 32px;
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--Background-Brand-Transparent, #0C0C0D66);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
    font-family: 'Rethink Sans';
}

.image-counter-icon {
    width: 16px;
    height: 16px;
    background-image: url(../images/product_image_count_icon.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right:8px;
}


.truck-package-button {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    padding: 4px 8px;
    background-color: #FFFFFF;
    color: #1D2430;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    border: none;
    cursor: pointer !important;
}

 .product-gallery-modal-images-counter-block {
     display: none;
 }

@media (max-width: 768px) {
    .truck-package-button {
        font-size: 12px;
    }
}

.truck-package-button:hover {
    color: #1D2430;
    background-color: #FFFFFF;
    border: none;
}

.truck-package-button:focus {
    color: #1D2430;
    background-color: #FFFFFF;
    border: none;
}

.truck-package-button:active {
    color: #1D2430;
    background-color: #FFFFFF;
    border: none;
}

.main-nav {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border-radius: 8px;
    padding: 8px;
    background: var(--Background-Brand-Transparent, #0C0C0D66);
    z-index: 10;
    cursor: pointer;
    display: none;
}

.main-nav:hover {
    background: #0C0C0DCC;
}

.main-nav-left-arrow-icon,
.main-nav-right-arrow-icon {
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(16%) hue-rotate(103deg) brightness(105%) contrast(103%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.main-nav-left-arrow-icon {
    background-image: url("../images/chevron_left_icon.svg");
}

.main-nav-right-arrow-icon {
    background-image: url("../images/chevron_right_icon.svg");
}

.custom-gallery-main-image:hover .main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.product-gallery-modal-content .thumbnail-slider-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.thumbnail-nav {
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 5px;
}

.thumbnail-slider {
    display: flex;
    overflow-x: hidden;
    gap: 16px;
    /*width: calc(100% - 60px);*/
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.thumbnail-image-wrapper {
    width: 120px !important;
    height: 80px !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(32, 32, 32, 0.5) -12.12%, rgba(32, 32, 32, 0.5) 109.37%) !important;
    cursor: pointer;
    transition: border 0.3s, opacity 0.3s;
    position: relative;
    overflow: hidden;
	user-select: none;
}

@media (max-width: 768px) {
    .thumbnail-image-wrapper {
        width: 80px !important;
        height: 60px !important;
    }
}

.thumbnail-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    position: relative !important;
    z-index: 1 !important;
}

.thumbnail-image.active {
    opacity: 1;
}

.thumbnail-image:hover {
    opacity: 1;
}

/* Modal */
.product-gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1d2430;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
.product-gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Modal Header */
.product-gallery-modal-header {
    order: 0;
    width: 100%;
    padding: 8px 48px;
    background-color: #2A3342;
    border-bottom: 1px solid #707B8B;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.product-gallery-modal-header-left {
    display: flex;
    flex-direction: column;
}

.product-gallery-header-left-location-code-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-gallery-header-left-flag-location-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-gallery-modal-location {
    display: block;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #FFFFFF;
}

.product-gallery-modal-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 19.2px;
    color: #FFFFFF;
}

.product-gallery-modal-code {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #FFFFFFB2;
}

/* Right Side of Header */
.product-gallery-modal-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.product-gallery-modal-price {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #FFFFFF;
}

.product-gallery-modal-without-pvm {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #FFFFFFB2;
}

.product-gallery-modal-right-buttons-block {
    display: flex;
    gap: 16px;
}

.product-gallery-modal-call-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #535D6C !important;
    border: 1px solid #707B8B;
    gap: 8px;
    border-radius: 8px;
    height: 40px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF !important;
}

.product-gallery-modal-call-button-icon {
    background-image: url("../images/phone_icon.svg");
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(16%) hue-rotate(103deg) brightness(105%) contrast(103%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

a.product-gallery-modal-call-button.phone-number-wrapper:before {
    content: '';
    width: 17px;
    height: 16px;
    background-image: url("../images/phone_icon.svg");
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(16%) hue-rotate(103deg) brightness(105%) contrast(103%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.product-gallery-modal-request-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    height: 40px;
    padding: 12px 16px;
    background-color: #2DA736;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF;
    border: 1px solid #2DA736;
    width:auto;
}

.product-gallery-modal-request-button:hover {
    color: #FFFFFF;
    background-color: #2DA736;
}

.product-gallery-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #707B8B;
    background-color: #535D6C !important;
    color: #fff !important;
    padding: 12px;
}

.product-gallery-modal-close-icon {
    background-image: url("../images/close_search_input_icon.svg");
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(16%) hue-rotate(103deg) brightness(105%) contrast(103%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Modal Image Slider */
.product-gallery-modal-slider {
    position: relative;
	width: auto;
    max-height: calc(100vh - 191px);
    display: flex;
    justify-content: center;
    height: 100%;
	
}

.product-gallery-modal-main-image {
    /*max-width: 1149px !important;
    max-height: 766px;*/
    border-radius: 16px;
    display: block;
    margin: 0 auto;
	
	object-fit: cover;
}

/* Navigation Arrows */
.product-gallery-modal-arrow {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 8px;
    background-color: var(--Background-Brand-Transparent, #FFFFFF66);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.product-gallery-modal-arrow:hover {
    background-color: #FFFFFF;
}

.modal-left-arrow {
    left: 16px;
}

.product-gallery-modal-arrow-modal-left-arrow-icon, .product-gallery-modal-arrow-modal-right-arrow-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.product-gallery-modal-arrow-modal-left-arrow-icon {
    background-image: url("../images/chevron_left_icon.svg");
}

.product-gallery-modal-arrow-modal-right-arrow-icon {
    background-image: url("../images/chevron_right_icon.svg");
}

.modal-right-arrow {
    right: 16px;
}

.product-gallery-modal-video {
    display: none;
    max-width: 1149px !important;
    max-height: 766px;
    border-radius: 16px;
    margin: 0 auto;
}

.thumbnail-image-wrapper:after {
    background: linear-gradient(180deg, rgba(32, 32, 32, 0.5) -12.12%, rgba(32, 32, 32, 0.5) 109.37%) !important;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    content: '';
    top: 0;
    left: 0;
}

.thumbnail-image-wrapper.active:after {
    background: transparent !important;
}

.product-gallery-modal-right-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
}


.custom-gallery-main-image {
    position: relative;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    border-radius: 16px;
    overflow: hidden;
}

.main-gallery-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.video-indicator-icon {
    background-image: url(../images/play_video_icon.svg);
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.wrapper-disabled{display:none;}

.custom-gallery-main-image .video-button {
    padding: 8px 12px !important;
    font-family: 'Rethink Sans';
}

/* Mobile screens */

@media (max-width: 768px) {
	.product-gallery-modal-header-right {
		align-items: flex-start;
	}
    .custom-gallery-main-image .slider-image {
        height: 242px !important;
    }
    
    .thumbnail-slider {
        gap: 8px;
    }
    
    .product-gallery-modal-main-image {
        max-width: 100% !important; 
        /*max-height: 242px;*/
        height: auto;
        display: block;
    }
    
    .product-gallery-modal-content {
        width: inherit;
        align-items: unset;
        height: 100%;
    }
    
    .thumbnail-slider.lightbox {
        display: none;
    }
}

.product-gallery-modal-mobile-close-block {
    display: none;
}

.product-gallery-modal-slider-mobile-wrapper {
    display:none
}

@media (max-width: 768px) {
    .product-gallery-modal-slider {
        display: none;
    }
    .product-gallery-modal-arrow.modal-left-arrow, .product-gallery-modal-arrow.modal-right-arrow {
        display: none;
    }
    .product-gallery-modal-slider-mobile-wrapper {
        padding: 16px;
        height: 100%;
        max-height: calc(100% - 191px);
        display: flex;
        align-items: center;
        transition: transform 0.3s ease-in-out;
    }

    .product-gallery-modal-slider-mobile {
        overflow-x: scroll;
        display: flex;
        flex-direction: row;
        width: 100%;
        max-height: calc(100vh - 191px);
        border-radius: 16px;
        transition: transform 0.3s ease-in-out;
    }
    
    .product-gallery-modal-slider-mobile img {
        height: 100%;
        width: 100%;
        max-height: 242px;
    }

    .thumbnail-slider-container{
        position: absolute;
        top: 253px;
        overflow: scroll;
        width: calc(100% + 32px);
        left: -16px;
        padding-left: 16px;
    }
    
    .thumbnail-slider-container::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

    .mobile-gallery-space {
        height:43px
    }
    
    .thumbnail-slider{
        width: 2000px; /* per js apskaiciuot pagal tiek kiek yra galerijoj itemu*/
         overflow-x: scroll; 
    }
    
    .thumbnail-slider-container {
        display:block;
    }
    
    .wrapper-disabled {
        display:block;
    }
    
    .product-gallery-modal-slider {
        flex-direction: column;
        width: auto;
        align-items: center;
        padding: 0px 16px;
        transition: transform 0.3s ease-in-out;
    }
    
    .product-gallery-modal-content .thumbnail-slider-container {
        display: none;
    }
    
    .product-gallery-modal-mobile-close-block {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 12px 16px;
    }
    
    .product-gallery-modal-header {
        order: 1;
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        align-items: flex-start;
        border-top: 1px solid #707B8B;
        border-bottom: none;
    }
    
    .product-gallery-modal-header-right {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .product-gallery-modal-header-right .product-gallery-modal-close {
        display: none;
    }
    
    .product-gallery-modal-title {
        line-height: 16.8px;
        font-size: 14px;
    }
    
    .product-gallery-modal-call-button {
        white-space: nowrap;
    }
    
    .product-gallery-modal-call-button, .product-gallery-modal-request-button {
        padding: 14px 0px;
        width: 100%;
    }
    
    .product-gallery-modal-header-left, .product-gallery-modal-right-buttons-block {
        width: 100%;
    }
    
    .product-gallery-modal-images-counter-block {
        display: block;
        /*position: absolute;*/
        /*left: 50%;*/
        /*transform: translateX(-50%);*/
        /*top: 58%;*/
        bottom: 0;
        transform: translateY(16px);
        font-weight: 400;
        font-size: 14px;
        line-height: 21px;
        color: #FFFFFFB2;
    }
    
}