.work {
  padding: 200px 40px 140px;
}

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  display: block;
  position: relative;
  width: 1056px;
  height: 719px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 102, 71, 0.5);
  isolation: isolate;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s ease, transform 0.35s ease;
  cursor: pointer;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.is-visible:hover {
  transform: translateY(0) scale(1.05);
}

.project-card + .project-card {
  margin-top: 80px;
}

.project-card--light .project-title {
  color: var(--blue);
}

.project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.05) 55%, transparent 75%);
  z-index: -1;
}

.project-content {
  position: relative;
  height: 100%;
  max-width: 460px;
  padding: 56px 0 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-eyebrow {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 20px;
  color: #FFFFFF;
}

.project-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  color: #FFFFFF;
}

.project-meta {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.project-shot {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  width: 50%;
  border-radius: 12px 0 0 0;
}

.project-shot--panel {
  top: 108px;
  right: 95px;
  bottom: auto;
  width: 316px;
  border-radius: 0;
}

@media (max-width: 1096px) {
  .project-card {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 980px) {
  .project-card {
    min-height: auto;
  }

  .project-content {
    max-width: 100%;
    padding: 40px 24px;
  }

  .project-title {
    font-size: 32px;
  }

  .project-shot {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    border-radius: 12px 12px 0 0;
    margin-top: 24px;
  }

  .project-shot--panel {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: 200px;
    margin: 24px auto 0;
    border-radius: 8px;
  }
}
