.promoas-portfolio {
  --promoas-red: #e51620;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(calc(100% - 48px), 1380px);
  margin: 0 auto;
  font-family: "DM Sans", Arial, sans-serif;
}

.promoas-portfolio__item {
  min-height: 420px;
  position: relative;
  display: block;
  overflow: hidden;
  background: #171717;
  color: #fff;
  text-decoration: none;
}

.promoas-portfolio__item:link,
.promoas-portfolio__item:visited,
.promoas-portfolio__item:hover,
.promoas-portfolio__item:focus,
.promoas-portfolio__item:active {
  color: #fff !important;
  text-decoration: none !important;
}

.promoas-portfolio__media,
.promoas-portfolio__image {
  width: 100%;
  height: 100%;
  display: block;
}

.promoas-portfolio__image {
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}

.promoas-portfolio__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #555;
  font: 800 clamp(42px, 6vw, 86px) "Manrope", Arial, sans-serif;
  letter-spacing: -.08em;
}

.promoas-portfolio__placeholder span {
  color: var(--promoas-red);
}

.promoas-portfolio__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  gap: 22px;
  padding: 34px;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .88));
}

.promoas-portfolio__number {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.promoas-portfolio__content {
  display: block;
  flex: 1;
}

.promoas-portfolio__content strong,
.promoas-portfolio__content small {
  display: block;
}

.promoas-portfolio__content strong {
  font: 700 25px/1.2 "Manrope", Arial, sans-serif;
  letter-spacing: -.03em;
  color: #fff !important;
  text-decoration: none !important;
}

.promoas-portfolio__content small {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  opacity: 0;
  transition: .3s ease;
  text-decoration: none !important;
}

.promoas-portfolio__arrow {
  width: 52px;
  height: 52px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  font-size: 22px;
  transition: .25s ease;
}

.promoas-portfolio__item:hover .promoas-portfolio__image {
  transform: scale(1.035);
  filter: brightness(.72);
}

.promoas-portfolio__item:hover .promoas-portfolio__content small {
  max-height: 30px;
  margin-top: 7px;
  opacity: 1;
}

.promoas-portfolio__item:hover .promoas-portfolio__arrow {
  border-color: var(--promoas-red);
  background: var(--promoas-red);
  transform: rotate(8deg);
}

.promoas-portfolio__empty {
  padding: 20px;
  border: 1px dashed #bbb;
  color: #777;
  text-align: center;
}

@media (max-width: 760px) {
  .promoas-portfolio {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .promoas-portfolio__item {
    min-height: 340px;
  }

  .promoas-portfolio__overlay {
    padding: 24px;
  }

  .promoas-portfolio__content strong {
    font-size: 21px;
  }

  .promoas-portfolio__content small {
    max-height: 30px;
    margin-top: 7px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promoas-portfolio *,
  .promoas-portfolio *::before,
  .promoas-portfolio *::after {
    transition-duration: .01ms !important;
  }
}
