.single-cases-images-section {
  margin-top: clamp(20px, 10.6122px + 2.0408vw, 40px);
  margin-bottom: clamp(20px, 10.6122px + 2.0408vw, 40px);
}

.single-cases-images-section:first-child {
  margin-top: clamp(32px, 16.9796px + 3.2653vw, 64px);
}

.single-cases-images-section:last-child {
  margin-bottom: clamp(32px, 16.9796px + 3.2653vw, 64px);
}

.single-cases-images-section .section-title {
  padding-top: clamp(32px, 16.9796px + 3.2653vw, 64px);
  padding-bottom: 24px;
  margin-bottom: 24px;
  font-family: Satoshi-Bold, sans-serif;
  font-size: clamp(40px, 32.4898px + 1.6327vw, 56px);
  font-style: normal;
  font-weight: 700;
  font-feature-settings: 'liga' off;
  line-height: 1.14;
  color: #f0f3fa;
  text-transform: capitalize;
  border-bottom: 1px solid rgb(240 243 250 / 16%);
}

.single-cases-images-section .section-subtitle-wrap {
  display: flex;
  gap: 16px;
  margin-top: clamp(30px, 6.5306px + 5.102vw, 80px);
  margin-bottom: 40px;
}

.single-cases-images-section .section-subtitle {
  flex: 1 1 50%;
  min-width: 200px;
  font-family: Satoshi-Bold, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  font-feature-settings: 'liga' off;
  line-height: 1.5; /* 150% */
  color: var(--e-global-color-text);
  text-transform: uppercase;
  letter-spacing: 0.64px;
}

.single-cases-images-section .section-text-wrap {
  flex: 1 1 50%;
}

.single-cases-images-section .section-text {
  max-width: 632px;
  padding: 0;
  margin: 0 0 32px;
  font-family: Satoshi-Regular, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.44; /* 144.444% */
  color: rgb(240 243 250 / 90%);
}

.single-cases-images-section .section-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  aspect-ratio: 1760 / 911;

  /* aspect-ratio: 1280 / 911; */
}

.single-cases-images-section .section-image-wrap {
  aspect-ratio: 395 / 259;
  overflow: hidden;
  border-radius: 12px;
}

.single-cases-images-section .section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Специфічні стилі для різної кількості зображень */

.single-cases-images-section .grid-1 .section-image-wrap {
  flex: 1 1 auto;
  height: 100%;
}

.single-cases-images-section .grid-2 {
  aspect-ratio: 1280 / 673;
}

.single-cases-images-section .grid-2 .section-image-wrap {
  flex: 1 1 40%;
}

.single-cases-images-section .grid-3 .section-image-wrap:first-child {
  flex: 1 1 100%;
}

.single-cases-images-section .grid-3 .section-image-wrap,
.single-cases-images-section .grid-4 .section-image-wrap,
.single-cases-images-section .grid-5 .section-image-wrap,
.single-cases-images-section .grid-6 .section-image-wrap,
.single-cases-images-section .grid-7 .section-image-wrap,
.single-cases-images-section .grid-8 .section-image-wrap {
  flex: 1 1 40%;
}

.single-cases-images-section .grid-9 .section-image-wrap {
  flex: 1 1 30%;
}

@media screen and (max-width: 768px) {
  .single-cases-images-section .section-subtitle-wrap {
    flex-direction: column;
  }

  .single-cases-images-section .section-subtitle,
  .single-cases-images-section .section-text-wrap {
    flex: 1 1 auto;
  }
}
