.pic-ctn {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 1em auto;
    overflow: hidden;
}

@keyframes display {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10%,
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    30%,
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.pic-ctn > img,
.pic-ctn > figure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 13px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    opacity: 0;
    animation: display 15s infinite;
    overflow: hidden;
    animation-play-state: running;
}

.pic-ctn:hover > * {
    animation-play-state: paused;
}

.pic-ctn figure.use-case:hover {
    border: none;
}

.pic-ctn figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pic-ctn figure figcaption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 999px;
    margin: 1.5em;
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 1.5em;
    font-size: 0.8em;
    text-align: left;
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    width: auto;
    max-width: 90%;
    display: inline-block;
}

.pic-ctn:hover figure figcaption {
    opacity: 1;
}

/* Delays */
.pic-ctn > *:nth-child(1) {
    animation-delay: 0s;
}
.pic-ctn > *:nth-child(2) {
    animation-delay: 3s;
}
.pic-ctn > *:nth-child(3) {
    animation-delay: 6s;
}
.pic-ctn > *:nth-child(4) {
    animation-delay: 9s;
}
.pic-ctn > *:nth-child(5) {
    animation-delay: 12s;
}
