/* Estrutura Base */
.igs-container {
    display: flex;
    position: relative;
}
.igs-thumbs-position-bottom .igs-container {
    flex-direction: column;
}
.igs-thumbs-position-left .igs-container {
    flex-direction: row;
    gap: 15px;
}
.igs-thumbs-position-right .igs-container {
    flex-direction: row-reverse;
    gap: 15px;
}

.igs-main-slider-wrapper {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

/* Alerta no Editor */
.igs-editor-alert {
    width: 100%;
    padding: 15px;
    background-color: #fcf8e3;
    color: #8a6d3b;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Slider Principal */
.igs-main-slider {
    width: 100%;
    height: 100%;
    min-height: 250px;
}
.igs-main-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
}
.igs-main-slider .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Slider de Miniaturas (Thumbnails) */
.igs-thumb-nav {
    box-sizing: border-box;
    flex-shrink: 0;
}
.igs-thumbs-position-bottom .igs-thumb-nav {
    height: 100px;
    width: 100%;
    margin-top: 15px;
}
.igs-thumbs-position-left .igs-thumb-nav,
.igs-thumbs-position-right .igs-thumb-nav {
    width: 120px;
    height: 100%;
    max-height: 600px;
}

.igs-thumb-nav .swiper-wrapper {
    align-items: flex-start; 
}

.igs-thumb-nav .swiper-slide {
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
    width: auto;
}
.igs-thumbs-position-left .swiper-slide, .igs-thumbs-position-right .swiper-slide {
    width: 100%;
    height: auto;
}
.igs-thumb-nav .swiper-slide-thumb-active {
    opacity: 1;
}
.igs-thumb-nav .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Setas de Navegação */
.igs-arrow {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.igs-arrow:hover {
    background-color: #fff;
    color: #000;
}
.igs-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.igs-arrow i, .igs-arrow svg {
    width: 1em;
    height: 1em;
}

/* Posição das Setas */
.igs-arrows-pos-inside .igs-arrow-prev { left: 15px; }
.igs-arrows-pos-inside .igs-arrow-next { right: 15px; }

.igs-arrows-pos-outside .igs-arrow-prev { left: -22px; transform: translate(-100%, -50%); }
.igs-arrows-pos-outside .igs-arrow-next { right: -22px; transform: translate(100%, -50%); }

.igs-arrows-pos-outside .igs-main-slider-wrapper {
    overflow: visible;
}