.public-gallery-page{width:min(1500px,calc(100% - 48px));margin:0 auto;padding:46px 0 70px}.gallery-public-head{border-bottom:1px solid rgba(142,84,233,.38);padding-bottom:24px;margin-bottom:30px}.gallery-public-head span{color:#9e6df0;letter-spacing:.18em;font-size:.78rem}.gallery-public-head h1{font-size:clamp(2rem,5vw,4.4rem);font-weight:300;letter-spacing:.08em;margin:.35rem 0}.gallery-public-head p{color:#aaa3b2;max-width:720px}.gallery-back{display:inline-block;color:#bca0ef;margin-bottom:20px}.gallery-cover-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}.gallery-cover-card{background:#0d0d10;border:1px solid #26212e;border-radius:10px;overflow:hidden;color:inherit;text-decoration:none;transition:border-color .16s,transform .16s}.gallery-cover-card:hover{border-color:#8e54e9;transform:translateY(-2px)}.gallery-cover-card>img,.gallery-cover-empty{width:100%;height:230px;object-fit:cover;background:#070708}.gallery-cover-empty{display:grid;place-items:center}.gallery-cover-empty svg{width:56px;height:56px;color:#8e54e9}.gallery-cover-card>div:last-child{padding:20px}.gallery-cover-card span{color:#9e6df0;font-size:.72rem;letter-spacing:.16em}.gallery-cover-card h2{margin:8px 0;font-weight:500}.gallery-cover-card p{color:#aaa3b2;min-height:48px}.gallery-cover-card small{display:flex;align-items:center;gap:8px}.gallery-cover-card small svg{width:16px}.gallery-public-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.gallery-public-item{appearance:none;text-align:left;padding:0;background:#0c0c0f;border:1px solid #25212b;border-radius:8px;color:#fff;overflow:hidden;cursor:pointer}.gallery-public-item:hover{border-color:#8e54e9}.gallery-public-item>img,.gallery-video-placeholder{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#08080a}.gallery-video-placeholder{display:grid;place-items:center;color:#9e6df0;letter-spacing:.2em}.gallery-public-item>span{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px}.gallery-public-item small{color:#948e9d}.wallpaper-resolution-group{margin-bottom:40px}.wallpaper-resolution-group>h2{font-weight:400;border-bottom:1px solid #26212e;padding-bottom:12px}.gallery-lightbox{width:min(1200px,calc(100% - 30px));max-height:92vh;padding:0;background:#070708;color:#fff;border:1px solid #31283b;border-radius:10px}.gallery-lightbox::backdrop{background:rgba(0,0,0,.88)}.gallery-lightbox-stage{display:grid;place-items:center;min-height:55vh;background:#030304}.gallery-lightbox-stage img,.gallery-lightbox-stage video,.gallery-lightbox-stage iframe{max-width:100%;max-height:72vh;width:auto;height:auto;border:0}.gallery-lightbox-stage iframe{width:100%;aspect-ratio:16/9}.gallery-lightbox footer{padding:18px 70px 20px}.gallery-lightbox footer h2{margin:0 0 6px}.gallery-lightbox footer p{color:#aaa3b2}.gallery-lightbox-close,.gallery-lightbox-prev,.gallery-lightbox-next{position:absolute;z-index:2;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:2rem;cursor:pointer}.gallery-lightbox-close{right:12px;top:10px}.gallery-lightbox-prev,.gallery-lightbox-next{top:45%;width:46px;height:64px}.gallery-lightbox-prev{left:8px}.gallery-lightbox-next{right:8px}.gallery-public-empty{padding:50px;border:1px dashed #342d3e;text-align:center;color:#aaa3b2}.gallery-admin-content{max-width:none}.gallery-admin-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px}.gallery-list-panel,.gallery-editor-panel,.gallery-builder{background:#0e0e11;border:1px solid #27232d;border-radius:8px}.gallery-list-panel{padding:16px;height:max-content}.gallery-list-item{display:flex;justify-content:space-between;gap:10px;padding:13px;border-radius:6px;color:inherit;text-decoration:none}.gallery-list-item.active,.gallery-list-item:hover{background:#17131d}.gallery-list-item small{display:block;color:#908a97;margin-top:4px}.gallery-editor-panel{padding:20px}.gallery-editor-form>label{display:block;margin-bottom:16px}.gallery-editor-actions{display:grid;grid-template-columns:auto 1fr auto;gap:10px;margin-top:18px}.gallery-builder{margin-top:24px;padding:20px}.gallery-split{display:grid;grid-template-columns:minmax(330px,1fr) minmax(420px,1.1fr);gap:20px}.gallery-media-browser,.gallery-current{min-width:0}.gallery-browser-tools{display:flex;gap:12px;align-items:center;margin-bottom:12px}.gallery-browser-tools .control{max-width:360px}.gallery-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;max-height:620px;overflow:auto;padding-right:4px;margin-bottom:14px}.gallery-media-card{position:relative;border:1px solid #29242f;border-radius:7px;overflow:hidden;cursor:grab;background:#0a0a0c}.gallery-media-card.assigned{opacity:.48;cursor:default}.gallery-media-card input{position:absolute;top:8px;left:8px;z-index:2}.gallery-media-card img{width:100%;height:105px;object-fit:cover}.gallery-media-card span{display:block;padding:8px}.gallery-media-card strong,.gallery-media-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-media-card small{color:#908a97}.gallery-current{border:1px dashed #3b3048;border-radius:8px;padding:12px}.gallery-current.drag-active{border-color:#8e54e9;background:rgba(142,84,233,.07)}.gallery-drop-message{text-align:center;color:#8f8798;padding:12px}.gallery-current-list{display:grid;gap:8px;margin-bottom:14px}.gallery-current-item{display:grid;grid-template-columns:76px minmax(120px,1fr) 90px auto auto auto;gap:10px;align-items:center;background:#131217;border:1px solid #28232e;border-radius:7px;padding:8px}.gallery-current-item img,.gallery-video-tile{width:76px;height:54px;object-fit:cover;background:#09090b}.gallery-video-tile{display:grid;place-items:center;font-size:.7rem;color:#9e6df0}.gallery-current-item small{display:block;color:#918a99}.gallery-order{width:76px}.gallery-video-add{margin-top:18px;border-top:1px solid #2a2530;padding-top:15px}.gallery-video-add summary{cursor:pointer;color:#bca0ef}.gallery-video-add form{display:grid;gap:12px;margin-top:14px}.gallery-video-add label{display:block}@media(max-width:1050px){.gallery-admin-layout,.gallery-split{grid-template-columns:1fr}.gallery-list-panel{display:flex;overflow:auto;gap:8px}.gallery-list-item{min-width:210px}.gallery-current-item{grid-template-columns:64px 1fr 80px}.gallery-current-item .check-label,.gallery-current-item .gallery-remove{grid-column:auto}}@media(max-width:680px){.public-gallery-page{width:min(100% - 24px,1500px)}.gallery-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-current-item{grid-template-columns:58px 1fr}.gallery-current-item>*:nth-child(n+3){grid-column:2}.gallery-cover-grid{grid-template-columns:1fr}}

/* v2.20.2 Gallery Manager cleanup and progressive detail layout */
.gallery-head-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.gallery-head-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:154px;white-space:nowrap}.gallery-head-actions .svg-icon,.gallery-tabs .svg-icon,.gallery-section-head .svg-icon,.gallery-editor-actions .svg-icon,.gallery-compact-button .svg-icon,.gallery-list-copy .svg-icon,.gallery-video-add summary .svg-icon{width:18px;height:18px;flex:0 0 18px}
.gallery-list-copy{min-width:0}.gallery-list-copy strong{display:flex;align-items:center;gap:9px}.gallery-list-item{align-items:flex-start}.gallery-list-item small{line-height:1.45}.gallery-empty-note{color:#918a99;padding:12px}
.gallery-editor-form{max-width:880px}.gallery-form-field{display:grid;gap:8px;margin-bottom:20px}.gallery-form-field>label,.gallery-form-field label{font-size:.82rem;letter-spacing:.04em;color:#d6d0dc}.gallery-form-field .control{margin:0}.gallery-field-small .control{max-width:170px}.gallery-editor-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.gallery-editor-actions .btn{display:inline-flex;align-items:center;gap:9px;white-space:nowrap}.gallery-save-button{width:auto!important;min-width:152px;max-width:max-content;padding-inline:20px}.gallery-compact-button{display:inline-flex!important;width:auto!important;min-width:0;max-width:max-content;align-items:center;gap:8px;white-space:nowrap}
.gallery-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #2b2631;margin:-2px 0 24px;padding-bottom:10px}.gallery-tabs a{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:6px;color:#aaa3b2;text-decoration:none;white-space:nowrap}.gallery-tabs a:hover,.gallery-tabs a.active{color:#fff;background:#18131f}.gallery-tabs a.active{box-shadow:inset 0 -2px #8e54e9}
.gallery-section{min-width:0}.gallery-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.gallery-section-head h2{display:flex;align-items:center;gap:10px;margin:0}.gallery-section-head p{color:#918a99;margin:6px 0 0}.gallery-section-head .btn{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;min-width:180px}
.gallery-preview-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.gallery-preview-summary>div{background:#121116;border:1px solid #29242f;border-radius:7px;padding:14px}.gallery-preview-summary strong,.gallery-preview-summary span{display:block}.gallery-preview-summary strong{font-size:1.05rem;font-weight:500}.gallery-preview-summary span{color:#8f8798;font-size:.76rem;margin-top:5px}
.gallery-admin-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.gallery-admin-preview-grid article{background:#111015;border:1px solid #29242f;border-radius:8px;overflow:hidden}.gallery-admin-preview-grid img,.gallery-admin-preview-grid .gallery-video-tile{width:100%;height:135px;object-fit:cover}.gallery-admin-preview-grid article>div:last-child{padding:11px}.gallery-admin-preview-grid strong,.gallery-admin-preview-grid small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-admin-preview-grid small{color:#8f8798;margin-top:4px}
.gallery-details-stack,.gallery-audit-list{display:grid;gap:12px}.gallery-details-stack details,.gallery-audit-list details{background:#111015;border:1px solid #29242f;border-radius:8px;overflow:hidden}.gallery-details-stack summary,.gallery-audit-list summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}.gallery-details-stack summary::-webkit-details-marker,.gallery-audit-list summary::-webkit-details-marker{display:none}.gallery-details-stack summary{justify-content:flex-start}.gallery-details-stack summary .svg-icon{width:18px;height:18px;margin-right:8px}.gallery-audit-list summary>span:first-child{min-width:0}.gallery-audit-list summary strong,.gallery-audit-list summary small{display:block}.gallery-audit-list summary small{color:#8f8798;margin-top:4px}.gallery-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1px;background:#29242f;border-top:1px solid #29242f;margin:0}.gallery-detail-grid>div{background:#0d0c10;padding:13px 16px;min-width:0}.gallery-detail-grid dt{color:#8f8798;font-size:.75rem;margin-bottom:5px}.gallery-detail-grid dd{margin:0;overflow-wrap:anywhere}
.gallery-media-card small+small{margin-top:4px}.gallery-current-item .btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.gallery-video-add summary{display:flex;align-items:center;gap:8px}.gallery-video-add .gallery-form-field{margin-bottom:0}.gallery-browser-tools span{white-space:nowrap;color:#918a99}
@media(max-width:900px){.gallery-preview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-section-head{flex-direction:column}.gallery-section-head .btn{min-width:0}.gallery-head-actions{width:100%}.gallery-head-actions .btn{flex:1 1 170px}.gallery-editor-form{max-width:none}}
@media(max-width:620px){.gallery-preview-summary{grid-template-columns:1fr}.gallery-editor-actions{align-items:stretch;flex-direction:column-reverse}.gallery-editor-actions .btn,.gallery-save-button{width:100%!important;max-width:none}.gallery-tabs a span{display:inline}.gallery-detail-grid{grid-template-columns:1fr}.gallery-head-actions .btn{min-width:0}.gallery-current-item .gallery-remove{width:100%}}

/* v2.21.0 Phase 1A — Gallery controls */
.gallery-order-form{margin:0 0 18px}.gallery-order-list{display:grid;gap:8px}.gallery-order-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #29242f;border-radius:7px;background:#111015;cursor:grab}.gallery-order-row.is-dragging,.gallery-current-item.is-dragging{opacity:.55}.gallery-order-row .gallery-drag-handle{margin-left:auto}.gallery-drag-handle,.gallery-item-actions button{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid #312b38;border-radius:6px;background:#0b0a0d;color:#b9b1c2;cursor:grab}.gallery-item-actions{display:flex;gap:5px}.gallery-item-actions button{cursor:pointer}.gallery-item-actions .svg-icon,.gallery-drag-handle .svg-icon{width:17px;height:17px}.gallery-item-select{display:grid;place-items:center}.gallery-transfer-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:14px;padding:12px;border:1px solid #29242f;border-radius:7px;background:#0d0c10}.gallery-transfer-toolbar>label{display:grid;gap:6px;min-width:220px;flex:1 1 250px}.gallery-transfer-toolbar>label>span{font-size:.76rem;color:#918a99}.gallery-current-item{grid-template-columns:28px 34px 76px minmax(150px,1fr) 82px auto auto auto auto}.gallery-item-copy{min-width:0}.gallery-item-copy strong,.gallery-item-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-delete-warning{padding:14px;border:1px solid #5a2532;border-radius:7px;background:#190d11;color:#e5cbd1;margin-top:18px}.gallery-delete-warning p{margin:0 0 10px}.gallery-delete-confirm{display:grid;gap:8px;max-width:420px}.gallery-delete-confirm .btn{width:auto;max-width:max-content}.gallery-visibility-note{font-size:.76rem;color:#918a99}.gallery-list-panel .gallery-order-save{margin-top:12px;width:100%;justify-content:center}.gallery-list-item[draggable="true"]{cursor:grab}
@media(max-width:1200px){.gallery-current-item{grid-template-columns:28px 34px 68px minmax(130px,1fr) 76px auto auto}.gallery-current-item .gallery-item-actions,.gallery-current-item .gallery-remove{grid-column:auto}}
@media(max-width:760px){.gallery-transfer-toolbar{align-items:stretch}.gallery-transfer-toolbar>label{flex-basis:100%}.gallery-current-item{grid-template-columns:28px 34px 58px 1fr}.gallery-current-item>*:nth-child(n+5){grid-column:4}.gallery-current-item .gallery-remove{width:100%}.gallery-order-row{min-width:220px}}

/* v2.22.0 — Public gallery experience */
.gallery-card-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:14px 0 10px;color:#948e9d}.gallery-card-meta small{display:block}.gallery-card-open{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;font-weight:500;color:#c7aaf5}.gallery-card-open svg{width:16px;height:16px}.gallery-public-tools{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:-6px 0 28px;padding:16px;border:1px solid #29242f;border-radius:8px;background:#0d0c10}.gallery-public-tools label{display:grid;gap:7px;min-width:190px}.gallery-public-tools label:first-child{flex:1 1 340px}.gallery-public-tools label span{font-size:.76rem;color:#9b94a2}.gallery-public-tools .control{width:100%;max-width:460px}.gallery-filter-count{margin-left:auto;color:#a59dad;padding:10px 0}.gallery-public-item[hidden],.wallpaper-resolution-group[hidden]{display:none!important}.gallery-lightbox{overflow:hidden}.gallery-lightbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;background:#0b0a0d;border-bottom:1px solid #29242f}.gallery-lightbox-tools{display:flex;flex-wrap:wrap;gap:7px}.gallery-lightbox-tools button,.gallery-lightbox-tools a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid #332d3b;border-radius:5px;background:#111015;color:#d2c9dc;text-decoration:none;cursor:pointer;font:inherit;font-size:.8rem}.gallery-lightbox-close{position:static;width:38px;height:38px;border:1px solid #332d3b;border-radius:5px;background:#111015;font-size:1.45rem}.gallery-lightbox-stage{overflow:auto;touch-action:pan-y}.gallery-lightbox-stage img{transition:transform .12s ease;transform-origin:center center}.gallery-lightbox footer{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.gallery-lightbox footer>div{min-width:0}.gallery-lightbox footer small{display:block;color:#8f8798;margin-top:8px}.gallery-public-footer{position:relative;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;width:100%!important}.gallery-footer-center{grid-column:2;text-align:center;justify-self:center}.gallery-footer-top{grid-column:3;justify-self:end;text-align:right;white-space:nowrap}
@media(max-width:680px){.gallery-public-tools{align-items:stretch}.gallery-public-tools label,.gallery-public-tools label:first-child{flex:1 1 100%;min-width:0}.gallery-public-tools .control{max-width:none}.gallery-filter-count{margin-left:0}.gallery-lightbox footer{padding:16px 18px 18px;display:block}.gallery-lightbox footer>[data-lightbox-count]{display:block;margin-top:10px}.gallery-public-footer{grid-template-columns:1fr auto!important;gap:16px}.gallery-footer-center{grid-column:1;text-align:left;justify-self:start}.gallery-footer-top{grid-column:2}}
/* Footer lock: copyright centered, Top link aligned right on every gallery view. */
.gallery-public-footer{display:block!important;position:relative!important;text-align:center!important;padding-left:80px!important;padding-right:80px!important}.gallery-footer-center{text-align:center!important}.gallery-footer-top{position:absolute!important;right:24px!important;top:50%!important;transform:translateY(-50%)!important;text-align:right!important;white-space:nowrap!important}@media(max-width:560px){.gallery-public-footer{padding-left:12px!important;padding-right:64px!important}.gallery-footer-center{font-size:.78rem}.gallery-footer-top{right:12px!important}}


/* DarkLow v2.22.1b - 400px gallery thumbnails */
.gallery-cover-grid{
  grid-template-columns:1fr;
  gap:20px;
}
.gallery-cover-card{
  display:grid;
  grid-template-columns:400px minmax(0,1fr);
  max-width:860px;
  width:100%;
}
.gallery-cover-card>img,
.gallery-cover-card>.gallery-cover-empty{
  width:300px!important;
  height:300px!important;
  aspect-ratio:1/1!important;
  object-fit:cover;
  object-position:center;
}
.gallery-cover-card>div:last-child{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px;
}
@media (max-width:900px){
  .gallery-cover-card{
    grid-template-columns:320px minmax(0,1fr);
  }
  .gallery-cover-card>img,
  .gallery-cover-card>.gallery-cover-empty{
    width:320px!important;
    height:320px!important;
  }
}
@media (max-width:640px){
  .gallery-cover-card{
    display:block;
    max-width:420px;
  }
  .gallery-cover-card>img,
  .gallery-cover-card>.gallery-cover-empty{
    width:100%!important;
    height:auto!important;
    aspect-ratio:1/1!important;
  }
}

/* DarkLow v2.22.1h — Separate Gallery Media page and faster preview thumbnails */
.gallery-media-dedicated .gallery-admin-layout{grid-template-columns:1fr!important}
.gallery-media-dedicated .gallery-list-panel{display:none!important}
.gallery-media-dedicated .gallery-editor-panel{padding:0!important;border:0!important;background:transparent!important}
.gallery-media-dedicated .gallery-tabs{display:none!important}
.gallery-media-dedicated .gallery-builder{margin-top:0!important;padding:18px!important}
.gallery-media-dedicated .gallery-split{display:grid!important;grid-template-columns:1fr!important;gap:20px!important}
.gallery-media-dedicated .gallery-media-browser,.gallery-media-dedicated .gallery-current{width:100%;max-width:none}
.gallery-media-dedicated .gallery-current{border:1px solid #29242f!important;padding:14px!important}
.gallery-media-dedicated .gallery-drop-message{padding:0 0 12px!important;margin:0 0 12px!important;border-bottom:1px solid #29242f!important;text-align:left!important;font-size:.82rem!important}

.gallery-media-dedicated-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px;padding:16px 18px;border:1px solid #29242f;border-radius:8px;background:#0e0e11}
.gallery-media-dedicated-head>a{color:#c7aaf5;text-decoration:none;white-space:nowrap}
.gallery-media-dedicated-head h2{margin:0}
.gallery-media-dedicated-head p{margin:5px 0 0;color:#918a99}

.gallery-media-dedicated .gallery-media-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))!important;max-height:460px!important}
.gallery-media-dedicated .gallery-media-card img{height:88px!important}
.gallery-media-dedicated .gallery-transfer-toolbar{display:grid!important;grid-template-columns:minmax(240px,1fr) auto auto auto;align-items:end!important;gap:9px!important}
.gallery-media-dedicated .gallery-current-item{grid-template-columns:26px 34px 76px minmax(180px,1fr) 74px auto auto auto auto!important;gap:8px!important;padding:7px!important}
.gallery-media-dedicated .gallery-current-item img,.gallery-media-dedicated .gallery-current-item .gallery-video-tile{width:76px!important;height:50px!important}

/* Preview tab cards are now smaller and use cached 180 x 120 files. */
.gallery-admin-preview-grid{grid-template-columns:repeat(auto-fill,minmax(150px,180px))!important;justify-content:start;gap:12px!important}
.gallery-admin-preview-grid article{max-width:180px}
.gallery-admin-preview-grid img,.gallery-admin-preview-grid .gallery-video-tile{width:180px!important;height:120px!important;object-fit:cover!important}
.gallery-admin-preview-grid article>div:last-child{padding:9px!important}
.gallery-admin-preview-grid strong{font-size:.76rem}
.gallery-admin-preview-grid small{font-size:.68rem}

@media(max-width:900px){
  .gallery-media-dedicated .gallery-transfer-toolbar{grid-template-columns:1fr 1fr}
  .gallery-media-dedicated .gallery-transfer-toolbar>label{grid-column:1/-1}
  .gallery-media-dedicated .gallery-current-item{grid-template-columns:26px 34px 68px minmax(0,1fr)!important}
  .gallery-media-dedicated .gallery-current-item>*:nth-child(n+5){grid-column:4}
}

@media(max-width:560px){
  .gallery-media-dedicated-head{align-items:flex-start;flex-direction:column}
  .gallery-media-dedicated .gallery-transfer-toolbar{grid-template-columns:1fr}
  .gallery-media-dedicated .gallery-transfer-toolbar>*{grid-column:1!important;width:100%}
  .gallery-admin-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gallery-admin-preview-grid article{max-width:none}
  .gallery-admin-preview-grid img,.gallery-admin-preview-grid .gallery-video-tile{width:100%!important;height:auto!important;aspect-ratio:3/2}
}

/* DarkLow v2.22.1i — Gallery sidebar card organization */
.gallery-admin-layout{
  grid-template-columns:330px minmax(0,1fr)!important;
}

.gallery-list-panel{
  padding:18px!important;
}

.gallery-sort-list{
  display:grid!important;
  gap:16px!important;
}

.gallery-sort-row.gallery-sidebar-card{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  grid-template-areas:
    "drag card"
    ". controls"!important;
  align-items:start!important;
  gap:10px 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

.gallery-sidebar-card>.gallery-drag-handle{
  grid-area:drag;
  width:42px!important;
  height:42px!important;
  margin:0!important;
}

.gallery-sidebar-card>.gallery-list-item{
  grid-area:card;
  display:block!important;
  min-width:0;
  padding:16px 18px!important;
  border:1px solid #29242f!important;
  border-radius:8px!important;
  background:#111015!important;
}

.gallery-sidebar-card>.gallery-list-item.active{
  border-color:#4b3564!important;
  background:#18131f!important;
}

.gallery-sidebar-card .gallery-list-copy{
  display:grid!important;
  gap:8px!important;
  min-width:0;
}

.gallery-sidebar-card .gallery-list-copy strong{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  margin:0!important;
  font-size:1rem!important;
  line-height:1.3!important;
}

.gallery-sidebar-card .gallery-list-copy strong .svg-icon{
  width:20px!important;
  height:20px!important;
}

.gallery-sidebar-card .gallery-list-copy strong span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gallery-card-type,
.gallery-card-meta-line,
.gallery-card-updated{
  display:block;
}

.gallery-card-type{
  color:#aaa3b2;
  font-size:.82rem;
}

.gallery-card-status{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  font-size:.72rem;
  line-height:1;
}

.gallery-card-status.approved{
  border:1px solid #285438;
  background:#0f1d14;
  color:#7bdc98;
}

.gallery-card-status.pending{
  border:1px solid #554719;
  background:#1d180a;
  color:#e2c85d;
}

.gallery-card-meta-line{
  color:#aaa3b2;
  font-size:.8rem;
}

.gallery-card-updated{
  color:#8f8798;
  font-size:.76rem;
}

.gallery-sidebar-card>.gallery-order-buttons{
  grid-area:controls;
  display:flex!important;
  gap:10px!important;
  margin:0!important;
}

.gallery-sidebar-card>.gallery-order-buttons button{
  width:42px!important;
  height:38px!important;
  border-radius:6px!important;
}

.gallery-list-panel .gallery-save-order{
  width:100%!important;
  min-height:44px;
  margin-top:20px!important;
  justify-content:center!important;
  gap:10px!important;
}

@media(max-width:1050px){
  .gallery-admin-layout{
    grid-template-columns:1fr!important;
  }

  .gallery-list-panel{
    display:block!important;
    overflow:visible!important;
  }

  .gallery-sort-list{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  }
}

@media(max-width:560px){
  .gallery-list-panel{
    padding:14px!important;
  }

  .gallery-sort-row.gallery-sidebar-card{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:8px 10px!important;
  }

  .gallery-sidebar-card>.gallery-drag-handle{
    width:38px!important;
    height:38px!important;
  }

  .gallery-sidebar-card>.gallery-list-item{
    padding:14px!important;
  }
}

/* DarkLow v2.22.2a — Authoritative public Gallery card sizing
   250 × 250 cover image, 520 px total card width. */
.gallery-cover-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,520px)!important;
  justify-content:start!important;
  align-items:start!important;
  gap:18px!important;
}

.gallery-cover-card{
  display:grid!important;
  grid-template-columns:250px 270px!important;
  width:520px!important;
  max-width:520px!important;
  min-width:0!important;
  min-height:250px!important;
  height:250px!important;
  overflow:hidden!important;
}

.gallery-cover-card>img,
.gallery-cover-card>.gallery-cover-empty{
  display:block!important;
  width:250px!important;
  height:250px!important;
  min-width:250px!important;
  max-width:250px!important;
  min-height:250px!important;
  max-height:250px!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
  object-position:center!important;
}

.gallery-cover-card>div:last-child{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-width:0!important;
  height:250px!important;
  box-sizing:border-box!important;
  padding:16px 18px!important;
}

.gallery-cover-card span{
  font-size:.67rem!important;
  letter-spacing:.13em!important;
}

.gallery-cover-card h2{
  margin:5px 0 4px!important;
  font-size:1.08rem!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.gallery-cover-card p{
  min-height:0!important;
  margin:4px 0 7px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  line-height:1.4!important;
  font-size:.82rem!important;
}

.gallery-card-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px 9px!important;
  margin:6px 0 8px!important;
  line-height:1.25!important;
}

.gallery-card-meta small{
  display:block!important;
  font-size:.72rem!important;
}

.gallery-card-open{
  margin-top:auto!important;
  padding-top:5px!important;
  font-size:.76rem!important;
}

@media(max-width:1120px){
  .gallery-cover-grid{
    grid-template-columns:520px!important;
  }
}

@media(max-width:580px){
  .gallery-cover-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }

  .gallery-cover-card{
    grid-template-columns:190px minmax(0,1fr)!important;
    width:100%!important;
    max-width:480px!important;
    height:190px!important;
    min-height:190px!important;
  }

  .gallery-cover-card>img,
  .gallery-cover-card>.gallery-cover-empty{
    width:190px!important;
    height:190px!important;
    min-width:190px!important;
    max-width:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }

  .gallery-cover-card>div:last-child{
    height:190px!important;
    padding:12px 14px!important;
  }

  .gallery-cover-card p{
    -webkit-line-clamp:1!important;
  }
}

@media(max-width:420px){
  .gallery-cover-card{
    display:block!important;
    width:250px!important;
    max-width:250px!important;
    height:auto!important;
    min-height:0!important;
  }

  .gallery-cover-card>img,
  .gallery-cover-card>.gallery-cover-empty{
    width:250px!important;
    height:250px!important;
    min-width:250px!important;
    max-width:250px!important;
    min-height:250px!important;
    max-height:250px!important;
  }

  .gallery-cover-card>div:last-child{
    height:auto!important;
    min-height:126px!important;
  }
}

/* ==========================================================
   DarkLow v2.22.3 — Mobile and accessible Gallery rules
   ========================================================== */

/* Public Gallery controls remain readable and touch-friendly. */
.gallery-public-tools{
  gap:14px!important;
}

.gallery-public-tools label span,
.gallery-filter-count,
.gallery-card-meta small,
.gallery-public-item small,
.gallery-lightbox footer small{
  font-size:14px!important;
  line-height:1.45!important;
}

.gallery-public-tools .control{
  min-height:48px!important;
  font-size:16px!important;
}

.gallery-public-item{
  min-width:0;
}

.gallery-public-item>span{
  min-height:58px;
  padding:12px 14px!important;
}

.gallery-public-item>span strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:16px;
}

/* Viewer image never exceeds viewport; buttons remain usable. */
.gallery-lightbox{
  box-sizing:border-box;
}

.gallery-lightbox-toolbar{
  flex-wrap:wrap;
  gap:10px!important;
}

.gallery-lightbox-tools{
  gap:8px!important;
}

.gallery-lightbox-tools button,
.gallery-lightbox-tools a,
.gallery-lightbox-close{
  min-height:48px!important;
  font-size:16px!important;
  padding:10px 13px!important;
}

.gallery-lightbox-prev,
.gallery-lightbox-next{
  min-width:50px!important;
  min-height:64px!important;
}

.gallery-lightbox-stage img,
.gallery-lightbox-stage video,
.gallery-lightbox-stage iframe{
  max-width:100%!important;
}

/* Gallery Manager readability */
.gallery-list-copy,
.gallery-current-item,
.gallery-media-card,
.gallery-admin-preview-grid article{
  font-size:15px;
}

.gallery-current-item .btn,
.gallery-item-actions button,
.gallery-drag-handle,
.gallery-order-buttons button{
  min-width:44px!important;
  min-height:44px!important;
}

/* Mobile Gallery */
@media(max-width:640px){
  .public-gallery-page{
    width:calc(100% - 24px)!important;
    padding:28px 0 48px!important;
  }

  .gallery-public-head{
    margin-bottom:22px!important;
    padding-bottom:18px!important;
  }

  .gallery-public-head h1{
    font-size:clamp(2rem,12vw,3rem)!important;
  }

  .gallery-public-head p{
    font-size:17px;
  }

  .gallery-cover-grid{
    grid-template-columns:1fr!important;
    justify-items:center!important;
    gap:18px!important;
  }

  .gallery-cover-card{
    width:100%!important;
    max-width:520px!important;
    grid-template-columns:minmax(150px,42vw) minmax(0,1fr)!important;
    height:auto!important;
    min-height:190px!important;
  }

  .gallery-cover-card>img,
  .gallery-cover-card>.gallery-cover-empty{
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:190px!important;
    max-height:250px!important;
    aspect-ratio:1/1!important;
  }

  .gallery-cover-card>div:last-child{
    height:auto!important;
    min-height:190px!important;
    padding:14px!important;
  }

  .gallery-cover-card h2{
    font-size:1.12rem!important;
  }

  .gallery-cover-card p{
    font-size:15px!important;
    -webkit-line-clamp:2!important;
  }

  .gallery-card-open{
    min-height:44px;
    display:flex!important;
    align-items:center;
    font-size:15px!important;
  }

  .gallery-public-tools{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    padding:14px!important;
  }

  .gallery-public-tools label,
  .gallery-public-tools label:first-child{
    width:100%;
    min-width:0!important;
  }

  .gallery-public-tools .control{
    max-width:none!important;
    width:100%!important;
    min-height:50px!important;
    font-size:17px!important;
  }

  .gallery-filter-count{
    margin-left:0!important;
    padding:4px 0!important;
  }

  .gallery-public-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }

  .gallery-public-item>span{
    display:block!important;
    min-height:76px;
  }

  .gallery-public-item>span strong,
  .gallery-public-item>span small{
    display:block;
  }

  .gallery-public-item>span small{
    margin-top:5px;
  }

  .gallery-lightbox{
    width:100%!important;
    max-width:none!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    border-radius:0!important;
  }

  .gallery-lightbox-toolbar{
    padding:10px!important;
  }

  .gallery-lightbox-tools{
    width:calc(100% - 58px);
    overflow-x:auto;
    flex-wrap:nowrap!important;
    padding-bottom:2px;
  }

  .gallery-lightbox-tools button,
  .gallery-lightbox-tools a{
    flex:0 0 auto;
  }

  .gallery-lightbox-stage{
    min-height:0!important;
    height:calc(100dvh - 220px);
    padding:8px;
  }

  .gallery-lightbox-stage img,
  .gallery-lightbox-stage video{
    max-height:calc(100dvh - 240px)!important;
  }

  .gallery-lightbox footer{
    padding:14px 16px 18px!important;
    font-size:16px;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next{
    top:45%!important;
    width:50px!important;
    height:70px!important;
  }

  .gallery-lightbox-prev{
    left:4px!important;
  }

  .gallery-lightbox-next{
    right:4px!important;
  }

  .gallery-public-footer{
    min-height:72px;
    padding-left:12px!important;
    padding-right:68px!important;
    font-size:14px;
  }
}

@media(max-width:440px){
  .gallery-public-grid{
    grid-template-columns:1fr!important;
  }

  .gallery-cover-card{
    display:block!important;
    width:250px!important;
    max-width:250px!important;
  }

  .gallery-cover-card>img,
  .gallery-cover-card>.gallery-cover-empty{
    width:250px!important;
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
  }

  .gallery-cover-card>div:last-child{
    min-height:150px!important;
  }
}

/* DarkLow v2.22.3a — 800 px Gallery viewer derivative */
.gallery-lightbox-stage img{
  width:auto!important;
  height:auto!important;
  max-width:min(800px,100%)!important;
  max-height:min(800px,calc(100dvh - 220px))!important;
  object-fit:contain!important;
}

.gallery-lightbox-stage{
  min-height:min(800px,55vh);
}

[data-lightbox-download]{
  white-space:nowrap;
}

@media(max-width:640px){
  .gallery-lightbox-stage img{
    max-width:100%!important;
    max-height:calc(100dvh - 240px)!important;
  }
}

/* DarkLow v2.22.3b — true proportional 800 px viewer */
.gallery-lightbox-stage img{
  width:auto!important;
  height:auto!important;
  max-width:min(800px,100%)!important;
  max-height:min(800px,calc(100dvh - 235px))!important;
  object-fit:contain!important;
}

.gallery-original-details{
  display:block!important;
  margin-top:6px!important;
  color:#c4b9cf!important;
  font-size:14px!important;
  line-height:1.45!important;
}

[data-lightbox-download]{
  font-weight:600;
  white-space:nowrap;
}

@media(max-width:640px){
  .gallery-original-details{
    font-size:15px!important;
  }
}

/* DarkLow v2.22.3c — clearly separate viewer derivative from original */
.gallery-lightbox [data-lightbox-meta]{
  display:block!important;
  margin-top:8px!important;
  color:#d5cbe0!important;
  font-size:14px!important;
  font-weight:600;
}

.gallery-original-details{
  color:#9f96a8!important;
  font-weight:400;
}

@media(max-width:640px){
  .gallery-lightbox [data-lightbox-meta],
  .gallery-original-details{
    font-size:15px!important;
  }
}

/* ==========================================================
   DarkLow v2.22.3f — iPad Gallery layout correction
   ========================================================== */

@media (hover:none) and (pointer:coarse) and (min-width:700px) and (max-width:1366px){

  .public-gallery-page{
    width:min(100% - 36px,1500px)!important;
    padding-top:34px!important;
  }

  .gallery-public-head{
    margin-bottom:24px!important;
    padding-bottom:20px!important;
  }

  .gallery-public-head h1{
    line-height:1.12!important;
  }

  .gallery-public-head p{
    font-size:17px!important;
    line-height:1.6!important;
  }

  .gallery-public-tools{
    gap:14px!important;
    padding:14px!important;
  }

  .gallery-public-tools label{
    min-width:0!important;
  }

  .gallery-public-tools .control{
    min-height:48px!important;
    font-size:16px!important;
  }

  .gallery-cover-grid{
    grid-template-columns:repeat(auto-fill,minmax(250px,520px))!important;
    gap:20px!important;
  }

  .gallery-cover-card{
    min-width:0!important;
  }

  .gallery-cover-card>div:last-child{
    padding:16px 18px!important;
  }

  .gallery-cover-card h2{
    line-height:1.25!important;
  }

  .gallery-cover-card p{
    line-height:1.5!important;
  }

  .gallery-public-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
  }

  .gallery-public-item{
    min-width:0!important;
  }

  .gallery-public-item>span{
    padding:12px!important;
    gap:8px!important;
  }

  .gallery-public-item>span strong{
    font-size:15px!important;
    line-height:1.35!important;
    overflow-wrap:anywhere!important;
  }

  .gallery-public-item small{
    font-size:14px!important;
    line-height:1.4!important;
  }

  .gallery-lightbox{
    width:min(1080px,calc(100% - 28px))!important;
    max-height:94dvh!important;
  }

  .gallery-lightbox-stage{
    min-height:50dvh!important;
  }

  .gallery-lightbox footer{
    padding:16px 68px 18px!important;
  }

  .gallery-lightbox footer h2{
    font-size:22px!important;
    line-height:1.25!important;
  }

  .gallery-lightbox footer p,
  .gallery-lightbox footer small{
    font-size:14px!important;
    line-height:1.5!important;
  }

  .gallery-lightbox-close,
  .gallery-lightbox-prev,
  .gallery-lightbox-next{
    min-width:48px!important;
    min-height:48px!important;
  }

  /* Gallery Manager should not retain cramped desktop columns on iPad. */
  .gallery-admin-layout{
    grid-template-columns:1fr!important;
  }

  .gallery-list-panel{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;
    gap:14px!important;
    overflow:visible!important;
  }

  .gallery-list-item{
    min-width:0!important;
  }

  .gallery-split{
    grid-template-columns:1fr!important;
  }

  .gallery-media-grid{
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;
  }

  .gallery-tabs{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
    white-space:nowrap!important;
  }

  .gallery-tabs a{
    min-height:48px!important;
    font-size:15px!important;
    padding:10px 14px!important;
  }
}

@media (hover:none) and (pointer:coarse) and (min-width:700px) and (max-width:900px){

  .gallery-public-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .gallery-cover-grid{
    grid-template-columns:1fr!important;
    justify-items:center!important;
  }

  .gallery-cover-card{
    width:min(520px,100%)!important;
    max-width:520px!important;
  }

  .gallery-lightbox{
    width:calc(100% - 18px)!important;
    max-width:none!important;
  }

  .gallery-lightbox footer{
    padding:16px 18px 18px!important;
  }
}

/* ==========================================================
   DarkLow v2.22.3g — Gallery breadcrumb/type spacing fix
   Prevents "All GalleriesWALLPAPER GALLERY" from touching.
   ========================================================== */

.gallery-heading-line{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  column-gap:14px!important;
  row-gap:8px!important;
  margin-bottom:20px!important;
}

.gallery-heading-line .gallery-back{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}

.gallery-heading-divider{
  display:block!important;
  width:1px!important;
  height:24px!important;
  flex:0 0 1px!important;
  background:#4a4450!important;
}

.gallery-gallery-type{
  display:inline-block!important;
  margin:0!important;
  white-space:nowrap!important;
  line-height:1.35!important;
  letter-spacing:.18em!important;
  flex:0 0 auto!important;
}

.gallery-public-head-row h1{
  margin-top:0!important;
}

@media(max-width:560px){
  .gallery-heading-line{
    column-gap:10px!important;
    margin-bottom:16px!important;
  }

  .gallery-heading-divider{
    height:20px!important;
  }

  .gallery-gallery-type{
    font-size:.72rem!important;
    letter-spacing:.14em!important;
  }
}

@media(max-width:390px){
  .gallery-heading-divider{
    display:none!important;
  }

  .gallery-heading-line{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:8px!important;
  }
}
