/* AusCelebs style additions, loaded after damaïo's and prosilver's CSS
   (navbar_top.html adds it with INCLUDECSS).
   It sits in template/ because theme/ is a link to damaïo's folder. */

/* Post buttons on phones.
   prosilver puts a post's button row in the top-right corner and caps it at
   40% of the post's width. Thanks and ZIP never fold into the "…" menu, so
   on a phone they fill that 40% and "…" drops to a second line.
   Here the row gets its own full-width line between the subject and the
   date, with room between the buttons. */
@media (max-width: 700px) {
	.has-profile .postbody .post-buttons,
	.hasjs .postbody .post-buttons {
		position: static;
		float: none;
		max-width: none;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
		gap: 8px;
		margin: 4px 0 8px;
	}

	.postbody .post-buttons > li {
		float: none;
		margin-right: 0;
	}
}

/* Embedded videos and Instagram posts ([youtube] and [instagram] BBCodes).
   Both templates wrap the iframe in these two divs. The rules come from the
   3.0 site (acnet-files/css/acnet-serenity.css): a box up to 640px wide and
   16:9 tall that shrinks on phones, with the iframe filling it. The
   Instagram template adds an inline height of 330px on top, which makes its
   box taller (about 715px at full width). Without these rules prosilver's
   .content { overflow: hidden } cut Instagram embeds off at 330px. */
.video_wrapper_outer {
	max-width: 640px;
}

.video_wrapper_inner {
	position: relative;
	padding-bottom: 100%;
	/* padding-bottom: 56.25%; */ /* 16:9 */
	padding-top: 25px;
	height: 0;
}

.video_wrapper_inner iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
