div.nxd-youtubebox-container {

    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    overflow: hidden;

    &.nxd-border-rounded {
        border-radius: 12px;
    }

    .nxd-youtubebox-error-message {
        position: absolute;
        width: 80%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 1.5em;
        text-align: center;
        background-color: rgb(220, 6, 6);
        padding: 10px;
        border-radius: 12px;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    div.branding{
        display: block;
        position: absolute;
        width: 10%;
        min-width: 50px;

        background-color: rgba(0,0,0,0.3);
        backdrop-filter: blur(4px);
        border-radius: 5px;
        padding: 0 5px;

        &.top-left {
            left: 10px;
            top: 60px;
        }
        &.top-right {
            right: 10px;
            top: 60px;
        }
        &.bottom-left {
            left: 10px;
            bottom: 50px;
        }
        &.bottom-right {
            right: 10px;
            bottom: 50px;
        }

        img {
            width: 100%;
            opacity: 0.5;
        }
    }

    @supports (width: clamp(1px, 1%, 1px)) {
        div.branding {
            width: clamp(50px, 10%, 100%);
        }
    }

}