/*
 * Gallery page ("Galerie" / "Gallery").
 *
 * No reference HTML/CSS was supplied for this page — the approved mockup
 * covers only the homepage, services, and contact pages. To keep the same
 * look and feel as the pages ported from that mockup, this stylesheet
 * reproduces the same framed 1200px shell, compact header, and compact
 * footer treatment as homepage-reference.css, services-reference.css, and
 * about.css, and reuses their measurements/palette for the new sections
 * below.
 */

body.rd-gallery-page {
	background: #efe7dc;
	font-size: 15px;
	line-height: 1.6;
}

body.rd-gallery-page .site {
	width: min(100%, 1200px);
	margin-inline: auto;
	background: #fbf8f3;
	box-shadow: 0 0 38px rgb(59 42 30 / 12%);
}

body.rd-gallery-page .site-header {
	min-height: 78px;
}

body.rd-gallery-page .site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: 100%;
	min-height: 78px;
	padding-inline: 24px;
}

body.rd-gallery-page .site-branding {
	flex: 0 0 auto;
	width: 224px;
}

body.rd-gallery-page .site-branding__logo {
	width: 100%;
	height: 45px;
	object-fit: contain;
	object-position: left center;
}

body.rd-gallery-page .site-navigation {
	margin-inline-start: auto;
}

body.rd-gallery-page .primary-menu {
	gap: 24px;
}

body.rd-gallery-page .primary-menu a {
	padding-block: 31px;
	font-size: 12px;
	letter-spacing: 0;
}

body.rd-gallery-page .site-header__actions {
	gap: 14px;
}

body.rd-gallery-page .site-header__booking {
	height: 44px;
	padding-inline: 22px;
}

body.rd-gallery-page .site-footer__inner {
	grid-template-columns: 28% 22% 28% 22%;
	gap: 0;
	width: 100%;
	min-height: 160px;
	padding: 34px 32px;
}

body.rd-gallery-page .site-footer__brand,
body.rd-gallery-page .site-footer__section {
	padding-inline: 22px;
	border-inline-end: 1px solid rgb(255 255 255 / 16%);
}

body.rd-gallery-page .site-footer__section:last-child {
	border-inline-end: 0;
}

body.rd-gallery-page .site-footer__heading {
	margin-block-end: 8px;
	color: var(--rd-color-ivory);
}

body.rd-gallery-page .site-footer__section:not(.site-footer__actions) .site-footer__heading {
	display: none;
}

body.rd-gallery-page .site-footer__booking,
body.rd-gallery-page .site-footer__bar {
	display: none;
}

body.rd-gallery-page .site-footer__social-placeholder {
	margin: 0;
	font-size: 24px;
	letter-spacing: 8px;
}

.rd-gallery-collection {
	overflow: hidden;
	background: #fbf8f3;
}

.rd-gallery-collection .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding-inline: 22px;
	background: var(--rd-color-rust);
	color: #fff;
	border: 1px solid var(--rd-color-rust);
	font-size: 12px;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
}

.rd-gallery-collection .btn:hover {
	background: var(--rd-color-rust-dark);
	border-color: var(--rd-color-rust-dark);
}

.rd-gallery-collection .section-title {
	margin: 0 0 20px;
	font: 400 23px var(--rd-font-display);
	text-align: center;
	text-transform: uppercase;
}

.rd-gallery-collection .rd-page-hero {
	display: grid;
	grid-template-columns: 45% 55%;
	height: 255px;
	background: var(--rd-color-ivory);
	overflow: hidden;
}

.rd-gallery-collection .rd-page-hero__copy {
	padding: 44px 42px;
}

.rd-gallery-collection .rd-page-hero__copy h1 {
	margin: 0 0 15px;
	color: #8b3f20;
	font: 400 44px / 1.02 var(--rd-font-display);
	text-transform: uppercase;
}

.rd-gallery-collection .rd-page-hero__copy p {
	margin: 0;
}

.rd-gallery-collection .rd-page-hero__image {
	height: 255px;
	overflow: hidden;
}

.rd-gallery-collection .rd-page-hero__image img {
	width: 100%;
	height: 255px;
	object-fit: cover;
	object-position: center 36%;
}

.rd-gallery-collection__category {
	padding: 34px 42px;
	border-block-start: 1px solid #d8c9ba;
}

.rd-gallery-collection__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	max-width: 60rem;
	margin-inline: auto;
}

.rd-gallery-collection__item {
	margin: 0;
}

.rd-gallery-collection__trigger {
	display: block;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.rd-gallery-collection__trigger img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: opacity 0.15s ease;
}

.rd-gallery-collection__trigger:hover img,
.rd-gallery-collection__trigger:focus-visible img {
	opacity: 0.86;
}

