
/* CSS Document */

  .fond {
  display: grid;
  place-items: center;
  background-color: var(--overlay);
  transition: background-color 0.8s;
}
       
       .marquee {
  display: grid;
  grid-template-columns: repeat(9,minmax(12vmin,1fr));
  width: 90%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,1) 10%,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0)
  );

  & img {
    --time: 35s;
    position: relative;
    width: 105%;
    aspect-ratio: 1;
    grid-column: 1;
    grid-row: 1;
    object-fit: cover;
    cursor: pointer;
    left: calc(100% * 9);
    animation: marquee var(--time) linear infinite;

    &:nth-of-type(1) { animation-delay: calc((var(--time) / 10) * (10 - 1) * -1); }
    &:nth-of-type(2) { animation-delay: calc((var(--time) / 10) * (10 - 2) * -1); }
    &:nth-of-type(3) { animation-delay: calc((var(--time) / 10) * (10 - 3) * -1); }
    &:nth-of-type(4) { animation-delay: calc((var(--time) / 10) * (10 - 4) * -1); }
    &:nth-of-type(5) { animation-delay: calc((var(--time) / 10) * (10 - 5) * -1); }
    &:nth-of-type(6) { animation-delay: calc((var(--time) / 10) * (10 - 6) * -1); }
    &:nth-of-type(7) { animation-delay: calc((var(--time) / 10) * (10 - 7) * -1); }
    &:nth-of-type(8) { animation-delay: calc((var(--time) / 10) * (10 - 8) * -1); }
    &:nth-of-type(9) { animation-delay: calc((var(--time) / 10) * (10 - 9) * -1); }
    &:nth-of-type(10) { animation-delay: calc((var(--time) / 10) * (10 - 10) * -1); }
  }
}

@keyframes marquee {
  to {
    left: -100%;
  }
}

dialog {
  border: none;
  outline: none;
  margin: auto;
  border-radius: 0.25rem;
  background-color: transparent;

  &::backdrop { display: none; }

  & img {
    width: min(800px,80vw);
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
  }
}  

