/* AR-HOUSE：画像を整理（13枚） */
#main-content.project-gallery.gallery-13 .gallery-grid {
  /* 13枚用：最後の空き行を作らない */
  grid-template-rows:
    auto
    minmax(46vh, 520px)
    minmax(32vh, 380px)
    minmax(22vh, 280px)
    minmax(32vh, 380px);
}
#main-content.project-gallery.gallery-13 .gallery-cell.pos-1 {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 1920 / 2400; /* 元データ比率 */
}
#main-content.project-gallery.gallery-13 .gallery-cell.pos-1 img {
  object-position: 50% 50%;
}
/* 1枚目以外の外観（Facade）：全体を見せないトリミング */
#main-content.project-gallery.gallery-13 .gallery-cell.pos-3 img {
  transform: translateZ(0) scale(1.7);
  transform-origin: center;
  object-position: 62% 52%;
}
/* 最後のカット（袖壁）：右端寄せで切り取る */
#main-content.project-gallery.gallery-13 .gallery-cell.pos-13 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0) scale(2.6);
  transform-origin: right center;
  object-position: 130% 56%;
}
@media (max-width: 1024px) {
  #main-content.project-gallery.gallery-13 .gallery-grid {
    grid-template-rows:
      auto
      minmax(44vh, 380px)
      minmax(36vh, 320px)
      minmax(30vh, 280px)
      minmax(28vh, 260px)
      minmax(28vh, 260px)
      minmax(40vh, 360px)
      minmax(32vh, 300px);
  }
  #main-content.project-gallery.gallery-13 .gallery-cell.pos-1 {
    grid-column: 1 / -1;
  }
}
