body main{max-width:none;width:calc(100% - 48px)}
.demo-brand{display:flex;align-items:center;gap:10px}.demo-brand img{width:92px;height:39px;object-fit:contain}
.gallery-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.gallery-filters{position:sticky;top:74px;z-index:8;display:flex;justify-content:flex-end;margin:12px 0;padding:10px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px)}
.gallery-filters select{width:min(320px,100%)}
.screen-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(520px,1fr));gap:18px}
.screen-card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.screen-card header{position:static;display:block;background:transparent;border:0;padding:14px 16px}
.screen-card h2{font-size:18px;margin:0 0 4px}.screen-card code{color:var(--yellow)}
.screen-card-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}
.screen-shot{display:block;padding:0;border:0;border-radius:0;background:#00150c;cursor:zoom-in}
.screen-shot img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#00150c}
.screen-card footer{padding:10px 16px;color:var(--muted);font-size:12px}
.screen-viewer{width:min(96vw,1800px);height:min(94vh,1050px);max-width:none;max-height:none;overflow:hidden;padding:58px 70px 18px;background:#00150c;border:1px solid var(--line);border-radius:16px}
.screen-viewer::backdrop{background:#000c}.screen-viewer-close{position:absolute;right:12px;top:8px}.screen-viewer img{display:block;width:100%;height:100%;margin:auto;object-fit:contain}.screen-viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:80px;padding:0;font-size:42px;z-index:2}.screen-viewer-nav.previous{left:10px}.screen-viewer-nav.next{right:10px}body.screen-viewer-open{overflow:hidden}
.embedded-gallery>header,.embedded-gallery .gallery-heading{display:none}.embedded-gallery main{width:100%;margin:0;padding:0 4px}.embedded-gallery .gallery-filters{top:0}
@media(max-width:700px){body main{width:calc(100% - 24px)}.gallery-heading{display:block}.screen-gallery{grid-template-columns:1fr}.screen-card-shots{grid-template-columns:1fr}}

.screen-shot-caption{display:block;padding:10px;color:var(--text);font-weight:700}
.gallery-filters{gap:12px}
.screen-shot img{aspect-ratio:auto;height:390px}

.screen-gallery{display:block}.gallery-table-wrap{overflow-x:auto}.gallery-table{width:100%;border-collapse:collapse}.gallery-table th,.gallery-table td{padding:12px;text-align:start;border-bottom:1px solid var(--line);vertical-align:top}.gallery-table th{color:var(--yellow)}.gallery-table td:nth-child(4),.gallery-table td:nth-child(5){max-width:340px;white-space:normal}.gallery-planned{opacity:.4}.gallery-filters{flex-wrap:wrap;justify-content:flex-start}.gallery-filters select{width:auto;max-width:100%}.screen-viewer img{height:calc(100% - 40px)}.screen-viewer-label{text-align:center;margin:10px 0}.gallery-reference{max-width:1000px}

.gallery-filters label{min-width:0;max-width:100%;flex:0 1 320px}.gallery-filters select{width:100%;min-width:0;box-sizing:border-box}.gallery-heading>*{min-width:0;overflow-wrap:anywhere}

.demo-brand{min-width:0;max-width:100%}.demo-brand img{flex:none}.demo-brand span{min-width:0;white-space:normal;overflow-wrap:anywhere}.gallery-table-wrap{min-width:0;max-width:100%}
