﻿.BEC-ratio-16-9 {
    background-color: #444;
    width: 100%;
    padding-top: 56.25%; /* 1:1 Aspect Ratio */
    position: relative; /* If you want text inside of it */
}

.BEC-ratio-square {
    background-color: #444;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative; /* If you want text inside of it */
}

.BEC-ratio-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.BEC-ratio-contained_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px black solid
}
.no-gutters {
    margin-right: 0;
    margin-left: 0
}

    .no-gutters > .col, .no-gutters > [class*=col-] {
        padding-right: 0;
        padding-left: 0
    }

/* The following are form the aspect ratio selector Component */
.ratio-row {
    display: flex;
    width: 100%; /* fill parent */
    max-height:200px;
    height:20vw;
}
.ratio-tall {
    height: min(23.18vw, 200px);
    width: auto;
    aspect-ratio: 3 / 10;
}
.ratio-wide {
    width: min(23.18vw, 200px);
    height: auto;
}
.ratio-cell {
    position: relative;
    flex: 1 1 0; /* all share width; no min */

    text-align:center;
    margin:4px;
    border-radius:0.5em;

}
.ratio-preview {
    /* background-color: blue;*/
    display: inline-block;
    border: 1px solid black;
    border-radius: 5px;
    background-image: URL("/files/icons/Doraemon.png"), URL("/blazor/files/icons/Doraemon.png");
    background-size: cover; /* fill the box */
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.ratio-inner {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square */
}

    /* absolutely position content inside the square */
    .ratio-inner > * {
        position: absolute;
        inset: 0;
    }