/*
Theme Name: Coral Reef Child
description: Client Theme - Coral Reef
Template: coral-reef-parent
Version: 1.0.0
Text Domain: coral-reef-child
Author: BCW
*/

.primary-footer .sitemap .menu li a {color:#fff !important;}
.primary-footer .sitemap .menu li a:hover {color:#999 !important;}

.home #form-section {display: none;}
.home #gallery-section {padding-top:0; margin-top:0;}

.main-nav .menu li {display: flex; justify-content: center; align-items: center;}
.main-nav .menu li a {text-align: center;}

:root {
	--min: min(360px, 100%);
	--cgap: 6px;
	--smargin: 75px;
}
#gallery-sections .toggle-nav {
	justify-content: center;
	width: fit-content;
	margin: 30px auto 0 auto;
	column-gap: var(--cgap);
	flex-wrap: wrap;
	row-gap: var(--cgap);
}
#gallery-sections .toggle-nav .nav-item {
	background-color: #ccc;
	color: #252525;
	padding: .5em 1.5em;
	min-width: 270px;
	text-align: center;
	font-size: 18px;
	cursor: pointer;
	transition: all ease .3s;
	border-bottom: 2px solid var(--color-4);
}
#gallery-sections .toggle-nav .nav-item.active {
	border-color: var(--color-2);
}
#gallery-sections .toggle-nav .nav-item:nth-child(even) {
	background-color: #eee;
	border-color: var(--color-3);
}
#gallery-sections .toggle-nav .nav-item.active:nth-child(even) {
	border-color: var(--color-2);
}
#gallery-sections .toggle-nav .nav-item:hover {
	border-color: var(--color-2);
}
#gallery-sections .toggle-nav .nav-item.active:hover {
	border-color: var(--color-2);
}
#gallery-sections .toggle-section {
	display: none;
}
#gallery-sections .toggle-section.active {
	display: block;
}
#gallery-sections .toggle-section .section-heading {
	text-align: center;
	background: #ccc;
	margin: 0 0 var(--cgap);
	padding: 10px 0;
	font-weight: 700;
}
#gallery-sections .toggle-section:nth-child(even) .section-heading {
	background-color: #eee;
}

#gallery-sections .gallery-section .images {
	display: flex;
	column-gap: var(--cgap);
}
#gallery-sections .gallery-section .images .image-col {
	display: flex;
	flex-direction: column;
}
#gallery-sections .gallery-section .images .image {
	margin-bottom: var(--cgap);
}
#gallery-sections .gallery-section .images .image:last-child {
	flex-grow: 1;
}
#gallery-sections .gallery-section .images .image:last-child img {
	height: 100%;
	object-fit: cover;
}
#gallery-sections .gallery-section .section-heading {font-size: 30px;}
#gallery-sections .gallery-section {margin:0 0 40px 0;}



/* === Media Queries === */
@media screen and (max-width: 991px) {
	.gallery-section .images {
		flex-wrap: wrap;
	}
	.gallery-section .images .col {
		flex: 1 1 calc(50% - (var(--cgap) / 2));
	}

}
@media screen and (max-width: 767px) {
	
	.gallery-section .images {
		display: block;
	}
	.toggle-section .section-heading {
		max-width: 500px;
		margin: 0 auto var(--cgap);
	}
	:root {
		--smargin: 45px;
	}
}