.factory-photographs .factory-photo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: -10px 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line, #dbe5ec);
}

.factory-photographs .factory-photo-nav a {
  color: var(--blue, #005ab8);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.factory-photographs .factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px 24px;
}

.factory-photographs .factory-photo {
  min-width: 0;
  margin: 0;
  scroll-margin-top: 120px;
}

.factory-photographs .factory-photo--lead {
  grid-column: 1 / -1;
}

.factory-photographs .factory-photo a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--mist, #eef5f8);
  cursor: zoom-in;
}

.factory-photographs .factory-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.factory-photographs .factory-photo--lead a {
  max-width: 960px;
  margin: 0 auto;
}

.factory-photographs .factory-photo figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink, #102d45);
}

.factory-photographs .factory-photo--lead figcaption {
  max-width: 960px;
  margin: 12px auto 0;
  font-size: 16px;
}

.factory-photographs .factory-photo-contact {
  display: inline-block;
  margin-top: 32px;
  color: var(--blue, #005ab8);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 1000px) {
  .factory-photographs .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .factory-photographs .factory-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .factory-photographs .factory-photo-nav {
    gap: 10px 20px;
  }

  .factory-photographs .factory-photo figcaption,
  .factory-photographs .factory-photo--lead figcaption {
    font-size: 13px;
  }
}
