﻿.image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    /* Make both picture and img fill the frame */
    .image-frame picture,
    .image-frame img {
        width: 100%;
        height: 100%;
        display: block;
    }

/* Object-fit modes (applied to the <img>) */
.fit-cover img {
    object-fit: cover;
    object-position: center;
}

.fit-contain img {
    object-fit: contain;
    object-position: center;
}

.fit-scaledown img {
    object-fit: scale-down;
    object-position: center;
}

.fit-fill img {
    object-fit: fill;
    object-position: center;
}

.fit-none img {
    object-fit: none;
    object-position: center;
}
