
.rmgallery {
	.side-by-side {
		display: flex;
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 10px;
		> div {
			img {
				width: 100%;
			}
		}
	}
	.portrait-wrap {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 10px;
		.portrait-photo {
			height: 100%;
			> div {
				height: 100%;
			}
			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
				object-position: center;
			}
		}
		.side-by-side {
			grid-template-columns: 1fr;
			row-gap: 10px;
			img {
				height: 100%;
				object-fit: cover;
				object-position: center;
			}
		}
		.bna-label {
			display: none;
		}
	}

	.bna-group {
		position: relative;
		.case-more {
			a {
				background-color: var(--tertiary-alt);
				display: flex;
				padding: 25px;
				border-radius: 50%;
				outline: 2px solid var(--secondary-alt);
				outline-offset: -8px;
			}
			&.hover-overlay {
				position: absolute;
				opacity: 0;
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				transition: all .3s;
				display: flex;
				justify-content: center;
				align-items: center;
				&:hover {
					opacity: 1;
					background-color: rgb(from var(--primary-color) r g b / 0.5);
				}
			}
		}
	}

	.back-btn {
		text-align: center;
		position: relative;
		padding-top: 40px;
		padding-bottom: 40px;
		@media (width >= 768px) {
			padding-top: 65px;
			padding-bottom: 65px;
		}
		&: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)));
			}
		}
	}

}

/*=====================================================
=            Archive for One-Page template            =
=====================================================*/


.rmg-archive-onepage {
	padding-bottom: 60px;
	@media (width >= 768px) {
		padding-bottom: 100px;
	}

	.gallery-category-filter {
		list-style: none;
		margin-bottom: 100px;
		&.anchor-links {
			list-style: none;
			margin: 0;

			/* Tablet Styles */
			@media (width >= 768px) {
				display: grid;
				grid-template-columns: 1fr 1fr;
				column-gap: 40px;
				row-gap: 15px;
			}

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

			a {
				width: 100%;
			}
		}
		li {
			margin: 0;
			&:before {
				display: none;
			}
		}
		button {
			cursor: pointer;
			display: inline-block;
			position: relative;
			text-align: center;
			text-decoration: none;
			text-transform: uppercase;
			font-family: var(--secondary-font);
			background-color: var(--primary-color);
			color: var(--light-color);
			padding: 12px 30px;
			border: none;

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

	}

	.all-categories {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 30px;
		row-gap: 30px;
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
		}
	}
	.single-category {
		&.hide-category {
			display: none;
		}
		.bna-group {
			position: relative;
		}
	}


	.case-each {
		&.hide-case {
			display: none;
		}
	}
	.desc {
		width: 100%;
		margin: 40px 0;
	}
}

/*======================================================
=            Archive for Multi-Page archive            =
======================================================*/

.rmg-archive-multi {
	text-align: left;
	/* h1 {
		text-transform: uppercase;
	} */
	.content {
		justify-content: space-between;
		margin-bottom: 40px;
		@media (width >= 768px) {
			display: flex;
			margin-bottom: 100px;
		}
	}
	.interior {
		display: block;
	}
	.gallery-section {
		/* border-top: 14px solid var(--primary-color); */
		padding: 0 20px 20px;
		margin: 0;
		text-align: center;
		@media (width >= 768px) {
			width: calc(50% - 30px);
		}
		a {
			text-decoration: none;
			&:hover,
			&:active,
			&:focus {
				h2 {
					color: var(--primary-accent);
				}
			}
		}
		.category-featured-img {
			background-position: center;
			background-size: cover;
			background-repeat: no-repeat;
			width: 100%;
			height: auto;
			aspect-ratio: 583 / 419;
		}

		h2 {
			margin-top: 30px;
			margin-bottom: 0;
			transition: color .3s;
		}

		ul {
			margin-left: 0;
			li {
				&:before {
					display: none;
				}
			}
		}
	}
	.gallery-content {
		padding-top: 40px;
		padding-bottom: 40px;
		text-align: center;
		@media (width >= 1024px) {
			padding-top: 50px;
			padding-bottom: 55px;
		}
		h2 {
			margin-top: 0;
			/* margin-bottom: 0; */
		}
		p:last-of-type {
			margin-bottom: 0;
		}
	}
}

