/* Compact portrait catalogue: complete photos on white, flexible columns. */
.catalog-page .catalog-layout{grid-template-columns:160px minmax(0,1fr);gap:28px}
.catalog-page #grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:26px 18px;align-items:start}
.catalog-page #grid figure{min-width:0;margin:0}
.catalog-page #grid .image-link{display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:3/4;padding:0;border:0;background:transparent;overflow:hidden}
.catalog-page #grid img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;background:transparent}
.catalog-page #grid figcaption{margin-top:9px}
.catalog-page #grid .caption-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;margin-bottom:3px;font-size:13px;line-height:1.4;color:#667069}
.catalog-page #grid .caption-row span{font-size:inherit}
.catalog-page #grid figcaption>a{display:inline-block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.catalog-page #grid .empty{grid-column:1/-1}
@media(max-width:1000px){.catalog-page .catalog-layout{grid-template-columns:135px minmax(0,1fr);gap:22px}}
@media(max-width:650px){.catalog-page .catalog-layout{grid-template-columns:1fr;gap:20px}.catalog-page #grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}}
@media(max-width:340px){.catalog-page #grid{grid-template-columns:1fr}}
