.pvd-diary,
.pvd-diary * {
	box-sizing: border-box;
}

.pvd-diary {
	--pvd-bg: #f9fafb;
	--pvd-card: #ffffff;
	--pvd-text: #111827;
	--pvd-muted: #5f6876;
	--pvd-line: #ded6c4;
	--pvd-gold: #aa873f;
	--pvd-border: #e8e8e8;
	position: relative;
	width: 100%;
	padding: 80px 24px;
	background: var(--pvd-bg);
	color: var(--pvd-text);
	overflow: hidden;
}

.pvd-diary__inner {
	width: 100%;
	max-width: 768px;
	margin: 0 auto;
}

.pvd-diary__header {
	margin: 0 auto 58px;
	text-align: center;
}

.pvd-diary__title,
.pvd-entry__title {
	font-family: Georgia, "Times New Roman", serif;
}

.pvd-diary__title {
	margin: 0 0 16px;
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.pvd-diary__intro {
	max-width: 650px;
	margin: 0 auto;
	color: var(--pvd-muted);
	font-size: clamp(1rem, 2.5vw, 1.125rem);
	font-weight: 300;
	line-height: 1.7;
}

.pvd-timeline {
	position: relative;
	margin-left: 20px;
	padding: 0 0 32px 40px;
	border-left: 2px solid var(--pvd-line);
}

.pvd-entry {
	position: relative;
	margin: 0 0 64px;
}

.pvd-entry:last-child {
	margin-bottom: 0;
}

.pvd-entry__marker {
	position: absolute;
	z-index: 2;
	top: 28px;
	left: -51px;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 4px solid #c8cdd4;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition: border-color 180ms ease, transform 180ms ease;
}

.pvd-entry:hover .pvd-entry__marker,
.pvd-entry:focus-within .pvd-entry__marker {
	border-color: var(--pvd-gold);
	transform: scale(1.08);
}

.pvd-entry__card {
	padding: 28px;
	background: var(--pvd-card);
	border: 1px solid var(--pvd-border);
	border-radius: 18px;
	box-shadow: 0 2px 10px rgba(17, 24, 39, 0.045);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pvd-entry__card:hover {
	border-color: #d5d5d5;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.09);
	transform: translateY(-1px);
}

.pvd-entry__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.pvd-entry__title {
	margin: 0;
	font-size: clamp(1.2rem, 3vw, 1.35rem);
	font-weight: 700;
	line-height: 1.3;
}

.pvd-entry__date {
	flex: 0 0 auto;
	display: inline-block;
	padding: 7px 12px;
	background: #f3f4f6;
	border-radius: 999px;
	color: #5c6470;
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.2;
	white-space: nowrap;
}

.pvd-entry__body {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.pvd-entry__content {
	flex: 3 1 0;
	min-width: 0;
	color: var(--pvd-muted);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.75;
}

.pvd-entry__body--without-gallery .pvd-entry__content {
	flex-basis: 100%;
}

.pvd-entry__content > :first-child {
	margin-top: 0;
}

.pvd-entry__content > :last-child {
	margin-bottom: 0;
}

.pvd-entry__content a {
	color: #80621f;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pvd-gallery {
	position: relative;
	flex: 2 1 0;
	min-width: 0;
	aspect-ratio: 1 / 1;
	background: #eef0f2;
	border: 1px solid var(--pvd-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.pvd-gallery__slides,
.pvd-gallery__slide,
.pvd-gallery__open,
.pvd-gallery__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.pvd-gallery__slide {
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 500ms ease;
}

.pvd-gallery__slide.is-active {
	z-index: 1;
	opacity: 1;
	pointer-events: auto;
}

.pvd-gallery__open {
	padding: 0;
	background: transparent;
	border: 0;
	cursor: zoom-in;
}

/*
 * Niektore temy a Elementor nastavuju obrazkom height:auto. Vyssia
 * specificita a !important zabezpecia, ze fotografia vzdy vyplni stvorec.
 */
.pvd-diary .pvd-gallery .pvd-gallery__image {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	transition: transform 500ms ease;
}

.pvd-gallery__open:hover .pvd-gallery__image,
.pvd-gallery__open:focus-visible .pvd-gallery__image {
	transform: scale(1.045);
}

.pvd-gallery__nav,
.pvd-lightbox__nav,
.pvd-lightbox__close {
	display: grid;
	place-items: center;
	padding: 0;
	background: rgba(0, 0, 0, 0.52);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: opacity 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pvd-gallery__nav {
	position: absolute;
	z-index: 3;
	top: 50%;
	width: 36px;
	height: 36px;
	opacity: 0;
	transform: translateY(-50%);
}

.pvd-gallery:hover .pvd-gallery__nav,
.pvd-gallery:focus-within .pvd-gallery__nav {
	opacity: 1;
}

.pvd-gallery__nav:hover,
.pvd-gallery__nav:focus-visible,
.pvd-lightbox__nav:hover,
.pvd-lightbox__nav:focus-visible,
.pvd-lightbox__close:hover,
.pvd-lightbox__close:focus-visible {
	background: var(--pvd-gold);
	color: #fff;
}

.pvd-gallery__nav--prev {
	left: 10px;
}

.pvd-gallery__nav--next {
	right: 10px;
}

.pvd-gallery__nav svg,
.pvd-lightbox__nav svg,
.pvd-lightbox__close svg {
	width: 22px;
	height: 22px;
}

.pvd-gallery__counter {
	position: absolute;
	z-index: 3;
	right: 10px;
	bottom: 10px;
	padding: 4px 8px;
	background: rgba(0, 0, 0, 0.58);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
}

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

.pvd-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 80px;
	background: rgba(0, 0, 0, 0.94);
	backdrop-filter: blur(5px);
}

.pvd-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.pvd-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.pvd-lightbox__caption {
	min-height: 22px;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9rem;
	text-align: center;
}

.pvd-lightbox__close,
.pvd-lightbox__nav {
	position: absolute;
	z-index: 2;
	width: 48px;
	height: 48px;
}

.pvd-lightbox__close {
	top: 24px;
	right: 24px;
}

.pvd-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.pvd-lightbox__nav--prev {
	left: 24px;
}

.pvd-lightbox__nav--next {
	right: 24px;
}

.pvd-lightbox__nav[hidden] {
	display: none;
}

body.pvd-lightbox-open {
	overflow: hidden;
}

.pvd-gallery button:focus-visible,
.pvd-lightbox button:focus-visible {
	outline: 3px solid #f0cd72;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.pvd-diary {
		padding: 64px 16px;
	}

	.pvd-diary__header {
		margin-bottom: 44px;
	}

	.pvd-timeline {
		margin-left: 8px;
		padding-left: 24px;
	}

	.pvd-entry {
		margin-bottom: 42px;
	}

	.pvd-entry__marker {
		top: 24px;
		left: -34px;
		width: 18px;
		height: 18px;
	}

	.pvd-entry__card {
		padding: 20px;
		border-radius: 16px;
	}

	.pvd-entry__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.pvd-entry__body {
		flex-direction: column-reverse;
		gap: 20px;
	}

	.pvd-entry__content,
	.pvd-gallery {
		flex: none;
		width: 100%;
	}

	.pvd-gallery__nav {
		opacity: 1;
	}

	.pvd-lightbox {
		padding: 64px 12px;
	}

	.pvd-lightbox__close,
	.pvd-lightbox__nav {
		width: 42px;
		height: 42px;
	}

	.pvd-lightbox__close {
		top: 12px;
		right: 12px;
	}

	.pvd-lightbox__nav--prev {
		left: 8px;
	}

	.pvd-lightbox__nav--next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pvd-diary *,
	.pvd-diary *::before,
	.pvd-diary *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

