body > .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    background-color: #67553dd9;
    backdrop-filter: blur(2rem);
}

body > .item > .content {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 1rem 0.5rem 0 0.5rem;
    background-color: #3a3a3a;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    box-shadow: 0 -3rem 8rem;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

body > .item > .content h2 {
    text-align: center;
}

body > .item  .content > .media {
    flex-grow: 1;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body > .item > .content .media > .content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body > .item > .content > .media:not(.images) .controls { display: none; }
body > .item > .content > .media:not(.model) .controls { display: none; }

body > .item > .content > .media .controls {
    display: flex;
    flex-shrink: 0;
    gap: 1rem;
}

body > .item > .content > .media .controls button {
    width: 3rem;
    height: 3rem;
    position: unset;
    left: unset;
    padding: 0.25rem 0.5rem;
    border-radius: 0.2rem;
    color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
}

body > .item > .content > .media[_state="images"] .controls button.images { background-color: var(--dark-background); border-color: whitesmoke; }
body > .item > .content > .media[_state="model"] .controls button.model { background-color: var(--dark-background); border-color: whitesmoke; }

body > .item > .content > .media > .content .images {
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: calc(100% - 9rem);
    transition: 0.3s ease-out opacity;
}

body > .item > .content > .media:not([_state="images"]) div.images { opacity: 0; pointer-events: none; }

body > .item > .content > .media > .content .images > .entries {
    width: 100%;
    position: relative;
}

body > .item > .content > .media:not(.images) > .content .images { display: none; }

body > .item > .content > .media > .content .model {
    position: absolute;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: 0.3s ease-out opacity;
}

body > .item > .content > .media:not([_state="model"]) > .content div.model { opacity: 0; pointer-events: none; }

body > .item > .content > .media .model iframe {
    width: 100%;
    height: 100%;
    border: none;
}

body > .item > .content > .media:not(.model) .model { display: none; }

body > .item > .content > .media > .content .images .image {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: 100%;
    max-height: 100%;
    transition: 0.4s ease-out opacity;
    border-radius: 0.4rem;
}

body > .item > .content > .media.images .image:not(.active) { opacity: 0; }

body > .item > .content > .media > .content .images > .dots {
    display: flex;
    height: 2rem;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ababab;
    border-radius: 0.25rem;
    transition: 0.4s ease-out background-color, 0.4s ease-out transform;
}

.dot.active {
    background-color: #efefef;
    transform: scale(150%);
}


body > .item > .content > .texts {
    line-height: 150%;
    display: flex;
    overflow: auto;
    flex-shrink: 0;
}


@media screen and (orientation:portrait) {
    body > .item > .content {
        flex-direction: column;
        padding-bottom: 3rem;
    }

    body > .item >  .content > .media {
        width: 100%;
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    body > .item > .content > .media > .images {

    }

    body > .item > .content > .media > .content .images > .entries {
        height: 100%;
    }

    body > .item > .content > .media .controls {
        display: flex;
        gap: 1rem;
    }

    body > .item > .content > .texts {
        flex-grow: 0.3;
    }

}

@media screen and (orientation:landscape) {
    body > .item > .content {
        flex-direction: row;
    }

    body > .item > .content > .media {
        height: 100%;
        display: flex;
        align-items: center;
    }

    body > .item > .content > .media > .content .images > .entries {
        height: calc(100% - 10rem);
    }

    body > .item > .content > .media .controls {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 2rem;
        display: flex;
        gap: 1rem;
    }


    body > .item > .content > .texts {
        flex-grow: 0.5;
        height: 100%;
        align-items: center;
        justify-content: center;
    }
}