#embedded {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background-color: rgba(0, 0, 0, .4);
    z-index: 400;
    transition: all .5s ease-in-out;
}

#embedded.active {
    visibility: visible;
    opacity: 1;
}

#embedded-content {
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all .5s;
    background-color: #fff;
    overflow: hidden;
    z-index: 410;
}

#embedded.active #embedded-content {
    opacity: 1;
    transform: translateX(0);
}

#embedded-content section {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: 100vh;
}

#embedded-content section header {
    flex: 0 0 auto;
    display: flex;
    padding: 1rem 2rem 0 2rem;
}

#embedded-content section header h1 {
    flex: 1 1 auto;
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--theme);
    white-space: nowrap;
}

#embedded-content section header a {
    flex: 0 0 auto;
    font-size: 2.5rem;
    color: var(--base40);
}

#embedded-content section > div {
    flex: 1 1 auto;
    overflow-y: scroll;
    padding: 1rem 2rem;
}

#embedded-content section footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin: 0 2rem;
    padding: 1rem 0;
    width: calc(100% - 4rem);
    border-top: 1px solid var(--base40);
    background-color: transparent;
}

#embedded-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

#embedded-content .curtain {

    padding: .5rem 1rem;
    margin-left: 2rem;
}

@media only screen and (min-width: 48em) {

    #embedded-content .curtain {
        padding: .5rem 2rem;
    }

}

@media only screen and (min-width: 64em) {

    #embedded-content section header h1, #embedded-content section header a {
        font-size: 3rem;
    }

}
