.sl-theme .sl-gallery{margin-block:24px}
.sl-theme .sl-gallery .sl-section-head h2{font-size:22px;margin:0}
.sl-theme .sl-media-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:12px;overscroll-behavior-inline:contain;max-width:100%}
.sl-theme .sl-media-card{display:flex;flex-direction:column;border:1px solid var(--sl-border);border-radius:13px;overflow:hidden;background:var(--sl-paper);min-width:0;color:var(--sl-primary);text-decoration:none!important}
.sl-theme .sl-media-track>.sl-media-card{flex:0 0 178px;scroll-snap-align:start}
.sl-theme .sl-media-cover{position:relative;display:block;aspect-ratio:2/3;overflow:hidden;background:var(--sl-sage)}
.sl-theme .sl-media-cover img{display:block;width:100%;height:100%;object-fit:cover}
.sl-theme .sl-focus-top img{object-position:center top}
.sl-theme .sl-focus-bottom img{object-position:center bottom}
.sl-theme .sl-media-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--sl-muted);font-size:14px}
.sl-theme .sl-media-fallback svg{width:32px;height:32px}
.sl-theme .sl-media-badge{position:absolute;inset-inline-end:9px;top:9px;border-radius:7px;background:var(--sl-paper);padding:3px 8px;font-size:11px;color:var(--sl-primary)}
.sl-theme .sl-media-play{position:absolute;inset:0;display:grid;place-items:center;color:var(--sl-primary)}
.sl-theme .sl-media-play svg{width:44px;height:44px;padding:10px;background:var(--sl-paper);border:1px solid var(--sl-border);border-radius:50%}
.sl-theme .sl-media-caption{font-size:13px;padding:11px 12px;line-height:1.8}
.sl-theme .sl-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--sl-muted);margin-top:9px}
.sl-theme .sl-gallery-controls>div{display:flex;gap:8px}
.sl-theme .sl-gallery-controls button{width:40px;height:40px;padding:0;display:grid;place-items:center;border:1px solid var(--sl-border);border-radius:8px;background:var(--sl-paper);color:var(--sl-primary)}
.sl-theme .sl-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sl-theme .sl-media-grid .sl-media-cover{aspect-ratio:4/3}
.sl-theme .sl-media-grid .sl-media-caption{padding:14px;font-size:15px}
.sl-theme .sl-media-dialog{padding:0;width:min(920px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);border:0;border-radius:14px;background:var(--sl-paper);color:var(--sl-text);overflow:auto;z-index:1000000}
.sl-theme .sl-media-dialog::backdrop{background:rgb(3 20 25 / .83)}
.sl-theme.sl-media-open{overflow:hidden}
.sl-theme .sl-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 18px;border-bottom:1px solid var(--sl-border)}
.sl-theme .sl-dialog-head h2{font-size:18px;margin:0}
.sl-theme .sl-media-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;border:1px solid var(--sl-border);border-radius:8px;padding:7px 10px;background:var(--sl-paper);color:var(--sl-primary);font-size:14px}
.sl-theme .sl-dialog-body{min-height:160px;display:flex;align-items:center;justify-content:center;background:#071d25}
.sl-theme .sl-dialog-body>img{max-width:100%;width:auto;max-height:72dvh;object-fit:contain}
.sl-theme .sl-dialog-body>video{width:100%;max-height:72dvh}
.sl-theme .sl-dialog-body>iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#071d25}
.sl-theme .sl-media-error{color:#fff;padding:24px}
.sl-theme .sl-dialog-foot{padding:10px 18px;border-top:1px solid var(--sl-border);font-size:12px}
.sl-theme .sl-dialog-foot a{display:inline-flex;align-items:center;min-height:38px;text-decoration:underline}
@media(max-width:767px){.sl-theme .sl-media-track{gap:10px}.sl-theme .sl-media-track>.sl-media-card{flex-basis:126px}.sl-theme .sl-gallery .sl-section-head h2{font-size:20px}.sl-theme .sl-gallery-controls{align-items:flex-start}.sl-theme .sl-gallery-controls>span{max-width:65%}.sl-theme .sl-gallery-controls button{width:44px;height:44px}.sl-theme .sl-media-caption{padding:9px;font-size:12px}.sl-theme .sl-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sl-theme .sl-media-grid .sl-media-cover{aspect-ratio:3/4}.sl-theme .sl-media-grid .sl-media-caption{font-size:13px;padding:10px}.sl-theme .sl-media-dialog{max-height:calc(100dvh - 28px);width:calc(100% - 24px)}.sl-theme .sl-dialog-head{padding:12px}.sl-theme .sl-dialog-head h2{font-size:16px}}
@media(max-width:359px){.sl-theme .sl-media-grid{gap:10px}.sl-theme .sl-media-track>.sl-media-card{flex-basis:116px}}
