/* ---------------------------------------------------------------------------
   site.css -- the only stylesheet written for this static rebuild.
   It contains:
     1. the static replacement for the removed Photo Gallery (BWG) thumbnail
        grid used on the two apartment pages,
     2. the dependency-free lightbox,
     3. the contact/booking form extras (honeypot, inline result message).
   Nothing here overrides the OnePress theme look; it only supplies what the
   removed plugins used to provide.
   --------------------------------------------------------------------------- */

/* --- 1. apartment photo grid -------------------------------------------- */
/* Geometry taken from the inline BWG style that used to be printed on each
   apartment page: a ~1010px centred container, two ~503px columns with a 4px
   gap, a translucent white item background, a 1.1x zoom on hover and a fixed
   tile aspect ratio.
   The aspect ratio differs per page (Lake View Escape tiles are 503x377,
   Moroccan Hideaway tiles are 503x283), so it is supplied per page through the
   --gg-tile-ratio custom property on .apartment-gallery; the fallback is the
   Lake View Escape value.
   A grid is used rather than the plugin's flex row because the plugin sized
   the columns with JavaScript; two equal grid columns reproduce the same two
   ~503px cells at desktop width and stay correct at every other width. */
.apartment-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	width: 1010px;
	max-width: 100%;
	margin: 0 auto;
	padding-top: 4px;
	box-sizing: border-box;
	font-size: 0;
}

.apartment-gallery-item {
	display: block;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	outline: 0;
	text-decoration: none;
	cursor: pointer;
}

.apartment-gallery-item-inner {
	display: block;
	position: relative;
	width: 100%;
	padding-top: var(--gg-tile-ratio, 74.950298210736%);
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.30);
	transition: transform 0.3s ease 0s;
	-webkit-transition: transform 0.3s ease 0s;
}

.apartment-gallery-item img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	/* The plugin sized each image with JavaScript so that every cell of the
	   fixed-ratio box was filled.  Without that script, object-fit does the
	   same job: every tile shows a centre crop and the grid stays lined up. */
	-o-object-fit: cover;
	object-fit: cover;
	max-width: none;
	max-height: none;
	padding: 0 !important;
	border: 0;
}

@media (min-width: 480px) {
	.apartment-gallery-item:hover .apartment-gallery-item-inner {
		-ms-transform: scale(1.1);
		-webkit-transform: scale(1.1);
		transform: scale(1.1);
	}
}

/* --- 2. lightbox -------------------------------------------------------- */
.lightbox-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background-color: #000000;
	background-color: rgba(0, 0, 0, 0.82);
	text-align: center;
	overflow: hidden;
}

.lightbox-overlay.is-open {
	display: block;
}

.lightbox-figure {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.lightbox-image {
	display: block;
	max-width: 92%;
	max-height: 84%;
	width: auto;
	height: auto;
	margin: 0 auto;
	-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
	display: block;
	margin-top: 12px;
	color: #ffffff;
	font-size: 16px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
	position: absolute;
	top: 12px;
	right: 18px;
	z-index: 2;
	width: 44px;
	height: 44px;
	line-height: 44px;
	color: #ffffff;
	font-size: 34px;
	text-decoration: none;
	text-align: center;
	opacity: 0.8;
}

.lightbox-close:hover,
.lightbox-close:focus {
	color: #ffffff;
	opacity: 1;
	text-decoration: none;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	margin-top: -30px;
	z-index: 2;
	width: 60px;
	height: 60px;
	line-height: 56px;
	color: #ffffff;
	font-size: 40px;
	text-align: center;
	text-decoration: none;
	opacity: 0.65;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.lightbox-nav:hover,
.lightbox-nav:focus {
	color: #ffffff;
	opacity: 1;
	text-decoration: none;
}

.lightbox-prev {
	left: 8px;
}

.lightbox-next {
	right: 8px;
}

body.lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.lightbox-image {
		max-width: 96%;
		max-height: 78%;
	}

	.lightbox-nav {
		width: 40px;
		font-size: 30px;
	}
}

/* --- 3. form extras ----------------------------------------------------- */
/* Honeypot: present in the DOM, submitted with the form, never visible. */
.hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.hp-field label {
	display: block;
}

/* cf7.css hides .wpcf7-response-output while the form has the "init" class.
   site.js swaps that class for "sent"/"failed" after a redirect and fills the
   box, so the message keeps the Contact Form 7 look. */
.wpcf7 form.sent .wpcf7-response-output {
	background-color: #f7f7f7;
	color: #252624;
}

.wpcf7 form.failed .wpcf7-response-output {
	background-color: #f7f7f7;
	color: #252624;
}

form.submitting .wpcf7-submit {
	opacity: 0.6;
	cursor: progress;
}
