@charset "UTF-8";

.slide {
    position: relative;
    width: calc(var(--photo-width) / 5 * 8);
    height: calc(var(--photo-width) / 5 * 4);
    overflow: hidden;
    margin: auto;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}

.slide img {
    display: block;
    position: absolute;
    width: inherit;
    height: inherit;
    visibility: hidden;
    border-radius: 4px;
    animation: slider_fade 20s infinite ease;
}

.slide img:nth-of-type(1) {
    animation-delay: 0s;
}

.slide img:nth-of-type(2) {
    animation-delay: 5s;
}

.slide img:nth-of-type(3) {
    animation-delay: 10s;
}

.slide img:nth-of-type(4) {
    animation-delay: 15s;
}

@keyframes slider_fade {
    0% { opacity: 0; visibility: visible; }
    12.5% { opacity: 1; }
    25% { opacity: 1; }
    37.5% { opacity: 0; }
    100% { opacity: 0; }
}

@media screen and (max-width: 480px) {
    .slide {
        width: 50vw;
        height: 25vw;
    }
}
