/* ==========================================================
   MAJOR MORALE
   SPONSOR PROFILE
========================================================== */

.mm-sponsor {
	width: 100%;
	padding: 20px;

	background: var(--e-global-color-23304c8);
	color: var(--e-global-color-text);

	border-radius: 14px;

	box-sizing: border-box;
}


/* ==========================================================
   TITLE
========================================================== */

.mm-sponsor__header {
	margin: 0 0 16px;
}

.mm-sponsor__title {
	margin: 0;

	color: var(--e-global-color-text);

	font-family: "Bitter", serif;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.05;
}


/* ==========================================================
   TOP INFORMATION AREA
========================================================== */

.mm-sponsor__top {
	display: grid;

	grid-template-columns:
		minmax(190px, .85fr)
		minmax(0, 1.35fr);

	align-items: start;
	gap: 24px;

	margin: 0;
}

.mm-sponsor__top--no-logo {
	grid-template-columns: 1fr;
}

.mm-sponsor__top--logo-only {
	grid-template-columns: minmax(0, 440px);
}


/* ==========================================================
   BRAND / LOGO
========================================================== */

.mm-sponsor__brand {
	min-width: 0;
}

.mm-sponsor__logo {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;

	width: 100%;
}

.mm-sponsor__logo-image {
	display: block;

	width: auto;
	height: auto;

	max-width: 100%;
	max-height: 220px;

	object-fit: contain;
}


/* ==========================================================
   SOCIAL AREA
========================================================== */

.mm-sponsor__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;

	margin-top: 15px;
	padding: 12px 14px;

	background: var(--e-global-color-c5bb4e6);

	border-radius: 4px;
}

.mm-sponsor__social-label {
	color: var(--e-global-color-text);

	font-family: "Bitter", serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.mm-sponsor__social-links {
	display: flex;
	align-items: center;
	gap: 8px;
}


/* ==========================================================
   SOCIAL ICONS — FONT AWESOME 4.7
========================================================== */

.mm-sponsor__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 26px;
	height: 26px;

	color: var(--e-global-color-23304c8);
	background: var(--e-global-color-a66b0db);

	border-radius: 4px;

	font-size: 15px;
	line-height: 1;

	text-decoration: none;

	box-sizing: border-box;

	transition:
		background-color .18s ease,
		transform .18s ease;
}

.mm-sponsor__social-link .fa {
	display: inline-block;

	color: var(--e-global-color-23304c8);

	font-family: FontAwesome;
	font-size: 15px;
	font-weight: normal;
	font-style: normal;
	line-height: 1;
}

.mm-sponsor__social-link--facebook,
.mm-sponsor__social-link--facebook:visited,
.mm-sponsor__social-link--twitter,
.mm-sponsor__social-link--twitter:visited,
.mm-sponsor__social-link--instagram,
.mm-sponsor__social-link--instagram:visited {
	background: var(--e-global-color-a66b0db);
	color: var(--e-global-color-23304c8);
}

.mm-sponsor__social-link--facebook i,
.mm-sponsor__social-link--twitter i,
.mm-sponsor__social-link--instagram i {
	color: var(--e-global-color-23304c8);
}

/* Keep icon color white despite general #primary a rules. */
#primary .mm-sponsor__social-link i,
#primary .mm-sponsor__social-link:visited i,
#primary .mm-sponsor__social-link:hover i,
#primary .mm-sponsor__social-link:focus i {
	color: var(--e-global-color-23304c8);
}

.mm-sponsor__social-link:hover,
.mm-sponsor__social-link:focus {
	background: var(--e-global-color-primary);
	color: var(--e-global-color-23304c8);

	transform: translateY(-1px);
}


/* ==========================================================
   BUSINESS INFO
========================================================== */

.mm-sponsor__info {
	min-width: 0;
}

.mm-sponsor__slogan {
	margin-bottom: 10px;
	padding-bottom: 9px;

	border-bottom:
		1px solid var(--e-global-color-282dba4);

	font-family: "Bitter", serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}


/* ==========================================================
   LOCATIONS
========================================================== */

.mm-sponsor__locations {
	display: flex;
	flex-direction: column;
}

.mm-sponsor__location {
	padding: 10px 0;

	border-bottom:
		1px solid var(--e-global-color-282dba4);
}

.mm-sponsor__location:first-child {
	padding-top: 2px;
}


/* ==========================================================
   INFO ROWS
========================================================== */

.mm-sponsor__info-row,
.mm-sponsor__standalone-row {
	display: grid;

	grid-template-columns:
		19px minmax(0, 1fr);

	align-items: start;
	gap: 7px;

	font-size: 14px;
	line-height: 1.45;
}


/* ==========================================================
   INFO ICONS — FONT AWESOME 4.7
========================================================== */

.mm-sponsor__info-icon,
.mm-sponsor__phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 19px;
	height: 19px;

	flex: 0 0 19px;

	color: var(--e-global-color-text);

	font-size: 14px;
	line-height: 1;

	text-align: center;
}

.mm-sponsor__info-icon .fa,
.mm-sponsor__phone-icon .fa {
	display: inline-block;

	color: inherit;

	font-family: FontAwesome;
	font-size: inherit;
	font-weight: normal;
	font-style: normal;
	line-height: 1;
}

