.customer-video-gallery {
    --cvg-navy: #061730;
    --cvg-gold: #c99732;
    --cvg-ink: #172236;
    --cvg-muted: #627083;
    --cvg-border: #e6eaf0;
    margin: 1.5rem 0 2.5rem;
    padding: clamp(1rem, 2.5vw, 2rem);
    border: 1px solid var(--cvg-border);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    color: var(--cvg-ink);
    direction: rtl;
}

.customer-video-gallery *,
.customer-video-gallery *::before,
.customer-video-gallery *::after { box-sizing: border-box; }

.customer-video-gallery__intro { max-width: 52rem; margin-bottom: 1.25rem; }
.customer-video-gallery__eyebrow {
    margin: 0 0 .35rem;
    color: var(--cvg-gold);
    font-size: .88rem;
    font-weight: 700;
}
.customer-video-gallery__intro h2 {
    margin: 0 0 .6rem;
    color: var(--cvg-navy);
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.7;
}
.customer-video-gallery__intro p:last-child { margin: 0; line-height: 1.9; color: var(--cvg-muted); }

.customer-video-gallery__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, .9fr);
    gap: 1rem;
    align-items: start;
}
.customer-video-gallery__featured,
.customer-video-gallery__playlist {
    min-width: 0;
    border: 1px solid var(--cvg-border);
    border-radius: 1rem;
    background: #fff;
}
.customer-video-gallery__featured { overflow: hidden; }
.customer-video-gallery__featured video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--cvg-navy);
}
.customer-video-gallery__featured video[data-cvg-vertical="true"] { aspect-ratio: 9 / 16; max-height: 72vh; }
.customer-video-gallery__meta { padding: 1rem 1.1rem 1.15rem; }
.customer-video-gallery__meta h3 { margin: 0 0 .4rem; color: var(--cvg-navy); font-size: 1.05rem; line-height: 1.7; }
.customer-video-gallery__meta p { margin: 0; color: var(--cvg-muted); line-height: 1.8; }
.customer-video-gallery__status { margin: 0; padding: 2.5rem 1rem; color: var(--cvg-muted); text-align: center; }

