.pg-wrapper-c851531d {
    display: flex;
    width: 100%;
    gap: 10px; /* Controlled by Elementor */
}

/* Layout Directions based on Thumbnail Position */
.pg-wrapper-c851531d.pos-bottom {
    flex-direction: column;
}

.pg-wrapper-c851531d.pos-top {
    flex-direction: column-reverse;
}

.pg-wrapper-c851531d.pos-left {
    flex-direction: row-reverse;
}

.pg-wrapper-c851531d.pos-right {
    flex-direction: row;
}

/* Main Swiper */
.pg-main-swiper {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.pg-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.pg-main-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Main Swiper Navigation Arrows */
.pg-main-swiper .swiper-button-next,
.pg-main-swiper .swiper-button-prev {
    color: #000; /* Controlled by Elementor */
}

.pg-main-swiper .swiper-button-next:after,
.pg-main-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

/* Thumbs Swiper */
.pg-thumbs-swiper {
    box-sizing: border-box;
}

/* Horizontal Thumbs (Top/Bottom) */
.pg-wrapper-c851531d.pos-bottom .pg-thumbs-swiper,
.pg-wrapper-c851531d.pos-top .pg-thumbs-swiper {
    width: 100%;
    height: auto; /* Elementor thumb size controls height here */
}

/* Vertical Thumbs (Left/Right) */
.pg-wrapper-c851531d.pos-left .pg-thumbs-swiper,
.pg-wrapper-c851531d.pos-right .pg-thumbs-swiper {
    height: auto;
    /* width is controlled by Elementor thumb size */
}

/* Thumbnail Slides */
.pg-thumbs-swiper .swiper-slide {
    width: 80px; /* Default, overridden by Elementor */
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.pg-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #000; /* Controlled by Elementor */
}

.pg-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
