/*
 * Галерея: 3 колонки, высота боковых 3×800+2×18 = 2436px.
 * Центр: фото 2 и 9 — одна высота; фото 4 и 7 — чуть ниже 800, чтобы в сумме с зазорами = 2436.
 * 2×471 + 2×720 + 3×18 = 2436
 */

.pokiza-about-gallery {
  position: absolute;
  top: 5960px;
  left: 96px;
  width: 1726px;
  margin: 0;
  padding: 0;
  z-index: 19;
  box-sizing: border-box;
}

.pokiza-about-gallery__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  width: 100%;
}

.pokiza-about-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
}

/* Планшет и десктоп: ровно по низу с 1/3 колонками; в центре — свои высоты */
@media (min-width: 601px) {
  .pokiza-about-gallery__inner {
    align-items: stretch;
  }

  .pokiza-about-gallery__col {
    height: 100%;
  }

  /* Производство, фото 4 и 7: чуть ниже остальных портретов (800) */
  .pokiza-about-gallery__col:nth-child(2) .pokiza-about-gallery__figure--tall {
    height: 720px;
  }

  /* Производство, фото 2 и 9: одна и та же высота */
  .pokiza-about-gallery__col:nth-child(2) .pokiza-about-gallery__figure--wide {
    flex: 0 0 auto;
    height: 471px;
    aspect-ratio: unset;
  }
}

.pokiza-about-gallery__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e8e4e0;
  box-shadow: 0 4px 24px rgba(47, 12, 8, 0.08);
}

.pokiza-about-gallery__figure--tall {
  flex: 0 0 auto;
  height: 800px;
}

.pokiza-about-gallery__figure--tall img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pokiza-about-gallery__figure--wide {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.pokiza-about-gallery__figure--wide img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
