/* ========================================
   INSTAGRAM EMBED SCROLLABLE
   ======================================== */

.ig-carousel-wrapper {
    position: relative;
    padding: 0 70px;
}

.ig-carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ig-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.insta-embed-grid {
    display: flex;
    gap: 20px;
    width: max-content;
    /* centrato quando entra nel viewport; se overflowa lo scroll parte da sx */
    margin-inline: auto;
    padding: 4px;
}

.insta-embed-post {
    flex: 0 0 340px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface);
    min-height: 500px;
}

.insta-embed-post blockquote {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    min-width: 100% !important;
}

.insta-embed-post a {
    display: block;
    padding: 40px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    border: 1px dashed rgba(240, 235, 227, 0.15);
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ig-arrow svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.ig-arrow:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 162, 39, 0.3);
}

.ig-arrow.prev {
    left: 8px;
}

.ig-arrow.next {
    right: 8px;
}

.ig-arrow.prev:active {
    transform: translateY(-50%) scale(0.95);
}

.ig-arrow.next:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 1024px) {
    .insta-embed-post {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .ig-carousel-wrapper {
        padding: 0 50px;
    }
    .insta-embed-post {
        flex: 0 0 280px;
    }
    .ig-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .insta-embed-post {
        flex: 0 0 260px;
    }
}