.mm-sponsor__info-content {
	min-width: 0;
}


/* ==========================================================
   ADDRESS
========================================================== */

.mm-sponsor__address {
	overflow-wrap: anywhere;
}

.mm-sponsor__address-extra {
	margin-top: 2px;
}

.mm-sponsor__map-link {
	display: inline-block;

	margin-left: 5px;

	font-size: 12px;
	font-weight: 700;

	white-space: nowrap;
}


/* ==========================================================
   PHONE
========================================================== */

.mm-sponsor__phone {
	display: grid;

	grid-template-columns:
		19px minmax(0, 1fr);

	align-items: center;
	gap: 7px;

	margin-top: 4px;

	font-size: 14px;
	line-height: 1.4;
}


/* ==========================================================
   WEBSITE / EMAIL
========================================================== */

.mm-sponsor__standalone-row {
	margin-top: 10px;
	padding-bottom: 10px;

}

.mm-sponsor__standalone-row {border-bottom: 0px;}



/* ==========================================================
   LINKS
========================================================== */

.mm-sponsor__standalone-row a,
.mm-sponsor__phone a,
.mm-sponsor__map-link {
	color: var(--e-global-color-a66b0db);

	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;

	overflow-wrap: anywhere;
}

.mm-sponsor__standalone-row a:visited,
.mm-sponsor__phone a:visited,
.mm-sponsor__map-link:visited {
	color: var(--e-global-color-a66b0db);
}

.mm-sponsor__standalone-row a:hover,
.mm-sponsor__phone a:hover,
.mm-sponsor__map-link:hover {
	color: var(--e-global-color-primary);
}


/* ==========================================================
   LICENSE
========================================================== */

.mm-sponsor__license {
	margin-top: 10px;

	font-size: 13px;
	line-height: 1.4;
}


/* ==========================================================
   BULLETS / SERVICES
========================================================== */

.mm-sponsor__bullets {
	column-count: 2;
	gap: 3px 18px;

	margin-top: 13px;
	padding-top: 11px;

	border-top:
		1px solid var(--e-global-color-282dba4);
}

.mm-sponsor__bullet {
	position: relative;

	padding-left: 13px;

	font-size: 14px;
	line-height: 1.4;
}

.mm-sponsor__bullet::before {
	content: "•";

	position: absolute;
	left: 0;

	color: var(--e-global-color-accent);

	font-weight: 900;
}


/* ==========================================================
   OPTIONAL POST CONTENT
========================================================== */

.mm-sponsor__content {
	margin-top: 20px;
}


/* ==========================================================
   GALLERY
========================================================== */

.mm-sponsor__gallery {
	margin-top: 20px;
	padding: 14px 16px 16px;

	background: var(--e-global-color-23304c8);

	border:
		1px solid var(--e-global-color-282dba4);

	border-radius: 12px;
}


/* ==========================================================
   GALLERY HEADING
========================================================== */

.mm-sponsor__section-heading {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;

	margin-bottom: 14px;
}

.mm-sponsor__section-heading h2 {
	margin: 0;

	color: var(--e-global-color-text);

	font-family: "Bitter", serif;
	font-size: 23px;
	font-weight: 800;
	line-height: 1;
}

.mm-sponsor__section-heading span {
	font-size: 12px;
	line-height: 1;
}


/* ==========================================================
   FLEXIBLE GALLERY
========================================================== */

.mm-sponsor__gallery-grid {
	display: flex;
	flex-wrap: wrap;

	align-items: flex-start;
	justify-content: flex-start;

	gap: 16px;
}

/*
 * Never crop sponsor ads.
 * Vertical images remain vertical.
 * Horizontal images remain horizontal.
 */

.mm-sponsor__gallery-link {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;

	width: auto;
	height: auto;
max-width: 380px;
	text-decoration: none;
}
.mm-sponsor__gallery-grid--count-1 .mm-sponsor__gallery-link {
    max-width: unset !important;
}
.mm-sponsor__gallery-image {
	display: block;

	width: auto;
	height: auto;

	max-width: 100%;
	max-height: 340px;

	object-fit: contain;

	border-radius: 4px;
}


/* ==========================================================
   ONE IMAGE
========================================================== */



.mm-sponsor__gallery-grid--count-1
.mm-sponsor__gallery-image {
	max-height: 440px;
}


/* ==========================================================
   TWO IMAGES
========================================================== */



.mm-sponsor__gallery-grid--count-2
.mm-sponsor__gallery-image {
	max-height: 390px;
}


/* ==========================================================
   THREE OR MORE
========================================================== */

.mm-sponsor__gallery-grid--count-3
.mm-sponsor__gallery-link,

.mm-sponsor__gallery-grid--count-4
.mm-sponsor__gallery-link,

.mm-sponsor__gallery-grid--count-5
.mm-sponsor__gallery-link,

.mm-sponsor__gallery-grid--count-6
.mm-sponsor__gallery-link {
	max-width: 248px;
}


/* ==========================================================
   COUPONS
========================================================== */

