/* 同一套图墙：每行最多三张，两张铺满，一张使用原图比例独占整行。 */
.preview-gallery.is-justified,.p-case-gallery.is-justified{display:block;columns:auto}
.preview-gallery.is-justified>.justified-row,.p-case-gallery.is-justified>.justified-row{display:flex;gap:14px;width:100%;margin:0 0 14px}
.preview-gallery.is-justified>.justified-row>figure,.p-case-gallery.is-justified>.justified-row>figure{flex:var(--media-ratio,1.5) 1 0;min-width:0;margin:0}
.preview-gallery.is-justified>.justified-row:not(.is-single)>figure>img{display:block;width:100%;height:auto;object-fit:contain}
.p-case-gallery.is-justified>.justified-row:not(.is-single)>figure .p-dcell{height:auto!important;aspect-ratio:auto!important}
.p-case-gallery.is-justified>.justified-row:not(.is-single)>figure .p-dcell img{width:100%;height:auto;object-fit:contain}
.preview-gallery.is-justified>.justified-row.is-single>figure,.p-case-gallery.is-justified>.justified-row.is-single>figure{flex:1 1 100%}
.preview-gallery.is-justified>.justified-row.is-single>figure>img{width:100%;height:auto;object-fit:contain}
.p-case-gallery.is-justified>.justified-row.is-single>figure .p-dcell{height:auto!important}
.p-case-gallery.is-justified>.justified-row.is-single>figure .p-dcell img{width:100%;height:auto;object-fit:contain}
.preview-gallery.is-justified>.is-featured-media,.p-case-gallery.is-justified>.is-featured-media{display:block;width:100%;margin:0 0 14px}
@media(max-width:720px){
  .preview-gallery.is-justified>.justified-row,.p-case-gallery.is-justified>.justified-row{display:block;margin-bottom:10px}
  .preview-gallery.is-justified>.justified-row>figure,.p-case-gallery.is-justified>.justified-row>figure{margin:0 0 10px}
  .preview-gallery.is-justified>.justified-row>figure>img{width:100%;height:auto!important;object-fit:contain}
  .p-case-gallery.is-justified>.justified-row>figure .p-dcell{height:auto!important}
  .p-case-gallery.is-justified>.justified-row>figure .p-dcell img{width:100%;height:auto;object-fit:contain}
}