/*============================================
=            New Gallery Nav? IDK            =
============================================*/

.gallery-nav {
	display: flex;
	justify-content: center;
	column-gap: 10px;
	position: relative;
	margin-bottom: 10px;
	@media (width >= 768px) {
		margin-bottom: 0;
	}
	.button-rmg {
		/* transform: translateY(-50%); */
		cursor: pointer;
		display: inline-block;
		text-align: center;
		text-decoration: none;
		text-transform: capitalize;
		font-family: var(--primary-font);
		background-color: var(--tertiary-alt);
		border: 1px solid var(--tertiary-alt);
		color: var(--primary-color);
		padding: 12px 30px;
		transition: all .3s;
		@media (width >= 768px) {
			font-size: 19px;
			position: absolute;
			top: 50%;
		}

		&:hover,
		&:active,
		&:focus {
			background-color: transparent;
			border-color: var(--primary-color);
			color: var(--primary-color);
		}
		&.case-prev {
			left: 0;
		}
		&.case-next {
			right: 0;
		}
	}
	svg {
		path {
			fill: var(--primary-color);
		}
	}
}
/*
// .gallery-nav {
// 	@include font(16px, 1em);
// 	text-transform: uppercase;
// 	display: flex;
// 	flex-wrap: wrap;
// 	justify-content: space-between;
// 	@media (width >= 768px) {
// 		display: grid;
// 		grid-template-columns: 1fr 1fr;
// 		margin-bottom: 30px;
// 	}
// 	@media (width >= 1024px) {
// 		margin-bottom: 40px;
// 	}
// 	h2 {
// 		padding: 0;
// 		text-transform: capitalize;
// 		font-family: $secondaryFont;
// 		font-weight: $light;
// 		color: $secondaryColor;
// 		text-align: center;
// 		@include ls(-45);
// 		@include font(30px);
// 		width: 100%;
// 		order: 3;
// 		@media (width >= 768px) {
// 			@include font(45px);
// 			order: 2;
// 			margin: 0;
// 			width: auto;
// 		}
// 	}
// 	a {
// 		color: $secondaryColor;
// 		text-decoration: none;
// 		i {
// 			color: $darkColor;
// 		}
// 	}
// 	.button-rmg {
// 		display: flex;
// 		align-items: center;
// 		i {
// 			@include font(35px, 1em);
// 			color: $darkColor;
// 		}
// 	}
// 	.button-gallery-prev {
// 		display: flex;
// 		align-items: center;
// 		order: 1;
// 		i {
// 			margin-right: 10px;
// 		}
// 	}
// 	.button-gallery-next {
// 		display: flex;
// 		align-items: center;

// 		order: 2;
// 		@media (width >= 768px) {
// 			order: 3;
// 			justify-content: flex-end;
// 		}
// 		i {
// 			margin-left: 10px;
// 		}
// 	}
// } */

/*=======================================
=            Category Parent            =
=======================================*/

/*======================================
=            Category Child            =
======================================*/

.cat-intro {
	padding-top: 40px;
	padding-bottom: 40px;
	text-align: center;
	@media (width >= 768px) {
		padding-bottom: 70px;
	}
	@media (width >= 1024px) {
		padding-top: 50px;
		padding-bottom: 110px;
	}
	h2 {
		margin-top: 0;
		/* margin-bottom: 0; */
	}
	p:last-of-type {
		margin-bottom: 0;
	}
}

.tmpl_type_rmg_category_child,
.tmpl_type_rmg_category_parent {
	.gallery-cat-wrap {
		display: grid;
		/* grid-template-columns: 1fr; */
		grid-template-columns: minmax(0, 460px);
		justify-content: center;
		column-gap: 20px;
		row-gap: 40px;
		padding-top: 0;
		padding-bottom: 40px;
		@media (width >= 768px) {
			/* grid-template-columns: 1fr 1fr; */
			grid-template-columns: minmax(0, 460px) minmax(0, 460px);
			column-gap: 45px;
			row-gap: 45px;
			padding-bottom: 60px;
		}
		@media (width >= 1024px) {
			row-gap: 100px;
			padding-bottom: 110px;
		}
		.case-each {
			/* display: flex;
			flex-direction: column;
			justify-content: space-between; */
			h2 {
				background-color: var(--tertiary-alt);
				margin-top: 0;
				text-align: center;
				padding: 15px;
				margin-bottom: 25px;
			}
		}
		.case-button {
			margin-top: 30px;
			text-align: center;
		}
	}
}

