/* Media container */
.custom-media-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
}

/* Shared media styles */
.custom-youtube-video,
.custom-matterport {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
    overflow: hidden;
	border-radius: 8px;
}

/* Elementor video */
.custom-youtube-video .elementor-widget-video,
.custom-youtube-video .elementor-widget-container,
.custom-youtube-video .elementor-wrapper {
    width: 100%;
    height: 100%;
}

/* Both iframes */
.custom-youtube-video iframe,
.custom-matterport iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* Large screens */
@media (min-width: 1024px) {
    .custom-media-container.has-matterport {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}