.pilg-908ee6ac-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.pilg-908ee6ac-thumbnails {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pilg-908ee6ac-thumb-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pilg-908ee6ac-thumb-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: contain;
}

.pilg-908ee6ac-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.pilg-908ee6ac-main-viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.pilg-908ee6ac-main-viewport img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    object-fit: contain !important; /* ensures images completely fit without cutoff */
}

/* Arrows Styling */
.pilg-908ee6ac-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.pilg-908ee6ac-nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.pilg-908ee6ac-prev-btn {
    left: 15px;
}

.pilg-908ee6ac-next-btn {
    right: 15px;
}

/* Dots Styling */
.pilg-908ee6ac-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.pilg-908ee6ac-dot {
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pilg-908ee6ac-placeholder {
    padding: 20px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    text-align: center;
    color: #6b7280;
}

/* Modifier Classes for Thumbnails Position */
.elementor-product-left-gallery-pos-left- .pilg-908ee6ac-wrapper {
    flex-direction: row;
}
.elementor-product-left-gallery-pos-left- .pilg-908ee6ac-thumbnails {
    flex-direction: column;
}

.elementor-product-left-gallery-pos-right- .pilg-908ee6ac-wrapper {
    flex-direction: row-reverse;
}
.elementor-product-left-gallery-pos-right- .pilg-908ee6ac-thumbnails {
    flex-direction: column;
}

.elementor-product-left-gallery-pos-bottom- .pilg-908ee6ac-wrapper {
    flex-direction: column-reverse;
}
.elementor-product-left-gallery-pos-bottom- .pilg-908ee6ac-thumbnails {
    flex-direction: row;
}
