.image-container {
    position: relative;
    display: inline-block;
    width: 5rem;
}
  
.image-container img {
    display: block;
    width: 93%;
    height: auto;
}
  
.centered-text {
    position: absolute;
    top: 49%;
    left: 49%;
    transform: translate(-50%, -55%);
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
}

.nowrap {
  flex-wrap: nowrap;
  -webkit-flex-wrap: nowrap;
  padding-right: 1px;
  padding-left: 1px;
}

 .mediaitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mediaitem-text {
    font-size: 0.8rem;
  } 

  .mediaitem-sm {
    font-size: 0.6rem;
  }

  .mediaitem-tag {
    align-content: end;
    max-height: 2.8rem;
    position: absolute;
    margin-top: 10rem;  
  }
  
  .mediaitem p {
    margin: 0.5rem;
  }

  .mediaitem hr {
    margin-top: 0;
    margin-bottom: 0.2rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
    width: 18rem;
  }

  .mediaitem audio {
    height: 2.5rem;;
    width: 17rem;
    max-height: 2.5rem;
    max-width: 17rem;
    margin: 0;
    padding: 0 0 0 0;
  }
  
  .mediaitem:hover,
  .mediaitem:active {
    transform: scale(1.1);
    background-color: #390281;
    color: white;
  }
  
  .mediaitem img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .mediaitem h3 {
    margin: 0.25rem 0;
  }
  
  .mediaitem time {
    color: #666666;
    margin: 0.25rem;
    font-style: italic;
    font-size: 0.85rem;
  }
  
  .mediaitem:hover time,
  .mediaitem:active time {
    color: white;
  }

  .mediaitem {
    text-decoration: none;
    color: black;
    transition: all 0.2s ease;
    padding: 1rem;
    height: 13rem;
    width: 20rem;
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    background-color: #ece4f7;
  }
