/**
 * Instagram Carousel - Estilos
 */

.igc-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.igc-carousel-wrapper .swiper {
    width: 100%;
    padding: 5px 5px 40px;
}

.igc-slide {
    height: auto;
}

.igc-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.igc-slide-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--igc-radius, 8px);
    background: #f3f3f3;
}

.igc-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.igc-slide:hover .igc-slide-image img {
    transform: scale(1.08);
}

.igc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.igc-slide:hover .igc-overlay {
    opacity: 1;
}

.igc-ig-icon {
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.igc-slide:hover .igc-ig-icon {
    transform: scale(1);
}

.igc-video-icon,
.igc-album-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.igc-caption {
    padding: 10px 5px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

/* Setas de navegação */
.igc-carousel-wrapper .swiper-button-prev,
.igc-carousel-wrapper .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.igc-carousel-wrapper .swiper-button-prev:hover,
.igc-carousel-wrapper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.igc-carousel-wrapper .swiper-button-prev::after,
.igc-carousel-wrapper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* Dots */
.igc-carousel-wrapper .swiper-pagination {
    bottom: 5px;
}

.igc-carousel-wrapper .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
}

.igc-carousel-wrapper .swiper-pagination-bullet-active {
    background: #000;
    opacity: 1;
}

/* Erro admin */
.igc-error {
    background: #fee;
    border-left: 4px solid #c00;
    color: #c00;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 767px) {
    .igc-carousel-wrapper .swiper-button-prev,
    .igc-carousel-wrapper .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .igc-carousel-wrapper .swiper-button-prev::after,
    .igc-carousel-wrapper .swiper-button-next::after {
        font-size: 13px;
    }
}
