/* Category Archive */

.tmpl_type_rmg_archive {
	text-align: left;

	h1 {
		text-transform: uppercase;
	}

	.gallery-section {
		h2 {
			font-size: 28px;
			line-height: 1.14em;
			font-weight: var(--fw-bold);
			text-transform: uppercase;
			margin-bottom: 15px;
		}
	}


	.content {
		justify-content: space-between;

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

	.interior {
		display: block;
		padding-bottom: 40px;
		@media (width >= 768px) {
			padding-bottom: 60px;
		}
		@media (width >= 1024px) {
			padding-bottom: 130px;
		}
	}

	.gallery-image {
		background-repeat: no-repeat;
		background-position: center;
		background-size: cover;
		margin-bottom: 15px;
		aspect-ratio: 357 / 316;
		height: auto;
		width: 100%;
		outline: 1px solid var(--light-color);
		outline-offset: -15px;
	}

	.gallery-info {
		background-color: var(--tertiary-color);
		padding: 35px 20px;
		flex-grow: 1;
		flex-basis: 0;
	}

	.gallery-section {
		display: flex;
    	flex-direction: column;
		ul {
			margin: 0;
			margin-left: 25px;
			li {
				list-style-type: "+  ";
				&:hover {
					&::marker {
						color: var(--primary-highlight);
					}
				}
				&:before {
					display: none;
				}
				&::marker {
					color: var(--secondary-color);
					transition: all 0.3s;
				}
				a {
					text-decoration: none;
				}
			}
		}
	}

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


/* Category Child */

.tmpl_type_rmg_category_child {

	.interior {
		padding-top: 40px;
		padding-bottom: 40px;
		@media (width >= 768px) {
			padding-top: 60px;
			padding-bottom: 60px;
		}
		@media (width >= 1024px) {
			padding-bottom: 110px;
		}

		h2 {
			font-size: 28px;
			font-weight: var(--fw-bold);
			text-align: center;
			background-color: var(--tertiary-color);
			padding: 11px 15px;
			margin-top: 0;
			margin-bottom: 15px;
			text-transform: uppercase;
		}
	}

	.gallery-cat-wrap {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 20px;
		row-gap: 20px;
		padding-top: 0;
		margin-top: 40px;
		/* Tablet Styles */
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
			column-gap: 60px;
			row-gap: 60px;
			margin-top: 60px;
		}
		@media (width >= 1024px) {
			column-gap: 100px;
			row-gap: 85px;
			margin-top: 85px;
		}
	}

	h1 {
		color: var(--secondary-color);
		text-align: center;
		text-transform: none;
		text-shadow: none;
		margin-bottom: 20px;
	}

	.gallery-content {
		text-align: center;
	}

	.bna-group {
		/* border-top: 14px solid var(--primary-color); */
		/* padding: 0 20px 40px; */
		position: relative;
		text-align: center;
		&:hover,
		&:active,
		&:focus {

			/* Desktop Styles */
			@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: 12px;
		row-gap: 20px;
		margin-bottom: 10px;
		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 {
	.single-case-content {
		padding-top: 40px;
		padding-bottom: 40px;
		@media (width >= 768px) {
			padding-top: 60px;
			padding-bottom: 60px;
		}
		@media (width >= 1024px) {
			padding-bottom: 100px;
		}
	}
	h1.hdng {
		margin-top: 0;
		margin-bottom: 0;
		color: var(--secondary-color);
		text-align: center;
		text-transform: none;
		text-shadow: none;
		margin-bottom: 40px;
		@media (width >= 768px) {
			margin-bottom: 60px;
		}
		@media (width >= 1024px) {
			margin-bottom: 100px;
		}
	}

	.header-gallery-nav {
		text-align: center;
		margin-bottom: 40px;
		@media (width >= 768px) {
			margin-bottom: 60px;
		}
		@media (width >= 1024px) {
			margin-bottom: 100px;
		}
	}

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

	.img-wrap {
		display: grid;
		grid-template-columns: 1fr 1fr;
		/* column-gap: 40px; */
		column-gap: 12px;
		row-gap: 20px;
		text-align: center;
		max-width: 630px;
		margin-left: auto;
		margin-right: auto;
		@media (width >= 768px) {
			row-gap: 45px;
		}
		@media (width >= 1024px) {
			/* column-gap: 90px; */
		}
		>div {
			img {
				width: 100%;
			}

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

		.bna-label {
			/* display: none; */
			margin-top: 15px;
			line-height: 1em;
		}
	}

	.details-hdng {
		text-align: center;
		margin-top: 40px;
		padding: 20px;
		background-color: var(--tertiary-color);
		margin-bottom: 10px;
		@media (width >= 768px) {
			margin-top: 65px;
		}

	}

	.patient-info-items {
		margin: 0 0 1em;
		li {
			list-style: none;
		}

		.title {
			display: inline-block;
			margin-right: 5px;
			font-weight: 700;
		}
	}

	.patient-details {
		text-align: left;
		padding: 20px;
		background-color: var(--tertiary-color);
		@media (width >= 768px) {
			padding: 40px 45px;
		}
	}
}

.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;
	background-color: var(--tertiary-color);
	position: relative;

	/* Tablet Styles */
	@media (width >= 1024px) {
		display: flex;
		justify-content: space-between;
		margin-top: 65px;
	}

	.button {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 20px 5px;
		svg {
			path {
				transition: all 0.3s;
			}
		}
		&:hover {
			svg {
				path {
					fill: var(--primary-highlight);
				}
			}
		}
		&:before {
			display: none;
		}
	}

	.gallery-btn {
		@media (width >= 1024px) {
			position: absolute;
			left: 0;
			right: 0;
			top: 50%;
			transform: translateY(-50%);
		}
		.icon {
			margin-right: 5px;
		}
	}

	.rmg-arrow {
		/* width: 16px; */
		line-height: 1em;

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

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

		svg {
			width: 12px;
			height: auto;

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

	.gallery-nav {
		display: flex;
		flex-direction: column;
		/* justify-content: space-between; */

		column-gap: 20px;
		width: 100%;
		@media (width >= 500px) {
			flex-direction: row;
			justify-content: space-between;
		}
		@media (width >= 768px) {
			display: grid;
			grid-template-columns: 1fr 1fr;
			grid-template-areas: 'c-prev c-next';
        	/* column-gap: 280px; */
		}
		@media (width >= 1024px) {
			column-gap: 300px;
		}
		.button {
			&.case-prev {
				grid-area: c-prev;
				@media (width >= 768px) {
					display: flex;
        			justify-content: flex-start;
				}
			}
			&.case-next {
				grid-area: c-next;
				@media (width >= 768px) {
					display: flex;
        			justify-content: flex-end;
				}
			}
		}
	}

	.button-rmg {
		padding: 20px;

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

/*==============================
=            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; */
}
/* Single Case - legacy case number subtitle under the H1 */
.tmpl_type_rmg_single_case .hdng.has-case-number {
	margin-bottom: 0;
}

.tmpl_type_rmg_single_case .case-number {
	margin-top: .4em;
	margin-bottom: 40px;
	text-align: center;
	color: var(--secondary-color);
}

@media (width >= 768px) {
	.tmpl_type_rmg_single_case .case-number {
		margin-bottom: 60px;
	}
}

@media (width >= 1024px) {
	.tmpl_type_rmg_single_case .case-number {
		margin-bottom: 100px;
	}
}
