/*
 * BÖSZ kiegészítések a Tortuga téma stíluslapjához.
 * A fejléc szabályai a régi WP header.php inline stílusait váltják ki.
 */

/* ---------- Fejléc ---------- */
.site-header {
	background: #2e6f36;
}

#logo.site-branding {
	width: 100%;
}

.site-branding .site-logo {
	float: left;
	margin-left: 50px;
}

.site-title-text {
	margin-top: 0;
	margin-bottom: 6px;
	font-family: 'Titillium Web', Tahoma, Arial;
	font-size: 40px;
	text-align: center;
}

.site-subtitle-text {
	margin-top: 1px;
	margin-bottom: 1px;
	font-size: 25px;
	text-align: center;
}

#main-navigation-wrap {
	background: #292929;
	border-top: 6px solid #292929;
}

@media only screen and (max-width: 60em) {
	.site-branding .site-logo {
		margin-left: 0;
	}

	.site-title-text {
		font-size: 28px;
	}
}

@media only screen and (max-width: 40em) {
	.site-branding .site-logo {
		float: none;
		display: block;
		margin: 0 auto 0.5em;
	}

	.site-title-text {
		font-size: 22px;
	}

	.site-subtitle-text {
		font-size: 20px;
	}
}

/* ---------- Elnökség ---------- */
.elnokseg-sor {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	margin: 0 auto 1.5em;
}

.elnokseg-sor--keskeny {
	width: 80%;
}

.elnokseg-tag {
	margin: 0;
	padding: 0.5em;
	text-align: center;
}

.elnokseg-tag img {
	display: block;
	margin: 0 auto 0.75em;
	border: 0;
}

@media only screen and (max-width: 40em) {
	.elnokseg-sor,
	.elnokseg-sor--keskeny {
		width: 100%;
		grid-auto-flow: row;
	}
}

/* ---------- Galéria (a régi Photo Gallery plugin megjelenése) ---------- */
.galeria {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 1.5em;
	padding-top: 4px;
	padding-left: 4px;
}

.galeria-elem {
	flex: 0 1 calc(25% - 4px);
	max-width: 250px;
	box-sizing: border-box;
	margin: 0 4px 4px 0;
	padding: 4px;
	background-color: rgba(232, 232, 232, 0.3);
	text-decoration: none;
	transition: transform 0.3s ease 0s;
}

@media only screen and (max-width: 40em) {
	.galeria-elem {
		flex-basis: calc(50% - 4px);
	}
}

.galeria-elem:hover {
	transform: rotate(2deg);
}

.galeria-keret {
	position: relative;
	display: block;
	padding-top: 56%;
	overflow: hidden;
}

.galeria-keret img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.galeria-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
}

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

.galeria-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.galeria-lightbox button {
	position: absolute;
	padding: 0 0.4em;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
}

.galeria-lightbox-bezar {
	top: 10px;
	right: 20px;
}

.galeria-lightbox-lepteto--elozo {
	left: 10px;
}

.galeria-lightbox-lepteto--kovetkezo {
	right: 10px;
}
