:root{--bde-radius:18px}
body.bde-lock{overflow:hidden}.bde-wrap,.bde-wrap *{box-sizing:border-box}.bde-wrap{--bde-bg:#f8fafc;--bde-card:#fff;--bde-ink:#0f172a;--bde-muted:#64748b;--bde-line:#e2e8f0;--bde-soft:#f1f5f9;--bde-shadow:0 18px 50px rgba(15,23,42,.10);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--bde-ink);width:min(100%,var(--bde-gallery-width,1320px));height:var(--bde-height);min-height:560px;margin:0 auto;background:#fff;border:1px solid rgba(148,163,184,.32);border-radius:22px;overflow:hidden;box-shadow:var(--bde-shadow);position:relative}.bde-wrap[data-wide="1"]{width:min(98vw,1600px);max-width:calc(100vw - 24px);left:50%;transform:translateX(-50%);margin-left:0;margin-right:0}.bde-wrap:before{content:"";position:absolute;inset:-120px -120px auto auto;width:320px;height:320px;border-radius:999px;background:radial-gradient(circle,color-mix(in srgb,var(--bde-accent) 14%,transparent),transparent 70%);pointer-events:none}.bde-shell-top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 22px 14px;border-bottom:1px solid rgba(226,232,240,.9);background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,251,255,.92));backdrop-filter:blur(18px)}.bde-title-block{min-width:0;flex:1}.bde-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--bde-accent) 11%,#fff);color:var(--bde-accent);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;border:1px solid color-mix(in srgb,var(--bde-accent) 18%,#dbeafe)}.bde-kicker:before{content:"";width:7px;height:7px;border-radius:999px;background:var(--bde-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--bde-accent) 14%,transparent)}.bde-wrap h3{margin:0!important;padding:0!important;font-size:24px!important;line-height:1.12!important;font-weight:900!important;letter-spacing:-.04em!important;color:#0f172a!important}.bde-breadcrumb{display:flex;align-items:center;gap:7px;min-height:30px;margin-top:10px;white-space:nowrap;overflow:auto;max-width:100%;scrollbar-width:none}.bde-breadcrumb[hidden]{display:none}.bde-breadcrumb::-webkit-scrollbar{display:none}.bde-back{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid rgba(37,99,235,.22);border-radius:999px;background:#fff;color:var(--bde-accent);font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.06)}.bde-back span{font-size:20px;line-height:0}.bde-back:hover{background:var(--bde-accent);color:#fff}.bde-crumb{border:0;background:transparent;color:var(--bde-muted);font-size:12px;font-weight:850;padding:4px 0;cursor:pointer;text-transform:uppercase;letter-spacing:.02em}.bde-crumb.current{color:#0f172a;cursor:default}.bde-sep{color:#cbd5e1}.bde-stat-card{min-width:98px;padding:10px 12px;border-radius:16px;background:linear-gradient(135deg,var(--bde-accent),color-mix(in srgb,var(--bde-accent) 68%,#111827));color:#fff;box-shadow:0 12px 24px color-mix(in srgb,var(--bde-accent) 22%,transparent);text-align:center}.bde-stat-number{display:block;font-size:21px;font-weight:950;line-height:1}.bde-stat-label{display:block;margin-top:3px;font-size:9.5px;font-weight:800;opacity:.88}.bde-toolbar{display:grid;grid-template-columns:minmax(260px,380px) auto minmax(180px,250px) 42px;align-items:center;gap:10px;padding:12px 22px;background:rgba(248,250,252,.92);border-bottom:1px solid rgba(226,232,240,.9);position:sticky;top:0;z-index:3;backdrop-filter:blur(16px)}.bde-search-wrap{height:40px;display:flex;align-items:center;gap:9px;min-width:0;width:100%;padding:0 14px;border:1px solid rgba(203,213,225,.95);border-radius:999px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.045)}.bde-search-wrap span{font-size:18px;color:var(--bde-accent);line-height:1}.bde-search{width:100%!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;color:#0f172a!important;font-size:13.5px!important;height:auto!important;min-height:0!important}.bde-search::placeholder{color:#94a3b8}.bde-chip-group{display:flex;gap:6px;overflow:auto;scrollbar-width:none;min-width:0}.bde-chip-group::-webkit-scrollbar{display:none}.bde-filter,.bde-view-toggle,.bde-more,.bde-sort{height:38px;border:1px solid rgba(203,213,225,.9);background:#fff;color:#334155;border-radius:12px;font-size:11.5px;font-weight:900;padding:0 11px;cursor:pointer;transition:.18s ease;box-shadow:0 7px 16px rgba(15,23,42,.035);white-space:nowrap}.bde-filter:hover,.bde-view-toggle:hover,.bde-more:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--bde-accent) 44%,#cbd5e1);color:var(--bde-accent)}.bde-filter.active{background:var(--bde-accent);border-color:var(--bde-accent);color:#fff;box-shadow:0 10px 22px color-mix(in srgb,var(--bde-accent) 20%,transparent)}.bde-sort{min-width:0;width:100%;appearance:none;background:#fff linear-gradient(45deg,transparent 50%,#64748b 50%) calc(100% - 16px) 15px/6px 6px no-repeat;padding-right:30px;text-overflow:ellipsis}.bde-view-toggle{width:42px;padding:0;font-size:18px;border-radius:14px;background:#0f172a;color:#fff;border-color:#0f172a;display:grid;place-items:center}.bde-grid-icon{display:grid;grid-template-columns:repeat(3,4px);gap:3px;place-content:center}.bde-grid-icon:before,.bde-grid-icon:after{content:""}.bde-grid-icon,.bde-grid-icon:before,.bde-grid-icon:after{width:4px;height:4px;background:currentColor;box-shadow:7px 0 0 currentColor,14px 0 0 currentColor,0 7px 0 currentColor,7px 7px 0 currentColor,14px 7px 0 currentColor}.bde-body{height:calc(100% - 128px);overflow:auto;padding:18px 22px 24px;background:linear-gradient(180deg,rgba(255,255,255,.4),rgba(248,250,252,.96))}.bde-body::-webkit-scrollbar{width:9px}.bde-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;border:2px solid #f8fafc}.bde-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));gap:12px}.bde-item{position:relative;overflow:hidden;background:rgba(255,255,255,.98);border:1px solid rgba(203,213,225,.78);border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.055);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;outline:0}.bde-item:hover,.bde-item:focus{transform:translateY(-3px);border-color:color-mix(in srgb,var(--bde-accent) 36%,#cbd5e1);box-shadow:0 16px 34px rgba(15,23,42,.11)}.bde-thumb{height:98px;margin:9px 9px 0;border-radius:13px;overflow:hidden;position:relative;background:linear-gradient(135deg,#eef2ff,#f8fafc);display:flex;align-items:center;justify-content:center}.bde-thumb img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01);transition:transform .32s ease}.bde-item:hover .bde-thumb img{transform:scale(1.045)}.bde-glow{position:absolute;inset:auto -18% -40% -18%;height:70%;background:linear-gradient(0deg,rgba(15,23,42,.42),transparent);opacity:0;transition:.25s ease}.bde-item:hover .bde-glow{opacity:1}.bde-icon svg{width:40px;height:40px;fill:color-mix(in srgb,var(--bde-accent) 72%,#64748b);filter:drop-shadow(0 10px 16px rgba(15,23,42,.12))}.bde-folder-card .bde-thumb{background:linear-gradient(135deg,color-mix(in srgb,var(--bde-accent) 10%,#fff),#f1f5f9)}.bde-type-badge{position:absolute;top:7px;left:7px;z-index:2;padding:4px 7px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:8.5px;font-weight:950;letter-spacing:.04em;text-transform:uppercase;backdrop-filter:blur(8px)}.bde-folder-card .bde-type-badge{background:color-mix(in srgb,var(--bde-accent) 88%,#111827)}.bde-meta{padding:10px 11px 11px}.bde-name{font-size:12.8px;font-weight:900;line-height:1.22;min-height:31px;color:#0f172a;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.bde-sub{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:#64748b;font-size:10.5px;font-weight:850}.bde-actions{display:flex;gap:6px;margin-top:9px;opacity:0;transform:translateY(5px);transition:.2s ease}.bde-item:hover .bde-actions,.bde-item:focus-within .bde-actions{opacity:1;transform:none}.bde-actions a{display:inline-flex!important;align-items:center;justify-content:center;padding:6px 8px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155!important;text-decoration:none!important;font-size:10.5px;font-weight:900;line-height:1}.bde-actions a:hover{background:color-mix(in srgb,var(--bde-accent) 10%,#fff);color:var(--bde-accent)!important;border-color:color-mix(in srgb,var(--bde-accent) 35%,#e2e8f0)}.bde-list .bde-grid{grid-template-columns:1fr;gap:9px}.bde-list .bde-item{display:grid;grid-template-columns:90px 1fr;align-items:center;border-radius:16px}.bde-list .bde-thumb{height:60px;margin:8px}.bde-list .bde-name{min-height:0;-webkit-line-clamp:1}.bde-list .bde-actions{opacity:1;transform:none}.bde-loading{display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));gap:12px}.bde-loading[hidden]{display:none}.bde-loading div{height:178px;border-radius:16px;background:linear-gradient(90deg,#eef2f7 0%,#fff 48%,#eef2f7 100%);background-size:220% 100%;animation:bde-shimmer 1.05s infinite}@keyframes bde-shimmer{to{background-position:-220% 0}}.bde-empty{margin:24px auto;text-align:center;max-width:360px;padding:32px;border:1px dashed #cbd5e1;border-radius:22px;background:rgba(255,255,255,.82);color:#64748b}.bde-empty[hidden]{display:none}.bde-empty-icon{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 12px;border-radius:18px;background:color-mix(in srgb,var(--bde-accent) 10%,#fff);color:var(--bde-accent);font-size:28px}.bde-empty strong{display:block;color:#0f172a;font-size:17px}.bde-empty span{display:block;margin-top:6px}.bde-more-wrap{text-align:center;padding:22px 0 2px}.bde-more[hidden]{display:none}.bde-more{height:42px;padding:0 18px;border-radius:999px;background:#111827;color:#fff;border-color:#111827}.bde-more:hover{color:#fff;background:var(--bde-accent)}.bde-error{grid-column:1/-1;padding:15px 17px;border-radius:15px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-weight:800}
/* Lightbox */
.bde-lightbox{position:fixed;inset:0;z-index:2147483647;background:radial-gradient(circle at 50% 15%,rgba(30,41,59,.92),rgba(2,6,23,.97) 58%,#020617);backdrop-filter:blur(18px);display:grid;grid-template-rows:auto 1fr;align-items:stretch}.bde-lightbox[hidden]{display:none!important}.bde-lightbox-bar{width:min(100%,1680px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 18px;color:#fff;background:linear-gradient(180deg,rgba(2,6,23,.96),rgba(2,6,23,.52));border-bottom:1px solid rgba(255,255,255,.08)}.bde-lightbox-title{font-weight:850;font-size:13px;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;opacity:.96}.bde-lightbox-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.bde-zoom-actions{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:999px;box-shadow:0 10px 28px rgba(0,0,0,.18)}.bde-zoom{height:32px;min-width:34px;border:0;border-radius:999px;background:transparent;color:#fff;font-size:15px;font-weight:950;cursor:pointer;line-height:1}.bde-zoom-reset{font-size:11px;min-width:58px}.bde-zoom:hover{background:rgba(255,255,255,.16)}.bde-open-drive{color:#fff!important;text-decoration:none!important;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16);font-size:12px;font-weight:900;line-height:1}.bde-open-drive:hover{background:var(--bde-accent)}.bde-close{width:40px;height:40px;border:0;border-radius:999px;background:#fff;color:#0f172a;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.25);display:grid;place-items:center;padding:0}.bde-close:hover{transform:scale(1.04)}.bde-stage{height:calc(100vh - 65px);width:min(100%,1760px);margin:0 auto;display:flex;align-items:center;justify-content:center;padding:14px 84px 22px;overflow:hidden;position:relative;touch-action:none}.bde-stage img{max-width:min(100%,calc(100vw - 168px));max-height:calc(100vh - 102px);width:auto;height:auto;object-fit:contain;border-radius:16px;box-shadow:0 28px 96px rgba(0,0,0,.46);transition:transform .16s ease;will-change:transform;user-select:none;-webkit-user-drag:none;background:#020617}.bde-stage iframe{width:min(calc(100vw - 168px),1680px);height:calc(100vh - 112px);border:0;border-radius:16px;background:#fff;box-shadow:0 28px 96px rgba(0,0,0,.46)}.bde-prev,.bde-next{position:fixed;top:50%;z-index:6;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(15,23,42,.70);color:#fff;font-size:30px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.24);backdrop-filter:blur(12px);transition:.16s ease;padding:0}.bde-prev{left:max(18px,calc((100vw - 1760px)/2 + 20px))}.bde-next{right:max(18px,calc((100vw - 1760px)/2 + 20px))}.bde-prev:hover,.bde-next:hover{background:var(--bde-accent);transform:translateY(-50%) scale(1.06)}.bde-lightbox.bde-non-image .bde-zoom-actions{display:none}.bde-lightbox-loader{position:absolute;inset:auto auto 24px 50%;transform:translateX(-50%);padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:850}.bde-lightbox-loader[hidden]{display:none!important}
@media (min-width:1200px){.bde-grid{grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:12px}.bde-thumb{height:94px}.bde-body{padding:18px 22px 24px}.bde-wrap[data-wide="1"]{width:min(98vw,1640px)}}@media (min-width:1500px){.bde-grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:12px}.bde-thumb{height:92px}.bde-wrap[data-wide="1"]{width:min(97vw,1720px)}}@media (max-width:980px){.bde-wrap,.bde-wrap[data-wide="1"]{left:auto;transform:none;width:100%;max-width:100%;border-radius:20px}.bde-shell-top{align-items:flex-start;padding:15px 16px}.bde-stat-card{display:none}.bde-toolbar{grid-template-columns:1fr 42px;grid-template-areas:"search toggle" "chips chips" "sort sort";padding:12px 14px;gap:9px}.bde-search-wrap{grid-area:search}.bde-chip-group{grid-area:chips}.bde-sort{grid-area:sort}.bde-view-toggle{grid-area:toggle}.bde-body{height:calc(100% - 184px);padding:14px}.bde-grid{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:11px}.bde-thumb{height:92px}.bde-name{font-size:12.3px}.bde-actions{opacity:1;transform:none}.bde-lightbox-bar{padding:10px 12px}.bde-stage{height:calc(100vh - 61px);padding:12px 58px 18px}.bde-stage img{max-width:calc(100vw - 116px);max-height:calc(100vh - 94px);border-radius:12px}.bde-stage iframe{width:calc(100vw - 116px);height:calc(100vh - 98px);border-radius:12px}.bde-prev,.bde-next{width:38px;height:38px;font-size:26px}.bde-prev{left:10px}.bde-next{right:10px}.bde-open-drive{display:none}.bde-zoom{height:30px;min-width:30px}.bde-zoom-reset{min-width:48px;font-size:10px}.bde-close{width:38px;height:38px}}@media (max-width:620px){.bde-wrap{min-height:570px;border-radius:18px}.bde-shell-top{padding:13px}.bde-wrap h3{font-size:19px!important}.bde-kicker{font-size:10px;margin-bottom:6px}.bde-breadcrumb{margin-top:7px}.bde-toolbar{padding:10px 12px}.bde-filter{height:34px;padding:0 9px;font-size:11px}.bde-sort{height:36px}.bde-view-toggle{width:38px;height:38px}.bde-body{height:calc(100% - 176px);padding:12px}.bde-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bde-thumb{height:86px;margin:8px 8px 0}.bde-meta{padding:9px}.bde-name{min-height:30px;font-size:12px}.bde-sub{font-size:10px;display:block}.bde-actions a{font-size:10px;padding:6px 8px}.bde-lightbox{grid-template-rows:auto 1fr}.bde-lightbox-bar{grid-template-columns:1fr auto;padding:8px 9px;gap:8px}.bde-lightbox-title{font-size:12px}.bde-zoom-actions{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:8;background:rgba(15,23,42,.78);backdrop-filter:blur(14px)}.bde-open-drive{display:none}.bde-stage{height:calc(100vh - 55px);padding:10px 42px 56px}.bde-stage img{max-width:calc(100vw - 84px);max-height:calc(100vh - 124px);border-radius:10px}.bde-stage iframe{width:calc(100vw - 84px);height:calc(100vh - 124px);border-radius:10px}.bde-prev,.bde-next{width:34px;height:34px;font-size:24px}.bde-prev{left:6px}.bde-next{right:6px}.bde-close{width:36px;height:36px}.bde-zoom-reset{min-width:48px}}@media (max-width:390px){.bde-grid{grid-template-columns:1fr 1fr}.bde-filter{font-size:10.5px;padding:0 8px}.bde-search::placeholder{font-size:12px}.bde-stage{padding-left:38px;padding-right:38px}.bde-stage img{max-width:calc(100vw - 76px)}}


/* v1.8 balanced viewer refinements */
.bde-wrap[data-wide="1"]{width:min(96vw,1500px)!important;max-width:1500px!important;margin-left:auto!important;margin-right:auto!important;left:auto!important;transform:none!important}
.bde-toolbar{grid-template-columns:minmax(260px,420px) minmax(260px,1fr) 44px!important;align-items:center!important;gap:12px!important}
.bde-chip-group{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;min-width:0!important}
.bde-filter{white-space:nowrap!important;min-width:auto!important;padding:0 14px!important}
.bde-sort{min-width:220px!important;width:100%!important}
.bde-view-toggle{width:42px!important;height:42px!important;align-self:center!important;justify-self:end!important;border-radius:16px!important}
.bde-search-wrap{max-width:420px!important;width:100%!important}

.bde-lightbox{background:radial-gradient(circle at 50% 10%,rgba(30,41,59,.78),rgba(2,6,23,.96) 55%,#020617)!important;grid-template-rows:64px minmax(0,1fr)!important}
.bde-lightbox-bar{position:relative!important;width:min(96vw,1680px)!important;height:64px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important;padding:0 18px!important;background:rgba(2,6,23,.72)!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:0 0 20px 20px!important;box-shadow:0 14px 46px rgba(0,0,0,.18)!important}
.bde-lightbox-title{font-size:13px!important;line-height:1.25!important;display:flex!important;align-items:center!important;height:100%!important;max-width:100%!important}
.bde-lightbox-actions{height:100%!important;display:flex!important;align-items:center!important;gap:10px!important}
.bde-zoom-actions{height:40px!important;padding:4px!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.14)!important;box-shadow:none!important}
.bde-zoom{height:32px!important;min-width:34px!important;font-size:14px!important;display:inline-grid!important;place-items:center!important}
.bde-zoom-reset{min-width:68px!important;font-size:11px!important}
.bde-open-drive{height:40px!important;display:inline-flex!important;align-items:center!important;padding:0 14px!important}
.bde-close{width:44px!important;height:44px!important;font-size:24px!important;display:grid!important;place-items:center!important;flex:0 0 auto!important}
.bde-stage{width:min(96vw,1680px)!important;height:calc(100vh - 64px)!important;padding:18px 72px 28px!important;margin:0 auto!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.bde-stage img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(100vh - 118px)!important;object-fit:contain!important;object-position:center center!important;border-radius:14px!important;box-shadow:0 24px 80px rgba(0,0,0,.42)!important;background:#020617!important}
.bde-stage iframe{width:min(100%,1500px)!important;height:calc(100vh - 126px)!important;max-height:900px!important;border-radius:14px!important}
.bde-prev,.bde-next{position:fixed!important;top:calc(50% + 32px)!important;width:38px!important;height:54px!important;border-radius:999px!important;font-size:24px!important;background:rgba(15,23,42,.58)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 12px 36px rgba(0,0,0,.26)!important;z-index:12!important}
.bde-prev{left:max(22px,calc((100vw - 1680px)/2 + 22px))!important}
.bde-next{right:max(22px,calc((100vw - 1680px)/2 + 22px))!important}
.bde-prev:hover,.bde-next:hover{background:var(--bde-accent)!important;transform:translateY(-50%) scale(1.03)!important}

@media (min-width:1500px){
 .bde-stage{width:min(96vw,1760px)!important;padding-left:82px!important;padding-right:82px!important}
 .bde-lightbox-bar{width:min(96vw,1760px)!important}
 .bde-stage img{max-height:calc(100vh - 120px)!important}
}
@media (max-width:1100px){
 .bde-toolbar{grid-template-columns:1fr 44px!important;grid-template-areas:"search toggle" "chips chips" "sort sort"!important}
 .bde-search-wrap{grid-area:search!important;max-width:none!important}.bde-chip-group{grid-area:chips!important}.bde-sort{grid-area:sort!important}.bde-view-toggle{grid-area:toggle!important}
 .bde-lightbox{grid-template-rows:58px minmax(0,1fr)!important}.bde-lightbox-bar{height:58px!important;width:100%!important;border-radius:0!important;padding:0 12px!important}.bde-stage{width:100%!important;height:calc(100vh - 58px)!important;padding:14px 54px 22px!important}.bde-stage img{max-height:calc(100vh - 104px)!important;border-radius:12px!important}.bde-stage iframe{height:calc(100vh - 108px)!important}.bde-prev,.bde-next{top:calc(50% + 29px)!important;width:36px!important;height:48px!important}.bde-prev{left:10px!important}.bde-next{right:10px!important}
}
@media (max-width:640px){
 .bde-lightbox{grid-template-rows:54px minmax(0,1fr)!important}.bde-lightbox-bar{height:54px!important;gap:8px!important}.bde-lightbox-title{font-size:11.5px!important}.bde-open-drive{display:none!important}.bde-zoom-actions{position:fixed!important;left:50%!important;bottom:12px!important;transform:translateX(-50%)!important;height:38px!important;z-index:20!important;background:rgba(15,23,42,.82)!important}.bde-close{width:40px!important;height:40px!important}.bde-stage{height:calc(100vh - 54px)!important;padding:10px 38px 58px!important}.bde-stage img{max-width:100%!important;max-height:calc(100vh - 128px)!important;border-radius:10px!important}.bde-stage iframe{width:100%!important;height:calc(100vh - 132px)!important;border-radius:10px!important}.bde-prev,.bde-next{top:50%!important;width:32px!important;height:44px!important;font-size:22px!important}.bde-prev{left:4px!important}.bde-next{right:4px!important}
}

/* v1.9 final polished layout: centered, balanced, responsive */
.bde-wrap,
.bde-wrap[data-wide="1"]{
  width:min(100%,1460px)!important;
  max-width:calc(100vw - 32px)!important;
  margin:28px auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  display:block!important;
  clear:both!important;
}
.bde-wrap[data-wide="1"]{width:min(100%,1480px)!important}
.bde-shell-top{padding:16px 20px!important;display:flex!important;align-items:center!important}
.bde-title-block{display:flex!important;align-items:center!important;gap:14px!important;flex-wrap:wrap!important}
.bde-kicker{margin:0!important;flex:0 0 auto!important}.bde-wrap h3{display:none!important}.bde-breadcrumb{margin:0!important;flex:1 1 360px!important;min-width:240px!important}.bde-stat-card{margin-left:auto!important;flex:0 0 auto!important}
.bde-toolbar{display:grid!important;grid-template-columns:minmax(240px,420px) minmax(360px,1fr) minmax(190px,260px) 44px!important;gap:12px!important;padding:14px 20px!important;align-items:center!important}.bde-search-wrap{max-width:none!important}.bde-chip-group{justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;overflow:visible!important}.bde-filter{height:36px!important;border-radius:13px!important;padding:0 14px!important}.bde-sort{height:38px!important;min-width:190px!important}.bde-view-toggle{justify-self:end!important}
.bde-body{padding:16px 20px 22px!important}.bde-grid{grid-template-columns:repeat(auto-fill,minmax(138px,1fr))!important;gap:12px!important;justify-content:center!important}.bde-thumb{height:92px!important}.bde-item{border-radius:15px!important}.bde-name{font-size:12.4px!important}.bde-sub{font-size:10.2px!important}

/* final lightbox: large, centered, no stretched images */
.bde-lightbox{grid-template-rows:62px minmax(0,1fr)!important;background:linear-gradient(180deg,#020617 0%,#070d1d 100%)!important}.bde-lightbox-bar{width:min(100%,1720px)!important;height:62px!important;margin:0 auto!important;border-radius:0!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:rgba(2,6,23,.86)!important;box-shadow:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;padding:0 18px!important}.bde-lightbox-actions{gap:8px!important}.bde-zoom-actions{height:38px!important;padding:3px!important;background:rgba(255,255,255,.08)!important}.bde-zoom{height:32px!important;min-width:32px!important}.bde-zoom-reset{min-width:62px!important}.bde-open-drive{height:38px!important;padding:0 13px!important}.bde-close{width:42px!important;height:42px!important;border-radius:14px!important;font-size:25px!important}
.bde-stage{width:min(100%,1720px)!important;height:calc(100vh - 62px)!important;padding:16px 64px 22px!important;margin:0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}.bde-stage img{width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(100vh - 104px)!important;object-fit:contain!important;object-position:center!important;border-radius:12px!important;box-shadow:0 20px 70px rgba(0,0,0,.45)!important;transform-origin:center center!important}.bde-stage iframe{width:min(100%,1580px)!important;height:calc(100vh - 112px)!important;max-height:920px!important;border-radius:12px!important}.bde-prev,.bde-next{top:calc(50% + 31px)!important;width:36px!important;height:50px!important;border-radius:999px!important;font-size:22px!important;background:rgba(15,23,42,.62)!important}.bde-prev{left:max(12px,calc((100vw - 1720px)/2 + 18px))!important}.bde-next{right:max(12px,calc((100vw - 1720px)/2 + 18px))!important}

@media (max-width:1280px){.bde-toolbar{grid-template-columns:minmax(240px,390px) minmax(320px,1fr) 44px!important;grid-template-areas:"search chips toggle" "sort sort sort"!important}.bde-search-wrap{grid-area:search!important}.bde-chip-group{grid-area:chips!important}.bde-sort{grid-area:sort!important;width:100%!important}.bde-view-toggle{grid-area:toggle!important}.bde-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))!important}}
@media (max-width:900px){.bde-wrap,.bde-wrap[data-wide="1"]{max-width:calc(100vw - 18px)!important;margin:14px auto!important;border-radius:18px!important}.bde-shell-top{padding:14px!important}.bde-title-block{display:block!important}.bde-kicker{margin-bottom:10px!important}.bde-breadcrumb{margin-top:8px!important}.bde-toolbar{grid-template-columns:1fr 42px!important;grid-template-areas:"search toggle" "chips chips" "sort sort"!important;padding:12px!important}.bde-chip-group{overflow:auto!important;flex-wrap:nowrap!important}.bde-body{padding:12px!important}.bde-lightbox{grid-template-rows:58px minmax(0,1fr)!important}.bde-lightbox-bar{height:58px!important;padding:0 10px!important}.bde-stage{height:calc(100vh - 58px)!important;padding:12px 46px 18px!important}.bde-stage img{max-height:calc(100vh - 92px)!important}.bde-stage iframe{height:calc(100vh - 98px)!important}.bde-prev,.bde-next{top:calc(50% + 29px)!important;width:34px!important;height:46px!important}.bde-prev{left:7px!important}.bde-next{right:7px!important}.bde-open-drive{display:none!important}}
@media (max-width:560px){.bde-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.bde-thumb{height:84px!important}.bde-lightbox{grid-template-rows:54px minmax(0,1fr)!important}.bde-lightbox-title{font-size:11px!important}.bde-lightbox-bar{height:54px!important}.bde-zoom-actions{position:fixed!important;left:50%!important;bottom:12px!important;transform:translateX(-50%)!important;height:38px!important;z-index:20!important}.bde-stage{height:calc(100vh - 54px)!important;padding:10px 34px 58px!important}.bde-stage img{max-height:calc(100vh - 126px)!important;border-radius:9px!important}.bde-stage iframe{height:calc(100vh - 130px)!important}.bde-prev,.bde-next{top:50%!important;width:30px!important;height:42px!important}.bde-prev{left:3px!important}.bde-next{right:3px!important}.bde-close{width:38px!important;height:38px!important;border-radius:12px!important}}


/* === BDE v2.0 wide polished layout override === */
.bde-wrap,
.bde-wrap[data-wide="1"]{
  width:min(96vw,1680px)!important;
  max-width:calc(100vw - 72px)!important;
  margin:28px auto!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  border-radius:22px!important;
}
.bde-shell-top{
  padding:18px 28px!important;
}
.bde-title-block{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  min-width:0!important;
}
.bde-kicker{margin:0!important;white-space:nowrap!important}
.bde-breadcrumb{flex:1 1 auto!important;min-width:260px!important;margin:0!important}
.bde-stat-card{margin-left:auto!important}
.bde-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 28px!important;
  min-height:74px!important;
}
.bde-search-wrap{
  flex:0 1 390px!important;
  min-width:260px!important;
  max-width:420px!important;
  height:40px!important;
}
.bde-chip-group{
  flex:1 1 auto!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  min-width:320px!important;
  overflow:visible!important;
  flex-wrap:nowrap!important;
}
.bde-filter{
  height:38px!important;
  padding:0 14px!important;
  border-radius:13px!important;
  font-size:11.5px!important;
  line-height:38px!important;
}
.bde-sort{
  flex:0 0 230px!important;
  width:230px!important;
  height:40px!important;
}
.bde-view-toggle{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  justify-self:auto!important;
  margin-left:0!important;
}
.bde-body{
  padding:18px 28px 26px!important;
}
.bde-grid{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;
  gap:14px!important;
  justify-content:stretch!important;
}
.bde-thumb{height:98px!important}
.bde-item{min-width:0!important}

/* Viewer balance */
.bde-lightbox-bar{
  width:min(96vw,1760px)!important;
  padding:0 22px!important;
}
.bde-stage{
  width:min(96vw,1760px)!important;
  padding:18px 76px 26px!important;
}
.bde-stage img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:calc(100vh - 112px)!important;
  object-fit:contain!important;
}
.bde-prev{left:max(18px,calc((100vw - 1760px)/2 + 24px))!important}
.bde-next{right:max(18px,calc((100vw - 1760px)/2 + 24px))!important}

@media (max-width:1400px){
  .bde-wrap,.bde-wrap[data-wide="1"]{width:min(98vw,1500px)!important;max-width:calc(100vw - 40px)!important}
  .bde-toolbar{padding:14px 22px!important;gap:10px!important}
  .bde-search-wrap{flex-basis:340px!important;min-width:230px!important}
  .bde-chip-group{min-width:280px!important;gap:7px!important}
  .bde-filter{padding:0 12px!important}
  .bde-sort{flex-basis:210px!important;width:210px!important}
}
@media (max-width:1100px){
  .bde-wrap,.bde-wrap[data-wide="1"]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;margin:16px auto!important}
  .bde-shell-top{padding:14px 16px!important}
  .bde-title-block{display:block!important}
  .bde-kicker{margin-bottom:10px!important}
  .bde-breadcrumb{margin-top:8px!important;min-width:0!important}
  .bde-toolbar{display:grid!important;grid-template-columns:1fr 44px!important;grid-template-areas:"search toggle" "chips chips" "sort sort"!important;padding:12px 16px!important;min-height:0!important}
  .bde-search-wrap{grid-area:search!important;max-width:none!important;min-width:0!important;width:100%!important;flex:none!important}
  .bde-chip-group{grid-area:chips!important;justify-content:flex-start!important;overflow:auto!important;flex-wrap:nowrap!important;min-width:0!important;width:100%!important;padding-bottom:2px!important}
  .bde-sort{grid-area:sort!important;width:100%!important;flex:none!important}
  .bde-view-toggle{grid-area:toggle!important;justify-self:end!important}
  .bde-body{padding:14px 16px 20px!important}
  .bde-grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))!important;gap:12px!important}
  .bde-stage{width:100%!important;padding:12px 48px 18px!important}
  .bde-lightbox-bar{width:100%!important;padding:0 12px!important}
}
@media (max-width:640px){
  .bde-wrap,.bde-wrap[data-wide="1"]{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;margin:8px auto!important;border-radius:16px!important}
  .bde-body{padding:10px!important}
  .bde-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .bde-thumb{height:86px!important}
  .bde-name{font-size:12px!important}
  .bde-sub{font-size:9.8px!important}
  .bde-stage{padding:10px 34px 58px!important}
}

