.pro-image-carousel-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pro-image-carousel-main-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Spacing between main and thumbs */
}

.pro-image-carousel-main {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    height: 400px;
    background: #f5f5f5;
    width: 100%;
}

.pro-image-carousel-main-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.pro-image-carousel-main-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.pro-image-carousel-main-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrows inside the image area */
.pro-image-carousel-nav {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.2s;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    padding: 0;
}

.pro-image-carousel-nav:hover {
    background: #fff;
}

.pro-image-carousel-nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.pro-image-carousel-prev {
    left: 10px; /* Overriden by Elementor controls */
}

.pro-image-carousel-next {
    right: 10px; /* Overriden by Elementor controls */
}

/* Thumbnails strictly below and horizontal */
.pro-image-carousel-thumbnails {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    display: block;
}

.pro-image-carousel-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome */
}

.pro-image-carousel-thumb-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 5px;
    width: max-content; /* Ensure track stretches for scrolling */
}

.pro-image-carousel-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.pro-image-carousel-thumb.active {
    opacity: 1 !important;
    border-color: #333;
}

.pro-image-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}