/* Collection covers show complete images with consistent alignment. */
.visual-gallery #firstGallery.art-collections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:980px;align-items:stretch}
.visual-gallery #firstGallery.art-collections.many-collections{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1180px}
.visual-gallery #firstGallery.art-collections.four-collections{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1260px}
.visual-gallery #firstGallery.art-collections.five-collections{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;max-width:1360px}
.visual-gallery #firstGallery.art-collections.five-collections{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;max-width:1360px}
#firstGallery.art-collections .art-collection-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #ffffff18;background:#111016}
#firstGallery.art-collections .art-collection-preview{display:grid;grid-template-columns:minmax(0,1fr);height:min(23svh,210px);width:100%;overflow:hidden;background:#08090c}
#firstGallery.five-collections .art-collection-preview{height:min(19svh,170px)}
#firstGallery.art-collections .art-collection-preview.preview-mosaic{grid-template-columns:repeat(var(--preview-count,3),minmax(0,1fr));gap:3px}
#firstGallery.art-collections .art-collection-preview img{display:block;width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:auto;object-fit:contain;object-position:center;filter:none!important;mix-blend-mode:normal}
#firstGallery.art-collections .art-collection-card>span{display:flex;flex:1;flex-direction:column;gap:4px;padding:12px 16px;color:#fff}
#firstGallery.art-collections .art-collection-card strong{font-size:15px;line-height:1.4;font-weight:400}
#firstGallery.art-collections .art-collection-card small{font-size:11px;line-height:1.5;color:#c4b8c7}
.visual-gallery .visual-foot{max-width:980px;line-height:1.5}
#seriesDialog[data-layout="portrait"] .series-gallery-tile>img{aspect-ratio:var(--gallery-image-ratio,4/5);object-fit:contain;filter:none;mix-blend-mode:normal}
@media(min-width:701px) and (max-width:1100px){
  .visual-gallery #firstGallery.art-collections.four-collections{grid-template-columns:repeat(2,minmax(0,1fr))}
  #firstGallery.four-collections .art-collection-preview{height:min(14svh,120px)}
  .visual-gallery #firstGallery.art-collections.five-collections{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  #firstGallery.five-collections .art-collection-preview{height:min(11svh,110px)}
}
@media(max-width:700px){
  .visual-gallery .visual-caption{flex-direction:column;align-items:flex-start;gap:6px;line-height:1.5}
  .visual-gallery #firstGallery.art-collections{grid-template-columns:minmax(0,1fr);gap:12px}
  .visual-gallery #firstGallery.art-collections.many-collections{grid-template-columns:minmax(0,1fr);gap:12px}
  .visual-gallery #firstGallery.art-collections.four-collections{grid-template-columns:minmax(0,1fr)}
  .visual-gallery #firstGallery.art-collections.five-collections{grid-template-columns:minmax(0,1fr);gap:9px}
  #firstGallery.many-collections .art-collection-card{display:grid;grid-template-columns:56% minmax(0,1fr);align-items:stretch}
  #firstGallery.many-collections .art-collection-card>span{justify-content:center}
  #firstGallery.art-collections .art-collection-preview{height:min(15svh,36.8vw)}
  #firstGallery.many-collections .art-collection-preview{height:min(14svh,30vw)}
  #firstGallery.four-collections .art-collection-preview{height:9svh}
  #firstGallery.five-collections .art-collection-preview{height:clamp(62px,8svh,76px)}
  #firstGallery.art-collections .art-collection-card>span{padding:9px 12px;gap:3px}
  #firstGallery.art-collections .art-collection-card strong{font-size:13px;line-height:1.4}
  #firstGallery.art-collections .art-collection-card small{font-size:10px;line-height:1.5}
  .visual-gallery .visual-foot{margin-top:12px;font-size:11px}
}
