/* PhotoSales Studio 5.8.0.4 – Dynamic Gallery Layout */
.pss-layout-switcher{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:12px 0}
.pss-layout-switcher__label{font-size:13px;opacity:.78;margin-right:2px}
.pss-layout-switcher button{border:1px solid rgba(148,163,184,.35);background:rgba(15,23,42,.78);color:#e2e8f0;border-radius:10px;padding:8px 11px;cursor:pointer;font-weight:700}
.pss-layout-switcher button[aria-pressed="true"]{background:#2563eb;border-color:#60a5fa;color:#fff}
#photoGrid[data-layout-mode="classic"]{--pss-card-min:230px;--pss-grid-gap:14px}
#photoGrid[data-layout-mode="compact"]{--pss-card-min:160px;--pss-grid-gap:9px}
#photoGrid[data-layout-mode="detailed"]{--pss-card-min:310px;--pss-grid-gap:18px}
#photoGrid[data-layout-mode]{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--pss-card-min)),1fr))!important;gap:var(--pss-grid-gap)!important;align-items:start}
#photoGrid[data-layout-mode] .photo{width:auto!important;min-width:0!important}
#photoGrid[data-layout-mode] .photo img{width:100%;aspect-ratio:4/3;object-fit:cover}
#photoGrid[data-layout-mode="compact"] .photo .photo-meta,#photoGrid[data-layout-mode="compact"] .photo .photo-description{font-size:12px}
#photoGrid[data-layout-mode="detailed"] .photo .photo-meta,#photoGrid[data-layout-mode="detailed"] .photo .photo-description{display:block}
@media(max-width:640px){.pss-layout-switcher{justify-content:stretch}.pss-layout-switcher button{flex:1;padding:9px 6px}#photoGrid[data-layout-mode="detailed"]{--pss-card-min:240px}}
