.asset-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mini-card .card-img-wrapper { height: auto; padding: 46px 10px 8px; background: linear-gradient(145deg,rgba(239,246,255,.9),rgba(238,242,255,.7)); }
.asset-gallery { position: relative; min-width: 0; }
.mini-card .asset-gallery { min-height: 278px; }
.asset-gallery-viewport { overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.6); }
.asset-gallery-track { display: flex; transition: transform .6s ease; }
.asset-gallery-slide { flex: 0 0 100%; min-width: 0; height: 240px; margin: 0; }
.asset-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.asset-gallery-empty { height: 240px; display: grid; place-content: center; gap: 12px; text-align: center; color: #64748b; font-size: 13px; }
.asset-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding-top: 8px; }
.asset-gallery-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 50px; border: 1px solid #dbeafe; background: rgba(255,255,255,.85); color: #1e40af; cursor: pointer; font: inherit; font-size: 13px; }
.asset-gallery-controls button:hover, .asset-gallery-controls button[aria-current="true"] { background: #2563eb; color: white; }
.asset-gallery-controls button:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.asset-gallery-controls [data-gallery-count] { color: #475569; font-size: 12px; min-width: 34px; text-align: center; }
#modalGallery { margin-bottom: 20px; }
#modalGallery .asset-gallery-slide, #modalGallery .asset-gallery-empty { height: clamp(220px, 45vh, 430px); }
#detailModal { z-index: 1000000; }
#detailModal .modal-content { max-width: 820px; }
@media (prefers-reduced-motion: reduce) { .asset-gallery-track { transition: none; } }
