.instagram-blog {
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* display: grid; */
	/* grid-template-columns: 1fr; */
	/* grid-template-areas: 'f-instagram-content' */
											 /* 'f-instagram-heading'
											 'f-buttons'; */
	padding-top: 50px;
	padding-bottom: 55px;
	@media (width >= 768px) {
		/* grid-template-columns: 1fr 1fr;
		grid-template-areas: 'f-instagram-content f-instagram-heading' */
											 /* 'f-instagram-content f-buttons'; */
		padding-top: 90px;
		padding-bottom: 90px;
	}
	@media (width >= 1024px) {
		flex-direction: row;
		padding-top: 135px;
		padding-bottom: 135px;
	}
	> div {
		flex-basis: 0;
		flex-grow: 1;
	}
	.instagram-blog-content {
		/* grid-area: f-instagram-content; */
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-left: 20px;
		padding-right: 20px;
		@media (width >= 768px) {
			padding-left: 40px;
			padding-right: 40px;
		}
	}
	.f-instagram-heading {
		font-size: 45px;
		margin-top: 35px;
		margin-bottom: 20px;
		/* grid-area: f-instagram-heading; */
		text-align: center;
		@media (width >= 768px) {
			font-size: 70px;
			margin-top: 70px;
		}
		@media (width >= 1024px) {
			margin-top: 0;
		}
	}
	.read-more-button-container {
		/* grid-area: f-buttons;
		flex-direction: column; */
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.read-more-button {
			justify-content: center;
			margin-right: 0;
			width: 100%;
			/* @media (width >= 1024px) {
				width: fit-content;
			} */
			&.pluviamedspa {
				background-color: transparent;
				border: none;
				color: var(--secondary-color);
				font-size: 20px;
				letter-spacing: 0.05em;
				margin-top: 0;
				margin-bottom: 18px;
				padding: 0;
				text-transform: uppercase;
				width: fit-content;
				@media (width >= 768px) {
					font-size: 25px;
					margin-bottom: 23px;
				}


				&:hover,
				&:active,
				&:focus {
					color: var(--primary-accent);
					svg path {
						fill: var(--primary-accent);
					}
				}
			}
		}
	}
}

.inside .instagram-blog {
	/* border-top: 1px solid var(--primary-accent); */
	position: relative;
	&:before {
		position: absolute;
		content: '';
		left: 20px;
		right: 20px;
		top: 0;
		height: 1px;
		background-color: var(--primary-accent);
		@media (width >= 768px) {
			left: 40px;
			right: 40px;
		}
		@media (width >= 1280px) {
			left: calc(40px + (50vw - (var(--full) / 2)));
			right: calc(40px + (50vw - (var(--full) / 2)));
		}
	}
}

.site-footer {
	text-align: center;
	.footer-cta {
		background-color: rgb(from var(--primary-alt) r g b / 65%);
		color: var(--light-color);
		font-family: var(--secondary-font);
		text-align: center;
		font-size: 35px;
		line-height: 1.14em;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 20px;
		@media (width >= 768px) {
			font-size: 45px;
			padding: 25px 40px;
		}
		@media (width >= 1280px) {
			font-size: 60px;
			padding: 25px calc(40px + (50vw - (var(--full) / 2)));
		}
		span {
			display: block;
			@media (width >= 768px) {
				display: inline;
			}
		}
		p {
			margin-bottom: 0;
		}
	}
}

/*====================================
=            Upper Footer            =
====================================*/

.upper-footer {
	font-size: 15px;
	line-height: 1.5em;
	color: var(--light-color);
	padding: 0;

	/* Tablet Styles */
	@media (width >= 768px) {
		padding-bottom: 0;
	}

	.site-locations {
		.show-icon {
			padding-right: 20px;
		}
	}

	.location-each {
		>* {
			margin-bottom: 40px;
		}
	}

	.location-text {
		svg {
			path {
				fill: var(--primary-color);
			}
		}
	}

	.h2 {
		color: var(--light-color);
		font-family: var(--primary-font);
		font-size: 20px;
		letter-spacing: 0.05em;
		margin-top: 0;
		margin-bottom: 0;
		text-transform: uppercase;
		@media (width >= 768px) {
			font-size: 30px;
		}
	}

	a {
		color: var(--light-color);
		text-decoration: none;
		transition: color .3s;

		&:hover,
		&:active,
		&:focus {
			color: var(--secondary-color);

			svg:not(.f-logo-link svg) {
				path {
					fill: var(--secondary-color);
				}
			}
		}

		.nav-expander {
			display: none;
		}
	}

	svg:not(.f-logo-link svg) {
		path {
			fill: var(--primary-color);
			transition: fill .3s;
		}
	}
}

