/* Site-wide centering overrides (loaded last on every page) */

#wrapper,
#maincontent,
#footercontent,
.main_text,
#text_contend,
.copyright,
.caption,
.submenu,
.product-sidebar,
#menu_left,
h1, h2, h3, h3.ident-top-2 {
	text-align: center;
}

.row {
	justify-content: center;
}

/* Header: logo, menu and flags stacked and centered */
.header {
	height: auto;
	min-height: 20em;
	align-content: flex-end;
}
.logo {
	height: auto;
}
.header > div,
.header > div.logo {
	display: block;
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	text-align: center;
}
.logo,
nav,
nav.menu-holder,
nav.menu-holder-lang {
	display: block;
	width: 100%;
}
.logo img {
	margin: 0 auto;
}
nav.menu-holder ul {
	margin: 0.5em 0 0;
	padding: 0;
}
.sf-menu li {
	float: none;
	display: inline-block;
	margin: 0 0.9em;
}
nav.menu-holder-lang {
	text-align: center;
	padding-top: 0.5em;
	padding-bottom: 1em;
}
.menu-holder-lang a {
	display: inline-block;
	padding: 0 0.25em;
}

/* Content */
.main_text {
	margin-left: 0;
}
#maincontent img,
iframe.map-border-1-1 {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.product-sidebar ul {
	list-style: none;
	padding: 0;
}
.submenu {
	margin-left: 0;
	padding-left: 0;
	background-image: none;
}
.ce-column,
#text_contend div.video,
#submenu_container,
.submenu_category,
#page_menu div.image_menu {
	float: none;
	display: inline-block;
}
#page_menu {
	text-align: center;
}

/* Contact form */
#maincontent form {
	max-width: 500px;
	margin: 0 auto;
}

/* Header background (map) stretched across the full page width, same height */
header.container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	background: url(../../images/common/contact-header.png) left top / 100% 405px no-repeat;
}
header.container > .header {
	background: none;
	width: auto;
	max-width: 1182px;
	margin-left: auto;
	margin-right: auto;
}

/* Activities carousel: a bit taller than the original 140px banners, photos cropped to fill */
.activities-carousel .carousel-item img {
	height: 200px;
	object-fit: cover;
}

/* Gallery pop-up viewer */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox[hidden] {
	display: none;
}
.lightbox-img {
	max-width: 88vw;
	max-height: 86vh;
	border-radius: 6px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.lightbox button {
	position: absolute;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	border-radius: 50%;
	transition: background 0.2s;
}
.lightbox button:hover {
	background: rgba(0, 110, 154, 0.85);
}
.lightbox-prev,
.lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 24px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 30px;
}
.lightbox-counter {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	text-align: center;
	color: #ddd;
	font-size: 14px;
}
@media (max-width: 600px) {
	.lightbox-img { max-width: 100vw; }
	.lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 18px; }
	.lightbox-prev { left: 6px; }
	.lightbox-next { right: 6px; }
}
