Update:
I have successfully integrated a non-standard bootstrap video size with proportions of 4x5. However, unlike standard bootstrap embeds, it doesn't seem to adhere to a maximum height no matter where I place it - on the iframe or div elements around it.
(To see the issue, view the page in full size - the tall phone video demonstrates the problem as it appears too elongated)
Any suggestions on how to resolve this issue or alternative approaches?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multiple Responsive Slideshows</title>
<!-- Bootstrap CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!--rest of the HTML code goes here-->
<!-- Video Slide -->
<div class="carousel-item">
<div id="phone" class="vidbox embed-responsive embed-responsive-4by5" style=&qout;max-height: 80vh;">
and by adding this CSS:
/* Custom aspect ratio for 4x5 video */
.embed-responsive-4by5 {
padding-bottom: 125%; /* 5/4 aspect ratio */
}
Sources that have guided me regarding embeds and custom ratios: