.video-post {
    margin-bottom: 20px;
}

.video-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative; /* Needed for absolute positioning of iframe */
}

.video-post * { box-sizing: border-box; } /* Reset any potential block-level spacing */

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0; /* Prevent extra margin */
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Prevent inline-block spacing */
}

.video-container video {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent inline-block spacing */
    margin: 0; /* Prevent extra margin */
}

.video-description {
    margin: 10px 0;
}

/* Override potential theme/Gutenberg spacing */
.video-container-youtube {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.video-post .wp-block-embed {
    margin: 0 !important;
}

/* Mobile-specific margin for video-container */
@media only screen and (max-width: 767px) {
    .video-container {
        margin-bottom: 1em;
    }
}