/* Home · section 04: real projects shared with /proyectos/. */
.page-home .featured-projects__grid {
  align-items: stretch;
}

.page-home .featured-projects .portfolio-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: #160a2d;
}

.page-home .featured-projects .portfolio-card.project-card--large {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: 0;
}

.page-home .featured-projects .project-card__media {
  position: relative;
  inset: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0910;
}

.page-home .featured-projects .project-card__media picture,
.page-home .featured-projects .project-card__media img:not(.project-card__orbit) {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .featured-projects .project-card__media img:not(.project-card__orbit) {
  object-fit: contain;
  object-position: center;
}

.page-home .featured-projects .project-card__shade {
  background: linear-gradient(180deg, transparent 65%, rgba(11, 9, 16, .32) 100%) !important;
  pointer-events: none;
}

.page-home .featured-projects .project-card__content {
  position: relative;
  inset: auto;
  flex: 1;
  background: linear-gradient(145deg, #2f0b68 0%, #1a0a37 100%);
}

.page-home .featured-projects .project-card:hover .project-card__media img:not(.project-card__orbit) {
  transform: scale(1.015);
}

@media (max-width: 900px) {
  .page-home .featured-projects__grid {
    grid-template-columns: 1fr;
  }

  .page-home .featured-projects .portfolio-card.project-card--large {
    grid-column: auto;
  }
}
