/* Figma Video Carousel — child theme stylesheet */
.figma-video-carousel {
    --video-orange: #FF991C;
    --video-bg: #F8F8F8;
    --video-width: 430px;
    --video-height: 228px;
    --side-height: 196px;
    --video-gap: 11px;
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    outline: none;
}
.figma-video-carousel * { box-sizing: border-box; }
.figma-video-viewport {
    width: 100%;
    height: var(--video-height);
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    cursor: grab;
}
.figma-video-viewport:active { cursor: grabbing; }
.figma-video-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--video-gap);
    height: 100%;
    width: max-content;
    position: relative;
    transition: transform 450ms cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.figma-video-card {
    flex: 0 0 var(--video-width);
    width: var(--video-width);
    height: var(--side-height);
    min-width: 0;
    background: var(--video-bg);
    border: 1px solid var(--video-orange);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: height 350ms ease;
}
.figma-video-card.is-active { height: var(--video-height); }
.figma-video-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.figma-video-carousel .figma-play-btn,
.figma-video-carousel .figma-play-btn:hover,
.figma-video-carousel .figma-play-btn:focus {
    appearance: none;
    -webkit-appearance: none;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #FF991C !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    transform: none;
}
.figma-video-carousel .figma-play-btn:focus-visible {
    outline: 3px solid #092b4d !important;
    outline-offset: 4px;
}
.figma-video-carousel .figma-play-btn svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: white;
    margin-left: 3px;
    flex-shrink: 0;
    pointer-events: none;
}
.figma-video-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
}
@media (max-width: 1024px) {
    .figma-video-carousel { max-width: 100%; }
}
@media (max-width: 767px) {
    .figma-video-carousel {
        --video-width: min(72vw, 320px);
        --video-height: 200px;
        --side-height: 174px;
        --video-gap: 10px;
    }
    .figma-video-card { border-radius: 14px; }
    .figma-video-carousel .figma-play-btn,
    .figma-video-carousel .figma-play-btn:hover,
    .figma-video-carousel .figma-play-btn:focus {
        width: 58px;
        height: 58px;
        min-width: 58px;
        min-height: 58px;
    }
    .figma-video-carousel .figma-play-btn svg {
        width: 20px;
        height: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .figma-video-track,
    .figma-video-card { transition: none; }
}
