.design-gallery-filters { margin-bottom:28px; flex-wrap:wrap; }
.design-gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.design-gallery-card { min-width:0; display:grid; gap:10px; padding:0; text-align:left; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.design-gallery-card[hidden] { display:none; }
.design-gallery-photo { display:grid; place-items:center; aspect-ratio:1; padding:12px; background:#fff; border:2px solid #eea8c8; border-radius:16px; overflow:hidden; }
.design-gallery-card[data-gallery-category=sticker] .design-gallery-photo { border-color:#85caae; }
.design-gallery-card[data-gallery-category=cheki] .design-gallery-photo { border-color:#9dcce8; }
.design-gallery-card[data-gallery-category=goods] .design-gallery-photo { border-color:#bca4dd; }
.design-gallery-photo img { width:100%; height:100%; min-height:0; object-fit:contain; transition:transform .2s; }
.design-gallery-card:hover img { transform:scale(1.04); }
.design-gallery-name { font-size:14px; line-height:1.5; }
.design-gallery-status { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.design-gallery-modal { width:min(940px,calc(100% - 24px)); max-height:90dvh; margin:auto; padding:48px 24px 24px; border:0; border-radius:20px; background:#fff; color:var(--ink,#392837); overscroll-behavior:contain; overflow:auto; }
.design-gallery-modal::backdrop { background:#251724b8; }
.design-gallery-close { position:absolute; top:8px; right:10px; width:40px; height:40px; border:0; border-radius:50%; background:#fff0f7; color:#392837; font-size:28px; line-height:1; cursor:pointer; }
.design-gallery-modal figure { margin:0; }
.design-gallery-modal figure img { display:block; margin:auto; width:auto; max-width:100%; max-height:65dvh; object-fit:contain; }
.design-gallery-modal figcaption { margin-top:16px; font-size:16px; line-height:1.5; text-align:center; }
.design-gallery-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; }
.design-gallery-controls button { width:44px; height:44px; background:#fff0f7; border:0; border-radius:50%; font-size:24px; cursor:pointer; }
.design-gallery-controls a { font-size:14px; line-height:1.5; }
@media(max-width:1023px) { .design-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; } }
@media(max-width:767px) {
 .design-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; }
 .design-gallery-photo { padding:6px; border-radius:12px; }
 .design-gallery-name { font-size:12px; }
 .design-gallery-modal { padding:48px 12px 18px; }
 .design-gallery-controls a { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .design-gallery-photo img { transition:none; } }