.customer-video-gallery__playlist { padding: .85rem; }
.customer-video-gallery__playlist-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.customer-video-gallery__playlist-head h3 { margin: 0; color: var(--cvg-navy); font-size: 1.05rem; }
.customer-video-gallery__playlist-head span { color: var(--cvg-muted); font-size: .85rem; }
.customer-video-gallery__items {
    display: grid;
    gap: .55rem;
    max-height: 38rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline-end: .2rem;
}
.customer-video-gallery__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    width: 100%;
    padding: .35rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    background: #f8fafc;
    color: var(--cvg-ink);
    text-align: right;
    font: inherit;
}
.customer-video-gallery__select {
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: .7rem;
    width: 100%;
    min-width: 0;
    padding: .1rem;
    border: 1px solid transparent;
    border-radius: .6rem;
    background: transparent;
    color: inherit;
    text-align: right;
    cursor: pointer;
    font: inherit;
}
.customer-video-gallery__select:hover { border-color: #d9e1ed; background: #f1f5f9; }
.customer-video-gallery__select:focus-visible { outline: 3px solid rgba(201, 151, 50, .45); outline-offset: 2px; }
.customer-video-gallery__item[aria-current="true"] { border-color: var(--cvg-gold); background: #fff9ec; }
.customer-video-gallery__thumb {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    overflow: hidden;
    border-radius: .55rem;
    background: var(--cvg-navy);
}
.customer-video-gallery__thumb img { display: block; width: 100%; height: 100%; min-height: 3.2rem; object-fit: cover; }
.customer-video-gallery__thumb--empty::before { content: '▶'; color: #fff; font-size: 1.1rem; }
.customer-video-gallery__thumb::after { content: '▶'; position: absolute; inset: auto .35rem .25rem auto; color: #fff; font-size: .7rem; text-shadow: 0 1px 3px #000; }
.customer-video-gallery__item-title { align-self: center; overflow: hidden; font-size: .88rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.customer-video-gallery__item-duration { display: block; margin-top: .2rem; color: var(--cvg-muted); font-size: .75rem; }
.customer-video-gallery__watch-link { align-self: center; padding: .3rem .45rem; color: var(--cvg-navy); font-size: .75rem; white-space: nowrap; text-decoration: underline; }
.customer-video-gallery__fallback { margin-top: .9rem; color: var(--cvg-muted); font-size: .82rem; }
.customer-video-gallery__fallback p { margin: 0; }
.customer-video-gallery__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.customer-video-gallery__cta a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .85rem; border-radius: .65rem; background: var(--cvg-navy); color: #fff; font-size: .83rem; line-height: 1.5; text-decoration: none; }
.customer-video-gallery__cta a:hover, .customer-video-gallery__cta a:focus-visible { background: #12335d; color: #fff; }
.customer-video-gallery__cta a:last-child { background: #f7edda; color: var(--cvg-navy); }

@media (max-width: 900px) {
    .customer-video-gallery__layout { grid-template-columns: 1fr; }
    .customer-video-gallery__items { max-height: 24rem; }
}
@media (max-width: 560px) {
    .customer-video-gallery { margin-inline: -.5rem; padding: .85rem; border-radius: .9rem; }
    .customer-video-gallery__select { grid-template-columns: 5.8rem minmax(0, 1fr); min-height: 4.5rem; }
    .customer-video-gallery__items { max-height: none; overflow-y: visible; }
}
@media (prefers-reduced-motion: reduce) { .customer-video-gallery *, .customer-video-gallery *::before, .customer-video-gallery *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Keep article/theme typography from stretching Persian headings in this feature. */
.customer-video-gallery,
.customer-video-watch { max-width: 100%; text-align: right; }
.customer-video-gallery h2,
.customer-video-gallery h3,
.customer-video-gallery p,
.customer-video-watch h1,
.customer-video-watch h2,
.customer-video-watch p {
    text-align: right;
    text-align-last: right;
    word-spacing: normal;
    letter-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.full-story.customer-video-article .customer-video-gallery h2 {
    font-size: 1.5rem !important;
    line-height: 1.65 !important;
    margin: 0 0 .65rem !important;
}
.full-story.customer-video-article .customer-video-gallery h3 {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    margin: 0 0 .45rem !important;
}
.customer-video-gallery__intro p { font-size: .94rem; }
.customer-video-gallery__featured video { margin: 0; }
.customer-video-gallery__select { align-items: center; }
.customer-video-gallery__thumb { aspect-ratio: 16 / 10; min-height: 3.6rem; background: #eef2f6; }
.customer-video-gallery__thumb--empty { border: 1px solid #e0e6ed; background: linear-gradient(135deg, #f5f7fa, #e8edf3); }
.customer-video-gallery__thumb--empty::before {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d5dfeb;
    border-radius: 50%;
    background: #fff;
    color: #263f5c;
    font-size: .75rem;
}
.customer-video-gallery__thumb--empty::after { content: none; }
.customer-video-gallery__search { display: grid; gap: .45rem; margin: .6rem 0 .9rem; font-size: .85rem; color: #44536a; }
.customer-video-gallery__search input {
    width: 100%;
    min-width: 0;
    min-height: 2.8rem;
    padding: .6rem .75rem;
    border: 1px solid #d7dfeb;
    border-radius: .6rem;
    background: #fff;
    color: #172236;
    font: inherit;
    text-align: right;
}
.customer-video-gallery__search input:focus { outline: 3px solid #f3e7c9; border-color: #c99732; }
.customer-video-gallery__no-results { padding: .8rem; border-radius: .6rem; background: #f6f8fb; color: #526178; font-size: .9rem; line-height: 1.9; }
.customer-video-gallery [hidden], .customer-video-watch [hidden] { display: none !important; }
.customer-video-gallery__retry {
    display: inline-flex;
    margin: .5rem 1rem 1rem;
    padding: .55rem 1rem;
    border: 1px solid #d4dce8;
    border-radius: .6rem;
    background: #fff;
    color: #061730;
    font: inherit;
    cursor: pointer;
}
.customer-video-gallery__retry:focus-visible { outline: 3px solid #e5ca8f; }
.customer-video-gallery__watch-index { margin: 1rem 0; font-size: .9rem; }
.customer-video-gallery__watch-index ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.customer-video-watch {
    --cvg-navy: #061730;
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 68rem;
    margin: 1.5rem auto 3rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #e6eaf0;
    border-radius: 1.25rem;
    background: #fff;
    color: #172236;
    direction: rtl;
}
.customer-video-watch *, .customer-video-watch *::before, .customer-video-watch *::after { box-sizing: border-box; }
.customer-video-watch__back { display: inline-block; margin-bottom: 1rem; color: #5c491f; text-decoration: underline; font-size: .9rem; }
.customer-video-watch h1 { margin: 0 0 1.25rem; color: #061730; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.7; font-weight: 700; }
.customer-video-watch__player { overflow: hidden; border-radius: .9rem; background: #061730; }
.customer-video-watch__player video { display: block; width: 100%; height: auto; max-height: 72vh; margin: 0; object-fit: contain; }
.customer-video-watch__description { margin: 1.25rem 0; color: #526178; line-height: 2; font-size: 1rem; }
.customer-video-watch__message { margin: 1rem 0; line-height: 1.9; color: #526178; }
.customer-video-watch__related { border-top: 1px solid #e6eaf0; margin-top: 1.5rem; padding-top: 1rem; }
.customer-video-watch__related h2 { font-size: 1.1rem; line-height: 1.8; }
.customer-video-watch__related li { margin: .5rem 0; line-height: 1.8; }
@media (max-width: 560px) {
    .full-story.customer-video-article { padding: 1rem; }
    .customer-video-gallery { margin-inline: 0; padding: .8rem; }
    .full-story.customer-video-article .customer-video-gallery h2 { font-size: 1.15rem !important; line-height: 1.8 !important; }
    .full-story.customer-video-article .customer-video-gallery h3 { font-size: 1rem !important; line-height: 1.8 !important; }
    .customer-video-gallery__intro p, .customer-video-gallery__meta p { font-size: .9rem; line-height: 1.95; }
    .customer-video-gallery__meta { padding: .85rem; }
    .customer-video-gallery__select { grid-template-columns: 5rem minmax(0, 1fr); gap: .6rem; }
    .customer-video-gallery__items { max-height: none; overflow: visible; padding: 0; }
    .customer-video-gallery__item { scroll-margin-bottom: 7rem; }
    .customer-video-gallery__cta { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .customer-video-gallery__cta a { width: 100%; justify-content: center; }
    .customer-video-watch { width: calc(100% - 1rem); margin-top: .75rem; margin-bottom: calc(6rem + env(safe-area-inset-bottom)); padding: 1rem; border-radius: .9rem; }
    .customer-video-watch h1 { font-size: 1.2rem; line-height: 1.85; }
    .customer-video-watch__description { font-size: .95rem; }
    .customer-video-article .article-content { overflow-wrap: break-word; }
    .customer-video-article .article-content h2, .customer-video-article .article-content h3 { text-align: right !important; word-spacing: normal; letter-spacing: normal; font-size: 1.15rem !important; line-height: 1.85 !important; }
    .customer-video-article .article-content p { text-align: right !important; line-height: 2; }
}
