/**
 * Bejegyzés és oldal tartalma: kiemelt kép lapozó, nagyító, formázott szöveg, táblázat, galéria, csatolmányok.
 *
 * @package duna_group_web
 */

.single-post-featured-track {
	position: relative;
	min-height: auto;
	touch-action: pan-y;
}

.single-post-featured-item {
	display: none;
}

.single-post-featured-item.is-active {
	display: block;
}

.single-post-featured-dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	z-index: 4;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(8, 18, 32, .35);
	backdrop-filter: blur(8px);
}

.single-post-featured-dot {
	width: 11px;
	height: 11px;
	border-radius: 999px;
	background: rgba(255,255,255,.5);
	border: 1px solid rgba(255,255,255,.9);
	opacity: .9;
	transition: width .25s ease, transform .25s ease, background .25s ease, opacity .25s ease;
}

.single-post-featured-dot:hover,
.single-post-featured-dot:focus-visible {
	transform: scale(1.08);
	background: rgba(255,255,255,.9);
	opacity: 1;
}

.single-post-featured-dot.is-active {
	width: 28px;
	background: #fff;
}

.single-post-lightbox[hidden] {
	display: none !important;
}

.single-post-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(5, 10, 18, .92);
	z-index: 2200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.single-post-lightbox-stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: pan-y;
}

.single-post-lightbox-item {
	display: none;
	max-width: 100%;
	max-height: 100%;
}

.single-post-lightbox-item.is-active {
	display: block;
}

.single-post-lightbox-item img {
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 120px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 5px;
	margin: 0 auto;
}

.single-post-lightbox-close,
.single-post-lightbox-arrow {
	position: absolute;
	z-index: 2;
	width: 50px;
	height: 50px;
	border-radius: 5px;
	background: rgba(9, 20, 36, .50);
	color: #fff;
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.22);
	transition: transform .25s ease, background .25s ease, opacity .25s ease;
	font-size: 25px;
	line-height: 25px;
}

.single-post-lightbox-close:hover,
.single-post-lightbox-close:focus-visible,
.single-post-lightbox-arrow:hover,
.single-post-lightbox-arrow:focus-visible,
.single-post-lightbox-close:hover,
.single-post-lightbox-close:focus-visible {
	background: rgba(255,255,255,.45);
}

.single-post-lightbox-close {
	top: 24px;
	right: 24px;
	line-height: 1;
}

.single-post-lightbox-arrow.prev {
	left: 30px;
}

.single-post-lightbox-arrow.next {
	right: 30px;
}

body.lightbox-open {
	overflow: hidden;
}

.single-post-title {
	font-size: 2.5rem;
	line-height:1.2;
	margin-bottom: 20px;
	font-weight: 500;
}

.single-post-title:has(+ .single-post-subtitle) {
	margin-bottom: 8px;
}

.single-post-subtitle {
	font-size: 1.35rem;
	line-height: 1.35;
	font-weight: 600;
	color: #223042;
	margin: 0 0 20px;
}

.entry-content.rich-content *:first-child {
	margin-top: 0 !important;
}

.single-post-meta {
    font-size: 1rem;
    color: #fff;
    background: var(--blue);
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 10px 3px 10px;
    border-radius: 5px;
	font-weight: 600;
}

.rich-content {
	font-size: 1.1rem;
	color:#223042;
}

.rich-content strong {
	font-weight: 500;
}

.rich-content > * + * {
	margin-top: 20px;
}

.rich-content > h1 + ul, .rich-content > h1 + ol,
.rich-content > h2 + ul, .rich-content > h2 + ol,
.rich-content > h3 + ul, .rich-content > h3 + ol,
.rich-content > h4 + ul, .rich-content > h4 + ol,
.rich-content > h5 + ul, .rich-content > h5 + ol,
.rich-content > h6 + ul, .rich-content > h6 + ol {
    margin-top: 15px;
}

.rich-content > * + ul,
.rich-content > * + ol {
	margin-top: 10px;
}

.rich-content ul li, .rich-content ol li {
    margin-top: 5px;
}

h2,
h3,
h4,
h5,
h6 {
	font-weight: 500;
}

.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
	line-height:1.2;
	margin-top: 25px;
	font-weight: 500;
}

.rich-content h2 strong,
.rich-content h3 strong,
.rich-content h4 strong,
.rich-content h5 strong,
.rich-content h6 strong {
	font-weight: 700;
}

