.videolist {
    display: grid;
    grid-template-columns: auto auto auto auto;
}

@media screen and (max-width: 600px) {
    .videolist { grid-template-columns: auto; }
}  

@media only screen and (min-width: 600px) {
    .videolist { grid-template-columns: auto; }
}  

@media only screen and (min-width: 768px) {
    .videolist { grid-template-columns: auto auto auto; }
}  

@media only screen and (min-width: 1024px) {
    .videolist { grid-template-columns: auto auto auto auto; }
} 

.video {
    padding : 20px;
    display: inline-grid;
    align-self: start; 
    position: relative;
}

.video a {
    text-decoration: none;
    margin: auto;
    width: 250px;
}

.video .thumbnail {
    position: relative;
    margin: auto;
    cursor: pointer;
}

.video .thumbnail img {
    width: 250px;
    display: block;
}

.video .thumbnail .time {
    color: var(--white);
    position: absolute;
    bottom:10px;
    right:10px;
    background-color: var(--gray);
}

.video .title, .video .taglist {
    color: var(--white);
    font-weight: bold;
    display: inline;
    width: 250px;
    margin: auto;
    margin-top: 5px;
}

.tag {
    color: var(--white);
    background-color: var(--gray);
    padding : 3px 6px;
    border-radius: 10px;
    margin: 2px;
    float: left;
    font-weight: normal;
}

.tagfilter {
    padding : 20px 20px 0 20px;
    text-align: center;
}

.tagfilter .tag .close {
    cursor: pointer;
    color: var(--white);
}

.more {
    color: var(--pink);
    background-color: var(--gray);
    margin: 20px 20%;
    padding: 5px;
    text-align: center;
    cursor: pointer;
}

#selected.tag {
    background-color: red;
}

.bothimg {
    position: relative;
}

.hover-img {
    opacity: 0;
    display: block;
    position: absolute;
    width: 250px;
    top: 20px;
}

.hover-img:hover {
    opacity: 100;
}
