/* A consistent photo wall for the company profile and factory tour. */
.workshop-gallery { background: #fff; padding-block: clamp(34px, 5vw, 76px); }
.workshop-gallery > .workshop-gallery-inner { width: min(1450px, calc(100% - clamp(32px, 7vw, 112px))); margin-inline: auto; }
.workshop-gallery-intro { text-align: center; margin: 0 auto clamp(21px, 3vw, 44px); }
.workshop-gallery .workshop-gallery-intro h2 {
  color: #142d3b;
  font-size: clamp(1.8rem, 3.15vw, 3.1rem);
  font-weight: 660;
  letter-spacing: -.018em;
  line-height: 1.2;
  margin: 0;
}
.workshop-gallery-intro p { color: #526574; font-size: clamp(.91rem, 1.27vw, 1.13rem); line-height: 1.7; max-width: 71ch; margin: .75em auto 0; }
.workshop-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 25px); }
.workshop-photo { margin: 0; min-width: 0; }
.workshop-photo a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f5f7; border-radius: 4px; }
.workshop-photo a:focus-visible { outline: 3px solid #17689c; outline-offset: 3px; }
.workshop-photo a img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center var(--workshop-photo-y, 50%); }
.workshop-photo-label {
  position: absolute;
  inset: auto 0 0;
  padding: .6rem .75rem;
  background: #16374bec;
  color: #fff;
  font-size: .87rem;
  line-height: 1.3;
  opacity: 0;
}
.workshop-photo a:is(:hover, :focus-visible) .workshop-photo-label { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .workshop-photo a img, .workshop-photo-label { transition: transform .2s ease, opacity .2s ease; }
  .workshop-photo a:hover img { transform: scale(1.035); }
}
@media (max-width: 850px) {
  .workshop-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.factory-showcase { scroll-margin-top: 150px; }
.factory-showcase + .factory-showcase { padding-top: 0; }
.factory-showcase + .factory-showcase > .workshop-gallery-inner {
  border-top: 1px solid #e0e9ee;
  padding-top: clamp(34px, 5vw, 76px);
}
.factory-showcase #inspection-planning-title, .factory-showcase-details { scroll-margin-top: 150px; }
.factory-showcase .workshop-photo a { cursor: zoom-in; }
.factory-showcase .workshop-photo figcaption {
  margin: .58rem 0 0;
  padding: 0;
  background: none;
  color: #526574;
  font-size: .9rem;
  line-height: 1.5;
  border: 0;
}
.factory-showcase .factory-showcase-panorama { width: min(100%, 960px); margin-inline: auto; }
.factory-showcase .factory-showcase-panorama a { aspect-ratio: 8 / 5; }
.factory-showcase .factory-showcase-panorama img { object-position: center 36%; }
.factory-showcase .factory-showcase-panorama figcaption { text-align: center; }
.factory-showcase-details { margin-top: clamp(24px, 4vw, 44px); }
.factory-showcase-details h3 { text-align: center; color: #142d3b; margin: 0 0 1rem; font-size: clamp(1.16rem, 2vw, 1.5rem); }
.factory-showcase-details .workshop-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.factory-showcase-details .workshop-photo img { object-fit: contain; }
.factory-showcase-actions { text-align: center; margin-top: clamp(18px, 3vw, 32px); }
.factory-showcase-actions .card-link { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
.about-factory-explore .editorial-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .about-factory-explore .editorial-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .factory-showcase, .factory-showcase #inspection-planning-title, .factory-showcase-details { scroll-margin-top: 96px; }
  .factory-showcase .factory-showcase-panorama a { aspect-ratio: 4 / 3; }
  .factory-showcase-details .workshop-photo-grid { grid-template-columns: minmax(0, 1fr); }
}
