/* ==========================================================================
   Instagram video band — BBC Colonic
   Uses the design tokens from bbccolonic.css (green accent, #e5e5e5 borders,
   3px radius, uppercase Arial headings) so the band reads as part of the site.
   ========================================================================== */

.ig-band {
    background: var(--surface-alt, #fbfbfb);
    border-top: 1px solid var(--border-soft, #f3f3f3);
    border-bottom: 1px solid var(--border-soft, #f3f3f3);
    padding: 36px 0 40px;
}

.ig-heading {
    margin: 0 0 6px;
    font-family: var(--font-heading, Arial, Helvetica, sans-serif);
    font-size: 20px;
    font-weight: normal;
    color: var(--heading, #707070);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ig-intro {
    margin: 0 0 20px;
    max-width: 720px;
    font-size: 14px;
    color: var(--muted, #888888);
}

/* Track: continuous marquee. Snap and smooth scroll would fight the rAF loop
   that drives the slide, so both are off for this row only. */
.ig-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ig-track::-webkit-scrollbar {
    display: none;
}

.ig-card {
    flex: 0 0 250px;
    width: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface, #ffffff);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius, 3px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ig-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    background: var(--footer-bg, #171717);
    cursor: pointer;
    overflow: hidden;
}

.ig-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: opacity 0.2s, transform 0.35s;
}

.ig-thumb:hover img,
.ig-thumb:focus-visible img {
    opacity: 1;
    transform: scale(1.03);
}

.ig-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green, #639846);
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

.ig-thumb:focus-visible {
    outline: 2px solid var(--green, #639846);
    outline-offset: -2px;
}

.ig-body {
    padding: 12px 14px 14px;
}

.ig-title {
    margin: 0 0 6px;
    font-family: var(--font-heading, Arial, Helvetica, sans-serif);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
    color: var(--text, #252525);
}

.ig-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted, #888888);
    white-space: pre-line;
}

.ig-meta {
    margin: 10px 0 0;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #aaaaaa;
    text-transform: uppercase;
}

.ig-player {
    aspect-ratio: 4 / 5;
    background: #000000;
}

.ig-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ig-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.ig-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border, #dbdbdb);
    border-radius: 50%;
    background: var(--surface, #ffffff);
    color: var(--green, #639846);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.ig-arrow:hover {
    border-color: var(--green, #639846);
    background: var(--green, #639846);
    color: #ffffff;
}

.ig-follow {
    margin: 16px 0 0;
    text-align: center;
}

.ig-follow a {
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(99, 152, 70, 0.4);
    color: var(--green, #639846);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.ig-follow a:hover {
    color: var(--green-dark, #4f7a36);
}

@media (max-width: 767px) {
    .ig-band {
        padding: 26px 0 30px;
    }

    .ig-card {
        flex: 0 0 76vw;
        width: 76vw;
    }

    .ig-heading {
        font-size: 17px;
    }
}

/* Inline placement: the homepage body carries a {{instagram}} token, so the
   band renders inside the article column instead of full width below it. */
.entry .ig-band {
    margin: 26px 0 30px;
    padding: 18px 0 22px;
    background: transparent;
    border-top: 1px solid var(--border-soft, #f3f3f3);
    border-bottom: 1px solid var(--border-soft, #f3f3f3);
}

.entry .ig-band .mw-container {
    width: 100%;
}

.entry .ig-card {
    flex: 0 0 220px;
    width: 220px;
}

.entry .ig-controls {
    margin-top: 12px;
}

/* Sidebar placement: the right column, directly above the promo modules.
   Padding and title typography match .sp-module / .sp-module-title so the
   headings below line up on the same left edge (1px border + 20px padding). */
.sidebar .ig-band {
    margin: 0 0 30px;
    padding: 20px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #dbdbdb);
}

.sidebar .ig-band .mw-container {
    width: 100%;
    /* .mw-container adds 15px side padding, which would push this heading out
       of line with the module titles underneath. */
    padding-left: 0;
    padding-right: 0;
}

/* Matches the operative .sp-module-title rule (bbccolonic-layout.css:286 —
   22px / 700 / green), not the 18px one it overrides earlier in that file. */
.sidebar .ig-heading {
    margin: 0 0 18px;
    color: var(--green, #639846);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: normal;
    text-align: center;
}

/* The promo and testimonial cards carry a title then content, with no subtitle
   line — so the sidebar band drops its intro to match the stack. The copy is
   still used by the full-width and inline placements. */
.sidebar .ig-intro {
    display: none;
}

.sidebar .ig-card {
    flex: 0 0 100%;
    width: 100%;
    box-shadow: none;
}

.sidebar .ig-body {
    padding: 8px 10px 10px;
}

.sidebar .ig-title {
    font-size: 12.5px;
}

.sidebar .ig-desc {
    font-size: 11px;
}

.sidebar .ig-meta {
    margin-top: 6px;
    font-size: 10px;
}

.sidebar .ig-play {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.sidebar .ig-arrow {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

.sidebar .ig-controls {
    margin-top: 10px;
}

.sidebar .ig-follow {
    margin: 12px 0 0;
    text-align: center;
}

/* Plain green link, like the "Show More Testimonials" link in the card below. */
.sidebar .ig-follow a {
    border-bottom: 0;
    color: var(--link, #639846);
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
}
