/*
Theme Name: AVMT
Author: JE Consulting
Author URI: https://www.je-consulting.co.uk/
Version: 1.0.0
*/
header h1.h1 {
	margin-bottom: 0;
	color: #918064;
}
header h1.h1 a{
	color: inherit;
	font-size: inherit;
	text-decoration: none;
	font-weight: inherit;
}
nav a {
	background-color: var(--greybg);
	display: block;
	padding: 7px 20px;
	text-decoration: none;
	color: var(--textcolour);
}
nav ul.menu a:hover{
	background-color: var(--textcolour);
	color: #fff;
}
.galleryWrap {
	position: relative;
	margin-bottom: 100px;
}
/*
.gallery--masonry {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 20px;
	position: relative;
}
*/
.gallery--masonry {
	display: grid;
	grid-template-columns: 27% 33% 36%;
	gap: 30px;
	position: relative;
}
.gallery--masonry .gallery__item:first-child {
	grid-row: span 3;
	height: auto;
/*	grid-column: span 2;*/
}
/* each item becomes the “tile” */
.gallery--masonry .gallery__item {
	height: 250px;
	background-position: center center;
	background-size: cover;
}
.gallery__item[data-popup-open] {
	cursor: pointer;
}
.gallery__item_button {
	position: relative;
}
/* base image */
.gallery--masonry .gallery__img {
	width: 100%;
	height: 100%;
	display: block;
	transform: scale(1);
	transition: transform 250ms ease;
	margin: 0;
}
.PopUpGallery__group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.PopUpGallery h3 {
	margin: 50px 0 20px 0;
}
/*
.gallery__item.gallery__item--text {
	grid-row: span 2;
	height: auto;
	grid-column: span 2;
	padding-right: 100px;
}
*/
.gallery__item.gallery__item--specs, .MobileSpecs {
	background-color: var(--primary);
	padding: 30px;
}
.MobileSpecs {
	margin: 30px 0;
}
.gallery__item.gallery__item--specs, .gallery__item.gallery__item--video {
	height: auto;
}
.Map {
	padding-right: 50px;
}
.PopUpGallery {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100vh;
	width: 100%;
	background: #fff;
	z-index: 9999;
	transform: translateY(100%);
	transition: transform 0.45s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 40px;
}

/* open state */
.PopUpGallery.is-open{
	transform: translateY(0);
}

/* optional: stop body scrolling when open */
body.popup-open{
	overflow: hidden;
}

/* optional: make the back control feel clickable */
.PopupClose,
.ShowButton p{
	cursor: pointer;
}
.PopupHeader {
	display: flex;
	justify-content: space-between;
	margin: 20px 0;
}
.PopupHeader p{
	margin-bottom:  0;
}

