img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myModal .modal-content:hover {
    cursor: default !important;
    opacity: 1 !important;
}

.modal {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    overflow: auto;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

.modal-content {
    bottom: 0;
    display: block;
    left: 0;
    max-height: 90vh;
    max-width: 90vw;
    right: 0;
    top: 0;
}

#caption {
    color: #ccc;
    display: block;
    height: auto;
    margin: 10px auto;
    max-width: 700px;
    padding: 10px 0;
    text-align: center;
    width: 80%;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

.modal-content,
#caption {
    animation-duration: 0.3s;
    animation-name: zoom;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.modal-content.zoom-out {
    animation: zoom-out 0.2s forwards;
}

@keyframes zoom-out {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0);
    }
}

/* Human-readable blog layout choices. */
.row.row-center {
    justify-content: center;
}

.image-full {
    width: 100%;
}

.image-five-sixths {
    width: 83.33333%;
}

.image-four-fifths,
.image.image-four-fifths {
    width: 80%;
}

.image-three-quarters {
    width: 75%;
}

.image-two-thirds {
    width: 66.66667%;
}

.image-half {
    width: 50%;
}

.image-two-fifths {
    width: 40%;
}

.image-third {
    width: 33.33333%;
}

.image-quarter {
    width: 25%;
}

.image-center,
.image.image-center {
    margin-left: auto;
    margin-right: auto;
}

.text-wrap-left,
.text-wrap-right {
    top: 0.75rem;
}

.text-wrap-left {
    float: left;
    margin: 0 2rem 2rem 0;
}

.text-wrap-right {
    float: right;
    margin: 0 0 2rem 2rem;
}

.text-wrap-left img,
.text-wrap-right img {
    width: 100%;
}

.clear-float {
    clear: both;
}

/* Preserve the final empty grid cell without a blank content record. */
#main > .posts.has-odd-cards::after {
    border-color: #eeeeee;
    border-left-width: 2px;
    border-style: solid;
    border-top-width: 2px;
    box-sizing: border-box;
    content: "";
    width: 50%;
}

@media screen and (max-width: 736px) {
    #main > .posts.has-odd-cards::after {
        display: none;
    }
}

.site-credit {
    color: #717981;
    font-size: 0.8rem;
    padding: 2rem;
}

.site-credit p {
    margin: 0;
}
