* Keep the video in portrait mode */
.custom-video-wrapper {
position: relative;
padding-top: 177.78%; /* For a portrait 9:16 aspect ratio */
overflow: hidden;
}
.custom-video-wrapper iframe,
.custom-video-wrapper video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Optional: Adjust for specific Squarespace layouts */
.sqs-video-wrapper {
max-width: 100%;
max-height: 100%;
margin: 0 auto;
}