/* Advanced Author Box – base styles. Everything here can be overridden from the widget's Style tab. */

.aab-box {
	box-sizing: border-box;
}

.aab-box__heading {
	margin: 0 0 16px;
}

.aab-box__grid {
	display: grid;
	/* Default layout: photo left of all text (overridden per device by the Photo Position control). */
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	grid-template-areas: "photo head" "photo body";
	column-gap: var(--aab-gap, 24px);
	row-gap: var(--aab-row-gap, 12px);
}

.aab-box__grid.aab-box__grid--no-photo {
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: auto auto !important;
	grid-template-areas: "head" "body" !important;
}

.aab-box__photo {
	grid-area: photo;
	align-self: var(--aab-valign, start);
	justify-self: var(--aab-photo-justify, auto);
	margin-bottom: var(--aab-photo-mb, 0px);
	line-height: 0;
}

.aab-box__photo img {
	display: block;
	width: 120px;
	height: 120px;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
}

.aab-box__head {
	grid-area: head;
	align-self: var(--aab-valign, start);
	min-width: 0;
}

.aab-box__head > :last-child {
	margin-bottom: 0;
}

.aab-box__body {
	grid-area: body;
	min-width: 0;
}

.aab-box__body > :last-child {
	margin-bottom: 0;
}

.aab-box__body:empty {
	display: none;
}

.aab-box__name {
	margin: 0 0 4px;
}

.aab-box__name a {
	color: inherit;
	text-decoration: none;
}

.aab-box__title {
	margin: 0 0 12px;
	font-size: 0.9em;
	opacity: 0.8;
}

.aab-box__bio {
	margin: 0 0 12px;
}

.aab-box__bio p:last-child {
	margin-bottom: 0;
}

.aab-box__email-wrap {
	margin: 0 0 12px;
}

.aab-box__email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	word-break: break-word;
}

.aab-box__email svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aab-box__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: var(--aab-justify, flex-start);
	list-style: none;
	margin: 0;
	padding: 0;
}

.aab-box__social li {
	margin: 0;
	padding: 0;
}

.aab-box__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.aab-box__social a i {
	width: 1em;
	text-align: center;
}

.aab-box__social svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aab-box__button-wrap {
	margin-top: 16px;
}

.aab-box__button {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