/* === v2.1 final fullscreen + Roboto polish === */
.bde-wrap,
.bde-wrap *,
.bde-lightbox,
.bde-lightbox *{
  font-family:'Roboto', Arial, sans-serif !important;
}

.bde-open-drive[hidden]{display:none!important;}

/* Keep the public gallery wide, centered and theme-safe */
.bde-wrap,
.bde-wrap[data-wide="1"]{
  width:min(100%, 1680px)!important;
  max-width:calc(100vw - 32px)!important;
  margin:24px auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}

/* True fullscreen viewer, always above theme header/menu */
.bde-lightbox{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100vh!important;
  z-index:2147483647!important;
  display:grid!important;
  grid-template-rows:64px minmax(0,1fr)!important;
  overflow:hidden!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#020617 0%,#050b18 48%,#020617 100%)!important;
  backdrop-filter:blur(18px)!important;
}
.bde-lightbox[hidden]{display:none!important;}

.bde-lightbox-bar{
  width:100%!important;
  max-width:none!important;
  height:64px!important;
  margin:0!important;
  border-radius:0!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  background:rgba(2,6,23,.92)!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left))!important;
  box-shadow:none!important;
}
.bde-lightbox-title{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:14px!important;
  font-weight:900!important;
  color:#fff!important;
}
.bde-lightbox-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  height:100%!important;
  min-width:max-content!important;
}
.bde-zoom-actions{
  position:static!important;
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  height:40px!important;
  padding:4px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.09)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  backdrop-filter:blur(14px)!important;
}
.bde-zoom{
  width:34px!important;
  min-width:34px!important;
  height:32px!important;
  border-radius:999px!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
}
.bde-zoom:hover{background:rgba(255,255,255,.12)!important;}
.bde-zoom-reset{
  width:auto!important;
  min-width:66px!important;
  padding:0 10px!important;
  font-size:12px!important;
}
.bde-open-drive{
  height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.bde-close{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  border-radius:999px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:28px!important;
  font-weight:700!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  box-shadow:0 10px 30px rgba(0,0,0,.32)!important;
}

.bde-stage{
  position:relative!important;
  width:100vw!important;
  height:calc(100dvh - 64px)!important;
  min-height:calc(100vh - 64px)!important;
  padding:22px 72px 26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:transparent!important;
}
.bde-stage img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 160px)!important;
  max-height:calc(100dvh - 116px)!important;
  object-fit:contain!important;
  border-radius:14px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.44)!important;
  background:#020617!important;
  transform-origin:center center!important;
}
.bde-stage iframe{
  width:min(96vw,1500px)!important;
  height:calc(100dvh - 122px)!important;
  max-height:calc(100vh - 122px)!important;
  border:0!important;
  border-radius:14px!important;
  background:#000!important;
  box-shadow:0 24px 70px rgba(0,0,0,.44)!important;
}