/*===================================
=            Single Case            =
===================================*/


.tmpl_type_rmg_single_case {
	.rmg-single-case-content {
		padding-left: 0;
		padding-right: 0;
		.img-wrap {
				padding-left: 20px;
				padding-right: 20px;
				@media (width >= 500px) {
					max-width: 500px;
					margin-left: auto;
					margin-right: auto;
				}
				/* @media (width >= 768px) {
					padding-left: 40px;
					padding-right: 40px;
				}
				@media (width >= 1024px) {
					padding-left: calc(40px + (50vw - (var(--desktop) / 2)));
					padding-right: calc(40px + (50vw - (var(--desktop) / 2)));
				} */
			}
		}


	.cat-intro {
		@media (width >= 1024px) {
			padding-top: 55px;
			padding-bottom: 75px;
		}
	}

	/* Reduce the width of the bnas */
	/* .contain {
		@media (width >= 1024px) {
			@include contain(800px, 0, 100px);
		}
	} */
	.img-wrap {
		display: grid;
		row-gap: 20px;
		padding-bottom: 40px;
		@media (width >= 1024px) {
			padding-bottom: 70px;
		}
	}
	.portrait-wrap,
	.side-by-side {
		column-gap: 10px;
		/* @media (width >= 768px) {
			column-gap: 40px;
		} */
	}
	.patient-details {
		background-color: var(--tertiary-alt);
		padding: 20px;
		margin-left: 20px;
		margin-right: 20px;
		margin-bottom: 40px;
		text-align: center;
		@media (width >= 768px) {
			margin-left: 40px;
			margin-right: 40px;
			padding: 40px;
		}
		@media (width >= 1024px) {
			padding: 60px;
			margin-bottom: 65px;
		}
		@media (width >= 1280px) {
			margin-left: calc(40px + (50vw - (var(--full) / 2)));
			margin-right: calc(40px + (50vw - (var(--full) / 2)));
		}
		.details-hdng {
			margin-top: 0;
			margin-bottom: 20px;
		}
		p:last-of-type {
			margin-bottom: 0;
		}
	}
	.back-btn {
		padding-top: 0;
		&:before {
			content: none;
		}
	}
}


/* RMG Nav */

.rmg-nav {
	display: flex;
	width: 100%;
	margin: 0!important;
	right: 0;
	top: 61px;
	background-color: var(--primary-color);
	padding: 30px 20px;
	border-radius: 3px;
	flex-direction: column;
	@media (width >= 768px) {
		/* column-count: 2; */
		justify-content: space-between;
		flex-wrap: wrap;
		flex-direction: row;
	}
	@media (width >= 1024px) {
		width: 50%;
	}
	li {
			page-break-inside: avoid;
			break-inside: avoid-column;
			position: relative;
			margin-bottom: -1px;
			border-top: 1px solid rgb(from var(--light-color) r g b / 0.1);
			border-bottom: 1px solid rgb(from var(--light-color) r g b / 0.1);
			padding: 0!important;
		&:before {
			display: none;
		}
		@media (width >= 768px) {
			width: 48%;
		}
		button {
			background: none;
			color: var(--light-color);
			border: none;
			display: block;
			width: 100%;
			text-align: left;
			padding: 8px 0;
		}
	}
}


/*==============================
=            Pop Up            =
==============================*/

#notice-body {
	display: inline-block;
}

#notice-body-everything {
	max-width: 500px;
	height: auto;
	padding: 20px;
	display: inline-block;
}

#notice-body-everything h2 {
	text-transform: uppercase;
	font-size: 40px;
	margin: 20px 0 30px 0;
	/* color: #ffffff; */
}

#notice-body p {
	margin: 0 0 30px 0;
	/* color: #ffffff; */
}

#notice-body-everything #buttons {
	display: block;
	text-align: center;
	box-shadow: none;
}

#notice-body-everything #buttons a {
	/* box-shadow: 1px 1px 1px 0px #333; */
	cursor: pointer;
	display: inline-block;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: capitalize;
	font-family: var(--primary-font);
	background-color: var(--tertiary-alt);
	border: 1px solid var(--tertiary-alt);
	color: var(--primary-color);
	padding: 12px 30px;
	transition: all .3s;
	@media (width >= 768px) {
		font-size: 19px;
	}

	&:hover {
		background-color: transparent;
		border-color: var(--primary-color);
		color: var(--primary-color);
	}
}









