.about-gallery {
  background: #fff;
}

.about-gallery__heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.about-gallery__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #128f4d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-gallery__heading h2 {
  margin: 0;
  color: #0b0d26;
  font-size: 44px;
  line-height: 1.12;
}

.about-gallery__factory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 18px;
}

.about-gallery__support-grid {
  display: contents;
}

.about-gallery__factory-grid .about-gallery__item {
  min-height: 0;
}

.about-gallery__factory-grid .about-gallery__item img {
  min-height: 0;
  aspect-ratio: auto;
}

.about-gallery__support-grid .about-gallery__item:last-child {
  grid-column: span 2;
}

.about-gallery__certificate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.about-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #eef3f2;
  color: #fff;
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 18px 48px rgba(11, 13, 38, 0.08);
}

.about-gallery__item:focus {
  outline: 3px solid #82bf2f;
  outline-offset: 3px;
}

.about-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.about-gallery__item:hover img {
  transform: scale(1.04);
}

.about-gallery__item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 18px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(11, 13, 38, 0) 0%, rgba(11, 13, 38, 0.78) 100%);
}

.about-gallery__item--lead {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 0;
}

.about-gallery__item--lead img {
  min-height: 0;
  aspect-ratio: auto;
  object-position: 40% center;
}

.about-gallery__item--lead span {
  padding: 68px 28px 26px;
  font-size: 22px;
}

.about-gallery__item--certificate {
  min-height: 232px;
  padding: 14px;
  background: #f7f9f8;
  border: 1px solid #e4ece9;
  box-shadow: 0 14px 34px rgba(11, 13, 38, 0.06);
}

.about-gallery__item--certificate img {
  min-height: 170px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.about-gallery__item--certificate span {
  position: static;
  display: block;
  min-height: 48px;
  padding: 12px 2px 0;
  color: #2d3440;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  background: transparent;
}

.about-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.about-gallery-lightbox.is-open {
  display: flex;
}

.about-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 11, 20, 0.86);
}

.about-gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
}

.about-gallery-lightbox figure {
  margin: 0;
  text-align: center;
}

.about-gallery-lightbox__media {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.about-gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.about-gallery-lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}

.about-gallery-lightbox__close,
.about-gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0b0d26;
  cursor: pointer;
}

.about-gallery-lightbox__close {
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
}

.about-gallery-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.about-gallery-lightbox__nav > i {
  display: block;
  width: 1em;
  height: 1em;
  font-size: 26px;
  line-height: 1;
}

.about-gallery-lightbox__nav--prev {
  left: -64px;
}

.about-gallery-lightbox__nav--next {
  right: -64px;
}

@media (max-width: 991px) {
  .about-gallery__heading h2 {
    font-size: 36px;
  }

  .about-gallery__factory-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 18px;
  }

  .about-gallery__support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .about-gallery__factory-grid .about-gallery__item {
    min-height: 180px;
  }

  .about-gallery__factory-grid .about-gallery__item img {
    min-height: 180px;
    aspect-ratio: 4 / 3;
  }

  .about-gallery__item--lead {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .about-gallery__item--lead img {
    min-height: 0;
    aspect-ratio: auto;
  }

  .about-gallery__support-grid .about-gallery__item:last-child {
    grid-column: auto;
  }

  .about-gallery__certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-gallery-lightbox__nav--prev {
    left: 10px;
  }

  .about-gallery-lightbox__nav--next {
    right: 10px;
  }
}

@media (max-width: 767px) {
  .about-gallery {
    padding-bottom: 60px;
  }

  .about-gallery__heading {
    margin-bottom: 24px;
  }

  .about-gallery__heading h2 {
    font-size: 30px;
  }

  .about-gallery__support-grid,
  .about-gallery__certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .about-gallery__item,
  .about-gallery__item img {
    min-height: 142px;
  }

  .about-gallery__item--lead,
  .about-gallery__item--lead img {
    min-height: 0;
  }

  .about-gallery__item--lead {
    aspect-ratio: 4 / 3;
  }

  .about-gallery__item--certificate {
    min-height: 214px;
    padding: 10px;
  }

  .about-gallery__item--certificate img {
    min-height: 142px;
  }

  .about-gallery__item span {
    padding: 34px 12px 12px;
    font-size: 12px;
  }

  .about-gallery__item--lead span {
    padding: 50px 18px 18px;
    font-size: 18px;
  }

  .about-gallery-lightbox {
    padding: 18px;
  }

  .about-gallery-lightbox__close {
    top: -10px;
    right: -10px;
  }

  .about-gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .about-gallery-lightbox__nav > i {
    font-size: 22px;
  }
}
