.project__title {
  margin-bottom: 30px;
}

.project__card {
  height: 320px;
  display: grid;
  grid-template-columns: 0.65fr 0.35fr;
  gap: 20px;
  background-color: var(--bg-primary-color);
  color: var(--text-primary-color);
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.project__card:hover {
  border-color: var(--bg-tertiary-color);
}

.project__card:first-of-type {
  margin-bottom: 20px;
}

.project__card-content {
  padding: 12px 0 30px 30px;
}

.project__logo {
  max-height: 52px;
  margin-bottom: 20px;
  object-fit: contain;
}

.project__image-container {
  display: flex;
  justify-content: center;
  background-color: var(--bg-tertiary-color);
  overflow: hidden;
}

.project__image {
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .project__card {
    grid-template-columns: 0.6fr 0.4fr;
  }
}

@media (max-width: 992px) {
  .project__card {
    grid-template-columns: 0.55fr 0.45fr;
  }
}

@media (max-width: 640px) {
  .project__card {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
  }

  .project__image-container {
    height: 250px;
  }

  .project__image {
    width: 100%;
    max-height: none;
    object-fit: cover;
  }
}