/* Category Archive */
/*
.tmpl_type_rmg_archive {
	text-align: left;

	h1 {
		text-transform: uppercase;
	}

	h2 {
		font-size: 40px;
		color: var(--dark-color);
	}

	.content {
		justify-content: space-between;

		@media (width >= 768px) {
			display: flex;
		}
	}

	.interior {
		display: block;
	}

	.gallery-section {
		border-top: 14px solid var(--primary-color);
		padding: 0 20px 150px;
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
		margin: 0;
		margin-bottom: 20px;

		@media (width >= 768px) {
			width: 32%;
		}

		ul {
			margin-left: 0;

			li {
				&:before {
					display: none;
				}
			}
		}
	}

	.gallery-content {
		padding-top: 60px;
		padding-bottom: 40px;
	}
} */






/* Category Child */
/*
.tmpl_type_rmg_category_child {
	.gallery-cat-wrap {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 20px;
		row-gap: 20px;

		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
			column-gap: 60px;
			row-gap: 60px;
		}
	}

	.bna-group {
		border-top: 14px solid var(--primary-color);
		position: relative;

		&:hover,
		&:active,
		&:focus {

			@media (width >= 1024px) {
				.hover-overlay {
					display: flex;
					justify-content: center;
					align-items: center;
					position: absolute;
					width: 100%;
					height: 100%;
					top: 0;
					left: 0;
				}
			}
		}

		.hover-overlay {
			display: none;

			.button {
				color: var(--dark-color);
				border: none;

				&:hover,
				&:active,
				&:focus {
					color: var(--dark-color) !important;
				}
			}
		}
	}

	.img-set {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 10px;
		row-gap: 20px;

		a {

			&:nth-last-of-type(2),
			&:nth-last-of-type(1) {
				.bna-label {
					display: block;
				}
			}

			.bna-label {
				display: none;
			}
		}

		img {
			width: 100%;
			margin-bottom: 10px;
		}
	}

	.details-hdng {
		text-align: left;
		font-weight: var(--fw-normal);
		margin-top: 20px;
	}

	.patient-details {
		text-align: left;
	}
} */





/* Single Case */
/*
.tmpl_type_rmg_single_case {
	h2 {
		text-align: left;
	}

	.case-wrap {
		border-top: 12px solid var(--primary-color);
		max-width: 800px;
		margin: 0 auto 50px;
		padding: 0;
	}

	.img-wrap {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 10px;
		row-gap: 10px;

		>div {
			img {
				width: 100%;
			}

			&:nth-last-of-type(2),
			&:nth-last-of-type(1) {
				.bna-label {
					display: block;
				}
			}
		}

		.bna-label {
			display: none;
		}
	}

	.details-hdng {
		text-align: left;
		font-weight: var(--fw-normal);
		margin-top: 20px;
	}

	.patient-details {
		text-align: left;
	}
}

.notice-body-everything {

	h2,
	p {
		color: var(--dark-alt);
	}
}

.bna-label {
	color: var(--dark-color);
	font-weight: var(--fw-normal);
}

.back-btn {
	text-align: left;
	margin-top: 40px;
	margin-bottom: 30px;
	@media (width >= 768px) {
		display: flex;
		justify-content: space-between;
	}

	.button {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.rmg-arrow {
		line-height: 1em;

		&.rmg-arrow-next {
			margin-left: 8px;
		}

		&.rmg-arrow-prev {
			transform: rotate(180deg);
			margin-right: 8px;
		}

		svg {
			width: 16px;
			height: auto;

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

	.gallery-nav {
		display: flex;

		.button {
			&.case-next {
				&:before {
					transform: none;
				}
			}
		}
	}

	.button-rmg {
		padding: 26px;

		&:before {
			left: 18px;
		}
	}
} */









/*=================================
=            Watermark            =
=================================*/

/* .img-set .before-link,
.img-set .after-link {
	position: relative;
	&:after {
		content: url("images/gallery-watermark.png");
		position: absolute;
		bottom: -5px;
		right: 3px;
	}
} */
