
.rmgallery {
	.side-by-side {
		display: flex;
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 10px;
		height: 100%;
		> 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 {
			
			.button {
				background-color: var(--light-color);
				padding: 20px;
                display: flex;
			}
			svg {
				width: 36px;
				height: auto;
			}
			&.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); */
				}
			}
		}
	}
	.view-more {
		text-align: center;
		margin-top: 15px;
	}

}

/*=====================================================
=            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;
	padding-bottom: 40px;
	@media (width >= 768px) {
		padding-bottom: 60px;
	}
	@media (width >= 1024px) {
		padding-bottom: 110px;
	}
	h1 {
		text-transform: uppercase;
	}
	h2 {
		font-size: 40px;
		color: var(--primary-color);
		border-bottom: 2px solid var(--secondary-color);
		padding-bottom: 5px;
		width: fit-content;
		margin-bottom: 0.73em;
	}
	.content {
	}
	.interior {
		display: block;
	}

	.gallery-image {
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
		min-height: 60vw;
		@media (width >= 768px) {
			min-height: 45vw;
		}
		@media (width >= 1024px) {
			min-height: 380px;
			height: 100%;
		}
	}

	.gallery-info {
		background-color: rgb(from var(--light-alt) r g b / 0.5);
		padding: 40px 20px;
		@media (width >= 768px) {
			padding: 40px;
		}
		@media (width >= 1024px) {
			padding: 60px;
		}
	}

	.gallery-section {
		margin: 0;
		margin-bottom: 35px;
		@media (width >= 1024px) {
			display: grid;
			grid-template-columns: 1fr 1fr;
			column-gap: 30px;
			row-gap: 30px;
		}
		&:last-of-type {
			margin-bottom: 0;
		}
		ul {
			margin: 0;
			margin-left: 15px;
			@media (width >= 768px) {
				column-count: 2;
				column-gap: 60px;
			}
			li {
				cursor: pointer;
				&:before {
					display: none;
				}
				a {
					cursor: pointer;
					color: var(--secondary-color);
					&:hover {
						color: var(--primary-alt);
					}
				}
			}
		}
	}
	.gallery-content {
		padding-top: 60px;
		padding-bottom: 40px;
	}
}

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

.gallery-nav {
	display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    text-align: center;
    column-gap: 20px;
	@media (width >= 768px) {
		order: 2;
        display: grid;
		width: 100%;
		grid-template-columns: 60px 1fr 60px;
		grid-template-areas: "prev . next";
	}
	@media (width >= 1024px) {
	}
	.button-rmg {
		padding: 10px;
		/* border: 1px solid var(--primary-color); */
		display: flex;
		align-items: center;
		justify-content: center;
		@media (width >= 768px) {
			padding: 20px;
		}
		&:hover {
			svg {
				path {
					fill: var(--primary-alt);
				}
			}
		}
	}
	.case-prev {
		grid-area: prev;
	}
	.case-next {
		grid-area: next;
	}
	svg {
		width: 18px;
		height: auto;
		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;
		padding-top: 0;
		padding-bottom: 40px;
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
			row-gap: 60px;
			padding-bottom: 70px;
		}
		/* @media (width >= 1024px) {
			grid-template-columns: 1fr 1fr 1fr;
		} */


		.case-each {
			display: flex;
			flex-direction: column;
			.bna-group {
				flex-grow: 1;
				flex-basis: 0;
				.before-img, .after-img {
					position: relative;
					display: flex;
					&:after {
						content: " ";
						background-image: url('/wp-content/themes/rm-basetheme/images/svg/watermark.svg');
						position: absolute;
						top: 0;
						left: 0;
						width: 100%;
						height: 100%;
						opacity: 0.5;
						z-index: 1;
						background-repeat: no-repeat;
						background-position: bottom 10px right 10px;
						background-size: 30%;
					}
				}
			}
		}

		h2 {
			font-size: 25px;
            font-weight: var(--fw-medium);
			font-family: var(--primary-font);
			background-color: rgb(from var(--tertiary-color) r g b / 0.5);
            text-align: center;
            padding: 20px;
            margin-top: 0;
            margin-bottom: 5px;
            text-transform: uppercase;
			letter-spacing: 0.1em;
		}
	}
}