/* Footer Header */
.footer-header {
	flex-direction: column;
	grid-area: a;
	padding-top: 60px;
	padding-bottom: 2px;
	@media (width >= 768px) {
		padding-top: 105px;
		padding-bottom: 15px;
	}
	@media (width >= 1024px) {
		padding-top: 160px;
	}

	.contact-text {
		width: 100%;
	}
}

/* Footer Contact Form */
.footer-contact-form {
	background-image: url('/wp-content/themes/rm-basetheme/images/footer-bg-mobile.jpg');
	background-color: var(--dark-color);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	grid-area: b;

	@media (width >= 768px) {
		background-attachment: fixed;
	}

	@media (width >= 1024px) {
		background-image: url('/wp-content/themes/rm-basetheme/images/footer-bg.jpg');
	}

	/* Gravity Forms */
	.gform-theme.gform-theme--foundation {
		color: var(--light-color);

		form {

			.gform-body {
				.gfield input, textarea {
					border: none;
				}
			}

			label,
			legend {
				color: var(--light-color);
			}

			.gfield_description {
				color: rgb(from var(--light-color) r g b / 0.5);
			}

			.gf_progressbar_wrapper {
				.gf_progressbar_title {
					color: var(--light-color);
				}

				.gf_progressbar {
					background-color: rgb(from var(--light-color) r g b / 0.4);
				}
			}

			.disclaimer {
				width: 100%;
				/* margin-bottom: 20px; */
				margin-bottom: 0;
				text-align: center;
			}

			.gform-footer.gform_footer {
				width: fit-content;
				margin: 40px auto 0;
				@media (width >= 768px) {
					margin-top: 25px;
				}
				button.gform_button.button {
					background-color: transparent;
					border-color: var(--light-color);
					color: var(--light-color);

					&:hover,
					&:active,
					&:focus {
						background-color: var(--light-color);
						color: var(--primary-color);
					}
				}
			}
		}
	}
}

.footer-practice-info {
	background-color: var(--primary-highlight-alt);
	color: var(--primary-color);
	grid-area: c;

	.fpi-container {
		display: flex;
		flex-direction: column;
		/* grid-template-columns: 1fr; */
		/* grid-template-rows: repeat(7, auto); */
		/* grid-template-areas: 'f-location-heading' */
		/* 'f-site-locations'
		'f-social'
		'f-logo'
		'f-hours'
		'f-social'
		'f-ratings'; */
		/* width: fit-content; */
		padding: 50px 20px 65px;
		/* @media (width >= 768px) {
			padding: 40px;
		} */
		@media (width >= 768px) {
			padding-top: 50px;
			padding-bottom: 75px;
		}
		@media (width >= 1024px) {
			display: grid;
			/* grid-template-columns: 1fr 1fr 1fr; */
			grid-template-columns: 250px auto 250px;
			/* grid-template-rows: auto auto auto; */
			grid-template-rows: 80px auto auto;
			align-items: start;
			padding-top: 40px;
			padding-bottom: 40px;
			justify-content: space-between;
			grid-template-areas: 'f-location-heading f-logo f-nav'
													 'f-site-locations f-logo f-nav'
													 'f-social f-hours f-ratings';
		}
		@media (width >= 1024px) {
			padding-left: calc(40px + (50vw - (var(--full) / 2)));
			padding-right: calc(40px + (50vw - (var(--full) / 2)));
		}
	}
	.f-location-heading {
		font-family: var(--secondary-font);
		font-size: 40px;
		grid-area: f-location-heading;
		margin-bottom: 40px;
		@media (width >= 1024px) {
			line-height: 1em;
			margin-bottom: 0;
		}
	}
	.footer-site-locations {
		grid-area: f-site-locations;
		/* @media (width >= 1024px) {
			margin-top: -20px !important;
		} */
	}
	.f-social {
		grid-area: f-social;
	}
	.f-logo {
		grid-area: f-logo;
	}
	.footer-hours-site-locations {
		grid-area: f-hours;
	}
	.footer-nav {
		grid-area: f-nav;
	}
	.ratings {
		grid-area: f-ratings;
	}
	a {
		color: var(--primary-color);
	}
}

