/*
Theme Name: Abaligeti Barlang
Description: Letisztult WordPress-sablon az Abaligeti-barlang honlapjához.
Version: 1.0.7
Requires at least: 6.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: abaligeti-barlang

Visual layout adapted from I Am One by SKT Themes (GPL).
*/

@font-face {
	font-family: Lobster;
	src: url(lobster-latin-ext.woff2) format("woff2");
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Lobster;
	src: url(lobster.woff2) format("woff2");
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #292521;
	--link: #9c3d2e;
	--line: #e3dbd1;
	--brown: #52382b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.65 system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .55em; }
p { margin: 0 0 1em; }
input, textarea, button { font: inherit; max-width: 100%; }
.wrap { width: min(940px, calc(100% - 2rem)); margin-inline: auto; }

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	min-height: clamp(240px, 42vw, 575px);
	background: #332a21;
	color: #fff;
	text-align: center;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero h1 {
	margin: 0;
	padding: .4em .5em;
	background: rgb(0 0 0 / 55%);
	font-size: clamp(1.65rem, 4vw, 3.125rem);
	font-weight: 300;
}

.site-header { background: #242323; color: #fff; border-top: 1px solid #111; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: .7rem; }
.site-name { font-family: Lobster, Georgia, serif; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.2; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; }
.site-name img, .custom-logo { display: block; max-width: min(260px, 100%); max-height: 65px; width: auto; object-fit: contain; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav > ul, .site-nav > .menu > ul { display: flex; flex-wrap: wrap; gap: 0 .8rem; }
.site-nav li { position: relative; }
.site-nav li a { display: block; padding-block: .55rem; font-size: .875rem; font-weight: 600; text-transform: uppercase; }
.site-nav :is(.current-menu-item, .current_page_item) > a { text-decoration: underline; }
.site-nav :is(.sub-menu, .children) { padding-inline-start: .75rem; }

.content-layout { padding-block: clamp(1.5rem, 4vw, 3rem); }
.main-content { min-height: 30vh; min-width: 0; overflow-wrap: anywhere; }
.site-sidebar { min-width: 0; overflow-wrap: anywhere; }
.widget { margin-bottom: 1.5rem; }
.widget-title { font-size: 1.15rem; }
.widget ul, .widget ol { padding-inline-start: 1.2rem; }
.site-sidebar :is(.widget_recent_entries > ul, .wp-block-latest-posts__list) {
	list-style: none;
	padding-inline-start: 0;
}
.site-sidebar :is(.widget_recent_entries > ul, .wp-block-latest-posts__list) > li {
	position: relative;
	padding-inline-start: 1.35rem;
	margin-block-end: .3rem;
}
.site-sidebar :is(.widget_recent_entries > ul, .wp-block-latest-posts__list) > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: .45em;
	width: .95rem;
	height: .65rem;
	background: url("denever.svg") center / contain no-repeat;
}
.post-preview { max-width: 72ch; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.post-preview:first-of-type { padding-top: 0; }
.post-preview h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin-bottom: .3em; }
.post-preview h2 a { text-decoration: none; }
.post-preview h2 a:hover { text-decoration: underline; }
time { display: block; color: #685e55; font-size: .875rem; }
.post-summary, .entry-content { display: flow-root; margin-top: .8rem; }
.preview-image { display: block; margin: 0 0 .85rem; }
.post-summary p { margin-bottom: .5em; }
.read-more { display: inline-block; }
.entry-content img { vertical-align: middle; }
.entry-content .wp-caption-text { margin-top: .3em; font-size: .85rem; line-height: 1.4; }
.entry-content iframe:is([src*="youtube.com/embed/"], [src*="youtube-nocookie.com/embed/"], [src*="player.vimeo.com/video/"]) {
	aspect-ratio: 16 / 9;
	height: auto;
}
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.comments { margin-top: 2rem; }
.comment-list { padding-inline-start: 1.5rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.pagination .page-numbers:not(ul) { display: inline-block; min-width: 2.5rem; padding: .3rem .6rem; text-align: center; border: 1px solid var(--line); text-decoration: none; }
.pagination .current, .pagination a:hover { background: var(--brown); color: #fff; }

.site-footer { padding-block: 2.25rem; text-align: center; color: #fff; background: var(--brown); }
.site-footer p { margin: .5rem 0 0; font-size: .875rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 2; top: .75rem; left: .75rem; width: auto; height: auto; padding: .5rem 1rem; clip-path: none; color: #fff; background: #242323; }

@media (min-width: 600px) {
	.preview-image { float: left; max-width: 46%; margin: 0 1rem .5rem 0; }
}

@media (min-width: 800px) {
	.content-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; }
	.site-nav :is(.sub-menu, .children) {
		position: absolute;
		z-index: 1;
		top: 100%;
		left: 0;
		min-width: 11rem;
		padding: .25rem .75rem;
		background: #242323;
		visibility: hidden;
	}
	.site-nav li:last-child > :is(.sub-menu, .children) { left: auto; right: 0; }
	.site-nav li:hover > :is(.sub-menu, .children),
	.site-nav li:focus-within > :is(.sub-menu, .children) { visibility: visible; }
}

@media (max-width: 799px) {
	.site-sidebar { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
}
