.csmc-user-gallery {
  width: 100%;
  max-width: 100%;
}

.csmc-user-gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--csmc-gallery-columns, 4), minmax(0, 1fr));
  gap: 1.25rem;
}

.csmc-user-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 169, 74, 0.58);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42, 20, 95, 0.94), rgba(7, 26, 66, 0.96));
  box-shadow: 0 8px 24px rgba(3, 9, 32, 0.28);
}

.csmc-user-card__link {
  display: block;
  height: 100%;
  color: #f8fbff;
  text-decoration: none;
}

.csmc-user-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ececec;
}

.csmc-user-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem 1rem;
}

.csmc-user-card__name {
  font-size: 1.05rem;
  line-height: 1.25;
}

.csmc-user-card__role {
  color: #7ce3fc;
  font-size: 0.82rem;
  opacity: 0.72;
}

.csmc-user-card__bio {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.csmc-user-card__view {
  color: #d6a94a;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

.csmc-user-card__link:hover .csmc-user-card__view,
.csmc-user-card__link:focus .csmc-user-card__view {
  opacity: 1;
  text-decoration: underline;
}

.csmc-user-card__link:hover,
.csmc-user-card__link:focus {
  color: #fff;
}

.csmc-public-user-profile {
  width: 100%;
  max-width: 100%;
}

.csmc-public-user-profile__header {
  display: grid;
  grid-template-columns: minmax(150px, 25%) minmax(0, 75%);
  gap: 1.5rem;
  align-items: start;
}

.csmc-public-user-profile__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.csmc-public-user-profile__name {
  margin-top: 0;
}

.csmc-public-user-profile__role {
  opacity: 0.75;
}

.csmc-public-user-profile__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.csmc-public-user-profile__bio,
.csmc-public-user-profile__answers,
.csmc-public-user-profile__programs {
  margin-top: 1.75rem;
}

.csmc-public-user-profile__answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.csmc-public-user-profile__answer {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(125, 125, 125, 0.2);
  border-radius: 8px;
}

.csmc-public-user-profile__answer h3 {
  margin-top: 0;
  font-size: 1rem;
}

.csmc-public-user-profile__answer > div > :last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .csmc-user-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .csmc-user-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csmc-public-user-profile__header {
    grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr);
    gap: 0.9rem;
  }

  .csmc-public-user-profile__answers-grid {
    grid-template-columns: 1fr;
  }
}
