
.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 {
			&.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);
				}
			}
		}
	}

}

/*=====================================================
=            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;
	}
	h2 {
		font-size: 40px;
		color: var(--primary-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;
	}
}

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

.gallery-nav {
	.button-rmg {
		padding: 10px;
		border: 1px solid var(--primary-color);
	}
	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            =
======================================*/

.tmpl_type_rmg_category_child,
.tmpl_type_rmg_category_parent {
	.gallery-cat-wrap {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 20px;
		row-gap: 20px;
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
		}
		@media (width >= 1024px) {
			grid-template-columns: 1fr 1fr 1fr;
		}
	}
}

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


.tmpl_type_rmg_single_case {

	/* Reduce the width of the bnas */
	/* .contain {
		@media (width >= 1024px) {
			@include contain(800px, 0, 100px);
		}
	} */
	.img-wrap {
		display: grid;
		row-gap: 20px;
	}
	.portrait-wrap,
	.side-by-side {
		column-gap: 20px;
	}
}


/* 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;
}









/* 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;
	}
} */
