/* Instagram Feed Styles - Carrossel */

.destaques.instagram {
    padding: 20px 0;
}

.instagram-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.instagram-carousel {
    overflow: hidden;
    width: 100%;
}

.instagram-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.instagram-post {
    flex: 0 0 280px;
    max-width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Botões de navegação */
.instagram-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.instagram-nav:hover {
    background: #5a87d9;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(90, 135, 217, 0.3);
}

.instagram-nav:hover .glyphicon {
    color: white;
}

.instagram-nav .glyphicon {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

.instagram-prev {
    left: 0;
}

.instagram-next {
    right: 0;
}

.instagram-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #e0e0e0;
}

.instagram-nav:disabled:hover {
    transform: translateY(-50%);
    background: #e0e0e0;
}

.instagram-image-wrapper {
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.instagram-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-stats {
    display: flex;
    gap: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.instagram-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.instagram-stats .glyphicon {
    font-size: 16px;
}

.instagram-caption {
    padding: 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    background: white;
}

.instagram-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.instagram-fallback {
    grid-column: 1 / -1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* SnapWidget iframe styling */
.snapwidget-widget {
    width: 100% !important;
    min-height: 400px;
    border: none;
}

/* Instagram embed wrapper */
.instagram-embed-wrapper {
    flex: 0 0 280px;
    max-width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-embed-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.instagram-embed-wrapper .instagram-media {
    margin: 0 !important;
    max-width: 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsivo */
@media (max-width: 1200px) {
    .instagram-carousel-wrapper {
        padding: 0 50px;
    }

    .instagram-post,
    .instagram-embed-wrapper {
        flex: 0 0 250px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .instagram-carousel-wrapper {
        padding: 0 40px;
    }

    .instagram-post,
    .instagram-embed-wrapper {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .instagram-nav {
        width: 35px;
        height: 35px;
    }

    .instagram-nav .glyphicon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .instagram-carousel-wrapper {
        padding: 0 35px;
    }

    .instagram-post,
    .instagram-embed-wrapper {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .instagram-track {
        gap: 15px;
    }
}

/* Link no título */
.news-destaques .cabecalho h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-destaques .cabecalho h2 a:hover {
    color: #5a87d9;
}
