.collabs {
  padding: clamp(40px, 6vw, 80px) clamp(18px, 6vw, 90px);
  font-family: var(--font-body);
  color: var(--text);
}

.collabs__wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.collabs__header {
  margin-bottom: 2.5rem;
}

.collabs__title {
  font-size: xx-large;
}

.collabs__intro {
  font-size: clamp(0.98rem, 0.3vw + 0.95rem, 1.08rem);
  line-height: 1.75;
  margin: 0 0 22px 0;
  text-align: justify;
  color: var(--text);
}

.collabs__grid {
  display: grid;
  gap: 1.1rem;
}

.collabCard {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, grid-template-columns 0.35s ease;
}

.collabCard:hover,
.collabCard:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  grid-template-columns: 1fr 400px;
}

.collabCard__content {
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.collabCard__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--text);
}

.collabCard__text {
  text-align: justify;
  max-height: 0;
  margin: 0;
  padding-bottom: 10px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease, transform 0.25s ease;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  hyphens: auto;
}

p{
  color: color-mix(in srgb, var(--text) 82%, transparent);
  text-align: justify;
  hyphens: auto;
}

.collabCard:hover .collabCard__text,
.collabCard:focus-within .collabCard__text {
  max-height: 999px;
  opacity: 1;
  margin-top: 0.7rem;
  transform: translateY(0);
}

.collabCard__image {
  width: 100%;
  height: 240px;
  min-height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, object-fit 0.35s ease, padding 0.35s ease, background-color 0.35s ease;
}

.collabCard:hover .collabCard__image,
.collabCard:focus-within .collabCard__image {
  object-fit: contain;
  transform: scale(1.02);
  padding: 0px;
  background-color: transparent;
}

@media (max-width: 760px) {
  .collabCard,
  .collabCard:hover,
  .collabCard:focus-within {
    grid-template-columns: 1fr;
  }

  .collabCard__image {
    max-height: 220px;
  }
}