.bde-prev,
.bde-next{
  position:fixed!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:44px!important;
  height:54px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:rgba(15,23,42,.62)!important;
  color:#fff!important;
  font-size:28px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 14px 34px rgba(0,0,0,.30)!important;
  backdrop-filter:blur(12px)!important;
}
.bde-prev{left:18px!important;}
.bde-next{right:18px!important;}
.bde-prev:hover,
.bde-next:hover{background:var(--bde-accent)!important;}

@media (min-width:1600px){
  .bde-stage{padding-left:92px!important;padding-right:92px!important;}
  .bde-stage img{max-width:calc(100vw - 210px)!important;}
}

@media (max-width:900px){
  .bde-wrap,.bde-wrap[data-wide="1"]{max-width:calc(100vw - 18px)!important;margin:12px auto!important;}
  .bde-lightbox{grid-template-rows:58px minmax(0,1fr)!important;}
  .bde-lightbox-bar{height:58px!important;padding:0 10px!important;gap:8px!important;}
  .bde-lightbox-title{font-size:12px!important;}
  .bde-zoom-actions{height:36px!important;}
  .bde-zoom{width:30px!important;min-width:30px!important;height:28px!important;}
  .bde-zoom-reset{min-width:54px!important;font-size:11px!important;}
  .bde-open-drive{display:none!important;}
  .bde-close{width:40px!important;min-width:40px!important;height:40px!important;font-size:26px!important;}
  .bde-stage{height:calc(100dvh - 58px)!important;padding:12px 48px 16px!important;}
  .bde-stage img{max-width:calc(100vw - 104px)!important;max-height:calc(100dvh - 92px)!important;border-radius:12px!important;}
  .bde-stage iframe{width:calc(100vw - 104px)!important;height:calc(100dvh - 98px)!important;border-radius:12px!important;}
  .bde-prev,.bde-next{width:36px!important;height:48px!important;border-radius:14px!important;font-size:24px!important;}
  .bde-prev{left:6px!important;}.bde-next{right:6px!important;}
}

