.subpage-hero-6_g {
	background:
	linear-gradient(rgba(205, 193, 181, 0.1), rgba(231, 225, 218, 0.3)),
		url("pics/0_home/gallery-web.jpg")
		center / cover no-repeat;
}

.galerie-section {
	color: var(--color-taupe);
	background: var(--surface-page);
}

.galerie-inner {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 82px 0 96px;
}

.gallery-switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 42px;
}

.gallery-switch-button {
	color: var(--color-text-dark);
	background: transparent;
}

.gallery-switch-button:hover,
.gallery-switch-button:focus,
.gallery-switch-button.is-active {
	color: var(--color-white);
	border-color: var(--color-taupe);
	background: var(--color-taupe);
}

.gallery-panel[hidden] {
	display: none !important;
}

.gallery-title {
	margin: 0 0 24px;
	color: var(--color-text-dark);
	font-size: clamp(1.5rem, 4vw, 2.4rem);
	font-weight: 700;
	letter-spacing: var(--tracking-button);
	text-align: center;
	text-transform: uppercase;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 18px;
}

.gallery-item {
	min-width: 0;
	margin: 0;
	background: var(--surface-card);
	overflow: hidden;
}

.gallery-image-button {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
}

.gallery-image-button:focus-visible {
	outline: 3px solid var(--color-gold-brown);
	outline-offset: 3px;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.gallery-image-button:hover img,
.gallery-image-button:focus-visible img {
	transform: scale(1.035);
}

.gallery-empty {
	margin: 0;
	color: var(--color-taupe);
	text-align: center;
}

.gallery-modal .modal-content {
	min-height: 100vh;
	border: 0;
	border-radius: 0;
	color: var(--color-white);
	background: var(--color-ink);
}

.gallery-modal.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1055;
	overflow: hidden;
	background: var(--color-ink);
}

.gallery-modal.modal.show {
	display: block;
}

.gallery-modal .modal-dialog {
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
}

.gallery-modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 65px;
	padding: 1rem;
	border-bottom-color: rgba(255, 255, 255, 0.16);
}

.gallery-modal .modal-title {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
}

.gallery-modal .btn-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	color: var(--color-white);
	background: rgba(255, 255, 255, 0.14);
	opacity: 0.9;
}

.gallery-modal .btn-close::before {
	content: "x";
	font-size: 1.35rem;
	line-height: 1;
}

.gallery-modal .modal-body {
	display: flex;
	min-height: 0;
	padding: 0;
}

.gallery-modal .carousel {
	width: 100%;
}

.gallery-modal .carousel-inner,
.gallery-modal .carousel-item {
	height: calc(100vh - 65px);
}

.gallery-modal .carousel-item {
	display: none;
}

.gallery-modal .carousel-item.active,
.gallery-modal .carousel-item-next,
.gallery-modal .carousel-item-prev {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(18px, 4vw, 56px) clamp(18px, 7vw, 96px) 72px;
}

.gallery-modal .carousel-item img {
	width: auto;
	height: auto;
	max-width: min(1100px, 100%);
	max-height: min(74vh, 760px);
	object-fit: contain;
	background: var(--color-ink);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.gallery-modal .carousel-indicators {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 1rem;
}

.gallery-modal .carousel-indicators button {
	width: 34px;
	height: 4px;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.42);
}

.gallery-modal .carousel-indicators button.active {
	background: var(--surface-card);
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	color: var(--color-white);
	background: rgba(25, 24, 23, 0.58);
	transform: translateY(-50%);
}

.gallery-modal .carousel-control-prev {
	left: 18px;
}

.gallery-modal .carousel-control-next {
	right: 18px;
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
	width: auto;
	height: auto;
	background-image: none;
}

.gallery-modal .carousel-control-prev-icon::before {
	content: "<";
	font-size: 2.2rem;
	line-height: 1;
}

.gallery-modal .carousel-control-next-icon::before {
	content: ">";
	font-size: 2.2rem;
	line-height: 1;
}

@media (max-width: 575.98px) {
	.galerie-inner {
		width: min(100% - 32px, 1180px);
		padding: 58px 0 72px;
	}

	.gallery-switch {
		margin-bottom: 28px;
	}

	.gallery-switch-button {
		min-width: 0;
		flex: 1 1 140px;
		padding: 12px 10px;
		font-size: 0.86rem;
		letter-spacing: var(--tracking-tight);
		overflow-wrap: anywhere;
	}

	.gallery-switch:has(.gallery-switch-button:nth-child(3)) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gallery-switch:has(.gallery-switch-button:nth-child(3)) .gallery-switch-button:first-child {
		grid-column: 1 / -1;
	}

	.gallery-grid {
		gap: 14px;
	}

	.gallery-modal .carousel-item.active,
	.gallery-modal .carousel-item-next,
	.gallery-modal .carousel-item-prev {
		padding: 0 0 58px;
	}

	.gallery-modal .carousel-item img {
		max-width: 100%;
		max-height: 100%;
		box-shadow: none;
	}
}

@media (max-width: 575.98px) and (orientation: portrait) {
	.subpage-hero-6_g {
		background:
			url("pics/6_g/full_intro_port_01-mobile.jpg")
			center / cover no-repeat;
	}	
}

