.case-template .intech-work .sector-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}

.case-template .intech-gallery-grid {
  grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr));
}

.case-template .intech-gallery-grid img {
  object-fit: contain;
  background: #f1f6fc;
}

.case-template .service-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}

@media (max-width: 760px) {
  .case-template .intech-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  }
}

.case-template .fran-gallery figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f1f6fc;
  border-radius: 14px 34px 14px 14px;
}

.case-template .fran-gallery figure img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

.case-template .fran-gallery figure:first-child img {
  padding: 7%;
}

@media (max-width: 760px) {
  .case-template .fran-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

.case-template :is(.hsf-gallery, .miva-gallery, .skills-gallery, .canon-gallery, .pfizer-gallery) figure {
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px 34px 14px 14px;
}

.case-template :is(.hsf-gallery, .miva-gallery, .skills-gallery, .canon-gallery, .pfizer-gallery) figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}

.healthcare-skills-case .ppc-editorial-bottom figure {
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.healthcare-skills-case .ppc-editorial-bottom figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