@media (max-width:560px){
  .bde-lightbox{grid-template-rows:52px minmax(0,1fr)!important;}
  .bde-lightbox-bar{height:52px!important;grid-template-columns:minmax(0,1fr) auto!important;}
  .bde-lightbox-title{font-size:11px!important;}
  .bde-zoom-actions{position:fixed!important;left:50%!important;bottom:12px!important;transform:translateX(-50%)!important;z-index:2147483647!important;background:rgba(15,23,42,.82)!important;}
  .bde-close{width:38px!important;min-width:38px!important;height:38px!important;}
  .bde-stage{height:calc(100dvh - 52px)!important;padding:10px 36px 60px!important;}
  .bde-stage img{max-width:calc(100vw - 76px)!important;max-height:calc(100dvh - 132px)!important;border-radius:10px!important;}
  .bde-stage iframe{width:calc(100vw - 76px)!important;height:calc(100dvh - 136px)!important;border-radius:10px!important;}
  .bde-prev,.bde-next{width:30px!important;height:42px!important;border-radius:12px!important;font-size:22px!important;}
  .bde-prev{left:3px!important;}.bde-next{right:3px!important;}
}

/* v2.1.1: remove PDF filter and sort dropdown, rebalance toolbar */
.bde-wrap,
.bde-wrap *{
  font-family:Roboto,Arial,sans-serif!important;
}
.bde-toolbar{
  grid-template-columns:minmax(260px,420px) minmax(280px,1fr) 44px!important;
  grid-template-areas:"search chips toggle"!important;
  align-items:center!important;
}
.bde-search-wrap{grid-area:search!important;max-width:none!important;}
.bde-chip-group{grid-area:chips!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;overflow:visible!important;}
.bde-view-toggle{grid-area:toggle!important;justify-self:end!important;}
.bde-sort{display:none!important;}
.bde-chip-group .bde-filter[data-filter="pdf"]{display:none!important;}
@media (max-width:900px){
  .bde-toolbar{
    grid-template-columns:1fr 42px!important;
    grid-template-areas:"search toggle" "chips chips"!important;
    gap:10px!important;
  }
  .bde-chip-group{flex-wrap:nowrap!important;overflow:auto!important;}
}


