@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap');

:root {
    --dark: #333;
    --ligth: #FFF;
}

*{
    margin: 0;
    padding: 0;
}


.images {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-width: 600px;
    max-width: 900px;
    width: calc(100% - 100px);
    height: 400px;
}

.images .image {
    position: relative;
    overflow: hidden;
    min-width: 60px;
    margin: 10px;
    background-size: auto 100%;
    background-position: center;
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.1, 0.1, 0.1, 0.1);
}

.images .image.active {
    flex-grow: 10000;
    transform: scale(1);
    max-width: 600px;
    margin: 0px;
    border-radius: 25px;
    background-size: auto 100%;
}

.images .image.active .label {
    background: var(--dark);
    padding: 10px;
    border-radius: 50px;
    bottom: 15px;
    left: 15px;
    right: 15px;
}

.images .image:not(.active) {
    flex-grow: 1;
    border-radius: 25px;
}

.images .image:not(.active) .label {
    bottom: 10px;
    left: 10px;
}

.images .image:not(.active) .label .info {
   display: none;
}

.images .image .label {
    display: flex;
    position: absolute;
}

.images .image .label .icon {
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--ligth);
    color: var(--dark);
}

.images .image.active .label .info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    color: var(--ligth);
}

.images .image .label .info .main {
    font-weight: bold;
    font-size: 1.2rem;
}

@media screen and (max-width: 718px) {
    .images {
      min-width: 520px;
    }
    .images .image:nth-child(5) {
      display: none;
    }
  }
  @media screen and (max-width: 638px) {
    .images {
      min-width: 440px;
    }
    .images .image:nth-child(4) {
      display: none;
    }
  }
  @media screen and (max-width: 558px) {
    .images {
      min-width: 360px;
    }
    .images .image:nth-child(3) {
      display: none;
    }
  }
  @media screen and (max-width: 478px) {
    .images {
      min-width: 280px;
    }
    .images .image:nth-child(2) {
      display: none;
    }
  }

  .credit{
    position: absolute;
    bottom: 20px;
    color: inherit;
    text-decoration: none;
  }

  .credit.photos {
    left: 20px;
  }

  .credit.chanel {
    right: 20px;
  }
