.media-items {
    margin-top: 80px;
    margin-bottom: 160px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: clamp(320px, 90%, 1080px);
}

.media-item {
    display: flex;
    flex: 1 0 21%;
    max-width: 400px;
    margin: 8px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.media-item-2 {
    display: flex;
    flex: 1 0 21%;
    max-width: 400px;
    margin: 8px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.media-item-3 {
    display: flex;
    flex: 1 0 21%;
    max-width: 400px;
    margin: 8px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #00000060;
}

.yt {
    position: relative;
    display: block;
    width: 100%; /* width of iframe wrapper */
    height: 0;
    margin: auto;
    padding: 0% 0% 56.25%; /* 16:9 ratio */
    overflow: hidden;
  }

  .yt iframe {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

.media-item img, .media-item-2 img {
    width: 100%;
    filter: grayscale(100%);

    animation-timing-function: linear;
    animation-direction: alternate;
}

.media-item:hover img, .media-item-2:hover img {
    filter: grayscale(0%);
}

.media-item:active img, .media-item-2:active img {
    filter: grayscale(0%);
}

.media-item-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nummers {
    width: 320px;
    text-align: left;
    align-items:start;
}

.nummers a {
    margin: 12px;
}

.nummers i {
    margin-right: 16px;
    color: #654ca2
}

.nummers a:hover i {
    color: #e52051;
}

/* ANIMATIONS */
@keyframes move_image {
    0% { transform-origin: 50% 80%;}
    50% { transform-origin: 20% 20%;}
    100% { transform-origin: 50% 80%;}
}

@keyframes move_image_2 {
    0% { transform-origin: 10% 60%;}
    50% { transform-origin: 90% 40%;}
    100% { transform-origin: 10% 60%;}
}

@keyframes move_image_3 {
    0% { transform-origin: 75% 30%;}
    50% { transform-origin: 45% 80%;}
    0% { transform-origin: 75% 30%;}
}

@keyframes move_image_4 {
    0% { transform-origin: 80% 80%;}
    50% { transform-origin: 50% 90%;}
    100% { transform-origin: 80% 80%;}
}

@keyframes move_image_5 {
    0% { transform-origin: 15% 10%;}
    50% { transform-origin: 90% 5%;}
    100% { transform-origin: 15% 10%;}
}

@keyframes move_image_6 {
    0% { transform-origin: 89% 43%;}
    50% { transform-origin: 50% 20%;}
    0% { transform-origin: 89% 43%;}
}

.media-item:nth-child(1) img {animation: move_image_3 30s infinite; transform: scale(1.2);}
.media-item:nth-child(2) img {animation: move_image_2 30s infinite; transform: scale(1.3);}
.media-item:nth-child(3) img {animation: move_image 30s infinite; transform: scale(1.3);}
.media-item:nth-child(4) img {animation: move_image_3 30s infinite; transform: scale(1.15);}
.media-item:nth-child(5) img {animation: move_image_2 30s infinite; transform: scale(1.3);}
.media-item:nth-child(6) img {animation: move_image 30s infinite; transform: scale(1.2);}
.media-item:nth-child(7) img {animation: move_image_2 30s infinite; transform: scale(1.2);}
.media-item:nth-child(8) img {animation: move_image_3 30s infinite; transform: scale(1.15);}

.media-item-2:nth-child(8) img {animation: move_image_6 30s infinite; transform: scale(1.2);}
.media-item-2:nth-child(7) img {animation: move_image_5 30s infinite; transform: scale(1.3);}
.media-item-2:nth-child(6) img {animation: move_image_4 30s infinite; transform: scale(1.3);}
.media-item-2:nth-child(5) img {animation: move_image_6 30s infinite; transform: scale(1.15);}
.media-item-2:nth-child(4) img {animation: move_image_5 30s infinite; transform: scale(1.3);}
.media-item-2:nth-child(3) img {animation: move_image_4 30s infinite; transform: scale(1.2);}
.media-item-2:nth-child(2) img {animation: move_image_5 30s infinite; transform: scale(1.2);}
.media-item-2:nth-child(1) img {animation: move_image_6 30s infinite; transform: scale(1.15);}

/* RESPONSIVE TOGGLE */
@media only screen and (min-width: 981px) {
    .media-item {
        flex: 1 0 31%;
    }
    .media-item-2 {
        flex: 1 0 31%;
    }
    .media-item-3 {
        flex: 1 0 31%;
    }
}

@media only screen and (max-width: 980px) {
    .media-item {
        flex: 1 0 42%;
    }
    .media-item-2 {
        flex: 1 0 42%;
    }
    .media-item-3 {
        flex: 1 0 42%;
    }
}