/* v2.1.2: wider centered layout, no view toggle, safer content visibility */
.bde-wrap{
  font-family:Roboto,Arial,sans-serif!important;
  width:min(96vw,1540px)!important;
  max-width:calc(100vw - 32px)!important;
  margin-left:50%!important;
  margin-right:0!important;
  transform:translateX(-50%)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.bde-wrap[data-wide="1"]{
  width:min(98vw,1640px)!important;
  max-width:calc(100vw - 24px)!important;
  left:auto!important;
  margin-left:50%!important;
  transform:translateX(-50%)!important;
}
.bde-shell-top,.bde-toolbar{flex:0 0 auto!important;}
.bde-toolbar{
  display:grid!important;
  grid-template-columns:minmax(280px,460px) minmax(260px,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px 24px!important;
  overflow:visible!important;
}
.bde-search-wrap{max-width:100%!important;}
.bde-chip-group{
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  gap:10px!important;
}
.bde-view-toggle{display:none!important;}
.bde-body{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  padding:20px 24px 34px!important;
  overflow:auto!important;
}
.bde-grid{
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
.bde-item{min-width:0!important;}
.bde-actions{opacity:1!important;transform:none!important;}
.bde-actions:empty{display:none!important;}
.bde-more-wrap{padding-bottom:22px!important;}
@media (min-width:1400px){
  .bde-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;}
}
@media (max-width:900px){
  .bde-wrap{width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;border-radius:16px!important;}
  .bde-toolbar{grid-template-columns:1fr!important;padding:14px!important;}
  .bde-chip-group{justify-content:flex-start!important;}
  .bde-body{padding:14px 14px 24px!important;}
  .bde-grid{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))!important;gap:12px!important;}
}
@media (max-width:520px){
  .bde-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .bde-shell-top{padding:14px!important;}
}