.back-btn {
	display: flex;
	flex-direction: column;
	/* margin-bottom: 30px; */
	position: relative;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 85px;
	border-top: 1px solid var(--light-alt);
	padding-top: 20px;
	/* Tablet Styles */
	@media (width >= 768px) {
		row-gap: 20px;
		margin-top: 40px;
		flex-direction: row;
		justify-content: space-between;
		padding-top: 40px;
	}
	@media (width >= 1024px) {
		margin-top: 65px;
	}
	.button {
		background-color: transparent;
		color: var(--primary-color);
		padding: 0;
		svg {
			g, path {
				fill: var(--primary-color);
				transition: all 0.3s;
			}
		}
		&:hover {
			color: var(--secondary-color);
			svg {
				g, path {
					fill: var(--secondary-color);
				}
			}
		}
		&:before {
			display: none;
		}
	}

	.main-gallery-button {
		text-align: center;
		margin: 0 auto;
		order: 2;

		/* Tablet Styles */
		@media (width >= 768px) {
			order: 1;
			margin: 0;
			position: absolute;
			left: 0;
			right: 0;
			top: 50%;
			padding-top: 40px;
			transform: translateY(-50%);
		}

		.button {
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 15px 20px;
			width: fit-content;
			margin-left: auto;
            margin-right: auto;
			@media (width >= 768px) {
				padding-top: 0;
				padding-bottom: 0;
			}
		}

		.icon {
			display: flex;
		}

		svg {
			width: 20px;
			height: auto;
			margin-right: 10px;
		}
	}

	.gallery-navigation {
		display: flex;
		align-items: center;
		justify-content: center;
		order: 1;
		text-align: center;
		flex-direction: column;

		/* Tablet Styles */
		@media (width >= 768px) {
			order: 2;
			display: grid;
			grid-template-columns: 1fr 1fr;
			grid-template-areas: 'b-prev b-next';
			width: 100%;
		}

		.button {
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 15px 0;
			@media (width >= 768px) {
				padding: 0;
			}
			span {
				svg {
					width: 12px;
					height: auto;
				}
			}
		}
	}

	.button-gallery-prev {
		margin-right: 5px;
		position: relative;
		grid-area: b-prev;
		@media (width >= 768px) {
			margin-right: auto;
			margin-left: 0;
		}

		.text-container {
			margin-left: 10px;
		}
	}

	.button-gallery-next {
		margin-left: 5px;
		position: relative;
		grid-area: b-next;
		@media (width >= 768px) {
			margin-right: 0;
			margin-left: auto;
		}
		.text-container {
			margin-right: 10px;
		}
	}
}

/*===================================
=            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: 15px;
	}

	.before-img, .after-img {
		position: relative;
		&:after {
			content: " ";
			background-image: url('/wp-content/themes/rm-basetheme/images/svg/watermark.svg');
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			opacity: 0.5;
			z-index: 1;
			background-repeat: no-repeat;
			background-position: bottom 10px right 10px;
			background-size: 30%;
		}
	}

	.single-nav {
		position: relative;
		margin-bottom: 20px;
		background-color: var(--primary-highlight);
		display: flex;
    	flex-direction: column;
		padding-top: 20px;
		padding-bottom: 10px;
		@media (width >= 768px) {
			padding-top: 0;
			padding-bottom: 0;
		}
		h1 {
			color: var(--primary-color);
			margin-bottom: 0.5em;
			@media (width >= 768px) {
				position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
				margin-bottom: 0;
			}
		}
	}

	.case-wrap {
		margin-bottom: 20px;
		max-width: 1105px;
		margin-left: auto;
		margin-right: auto;
		@media (width >= 768px) {
			margin-bottom: 40px;
		}
		@media (width >= 1024px) {
			margin-bottom: 65px;
		}
	}

	.details-hdng {
		color: var(--primary-alt);
		margin-bottom: 15px;
		@media (width >= 768px) {
			font-size: 25px;
			margin-top: 45px;
		}
	}
}


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