.PopupHeader p:hover {
	text-decoration: underline;
}
.desktopgallery .ShowButton p {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: ;
	z-index: 9;
}
.ShowButton p i {
	margin-right: 10px;
}
.HomeContent {
	position: relative;
}
.HomeInnerContent {
	position: sticky;
	top: 30px;
}
.gallery__toggle {
	position: absolute;
	right: 15px;
	bottom: 15px;
}
.PropertySpecs {
	margin: 100px 0;
	background-color: var(--primary);
}
.PropertySpecs .PropertySpecsWrapr {
/*
	border-top: 1px solid var(--grey);
	border-bottom: 1px solid var(--grey);
*/
	width: 100%;
	padding: 100px 0;
	display: grid;
	grid-template-columns: 35% 12% auto;
	gap: 100px;
	align-items: center;
}
.PropertySpecsVideo video{
	max-width: 350px;
	height: auto;
	display: block;
	margin: 0 auto;
}
.videoGalleryWrap {
	display: grid;
	grid-template-columns: repeat(1,1fr);
	gap: 12px;
}
.videoGalleryWrap .gallery__item::after {
	content: "";
	padding-bottom: 100%;
	display: block;
}
.videoGalleryWrap .gallery__item {
	background-position: center center;
	background-size: cover;
	cursor: pointer;
}
.Locations .container {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 20px;
	align-items: center;
}
footer{
	padding: 10px 0;
	background-color: var(--grey);
}
footer .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
footer p a{
	text-decoration: none;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1000ms ease, transform 1000ms ease;

  will-change: opacity, transform;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.Locations.reveal.reveal--visible {
	margin-bottom: 100px;
	margin-top: 100px;
}
/*
.gallery__item.gallery__item--text, .gallery__item.gallery__item--specs, .gallery__item.gallery__item--video {
	margin-top: 100px;
}
*/
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.gform_wrapper.gravity-theme .gfield input.large, .gform_wrapper.gravity-theme .gfield select.large, .gform_wrapper.gravity-theme .gfield textarea{
	border: 1px solid var(--grey);
	font-family: OpenSans, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6em;
	font-weight: 400;
	color: var(--textcolour);
}
.pageTitle{
	margin-bottom: 50px;
}
.mobilegallery .ShowButton {
	text-align: center;
	margin: 20px 0;
}
.mobilegallery{
	display: none;
}
.mobilegallery .slick-dots li button::before {
	content: '';
}
.mobilegallery .slick-dots {
	margin: 20px 0;
	position: unset;
}
.mobilegallery .slick-dots li.slick-active button {
	background-color: var(--greybg);
}
.mobilegallery .slick-dots li button {
	font-size: 0;
	line-height: 0;
	display: block;
	width: 15px;
	height: 15px;
	padding: 5px;
	cursor: pointer;
	color: transparent;
	border: 0;
	outline: none;
	background: transparent;
	background-color: var(--primary);
	border-radius: 50%;
}
.popup_video {
	max-width: 300px;
}
.HomeContent .container {
	display: grid;
	grid-template-columns: 50% 25% auto;
	gap: 30px;
}
/* Responsive tweaks */
@media (max-width: 1100px){
	.gallery--masonry{ column-count: 3; }
}

@media (max-width: 750px){
	.gallery--masonry{ column-count: 2; }
}

@media (max-width: 450px){
	.gallery--masonry{ column-count: 1; }
}



/* Resonsive Code */
/* Device = Laptops, Desktops */
@media (min-width: 1280px) and (max-width: 1280px) {
	.container {
		padding: 0 75px;
	}
}

/* Device = Tablets, Ipads (portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
}

/* Device = Tablets, Ipads (landscape) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
	.container {
		padding: 0 20px;
	}
	.navBar {
		display: block;
	}
	nav ul.menu {
		justify-content: center;
		margin-top: 20px;
	}
	.Locations .container {
		display: grid;
		grid-template-columns: repeat(1,1fr);
		gap: 20px;
		align-items: center;
	}
	.Map {
		padding-right: 0px;
	}
	.mobilegallery{
		display: block;
	}
	.desktopgallery{
		display: none;
	}
	.Locations.reveal {
		top: 30p;
		margin-top: 30px;
	}
	.Locations .container > div:first-child {
	  order: 2;
	}

	.Locations .container > div:last-child {
	  order: 1;
	}
	.Locations.reveal.reveal--visible {
		margin-bottom: unset;
	}
	footer .container {
		display: block;
		text-align: center;
	}
	.PopUpGallery__group {
		justify-content: center;
	}
	.PopUpGallery h3 {
		text-align: center;
	}.HomeContent .container {
		grid-template-columns: unset;
	}
}

/* Device = Low Resolution Tablets, Mobiles (Landscape) */
@media (min-width: 481px) and (max-width: 767px) {
	.HomeContent .container {
		grid-template-columns: unset;
	}
	.container {
		padding: 0 20px;
	}
	.navBar {
		display: block;
	}
	nav ul.menu {
		justify-content: center;
		margin-top: 20px;
	}
	.Locations .container {
		display: grid;
		grid-template-columns: repeat(1,1fr);
		gap: 20px;
		align-items: center;
	}
	.Map {
		padding-right: 0px;
	}
	.mobilegallery{
		display: block;
	}
	.desktopgallery{
		display: none;
	}
	.Locations.reveal {
		top: 30p;
		margin-top: 30px;
	}
	.Locations .container > div:first-child {
	  order: 2;
	}

	.Locations .container > div:last-child {
	  order: 1;
	}
	.Locations.reveal.reveal--visible {
		margin-bottom: unset;
	}
	footer .container {
		display: block;
		text-align: center;
	}
	.PopUpGallery__group {
		justify-content: center;
	}
	.PopUpGallery h3 {
		text-align: center;
	}
}

/* Device = Most of the Smartphones Mobiles (Portrait) */
@media (min-width: 320px) and (max-width: 480px) {
	.HomeContent .container {
		grid-template-columns: unset;
	}
	.container {
		padding: 0 20px;
	}
	.navBar {
		display: block;
	}
	nav ul.menu {
		justify-content: center;
		margin-top: 20px;
	}
	.Locations .container {
		display: grid;
		grid-template-columns: repeat(1,1fr);
		gap: 20px;
		align-items: center;
	}
	.Map {
		padding-right: 0px;
	}
	.mobilegallery{
		display: block;
	}
	.desktopgallery{
		display: none;
	}
	.Locations.reveal {
		top: 30p;
		margin-top: 30px;
	}
	.Locations .container > div:first-child {
	  order: 2;
	}

	.Locations .container > div:last-child {
	  order: 1;
	}
	.Locations.reveal.reveal--visible {
		margin-bottom: unset;
	}
	footer .container {
		display: block;
		text-align: center;
	}
	.PopUpGallery__group {
		justify-content: center;
	}
	.PopUpGallery h3 {
		text-align: center;
	}
}