.instagram-container {
    width: 216px;              /* same width as .youtube-container */
    height: 230px;             /* fallback only; the script sets the real height from the post */
    margin: 0 30px 5px 0;      /* same margins as .youtube-container so the pair centres identically */
    overflow: hidden;          /* hide the parts of the scaled embed outside the box */
    border: 1px solid #dfdfdf; /* same border as .youtube-container, so outer widths match (218px) */
    border-radius: 8px;
    position: relative;
    background: #fff;
}

.instagram-container .instagram-media {
    /* !important because embed.js copies inline width/min-width/margin onto the iframe.
       No height is set here: the iframe keeps the full height embed.js gives it (image + caption). */
    width: 540px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: scale(var(--s, 0.4));  /* the script sets --s = container width / 540 */
    transform-origin: top left;
    background: #fff;
    border: 0;
    border-radius: 3px;
    padding: 0;
}

.youtube-container { 
    float: left;
    height: 128px;
    width: 216px;
    padding-top: 2px;
    margin: 0 30px 5px 0px;
    background-color: black;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.youtube-container img {
    height:120px;
    width:213px;
}
span.imgComment {
	width: 100%; 
	margin-top: 1em;
}

.profileImageSpacer.socials {
	width: 20%;
}
.profile.socials {
	/*min-width: 780px;*/
	width:80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
	padding-bottom: 1em;
}
.info.wide {
	flex-basis: 50%;
}

.rightMargin {
	flex: 1 1 30%;
	min-width: 0;
}

a.textlink.social {
	color: black; 
	text-decoration: underline; 
}

/* Make the layout responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }
}