/* One shared banner, independent of home/catalog placement. */
.ov-project-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 32%);
  gap: var(--spacing-24);
  min-height: 448px;
  aspect-ratio: 3 / 1;
  padding: var(--spacing-24);
  overflow: hidden;
  border-radius: var(--radius-32);
  background: var(--color-bg-page);
}
.ov-home-project__visual {
  display: flex;
  align-items: center;
  min-width: 0;
}
.ov-home-project__photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.ov-home-project__title {
  width: 100%;
  max-width: 405px;
  margin: 0;
}
.ov-home-project__title img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.ov-home-project__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-48);
  min-width: 0;
  padding: var(--spacing-24);
  border-radius: var(--radius-32);
  background: var(--color-bg-page);
}
.ov-home-project__percentage {
  margin: 0;
  font-size: calc(2 * var(--font-size-h1));
  line-height: calc(2 * var(--line-height-h1) + var(--spacing-16));
  font-variant-numeric: tabular-nums;
}
.ov-home-project__percentage [data-ov-project-counter] {
  display: block;
  width: max-content;
  min-width: 2.5ch;
  font-weight: var(--font-weight-medium);
}
.ov-home-project__description {
  margin: 0;
}
@media (max-width: 767px) {
  .ov-project-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
    border-radius: var(--radius-24);
  }
  .ov-home-project__visual {
    position: relative;
    isolation: isolate;
    aspect-ratio: 3 / 2;
    padding: var(--spacing-24);
  }
  .ov-home-project__copy {
    gap: var(--spacing-24);
    border-radius: 0;
  }
}
@media (max-width: 359px) {
  .ov-project-banner .ov-button {
    --ov-button-size: var(--font-size-field);
    --ov-button-line: var(--line-height-field);
    padding-inline: var(--spacing-16);
  }
}
