.ui-dialog__media {
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ui-dialog__media video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-active .ui-dialog__media {
    aspect-ratio: 16 / 9;
    min-height: 300px;
}

@media (max-width: 768px) {
    .video-active .ui-dialog__media {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .video-active .ui-dialog__media {
        min-height: 200px;
    }
    
    .ui-content-enabled .ui-content__block {
        max-height: calc(100vh - 264px);
    }
}

@media (max-width: 395px) {
    .video-active .ui-dialog__media {
        min-height: 180px;
    }
    
    .ui-content-enabled .ui-content__block {
        max-height: calc(100vh - 296px);
    }
}

@media (max-width: 360px) {
    .video-active .ui-dialog__media {
        min-height: 160px;
    }
    
    .ui-content-enabled .ui-content__block {
        max-height: calc(100vh - 330px);
    }
}