// ------------------------------------------------------------------
// Layout
// ------------------------------------------------------------------

.o-discuss-Call {
    height: 50%; // ensures that the view returns to the right height when resized
    min-height: 50%;
    background-color: inherit;

    &.o-selfInCall {
        background-color: var(--o-discuss-Call-bgColor, #{$dark});

        .o-discuss-Call-main {
            background-color: rgba(0, 0, 0, 0.5);
        }
    }

    &.o-compact {
        height: auto;
        min-height: auto;
    }

    &.o-minimized {
        height: 20%; // ensures that the view returns to the right height when resized
        min-height: #{"max(20%, 130px)"};
        &.o-compact {
            height: 10%;
            min-height: #{"max(10%, 100px)"};
            &.o-hasVideo.o-selfInCall {
                height: calc(100vw * 9 / 16);
            }
        }
    }

    &.o-fullSize {
        height: 100%;
        min-height: 100%;
        &.o-minimized {
            height: 100%;
        }
    }
}

.o-discuss-Call-sidebar {
    width: 120px;
    min-width: 120px;
    overflow-y: auto;
    overflow-x: hidden;

    &::-webkit-scrollbar {
        width: 0.3vw;
    }
}

.o-discuss-Call-sidebarCard {
    aspect-ratio: 16/9;
}

.o-discuss-Call-mainCardStyle {
    width: var(--width);
    height: var(--height);
    min-width: var(--width);
    min-height: var(--height);
    aspect-ratio: 16/9;

    &.o-active {
        width: 100%;
        height: auto;
    }
}

.o-discuss-Call-sidebarToggler {
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

// ------------------------------------------------------------------
// Style
// ------------------------------------------------------------------

.o-discuss-Call-sidebar {

    &::-webkit-scrollbar {
        background: map-get($grays, '900');
    }

    &::-webkit-scrollbar-thumb {
        background: map-get($grays, '700');
    }
}

.o-discuss-Call-sidebarToggler {
    color: white;
    border-radius: 10px 0px 0px 10px;
    border-right: 0px;
    background-color: lighten(black, 10%);
}
