.ps-b4f87516-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ps-b4f87516-main {
    width: 100%;
    position: relative;
}

.ps-b4f87516-main.ps-b4f87516-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(0,0,0,0.9);
    margin: 0;
    padding: 0;
}

.ps-b4f87516-main.ps-b4f87516-fullscreen .ps-b4f87516-slide-inner {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ps-b4f87516-main .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.ps-b4f87516-slide-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #DCDCDC;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.ps-b4f87516-main .swiper-slide img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain; /* Controlled by Elementor setting */
    display: block;
}

/* Custom Navigation */
.ps-b4f87516-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    color: #333;
}

.ps-b4f87516-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ps-b4f87516-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.ps-b4f87516-nav-prev {
    left: 10px;
}

.ps-b4f87516-nav-next {
    right: 10px;
}

/* Fullscreen Button */
.ps-b4f87516-fs-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 5px;
    color: #333;
}

.ps-b4f87516-fs-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ps-b4f87516-main.ps-b4f87516-fullscreen .ps-b4f87516-fs-btn {
    top: 20px;
    right: 20px;
}

.ps-b4f87516-thumbs {
    width: 100%;
    box-sizing: border-box;
}

.ps-b4f87516-thumbs .swiper-slide {
    width: 25%;
    height: 80px; /* Default thumb height */
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.ps-b4f87516-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.ps-b4f87516-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Default is contain to avoid crop */
    display: block;
}
