.other-works {
  margin-top: 100px;
}

.other-works h2 {
  margin: 0 0 60px;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.other-works__grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.other-works__card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.other-works__card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.other-works__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.other-works__card:hover .other-works__card-img img {
  transform: scale(1.06);
}

.other-works__card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .other-works {
    margin-top: 56px;
  }

  .other-works h2 {
    margin-bottom: 32px;
    font-size: 24px;
  }

  .other-works__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .other-works__card {
    flex: none;
    gap: 20px;
  }

  .other-works__card-img {
    height: 350px;
    aspect-ratio: auto;
  }
}

/* tablet and mobile: no text smaller than 16px */
@media (max-width: 1024px) {
  .other-works__card-title {
    font-size: 16px;
  }
}