.entry-content.rich-content a {
    text-decoration: underline;
}

.rich-content img {
	border-radius: 5px;
	float: left;
	margin: 0.4em 1.2em 1em 0;
	max-width: 48%;
	height: auto;
}

.rich-content img.alignleft,
.rich-content .alignleft {
	float: left;
	margin: 0.4em 1.2em 1em 0;
	max-width: 48%;
}

.rich-content img.alignright,
.rich-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.2em;
	max-width: 48%;
}

.rich-content img.alignfull,
.rich-content .alignfull,
.rich-content .wp-caption.alignfull {
	display: block;
	float: none;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 1em 0;
}

.rich-content .wp-caption.alignleft,
.rich-content .wp-caption.alignright {
	max-width: 48%;
}

.rich-content .wp-caption.alignleft img,
.rich-content .wp-caption.alignright img,
.rich-content .wp-caption.alignfull img {
	float: none;
	margin: 0;
	width: 100%;
	height: auto;
}

.rich-content::after {
	content: "";
	display: table;
	clear: both;
}

.rich-content ul,
.rich-content ol {
	padding-left: 22px;
}

.rich-content ul {
	list-style: disc;
}

.rich-content ol {
	list-style: decimal;
}

.post-share,
.post-gallery-section,
.post-attachments {
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid rgba(20,33,52,.2);
}

.post-share h2,
.post-gallery-section h2,
.post-attachments h2 { font-size: 1.35rem; margin-bottom: 18px; }

.post-share-links { display:flex; gap:12px; flex-wrap: wrap; }

.post-gallery-slider {
	position: relative;
	overflow: hidden;
	padding: 0 56px;
}

.post-gallery-track {
	display: flex;
	gap: 20px;
	transition: transform .35s ease;
}

.post-gallery-item {
	flex: 0 0 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #f0f2f5;
}

.post-gallery-item img {
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	object-position: top center;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 45px;
	height: 45px;
	border-radius: 5px;
	background: rgba(47, 111, 213, .50);
	color:#fff;
	font-size: 25px;
	line-height: 25px;
	z-index: 4;
	border: 1px solid rgba(255,255,255,.18);
	backdrop-filter: blur(8px);
	transition: transform .25s ease, background .25s ease, opacity .25s ease;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
	background: rgba(9, 20, 36, .90);
}

.slider-arrow.prev { left: 18px; }

.slider-arrow.next { right: 18px; }

@media (max-width: 767px) {
	.slider-arrow {
		width: 44px;
		height: 44px;
		font-size: 1.6rem;
	}

	.slider-arrow.prev { left: 10px; }

	.slider-arrow.next { right: 10px; }

	.single-post-featured-dots {
		bottom: 12px;
		padding: 7px 12px;
		gap: 8px;
	}

	.single-post-featured-dot.is-active {
		width: 22px;
	}
}

.attachment-list { display:grid; gap:12px; }

.attachment-list a {
	display:flex;
	align-items:center;
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--blue);
	color: #FFF;
	transition: all 0.3s;
}

.attachment-link-text {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
}

.attachment-link-icon {
	display: none;
}

.attachment-link-title,
.attachment-link-ext {
	font-weight: 600;
}

.attachment-list a:hover {
	background: var(--blue-dark);
}

.page-content-block { padding-top: 0; }

.empty-state { padding: 40px; text-align: center; }

.empty-state--large h2 { font-size: 2rem; margin-bottom: 12px; }

.duna-media-preview,
.duna-file-preview { margin-top: 16px; display:flex; flex-wrap: wrap; gap: 12px; }

.duna-media-preview li { width: 100px; height: 100px; overflow:hidden; border:1px solid #ddd; border-radius: 8px; }

.duna-media-preview img { width:100%; height:100%; object-fit:cover; object-position: top center;}

.duna-file-preview li { padding: 8px 12px; background:#f5f5f5; border-radius:6px; }

.entry-content.rich-content table {
	border-collapse: collapse;
}

table td,
table th {
	font-size: 1rem;
	border: 1px solid #ccc;
}

table thead tr th {
    background: var(--blue);
    color: #FFF;
    font-weight: bold;
    padding: 15px;
}

table td {
	padding: 15px;
	border: 1px solid #ccc;
}
