@use '~styles/global.scss';

.manyMediaContainer {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1.4rem;

  align-items: start;
  justify-content: start;

  .imageGroup {
    width: 100%;

    position: relative;
    aspect-ratio: 1 / 1;

    background-color: global.$tertiaryWhite;

    &:hover {
      .removeButton {
        opacity: 1;
      }
    }

    .imageContainer {
      width: 100%;
      height: 100%;
    }

    .removeButton {
      width: 2.2rem;
      height: 2.2rem;

      color: global.$tertiaryPurple;
      text-align: center;
      font-size: 1.4rem;

      position: absolute;
      top: 0.5rem;
      right: 0.5rem;

      background-color: global.$primaryWhite;
      opacity: 0;
      border-radius: 50%;

      transition: opacity 0.3s ease;

      cursor: pointer;

      &:hover {
        background-color: global.$primaryPurple;
      }
    }

    .imageOverlay {
      width: 100%;
      height: 100%;

      position: absolute;
      top: 0;
      left: 0;

      background-color: rgba(0, 0, 0, 0.4);
      opacity: 0;

      transition: opacity 0.3s ease;

      .removeButton {
        opacity: 1;
      }
    }
  }
}
