/* ========= VARIABLES ========= */
:root {
    --wrap: 850px;
    --bdr: 20px;
    --tabh: 50px;
    --tabwf: 1.3;
}

/* ========== TAB AREA ========== */
#tab-wrapper {
    max-width: 610px;
    min-width: 350px;
    height: var(--wrap);
    border: var(--bdr) solid #eef;
}

.tabs {
    position: relative;
    display: flex;
}

.tab {
    background: #ccf;
}

.tab input {
    display: none;
}

.thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ----- tab size ------- */
.tab label {
    display: block;
    height: var(--tabh);
    width: calc( var(--tabwf) * var(--tabh) );
}

/* ======== CONTENT AREA ======== */
.content {
    position: absolute;
    left: 0;
    z-index: 0;
}

.content p {
    margin-bottom: 0;
}

.content img {
    width: 100%;
    object-fit: contain;
    object-position: top;
}

/* ------- content size ------- */
.content {
    display: flex;
    flex-direction: column;
    background: #ccf;
    padding: 10px;
    height: calc( var(--wrap) - var(--tabh) - 2 * var(--bdr) );
    max-width: 570px;
}

/* ======= CHECK BEHAVIOR ======= */
[type=radio]:checked ~ label {
    position: relative;
    bottom: 10px;
}

[type=radio]:checked ~ div.content {
    z-index: 1;
}