/* ================================================
   ESPRESSIMO INSTAGRAM STRIP WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_instagram_strip_proto_v1 {
    width: 100%;
}

.elementor-widget-espressimo_instagram_strip_proto_v1 .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------
   SECTION
   ------------------------------------------------ */
.esp-insta {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* ------------------------------------------------
   FIXED PANEL (Instagram logo side)
   ------------------------------------------------ */
.esp-insta__panel {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 42px;
    position: relative;
    z-index: 2;
}

.esp-insta__panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.esp-insta__panel-placeholder {
    color: #fff;
    font-size: 20px;
    font-family: 'Dialect PM', sans-serif;
    opacity: 0.6;
}

/* ------------------------------------------------
   SCROLLING AREA
   ------------------------------------------------ */
.esp-insta__scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
}

/* ------------------------------------------------
   TRACK (animated)
   ------------------------------------------------ */
.esp-insta__track {
    display: flex;
    align-items: center;
    will-change: transform;
}

/* ------------------------------------------------
   PHOTO PLACEHOLDER (no image uploaded)
   ------------------------------------------------ */
.esp-insta__photo-placeholder {
    border-radius: 3px;
    background-color: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .esp-insta__panel {
        padding-right: 24px;
    }
    .esp-insta__track img,
    .esp-insta__photo-placeholder {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    /* Items 11–12 — mobile re-layout: small centred banner on top, then 3–4 small
       images below (whatever fits). Overrides the inline sizes with !important. */
    .esp-insta {
        flex-direction: column;
        height: auto !important;
        padding: 22px 14px;
        gap: 14px;
    }
    .esp-insta__panel {
        width: auto !important;
        padding: 0 !important;
        justify-content: center;
    }
    .esp-insta__panel a img {
        height: 64px !important;
    }
    .esp-insta__panel-placeholder {
        font-size: 16px;
    }
    .esp-insta__scroll {
        width: 100%;
        overflow: visible;
        height: auto;
        padding: 0;
        justify-content: center;
    }
    .esp-insta__track {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px !important;
    }
    .esp-insta__photo {
        width: 88px !important;
        height: 88px !important;
    }
    .esp-insta__photo-placeholder {
        width: 88px !important;
        height: 88px !important;
    }
    /* Show only the first four thumbnails so the row stays tidy. */
    .esp-insta__photo:nth-child(n+5) {
        display: none;
    }
}
