.caption {
    padding: 1em;
    color: white;
    font-weight: bold;
    font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, Sans-Serif;
    font-size: 1.3em;
}

.slides {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
    background-color: #d99bc1;
}

.slide {
    grid-row-start: 1;
    grid-column-start: 1;
    opacity: 0;
    z-index: 1;
}

.control {
    grid-row-start: 1;
    grid-column-start: 1;

    z-index: 3;
    position: relative;
    pointer-events: none;
}

.control .placeholder {
    aspect-ratio: 3/2;
}


.control>div.bottom div {
    margin-top: -20px;
    position: relative;
    color: white;
    padding: 10px;
    background: rgba(255, 255, 255, .4);
}

@media(hover: hover) and (pointer: fine) {
    .control>div.bottom div:hover {
        color: black;
        cursor: pointer;
    }
}

.control>div.bottom {
    width: 100%;
    text-align: center;
    margin-top: -50px;
    pointer-events: auto;
}

.circle {
    border: 1px solid #ccc;
    border-radius: 50%;
    height: 13px;
    width: 13px;
    padding: 0;
    display: inline-block;
    background: rgba(255, 255, 255, .4);
    margin-left: 2px;
    margin-right: 2px;
}

.active {
    background-color: white;
}

.fadein {
    animation: fadein 700ms;
    animation-fill-mode: forwards;
}

.fadeout {
    animation: fadeout 700ms;
    animation-fill-mode: forwards;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