.f-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 40px;
	margin-bottom: 25px;
	@media (width >= 768px) {
		margin-top: 50px;
	}
	@media (width >= 1024px) {
		/* margin-top: -20px; */
		margin-top: 0;
	}

	svg {
		height: 300px;
		width: auto;
		@media (width >= 1024px) {
			height: 330px;
		}
	}
}


/*==================================
=            Footer Nav            =
==================================*/

.site-footer {
	.footer-nav {
		/* display: none; */
		display: block;
		/* grid-area: d; */
		margin: 10px 0 0;
		padding: 20px 0 10px;

		/* Tablet Styles */
		@media (width >= 768px) {
			margin-top: 0;
		}

		@media (width >= 1024px) {
			padding: 0;
		}

		.footer-nav-heading {
			font-family: var(--secondary-font);
			font-size: 40px;
			letter-spacing: 0;
			line-height: 1em;
			margin-bottom: 15px;
			@media (width >= 768px) {
				margin-bottom: 20px;
			}
			@media (width >= 1024px) {
				margin-bottom: 40px;
			}
		}

		.menu {
			display: flex;
			font-size: 18px;
			flex-direction: column;
			justify-content: center;
			/* flex-wrap: wrap; */
			align-items: center;
			list-style: none;
			margin: 0;
			@media (width >= 1024px) {
				margin-bottom: 5px;
			}

			li {
				margin: 0 10px 18px;

				ul {
					display: none;
				}
			}
		}
	}
}


/*===========================================
=            Footer Social Icons            =
===========================================*/

.f-social {
	@media (width >= 1024px) {
		margin-top: -30px;
	}
	.f-social-heading {
		color: var(--secondary-color);
		font-size: 22px;
		font-weight: var(--fw-bold);
		letter-spacing: 0;
		margin-top: 10px;
		margin-bottom: 20px;
		@media (width >= 1024px) {
			margin-bottom: 15px;
		}
	}
	.social-icons {
		font-size: 35px;
		line-height: 1em;
		list-style: none;
		margin: 0;
		display: flex;
		justify-content: center;

		.show-icon {
			margin-right: 16px;

			&:last-of-type {
				margin-right: 0;
			}

			a:hover,
			a:active,
			a:focus {
				svg {
					path {
						fill: var(--secondary-color);
					}
				}
			}
		}

		svg {
			width: auto;
			height: 35px;

			path {
				fill: var(--primary-color);
			}
		}
	}
}

/*==================================================
=            Contact Page Footer Styles            =
==================================================*/

.contact,
.contact-us {
	.upper-footer {
		/* display: none; */
		padding-top: 0;

		/* Tablet Styles */
		/* @media (width >= 768px) {
			display: block;
		} */

		.footer-contact-form {
			background-image: none;
		}

		.footer-nav {
			border-top: none;
			margin-top: 0;
		}
	}
}

/*==============================================
=            Style Specific Classes            =
==============================================*/

.upper-footer {

	&.style-2,
	&.style-3 {
		.footer-practice-info {

			/* Tablet Styles */
			@media (width >= 768px) {
				text-align: left;
			}
		}

		.location-address-block {
			display: block;

			.address-street:after {
				content: none;
			}
		}

		.hours-text {

			/* Tablet Styles */
			@media (width >= 768px) {
				padding-left: 48px;
			}
		}

		.location-hours-block {

			/* Tablet Styles */
			@media (width >= 768px) {
				justify-content: flex-start;
			}
		}
	}

	.ratings {
		a {
			display: flex;
			width: fit-content;
			justify-content: center;
			flex-direction: column-reverse;
			align-items: center;
			margin-left: auto;
			margin-right: auto;
			font-size: 18px;
			letter-spacing: 0.02em;
			row-gap: 10px;
			@media (width >= 768px) {
				row-gap: 15px;
			}
			@media (width >= 1024px) {
				row-gap: 20px;
			}

			&:before {
				content: 'Read Online Reviews';
			}
		}

		.ratings__text {
			position: absolute;
			width: 1px;
			height: 1px;
			overflow: hidden;
			clip: rect(0 0 0 0);
			clip-path: inset(50%);
			white-space: nowrap;
		}

		.ratings__stars {
			display: flex;
			column-gap: 5px;
			@media (width >= 1024px) {
				margin-left: 0;
			}

			.ratings__star {
				display: flex;
				align-items: center;
				svg {
					height: 30px;
					width: 30px;
					path {
						fill: var(--secondary-color);
					}
				}
			}
		}
	}
}



