/*
 * Spread of Christianity: everything is scoped to .soc-wrap so it can't leak into your theme.
 * The map itself runs inside a frame, so its own full-screen styles never touch the page.
 */
.soc-wrap {
	width: 100%;
	max-width: 100%;
	margin: 1.5em 0;
	text-align: left;
}
.soc-wrap *,
.soc-wrap *::before,
.soc-wrap *::after { box-sizing: border-box; }

/* Some themes (Laveo, for one) float the page content and shrink it to fit what's inside,
   which would make the map only as wide as the logo row. Let that container take the full column. */
.entry-content:has(> .soc-wrap) { width: 100% !important; float: none !important; }

/* Widescreen 16:9 box that scales with the page width, phones included. */
.soc-wrap .soc-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #03060c;
	overflow: hidden;
	border: 0;
	border-radius: 0;
}
/* Older browsers without aspect-ratio: classic padding trick. */
@supports not (aspect-ratio: 16 / 9) {
	.soc-wrap .soc-frame { height: 0; padding-top: 56.25%; }
}
.soc-wrap .soc-frame iframe {
	position: absolute;
	inset: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
}
/* With the script running, the map is laid out at a fixed 1280 x 720 and scaled to fit,
   so phones see the same layout as a desktop screen, just smaller. */
.soc-wrap .soc-frame.soc-scaled iframe {
	right: auto;
	bottom: auto;
	/* !important: many themes give every iframe max-width:100%, which would squeeze the map. */
	width: 1280px !important;
	height: 720px !important;
	max-width: none !important;
	min-width: 0 !important;
	max-height: none !important;
	min-height: 0 !important;
	transform-origin: 0 0;
	transform: scale(var(--soc-scale, 1));
}

/* Below the map: logo bottom left, full-screen link on the right. */
.soc-wrap .soc-bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1em;
	margin: 1.2em 0 0;
}
.soc-wrap .soc-logo { display: inline-block; line-height: 0; text-decoration: none; border: 0; box-shadow: none; }
.soc-wrap .soc-logo img { display: block; width: 2in; max-width: 60vw; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.soc-wrap .soc-full {
	flex: none;
	font-size: .9em;
	color: inherit;
	text-decoration: none;
	padding: .3em .9em;
	border: 1px solid rgba(128, 128, 128, .4);
	border-radius: 999px;
	box-shadow: none;
}
.soc-wrap .soc-full:hover,
.soc-wrap .soc-full:focus-visible { text-decoration: underline; }

@media (max-width: 480px) {
	.soc-wrap .soc-full { font-size: .8em; padding: .25em .7em; }
}
