.jgs-reels, .jgs-reels-dialog { --jgs-accent: var(--e-global-color-accent, #eb8915); --jgs-text: var(--e-global-color-text, #575656); font-family: var(--e-global-typography-text-font-family, Montserrat), sans-serif; box-sizing: border-box; }
.jgs-reels[hidden], .jgs-reels-dialog [hidden] { display: none !important; }
.jgs-reels { width: 100%; background: #f7f7f7; border-block: 1px solid #e9e9e9; color: var(--jgs-text); }
.jgs-reels *, .jgs-reels-dialog * { box-sizing: border-box; }
.jgs-reels__inner { max-width: 1180px; margin: auto; padding: 26px 20px; display: flex; align-items: center; gap: 38px; }
.jgs-reels__intro { flex: 0 0 210px; }
.jgs-reels__eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.8px; }
.jgs-reels .jgs-reels__intro h2 { font-size: 28px; line-height: 1.3; font-weight: 400; color: var(--jgs-text); margin: 8px 0; }
.jgs-reels a.jgs-reels__profile { font-size: 14px; color: var(--jgs-text); text-decoration: none; text-underline-offset: 4px; }
.jgs-reels a.jgs-reels__profile:hover { text-decoration: underline; }
.jgs-reels__profile span { color: #a45800; }
.jgs-reels__list { display: flex; flex: 1; min-width: 0; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; list-style: none; padding: 4px 2px 6px; margin: 0; scrollbar-width: thin; scrollbar-color: #bcbcbc transparent; }
.jgs-reels__list li { flex: 0 0 112px; min-width: 0; scroll-snap-align: start; padding: 0; margin: 0; }
.jgs-reels .jgs-reels__story { display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--jgs-text); font: inherit; text-align: center; text-transform: none; cursor: pointer; }
.jgs-reels__ring { position: relative; display: block; height: 104px; width: 104px; margin: 0 auto 9px; border-radius: 50%; padding: 3px; background: linear-gradient(140deg, #f8c786, var(--jgs-accent) 60%, #b76200); transition: transform .2s ease; }
.jgs-reels__story:hover .jgs-reels__ring { transform: translateY(-3px); }
.jgs-reels__ring img, .jgs-reels__fallback { display: block; width: 100%; height: 100%; object-fit: cover; border: 3px solid #f7f7f7; border-radius: 50%; background: #e6e3df; }
.jgs-reels__fallback { display: grid; place-items: center; color: #575656; font-size: 22px; }
.jgs-reels__play { position: absolute; bottom: 1px; right: 0; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #fff; color: #575656; font-size: 9px; box-shadow: 0 1px 5px #0002; }
.jgs-reels__label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; min-height: 39.2px; white-space: normal; overflow-wrap: anywhere; }
.jgs-reels button:focus-visible, .jgs-reels a:focus-visible, .jgs-reels-dialog button:focus-visible, .jgs-reels-dialog a:focus-visible { outline: 3px solid #a45800; outline-offset: 4px; }
.jgs-reels-dialog { position: fixed; inset: 0; width: min(440px, calc(100vw - 24px)); max-width: none; height: min(850px, calc(100dvh - 24px)); max-height: none; padding: 0; margin: auto; border: 0; border-radius: 16px; overflow: hidden; background: #121212; color: #fff; box-shadow: 0 20px 90px #0006; }
.jgs-reels-dialog::backdrop { background: #141414b8; backdrop-filter: blur(5px); }
.jgs-reels-dialog__frame { height: 100%; display: flex; flex-direction: column; }
.jgs-reels-dialog__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-shrink: 0; }
.jgs-reels-dialog__heading { font-size: 12px; margin: 0; flex: 1; font-weight: 400; }
.jgs-reels-dialog__count { font-size: 11px; color: #ddd; }
.jgs-reels-dialog button.jgs-reels-dialog__button { flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #242424; color: #fff; font: inherit; font-size: 18px; cursor: pointer; line-height: 1; }
.jgs-reels-dialog button.jgs-reels-dialog__button:hover { background: #3a3a3a; }
.jgs-reels-dialog button:disabled { opacity: .35; cursor: default; }
.jgs-reels-dialog__media { flex: 1; position: relative; min-height: 0; display: flex; background: #000; }
.jgs-reels-dialog video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.jgs-reels-dialog__error { position: absolute; inset: 0; display: grid; place-content: center; padding: 30px; font-size: 14px; text-align: center; pointer-events: none; background: #161616; }
.jgs-reels-dialog__bottom { display: flex; align-items: center; gap: 10px; padding: 14px; flex-shrink: 0; }
.jgs-reels-dialog__caption { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.jgs-reels-dialog a.jgs-reels-dialog__link { padding: 10px 12px; border-radius: 6px; background: var(--jgs-accent); color: #171717; text-decoration: none; font-size: 11px; font-weight: 600; }
.jgs-reels-dialog__progress { width: 100%; height: 2px; margin: 0; accent-color: var(--jgs-accent); flex-shrink: 0; }
.jgs-reels__noscript { text-align: center; padding: 15px; }
@media (min-width: 1200px) { .jgs-reels__list { justify-content: space-between; gap: 10px; } }
@media (max-width: 767px) {
    .jgs-reels__inner { flex-direction: column; align-items: stretch; gap: 17px; padding: 20px 16px 16px; }
    .jgs-reels__intro { flex-basis: auto; }
    .jgs-reels .jgs-reels__intro h2 { font-size: 26px; margin: 5px 0; }
    .jgs-reels__list { flex: auto; gap: 12px; }
    .jgs-reels__list li { flex-basis: 108px; }
    .jgs-reels__ring { width: 96px; height: 96px; }
    .jgs-reels-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
    .jgs-reels-dialog__top { padding-top: max(10px, env(safe-area-inset-top)); }
    .jgs-reels-dialog__bottom { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .jgs-reels__ring { transition: none; } }
