/* Core Swiper rules - independent of Elementor */
.spg-gallery-wrapper .swiper-wrapper {
    display: flex !important;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition-property: transform;
    box-sizing: content-box;
}
.spg-gallery-wrapper .swiper-slide {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.spg-main-item img{
	padding: 0px 2px;
}
.spg-gallery-wrapper .spg-thumbs-slider .swiper-wrapper {
    flex-direction: column;
}

.spg-main-container .swiper-slide{
	overflow: clip !important;
}

.spg-main-container .swiper-slide img {
    transition: transform 0.4s ease;
}
.spg-main-container .swiper-slide:hover img {
    transform: scale(1.06);
}

.spg-gallery-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    transition: opacity 0.3s ease;
}
.spg-loaded .spg-thumbs-container {
    opacity: 1;
}
.spg-thumbs-container {
    width: 80px;
    flex-shrink: 0;
    order: -1;
    position: relative;
    opacity: 0;
}
.spg-thumbs-slider {
    height: 520px;
    overflow: hidden;
}
.spg-thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: #f5f5f5;
}
.spg-thumb-item:hover {
    opacity: 0.85;
}
.swiper-slide-thumb-active .spg-thumb-item {
    opacity: 1;
}
.spg-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.spg-main-container {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}
.spg-main-slider {
    width: 100% !important;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.spg-main-slider .swiper-wrapper {
    width: 100% !important;
}
.spg-main-slider .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
}
.spg-main-container .swiper-slide {
    width: 100% !important;
}
.spg-main-item {
    width: 100% !important;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spg-main-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    max-height: 600px;
}
.elementor img.spg-main-item img,
.elementor-widget-container .spg-main-item img {
    width: 100% !important;
    max-width: 100% !important;
}

/* Main slider navigation arrows */
.spg-main-prev,
.spg-main-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.spg-main-prev { left: 10px; }
.spg-main-next { right: 10px; }
.spg-main-prev svg,
.spg-main-next svg { 
    width: 20px; 
    height: 20px; 
}
.spg-main-prev.swiper-button-disabled,
.spg-main-next.swiper-button-disabled { 
    opacity: 0.35; 
    cursor: default; 
}

@media (max-width: 1200px) and (min-width: 768px) {
    .spg-thumbs-slider {
        height: 170px;
    }
}
@media (max-width: 767px) {
    .spg-gallery-wrapper {
        gap: 8px;
    }
    .spg-thumbs-container {
        width: 70px;
    }
    .spg-thumbs-slider {
        height: 254px;
    }
    .spg-thumb-item {
        width: 70px;
        height: 70px;
    }
}
@media (max-width: 400px) {
    .spg-gallery-wrapper {
        gap: 5px;
    }
    .spg-thumbs-container {
        width: 50px !important;
    }
    .spg-thumbs-slider {
        height: 160px !important;
    }
    .spg-thumb-item {
        width: 50px !important;
        height: 50px !important;
    }
}