/* Photo Gallery folders, shared with Admin Photo Studio categories. */
.gallery-folder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 26px}
.gallery-folder-card{min-width:0;display:block;padding:0;border:1px solid rgba(41,121,86,.2);border-radius:16px;overflow:hidden;background:#fff;color:#143f30;cursor:pointer;text-align:left;box-shadow:0 9px 26px rgba(8,69,39,.09);transition:transform .23s ease,box-shadow .23s ease,border-color .23s ease;font:inherit}
.gallery-folder-card:hover,.gallery-folder-card:focus-visible{transform:translateY(-5px);border-color:#35a77b;box-shadow:0 15px 30px rgba(8,69,39,.16);outline-offset:3px}
.gallery-folder-card.is-active{border-color:#109264;box-shadow:0 0 0 2px rgba(16,146,100,.22)}
.gallery-folder-cover{position:relative;display:grid;place-items:center;height:157px;overflow:hidden;background:linear-gradient(135deg,#0d674b,#6cc190);color:#e8fff3;font-size:44px}
.gallery-folder-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.gallery-folder-card:hover .gallery-folder-cover img{transform:scale(1.05)}
.gallery-folder-cover::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,40,22,.42));pointer-events:none}
.gallery-folder-count{position:absolute;z-index:1;top:9px;right:9px;padding:5px 9px;border-radius:99px;background:rgba(255,255,255,.96);color:#12613f;font-size:11px;font-weight:750}
.gallery-folder-label{padding:12px 13px 13px;font-size:13px;font-weight:750;line-height:1.35;display:flex;justify-content:space-between;gap:7px}
.gallery-folder-label .arrow{font-weight:900;color:#078463}
.gallery-folder-note{display:block;padding:0 13px 13px;font-size:11px;color:#63796f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-grid .gallery-card[hidden]{display:none!important}
@media(max-width:930px){.gallery-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-folder-cover{height:160px}}
@media(max-width:490px){.gallery-folder-grid{gap:9px;margin-bottom:17px}.gallery-folder-cover{height:112px}.gallery-folder-label{font-size:12px;padding:10px 11px 4px}.gallery-folder-note{padding:0 11px 11px}.gallery-folder-count{font-size:10px}}
@media(prefers-reduced-motion:reduce){.gallery-folder-card,.gallery-folder-cover img{transition:none}}

.gallery-empty-state{padding:35px 24px;margin:20px 0 12px;border:1px dashed #95caae;background:#f3faf5;color:#37624c;text-align:center;border-radius:18px;font-weight:700}
.gallery-empty-state[hidden]{display:none!important}
