/* PACKVORI v18 · garment-bags.html 专用样式 (append-only, 不改 styles.css)
   遵 v15 frame 铁律: 不用 .pe-gallery(.v13 硬塞 aspect-ratio:1/1.5) / 不用 .opp-image-frame(v16 !important max-height 裁)
   图位用独立 .gb-gallery, object-fit:contain, 高度按原图比例自适应 */
.gb-gallery{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:36px}
.gb-gallery.wide{grid-template-columns:1.5fr 1fr}
.gb-card{border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;gap:10px;min-width:0}
.gb-frame{display:flex;align-items:center;justify-content:center;background:#f7f6f1;padding:16px;overflow:hidden;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;width:100%}
.gb-frame img{display:block;width:auto!important;max-width:100%;height:auto!important;max-height:560px!important;object-fit:contain!important;margin:0 auto}
.gb-copy{padding:4px 18px 18px}
.gb-copy strong{display:block;font-size:17px}
.gb-copy span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.gb-hero-img{margin-top:34px;width:100%;background:#f7f6f1;border:1px solid var(--line);padding:16px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gb-hero-img img{display:block;width:auto;max-width:100%;height:auto;max-height:520px;object-fit:contain;margin:0 auto}
@media(max-width:900px){.gb-gallery,.gb-gallery.wide{grid-template-columns:1fr}}

/* v18.1 修复: 4 图布局 — 首图通栏 + 3 图均分, 避免第4张落单塌陷 */
.gb-gallery.hero-first{grid-template-columns:repeat(3,minmax(0,1fr))}
.gb-gallery.hero-first .gb-card:first-child{grid-column:1/-1}
.gb-gallery.hero-first .gb-card:first-child .gb-frame img{max-height:520px!important}
@media(max-width:900px){.gb-gallery.hero-first{grid-template-columns:1fr}.gb-gallery.hero-first .gb-card:first-child{grid-column:auto}}