.mm-sponsor__coupons {
	margin-top: 20px;
    padding: 18px;
    background: var(--e-global-color-primary);
    border-radius: 12px;
    color: white;
}

.mm-sponsor__coupon-title {
	margin: 0 0 5px;
	font-family: "Bitter", serif;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
}

.mm-sponsor__coupon-intro {
	margin: 0 0 15px;
text-align: center;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}


/* ==========================================================
   COUPON GRID
========================================================== */

.mm-sponsor__coupon-grid {
	display: flex;
flex-wrap: wrap;
    justify-content: center;
	gap: 12px;
}

.mm-sponsor__coupon {
	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 54px;

	padding: 10px 14px;

	background: var(--e-global-color-23304c8);

	border:
		1px dashed var(--e-global-color-text);

	border-radius: 12px;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;

    text-align: center;
    width: calc(50% - 6px);
    color: black;
}


/* ==========================================================
   SUBSCRIBE CTA
========================================================== */

.mm-sponsor__subscribe-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;

	gap: 8px;

	margin-top: 15px;
}

/*
 * #primary is included here intentionally because the site's
 * general #primary a rule has higher specificity than a class alone.
 */

#primary a.mm-sponsor__subscribe,
#primary a.mm-sponsor__subscribe:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 7px;

	padding: 8px 14px;

	color: var(--e-global-color-secondary);
	background: var(--e-global-color-accent);

	border-radius: 5px;

	font-family: "Bitter", serif;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;

	text-decoration: none;

	transition:
		background-color .18s ease,
		color .18s ease;
}

#primary a.mm-sponsor__subscribe span,
#primary a.mm-sponsor__subscribe strong {
	color: inherit;
}

#primary a.mm-sponsor__subscribe:hover,
#primary a.mm-sponsor__subscribe:focus {
	color: var(--e-global-color-23304c8);
	background: var(--e-global-color-primary);

	text-decoration: none;
}

.mm-sponsor__subscribe-text {
	font-size: 13px;
}


/* ==========================================================
   VIDEO
========================================================== */

.mm-sponsor__video {
	margin-top: 20px;

	max-width: 100%;

	overflow: hidden;
}

.mm-sponsor__video iframe,
.mm-sponsor__video video {
	display: block;

	max-width: 100%;
}


/* ==========================================================
   DISCLAIMER
========================================================== */

.mm-sponsor__disclaimer {
	margin-top: 18px;

	font-size: 12px;
	line-height: 1.4;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 800px) {

	.mm-sponsor {
		padding: 18px;
	}

	.mm-sponsor__top {
		grid-template-columns:
			minmax(165px, .8fr)
			minmax(0, 1.2fr);

		gap: 18px;
	}

	.mm-sponsor__bullets {
		grid-template-columns: 1fr;
	}

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 620px) {

	.mm-sponsor {
		padding: 15px;

		border-radius: 10px;
	}

	.mm-sponsor__title {
		font-size: 30px;
	}


	/* Stack logo and info */

	.mm-sponsor__top,
	.mm-sponsor__top--logo-only {
		grid-template-columns: 1fr;

		gap: 16px;
	}


	/* Logo */

	.mm-sponsor__logo-image {
		max-height: 200px;
	}


	/* Social */

	.mm-sponsor__social {
		margin-top: 12px;
	}


	/* Gallery */

	.mm-sponsor__gallery {
		padding: 13px;
	}

	.mm-sponsor__gallery-grid {
		gap: 13px;
	}


	.mm-sponsor__gallery-link,

	.mm-sponsor__gallery-grid--count-1
	.mm-sponsor__gallery-link,

	.mm-sponsor__gallery-grid--count-2
	.mm-sponsor__gallery-link,

	.mm-sponsor__gallery-grid--count-3
	.mm-sponsor__gallery-link,

	.mm-sponsor__gallery-grid--count-4
	.mm-sponsor__gallery-link,

	.mm-sponsor__gallery-grid--count-5
	.mm-sponsor__gallery-link,

	.mm-sponsor__gallery-grid--count-6
	.mm-sponsor__gallery-link {
		max-width: 100%;
	}


	.mm-sponsor__gallery-image,

	.mm-sponsor__gallery-grid--count-1
	.mm-sponsor__gallery-image,

	.mm-sponsor__gallery-grid--count-2
	.mm-sponsor__gallery-image {
		max-width: 100%;
		max-height: 420px;
	}


	/* Coupons */

	.mm-sponsor__coupon-grid {
		grid-template-columns: 1fr;
	}

}


/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

	.mm-sponsor {
		padding: 13px;
	}

	.mm-sponsor__title {
		font-size: 27px;
	}

	.mm-sponsor__slogan {
		font-size: 15px;
	}

	.mm-sponsor__section-heading h2,
	.mm-sponsor__coupon-title {
		font-size: 21px;
	}

}
/* ==========================================================
   STICKY SIDEBAR ON SPONSOR POSTS
========================================================== */

@media (min-width: 881px) {

	.mm-content-sidebar > .widget-area,
	.mm-content-sidebar > #secondary {
		position: sticky;
		top: 124px;

		align-self: start;
		height: fit-content;
	}

}