/* v2.1.3: hard fullscreen viewer fix for transformed/overflow theme containers */
html:has(.bde-lightbox:not([hidden])),
body.bde-lock{
  overflow:hidden!important;
  touch-action:none!important;
}
body > .bde-lightbox{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  z-index:2147483647!important;
  display:grid!important;
  grid-template-rows:60px minmax(0,1fr)!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:#020617!important;
}
body > .bde-lightbox[hidden]{display:none!important;}
body > .bde-lightbox .bde-lightbox-bar{
  position:relative!important;
  z-index:2147483647!important;
  width:100vw!important;
  height:60px!important;
  max-width:none!important;
  margin:0!important;
  padding:0 16px!important;
  border-radius:0!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.1)!important;
  background:rgba(2,6,23,.96)!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
}
body > .bde-lightbox .bde-lightbox-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:max-content!important;
}
body > .bde-lightbox .bde-close{
  position:relative!important;
  z-index:2147483647!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0f172a!important;
  border:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body > .bde-lightbox .bde-stage{
  position:relative!important;
  z-index:1!important;
  width:100vw!important;
  height:calc(100dvh - 60px)!important;
  min-height:calc(100vh - 60px)!important;
  margin:0!important;
  padding:14px 66px 18px!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body > .bde-lightbox .bde-stage img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 140px)!important;
  max-height:calc(100dvh - 92px)!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:12px!important;
  transform-origin:center center!important;
}
body > .bde-lightbox .bde-stage iframe{
  width:calc(100vw - 140px)!important;
  height:calc(100dvh - 92px)!important;
  max-width:1680px!important;
  border-radius:12px!important;
}
body > .bde-lightbox .bde-prev,
body > .bde-lightbox .bde-next{
  position:fixed!important;
  top:calc(50% + 30px)!important;
  transform:translateY(-50%)!important;
  z-index:2147483646!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:50px!important;
  border-radius:14px!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body > .bde-lightbox .bde-prev{left:14px!important;right:auto!important;}
body > .bde-lightbox .bde-next{right:14px!important;left:auto!important;}
@media (max-width:760px){
  body > .bde-lightbox{grid-template-rows:54px minmax(0,1fr)!important;}
  body > .bde-lightbox .bde-lightbox-bar{height:54px!important;padding:0 8px!important;gap:8px!important;}
  body > .bde-lightbox .bde-lightbox-title{font-size:11px!important;}
  body > .bde-lightbox .bde-open-drive{display:none!important;}
  body > .bde-lightbox .bde-zoom-actions{position:fixed!important;left:50%!important;bottom:10px!important;transform:translateX(-50%)!important;z-index:2147483647!important;}
  body > .bde-lightbox .bde-stage{height:calc(100dvh - 54px)!important;padding:8px 36px 58px!important;}
  body > .bde-lightbox .bde-stage img{max-width:calc(100vw - 76px)!important;max-height:calc(100dvh - 122px)!important;border-radius:9px!important;}
  body > .bde-lightbox .bde-stage iframe{width:calc(100vw - 76px)!important;height:calc(100dvh - 126px)!important;border-radius:9px!important;}
  body > .bde-lightbox .bde-prev,body > .bde-lightbox .bde-next{top:50%!important;width:30px!important;height:42px!important;border-radius:12px!important;}
  body > .bde-lightbox .bde-prev{left:3px!important;} body > .bde-lightbox .bde-next{right:3px!important;}
  body > .bde-lightbox .bde-close{width:38px!important;height:38px!important;min-width:38px!important;}
}


/* v2.1.4: scroll-safe gallery body so long folders are never clipped */
.bde-wrap,
.bde-wrap[data-wide="1"]{
  height:clamp(560px,var(--bde-height,720px),calc(100dvh - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.bde-shell-top,
.bde-toolbar{
  flex:0 0 auto!important;
}
.bde-body{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding-bottom:56px!important;
  -webkit-overflow-scrolling:touch!important;
}
.bde-body::-webkit-scrollbar{
  width:10px!important;
}
.bde-body::-webkit-scrollbar-track{
  background:rgba(241,245,249,.95)!important;
  border-radius:999px!important;
}
.bde-body::-webkit-scrollbar-thumb{
  background:#cbd5e1!important;
  border:2px solid rgba(241,245,249,.95)!important;
  border-radius:999px!important;
}
.bde-body::-webkit-scrollbar-thumb:hover{
  background:#94a3b8!important;
}
.bde-grid{
  padding-bottom:10px!important;
}
.bde-more-wrap{
  padding-bottom:36px!important;
}
@media (max-width:900px){
  .bde-wrap,.bde-wrap[data-wide="1"]{
    height:clamp(560px,var(--bde-height,720px),calc(100dvh - 18px))!important;
    max-height:calc(100dvh - 18px)!important;
  }
  .bde-body{padding-bottom:48px!important;}
}
@media (max-width:520px){
  .bde-wrap,.bde-wrap[data-wide="1"]{
    height:clamp(540px,var(--bde-height,720px),calc(100dvh - 10px))!important;
    max-height:calc(100dvh - 10px)!important;
  }
  .bde-body{padding-bottom:44px!important;}
}