.rd-gallery-collection__trigger:focus-visible {
	outline: 2px solid var(--rd-color-rust);
	outline-offset: 2px;
}

.rd-gallery-collection__item figcaption {
	padding-block-start: 8px;
	color: #6e6760;
	font-size: 12px;
	font-style: italic;
	text-align: center;
}

.rd-gallery-collection__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 30rem;
	padding: 32px;
	margin-inline: auto;
	background: #fff;
	border: 1px dashed #b86f49;
}

.rd-gallery-collection__placeholder-icon {
	opacity: 0.5;
}

.rd-placeholder-note {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	margin: 0;
	color: #6e6760;
	font-size: 13px;
	font-style: italic;
	text-align: center;
}

.rd-placeholder-note__badge {
	padding: 3px 8px;
	background: #b86f49;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rd-gallery-collection__cta {
	padding: 34px 26px 40px;
	text-align: center;
}

.rd-gallery-collection__cta .btn {
	width: 430px;
	max-width: 100%;
}

/* Lightbox image viewer */

.rd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rd-lightbox[hidden] {
	display: none;
}

.rd-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(30 22 16 / 88%);
}

.rd-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	max-width: min(92vw, 1100px);
	max-height: 90vh;
}

.rd-lightbox__figure {
	margin: 0;
	text-align: center;
}

.rd-lightbox__figure img {
	display: block;
	max-width: min(92vw, 1000px);
	max-height: 78vh;
	object-fit: contain;
	margin-inline: auto;
}

.rd-lightbox__figure figcaption {
	padding-block-start: 12px;
	color: #f4ede2;
	font-size: 14px;
	font-style: italic;
}

.rd-lightbox__close,
.rd-lightbox__prev,
.rd-lightbox__next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgb(255 255 255 / 12%);
	border: 1px solid rgb(255 255 255 / 40%);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
}

.rd-lightbox__close:hover,
.rd-lightbox__prev:hover,
.rd-lightbox__next:hover {
	background: rgb(255 255 255 / 24%);
}

.rd-lightbox__close {
	top: -18px;
	inset-inline-end: -18px;
	width: 40px;
	height: 40px;
	font-size: 22px;
	line-height: 1;
}

.rd-lightbox__prev,
.rd-lightbox__next {
	top: 50%;
	width: 48px;
	height: 48px;
	font-size: 28px;
	line-height: 1;
	transform: translateY(-50%);
}

.rd-lightbox__prev {
	inset-inline-start: -64px;
}

.rd-lightbox__next {
	inset-inline-end: -64px;
}

@media (max-width: 800px) {
	body.rd-gallery-page .site-header {
		min-height: 66px;
	}

	body.rd-gallery-page .site-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		min-height: 66px;
		padding-inline: 16px;
	}

	body.rd-gallery-page .site-branding {
		width: 172px;
	}

	body.rd-gallery-page .site-branding__logo {
		height: auto;
	}

	body.rd-gallery-page .site-header__actions {
		gap: 4px;
	}

	body.rd-gallery-page .site-navigation {
		margin-inline-start: 0;
	}

	body.rd-gallery-page .site-footer__inner {
		grid-template-columns: 1fr;
		padding: 30px 18px;
	}

	body.rd-gallery-page .site-footer__brand,
	body.rd-gallery-page .site-footer__section {
		grid-column: auto;
		padding: 18px 0;
		border-inline-end: 0;
		border-block-end: 1px solid rgb(255 255 255 / 16%);
	}

	body.rd-gallery-page .site-footer__section:last-child {
		border-block-end: 0;
	}

	.rd-gallery-collection .rd-page-hero {
		grid-template-columns: 1fr;
		height: auto;
	}

	.rd-gallery-collection .rd-page-hero__copy {
		padding: 34px 18px;
	}

	.rd-gallery-collection .rd-page-hero__copy h1 {
		font-size: 34px;
	}

	.rd-gallery-collection .rd-page-hero__image,
	.rd-gallery-collection .rd-page-hero__image img {
		height: 240px;
	}

	.rd-gallery-collection__category {
		padding: 26px 18px;
	}

	.rd-gallery-collection__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.rd-gallery-collection__cta {
		padding: 26px 18px 30px;
	}

	.rd-lightbox__dialog {
		max-width: 94vw;
	}

	.rd-lightbox__prev,
	.rd-lightbox__next {
		width: 40px;
		height: 40px;
		font-size: 22px;
	}

	.rd-lightbox__prev {
		inset-inline-start: 4px;
	}

	.rd-lightbox__next {
		inset-inline-end: 4px;
	}

	.rd-lightbox__close {
		top: 4px;
		inset-inline-end: 4px;
	}
}