/*====================================
=            Lower Footer            =
====================================*/

.lower-footer {
	color: var(--primary-color);
	font-size: 15px;
	line-height: 1.73em;
	position: relative;
	padding-top: 35px;
	padding-bottom: 100px;

	/* Desktop Styles */
	@media (width >= 1024px) {
		padding-bottom: 110px;
	}

	a {
		color: var(--primary-color);
		text-decoration: none;
		&:hover,
		&:active,
		&:focus {
			color: var(--secondary-color);
		}

		&.policy-sitemap {
			&:after {
				content: ' | ';
				display: inline;
				position: relative;
			}
		}

		&:nth-last-of-type(2) {
			&:after {
				content: none;
			}
		}

		&.accessibility {
			background: var(--tertiary-alt);
			/* border: 1px solid var(--tertiary-alt); */
			color: var(--primary-color);
			padding: 10px 20px;
			border-radius: 0;
			margin: 40px 5px;
			display: inline-block;
			line-height: 16px;
			transition: background .3s, color .3s;
			@media (width >= 1024px) {
				margin: 0 5px;
			}

			&:hover,
			&:active,
			&:focus {
				background: var(--primary-color);
				color: var(--light-color);
			}
		}
	}

	.copyright {
		@media (width >= 1024px) {
			margin-bottom: 1em;
		}
	}

	.rm-sig {
		@media (width >= 1024px) {
			display: flex;
			align-items: center;
			justify-content: center;
		}
		> a {
			&:first-of-type:after,
			&:last-of-type:before {
				content: '\00a0';
			}
		}
		.rm-logo {
			padding-top: 10px;
			@media (width >= 1024px) {
				margin-left: 10px;
			}
		}

		svg {
			width: 40px;
			height: auto;

			path {
				fill: var(--secondary-color);
			}
		}
	}
}

.site-disclaimer {
	font-size: 15px;
	font-style: italic;
	margin-bottom: 50px;
	@media (width >= 1024px) {
		margin-bottom: 1em;
	}
}

/*===================================================================
=            Userway / Accessibility and Recaptcha Icons            =
===================================================================*/

.grecaptcha-badge,
.js body .uwy .uai,
.js body .uwy .userway_buttons_wrapper {
	bottom: 5px;
	transition: all .3s !important;
}

.make-sticky .grecaptcha-badge,
.make-sticky .uai,
.make-sticky .userway_buttons_wrapper {
	bottom: 74px !important;
}

/*======================================
=        Related / Latest Posts        =
======================================*/

.f-blog {
	text-align: center;

	.f-blog-heading-wrap {
		margin-bottom: 2em;

		.f-blog-heading {
			margin-top: 0;
			margin-bottom: 10px;
		}

		.f-blog-sub-heading {
			margin-top: 0;
			margin-bottom: 10px;
		}

		.f-blog-description,
		.section-intro {
			margin-top: 0;
			margin-bottom: 0;

			p:last-of-type {
				margin-bottom: 0;
			}
		}
	}

	.footer-posts-list {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 1em;
		row-gap: 1em;
		list-style: none;
		margin: 0;
		padding-bottom: 2em;

		/* Tablet Styles */
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
		}

		/* Desktop Styles */
		@media (width >= 1024px) {
			grid-template-columns: 1fr 1fr 1fr;
		}

		li {
			text-align: left;

			&:nth-of-type(n+3) {
				display: none;

				/* Desktop Styles */
				@media (width >= 1024px) {
					display: block;
				}
			}

			.blog-excerpt {
				padding-bottom: 1em;
			}
		}
	}
}