/* ProStoly v3.6: photographs are full-frame, equal-size tiles. */
#manufacture .manufacture-photos.manufacture-works-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, auto) !important;
  align-content: center;
  justify-self: center;
  gap: 12px !important;
  width: 100%;
  max-width: 490px;
  min-height: 0 !important;
  margin: 0 auto;
}
#manufacture .manufacture-works-grid .manufacture-photo-card {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0 !important;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  grid-column: auto !important;
  grid-row: auto !important;
  overflow: hidden;
  padding: 7px;
  margin: 0;
  border-radius: 14px;
  background: #f1f5f7;
  border: 1px solid rgba(219, 232, 239, .8);
  box-shadow: 0 12px 29px rgba(0, 0, 0, .08);
}
#manufacture .manufacture-works-grid .manufacture-photo-card img {
  position: static !important;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  filter: none;
  transform: none !important;
}
/* Keep the hero slideshow from clipping tall and wide production photographs. */
#heroMachine .ps-gallery-slide {
  background: #e9eff2;
}
#heroMachine .ps-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}
#heroMachine .ps-gallery-viewport:before { z-index: 0; }
#heroMachine .ps-gallery-slide { z-index: 1; }
@media (max-width: 760px) {
  #manufacture .manufacture-works-grid {max-width: 430px; gap: 8px !important;}
  #manufacture .manufacture-works-grid .manufacture-photo-card {border-radius: 11px; padding: 5px;}
}

.production-real-gallery .production-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 14px !important;
}
.production-real-gallery .production-gallery-grid .production-gallery-item {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  padding: 7px;
  box-sizing: border-box;
  background: #f2f6f8;
  border: 1px solid #e2eaf0;
  border-radius: 14px;
}
.production-real-gallery .production-gallery-grid .production-gallery-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.production-real-gallery .production-gallery-grid .production-gallery-item img {
  position: static;
  height: 100%;
  width: 100%;
  object-fit: contain !important;
  object-position: center center;
  transform: none !important;
}
@media(max-width: 850px){.production-real-gallery .production-gallery-grid {grid-template-columns: repeat(3,minmax(0,1fr)) !important;}}
@media(max-width: 560px){.production-real-gallery .production-gallery-grid {grid-template-columns: repeat(2,minmax(0,1fr)) !important;gap: 9px !important;}}
