/* ── Wrapper ────────────────────────────────────────────────────────────────── */
.vvc-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* ── Header row: title left, arrows right ───────────────────────────────────── */
.vvc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vvc-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
}

/* ── Swiper container ───────────────────────────────────────────────────────── */
.vvc-swiper {
    width: 100%;
    padding: 4px 0 12px;
}

.vvc-swiper .swiper-wrapper {
    align-items: stretch;
}

/* ── Slide ──────────────────────────────────────────────────────────────────── */
.vvc-slide {
    height: auto;
    display: flex;
}

/* ── Card — flat, simple, no rounded corners ────────────────────────────────── */
.vvc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent;
}

/* ── Embed wrapper — clean 9:16 portrait ────────────────────────────────────── */
.vvc-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 */
    background: #000;
    overflow: hidden;
}

.vvc-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Instagram embed — make iframe taller so the bottom UI (like bar,
   "View on Instagram", username, likes) is clipped below the card */
.vvc-platform-instagram .vvc-embed-wrap {
    background: #000;
}

.vvc-platform-instagram .vvc-embed-wrap iframe {
    height: 165%;
    top: 0;
}

/* ── Title — linked, sits below the video with a small gap ──────────────────── */
.vvc-title {
    display: block;
    margin-top: 14px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #111;
    text-decoration: none;
    letter-spacing: -.01em;
    transition: color .2s ease;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vvc-title:hover {
    color: #1B9BD1; /* SiteDesign blue */
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Navigation buttons ─────────────────────────────────────────────────────── */
.vvc-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vvc-btn-prev,
.vvc-btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .25s ease,
        background .25s ease,
        transform .15s ease;
    padding: 0;
}

.vvc-btn-prev svg,
.vvc-btn-next svg {
    width: 18px;
    height: 18px;
    color: #555;
    transition: color .25s ease;
}

.vvc-btn-prev:hover,
.vvc-btn-next:hover {
    border-color: #111;
    background: #111;
}

.vvc-btn-prev:hover svg,
.vvc-btn-next:hover svg {
    color: #fff;
}

.vvc-btn-prev:active,
.vvc-btn-next:active {
    transform: scale(.92);
}

.vvc-btn-prev.swiper-button-disabled,
.vvc-btn-next.swiper-button-disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

.vvc-btn-prev.swiper-button-lock,
.vvc-btn-next.swiper-button-lock {
    display: flex !important;
    opacity: .3;
    pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .vvc-section-title { font-size: 16px; }
    .vvc-title { font-size: 14px; margin-top: 12px; }
}

/* ── Touch devices: catch swipes on card edges, keep iframe interactive ─────── */
@media (pointer: coarse) {
    /* invisible swipe strips on the left and right edges of each card —
       lets users swipe from the edges while still being able to tap the iframe */
    .vvc-embed-wrap::before,
    .vvc-embed-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        z-index: 5;
        background: transparent;
    }
    .vvc-embed-wrap::before { left: 0; }
    .vvc-embed-wrap::after  { right: 0; }
}
