
.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;

	&.interior {
		display: block;
		padding-bottom: 100px;
	}
	.gallery-section {
		margin-bottom: 50px;
		@media (width >= 768px) {
			display: grid;
			grid-template-columns: 1fr 1fr;
		}
		.gallery-archive-photo {
			/* order: 2; */
			background-color: var(--tertiary-color);
			display: flex;
			align-items: center;
			img {
				border: 20px solid var(--tertiary-color);
				@media (width >= 1024px) {
					border: 30px solid var(--tertiary-color);
				}
			}
		}
		.gallery-archive-section {
			display: flex;
			flex-direction: column;
			justify-content: center;
			background-color: var(--tertiary-color);
			padding: 20px;
			@media (width >= 1024px) {
				padding: 30px 30px 30px 60px;
			}
		}
	

		ul {
			list-style: none;
			margin: 0;
			@media (width >= 768px) {
				margin-left: 16px;
			}
			li {
				border-left: 2px solid var(--text-color);
				text-align: left;
				padding: 0 20px 8px;
				@media (width >= 768px) {
					padding-left: 28px;
				}
			}

			a {
				width: 100%;
				text-align: left;
				color: var(--text-color);
				font-size: 18px;
				font-weight: var(--fw-normal);
				line-height: 1em;
				&:hover {
					color: var(--primary-accent);
					text-decoration: 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-heading {
		padding-top: 20px;
		@media (width >= 768px) {
			padding-top: 76px;
		}
	}
	.gallery-cat-wrap {
		padding-bottom: 100px;
		@media (width >= 768px) {
			display: grid;
			column-gap: 20px;
			row-gap: 60px;
			grid-template-columns: 1fr 1fr;
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
		@media (width >= 1024px) {
			column-gap: 57px;
			row-gap: 95px;
		}
	}
	.case-each {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 50px;
		@media (width >= 768px) {
			margin-bottom: 0;
		}
		h2 {
			background-color: var(--light-alt);
			width: 100%;
			padding: 16px;
			text-align: center;
			margin: 0;
		}
		.bna-group {
			padding-top: 12px;
			padding-bottom: 12px;
			width: 100%;
		}
		.bna-label {
			text-align: center;
			text-transform: uppercase;
			color: var(--text-color);
			margin-top: 12px;
		}
		.case-more {
			background-color: var(--light-alt);
			width: 100%;
			padding: 35px;
			text-align: center;
		}
	}
}

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


.tmpl_type_rmg_single_case {

	/* Reduce the width of the bnas */
	.contain {
		padding-top: 20px;
		padding-bottom: 40px;
		@media (width >= 768px) {
			padding-top: 76px;
		}
		@media (width >= 1024px) {
			padding: 76px calc(40px + (50vw - (800px / 2))) 40px;
		}
	}
	h1 {
		padding-bottom: 76px;
	}
	.img-wrap {
		display: grid;
		row-gap: 20px;
		@media (width >= 768px) {
			column-gap: 20px;
		}
		@media (width >= 1024px) {
			row-gap: 30px;
		}
	}
	.bna-label {
		text-align: center;
		text-transform: uppercase;
		padding: 12px;
	}
	.portrait-wrap,
	.side-by-side {
		column-gap: 20px;
		@media (width >= 1024px) {
			column-gap: 45px;
		}
	}
	.case-details-wrap {
		background-color: var(--light-alt);
		text-align: center;
		padding: 40px;
		margin-bottom: 76px;
		@media (width >= 1024px) {
			padding: 60px 130px; 
		}
		.details-hdng {
			margin-top: 0;
		}
	}
}

/*==================================
=            pagination            =
==================================*/

.pagination {
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
	position: relative;
	width: 100%;
	margin-top: 0;
	padding-top: 34px;
	font-weight: var(--fw-medium);
	border-top: 1px solid var(--text-color);
	@media (width >= 768px) {
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 60px;
	}
	@media (width >= 1024px) {
		font-size: 20px;
	}
	.pagination-back {
		text-transform: uppercase;
		margin-bottom: 16px;
		text-align: center;
		@media (width >= 768px) {
			margin-bottom: 0;
			text-align: left;
		}
		a {
			text-decoration: none;
			color: var(--text-color);
			&:hover {
				color: var(--primary-accent);
				svg {
					path {
						fill: var(--primary-accent);
					}
				}
			}
		}
		svg {
			margin-right: 6px;
			width: 25px;
			height: 20px;
			path {
				fill: var(--text-color);
			}
		}
	}
	.prev-blog-button,
	.next-blog-button {
		text-transform: uppercase;
		display: flex;
		align-items: center;
		text-decoration: none;
		svg {
			height: 20px;
			width: auto;
			path, polygon {
				fill: var(--text-color);
			}
		}
	}
	.prev-blog-button {
		svg {
			margin-right: 6px;
			transform: rotate(180deg);
		}
	}
	.next-blog-button {
		svg {
			margin-left: 6px;
		}
	}
	&.pagination-header {
		flex-direction: row;
		.pagination-navigation {
			justify-content: space-between;
			width: 100%;
			padding-top: 50px;
			position: relative;
			@media (width >= 768px) {
				padding-top: 0;
			}
			.button {
				@media (width >= 768px) {
					width: 100px;
				}
			}
			.prev-blog-button, .next-blog-button {
				@media (width < 768px) {
					top: 0;
				}
			}
			.prev-blog-button {
				order: 1;
			}
			.next-blog-button {
				order: 3;
			}
		}
	}
	.tmpl_type_index {
		@media (width >= 768px) {
			justify-content: flex-end;
		}
	}
	.blog-title {
		order: 2;
		text-align: center;
	}
	.main-blog-button {
		text-align: center;
		margin: 0 auto;
		order: 2;
		@media (width >= 768px) {
			order: 1;
			margin: 0;
		}
		.button {
			@media (width >= 768px) {
				min-width: 200px;
			}
		}
		/* svg {
			width: 11px;
			height: 11px;
			margin-right: 13px;
		}
		@media (width >= 768px) {
			padding-top: 0;
		}
		&:hover, &:active, &:focus {
			svg {
				path {
					fill: $secondaryAlt;
				}
			}
		}
		&:before {
			display: none;
		} */
	}
	.pagination-navigation {
		display: flex;
		align-items: center;
		justify-content: center;
		column-gap: 20px;
		order: 1;
		text-align: center;
		@media (width >= 768px) {
			order: 2;
			column-gap: 40px;
		}
		a {
			text-decoration: none;
			color: var(--text-color);
			&:hover {
				color: var(--primary-accent);
				svg {
					path, polygon {
						fill: var(--primary-accent);
					}
				}
			}
		}
		.button {
			display: flex;
			align-items: center;
			justify-content: center;

			span {
				display: flex;
				svg {
					width: 14px;
					height: auto;
					path {
						fill: var(--light-color);
					}
				}
			}
		}
	}
	.prev-blog-button {
		margin-right: 5px;
		position: relative;
		@media (width >= 768px) {
			margin-bottom: 0;
		}
		.text-container {
			margin-left: 5px;
		}
	}
	.next-blog-button {
		margin-left: 5px;
		position: relative;
		@media (width >= 768px) {
			margin-bottom: 0;
		}
		.text-container {
			margin-right: 5px;
		}
	}
	.button {
		width: 140px;
		padding: 14px 10px 12px;
		@media (width >= 768px) {
			width: 170px;
			padding: 14px 30px 12px;
		}
	}
}


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




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

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