/* Shared presentational component, rendered by the same PHP partial in every theme. */
.portfolio-featured-typologies {
  padding: clamp(40px, 4.5vw, 70px) 16px;
  background: #fff;
}
.portfolio-featured-typologies__inner {
  width: min(100%, 1400px);
  margin-inline: auto;
}
.portfolio-featured-typologies__heading {
  margin: 0 0 28px;
  color: #151515;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
}
.portfolio-featured-typologies__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.portfolio-featured-typologies__card {
  position: relative;
  display: block;
  aspect-ratio: 0.89;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  isolation: isolate;
  background: #233342;
  color: #fff;
  text-decoration: none;
}
.portfolio-featured-typologies__card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(5,17,25,.75) 100%);
  content: "";
  pointer-events: none;
}
.portfolio-featured-typologies__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 350ms ease;
}
.portfolio-featured-typologies__label {
  position: absolute;
  z-index: 2;
  right: 44px;
  bottom: 22px;
  left: 22px;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.portfolio-featured-typologies__arrow {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 23px;
  width: 23px;
  height: 23px;
  color: #fff;
  transition: transform 250ms ease;
}
.portfolio-featured-typologies__card:hover .portfolio-featured-typologies__photo {
  transform: scale(1.055);
}
.portfolio-featured-typologies__card:hover .portfolio-featured-typologies__arrow {
  transform: translateX(4px);
}
.portfolio-featured-typologies__card:focus-visible {
  outline: 3px solid var(--primary, #3e97ff);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .portfolio-featured-typologies { padding: 36px 16px; }
  .portfolio-featured-typologies__heading { margin-bottom: 20px; }
  .portfolio-featured-typologies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portfolio-featured-typologies__label { bottom: 15px; left: 14px; right: 36px; font-size: clamp(18px, 4.5vw, 23px); }
  .portfolio-featured-typologies__arrow { right: 11px; bottom: 15px; width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-featured-typologies__photo,
  .portfolio-featured-typologies__arrow { transition: none; }
}
