@use '../../../../styles/font' as *;
@use '../../../../styles/variables' as *;

.user-media {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.user-media-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-media-title {
  margin: 0;
}

.medial-items-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
  padding-bottom: 0;
  flex: 1 1 auto;
  align-content: space-between;

  @media (max-width: $small) {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    grid-template-rows: auto;
    column-gap: 12px;
    row-gap: 0;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    flex: initial;
    align-content: initial;
  }
}

.medial-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;

  @media (max-width: $small) {
    width: 90px;
  }
}

.media-title {
  font-weight: $fw-normal;
  font-size: $fs-medium;
  line-height: 24px;
  color: $dark-grey;
  margin-top: 4px;
  margin-bottom: 0;
}

.media-subtitle {
  font-weight: $fw-normal;
  font-size: 12px;
  line-height: 14px;
  color: $dark-grey;
  opacity: 0.6;
  margin: 0;
}
