/*
 * Dirty Parks – výpis článků a časová osa (náhrada Massive Addons, 2026-11-09).
 * Třídy mpc-… zůstávají kvůli CSS uloženému ve stránkách a v Customizeru.
 */

/* ===== Výpis článků [dp_posts_grid] ===== */
.dp-posts-grid { display: flex; flex-wrap: wrap; box-sizing: border-box; }
/* dvě třídy kvůli přebití Betheme „.wpb_wrapper > div { margin-bottom: 35px }“ */
.dp-posts-grid.mpc-grid-posts { margin-left: -20px; margin-bottom: -20px; }
.dp-posts-grid *, .dp-posts-grid *::before, .dp-posts-grid *::after { box-sizing: border-box; }
.dp-posts-grid .mpc-post { width: 25%; min-width: 150px; cursor: pointer; }
.dp-posts-grid .mpc-post__wrapper { position: relative; z-index: 1; overflow: hidden; margin: 0 0 20px 20px; }
.dp-posts-grid .mpc-post__thumbnail { position: relative; display: block; height: var(--dp-thumb-h, 211px); background-size: cover; background-repeat: no-repeat; background-position: center center; overflow: hidden; }
.dp-posts-grid .mpc-post__overlay { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, .5); opacity: 0; transition: opacity .25s; }
.dp-posts-grid .mpc-post:hover .mpc-post__overlay { opacity: 1; }
.dp-posts-grid .mpc-post__content { padding-top: 35px; }
.dp-posts-grid .mpc-post__heading { margin: 0; padding: 0; font-family: Montserrat, sans-serif; font-weight: 700; font-style: normal; font-size: 16px; line-height: 1.2; text-transform: uppercase; color: #fff; transition: color .25s; }
.dp-posts-grid .mpc-post__heading a { font: inherit; transition: inherit; text-decoration: none; outline: none; }
/* celá karta je odkaz */
.dp-posts-grid .mpc-post__heading a::after { content: ""; position: absolute; inset: 0; z-index: 20; }
.dp-posts-grid .mpc-post__description { margin-top: 30px; font-size: 14px; line-height: 1.6; color: #fff; overflow: hidden; }

@media (max-width: 1199px) {
	.dp-posts-grid .mpc-post { width: 50%; }
}
@media (max-width: 767px) {
	.dp-posts-grid .mpc-post { width: 100%; }
}

/* ===== Časová osa [dp_timeline] ===== */
.dp-timeline { position: relative; display: block; box-sizing: border-box; padding-top: var(--dp-gap-top, 70px); }
.dp-timeline *, .dp-timeline *::before, .dp-timeline *::after { box-sizing: border-box; }
.dp-timeline::after { content: ""; display: table; clear: both; }
.dp-timeline a, .dp-timeline a:focus { outline: none; }

.dp-timeline .mpc-timeline__track { position: absolute; top: 0; left: 50%; display: block; width: 1px; height: 100%; margin-left: -.5px; background: #fdc60e; }
.dp-timeline .mpc-timeline__track::after { content: ""; position: absolute; left: 0; bottom: -60px; display: block; width: 100%; height: 60px; background-image: linear-gradient(#fdc60e, rgba(0, 0, 0, 0) 90%); }

/* tečky – kreslené v CSS (dřív ikona Font Awesome „circle“) */
.dp-timeline .mpc-track__icon,
.dp-timeline .mpc-tl-icon { line-height: 1em; text-align: center; }
.dp-timeline .mpc-track__icon i,
.dp-timeline .mpc-tl-icon i { position: relative; display: block; width: 1.35em; height: 1.35em; font-style: normal; }
.dp-timeline .mpc-track__icon i::before,
.dp-timeline .mpc-tl-icon i::before { content: ""; position: absolute; left: 50%; top: 50%; width: .86em; height: .86em; margin: -.43em 0 0 -.43em; border-radius: 50%; background: currentColor; transition: background-color .25s; }

.dp-timeline .mpc-track__icon { position: absolute; bottom: 100%; left: 50%; margin-left: -12px; display: inline-block; font-size: 18px; color: #fdc60e; }

.dp-timeline .mpc-timeline-item__wrap { position: relative; float: left; width: 50%; padding-left: 60.5px; padding-right: 60.5px; }
.dp-timeline .mpc-timeline-item__wrap[data-side="left"] { padding-left: 0; }
.dp-timeline .mpc-timeline-item__wrap[data-side="right"] { padding-right: 0; }
.dp-timeline.dp-ready .mpc-timeline-item__wrap { float: none; }

.dp-timeline .mpc-timeline-item { position: relative; display: block; min-height: 80px; padding: 14px 20px 30px; border: 0 solid transparent; text-align: right; }
.dp-timeline .mpc-timeline-item > * { position: relative; z-index: 2; }
.dp-timeline .mpc-timeline-item > :last-child { margin-bottom: 0; }

.dp-timeline .mpc-tl-before { position: absolute !important; top: 0; display: block; width: 60.5px; height: 0; margin-top: 25px; border: 0 solid #fdc60e; border-bottom-width: 1px; transition: border-color .25s; }
.dp-timeline .mpc-timeline-item__wrap:hover .mpc-tl-before { border-color: #fff; }

.dp-timeline .mpc-tl-icon { position: absolute; top: 0; z-index: 3; display: inline-block; margin-top: 15px; font-size: 14px; color: #fdc60e; transition: color .25s; }
.dp-timeline .mpc-timeline-item__wrap:hover .mpc-tl-icon { color: #fff; z-index: 5; }

.dp-timeline .mpc-timeline-item__heading { margin-top: 0; font-size: var(--dp-title-size, 20px); text-align: var(--dp-title-align, right); color: #fdc60e; }
/* prázdný inline prvek jako dřív (ikona typu obrázek bez obrázku) – drží stejnou mezeru pod nadpisem */
.dp-timeline .mpc-timeline-item > .mpc-icon { display: inline-block; vertical-align: middle; line-height: 1em; max-width: 100%; overflow: hidden; }
.dp-timeline .mpc-timeline-item__description { margin: 30px 0 0; font-size: var(--dp-content-size, 17px); line-height: 1.7; text-align: left; color: #fff; }
.dp-timeline .mpc-timeline-item__description > p { color: inherit; font-size: inherit; font-family: inherit; line-height: inherit; text-align: inherit; text-transform: inherit; max-width: 100%; }

.dp-timeline .mpc-divider { display: block; width: 20%; margin: 0 0 .75em auto; }
.dp-timeline .mpc-divider span { display: block; border-top: 1px solid #fdc60e; }

@media (min-width: 769px) {
	.dp-timeline .mpc-timeline-item__wrap[data-side="left"] .mpc-tl-before { left: 100%; }
	.dp-timeline .mpc-timeline-item__wrap[data-side="right"] .mpc-tl-before { right: 100%; }
	.dp-timeline .mpc-timeline-item__wrap[data-side="left"] .mpc-tl-icon { left: 100%; transform: translateX(-50%); }
	.dp-timeline .mpc-timeline-item__wrap[data-side="right"] .mpc-tl-icon { right: 100%; transform: translateX(50%); }
}

@media (max-width: 768px) {
	.dp-timeline .mpc-timeline__track,
	.dp-timeline .mpc-track__icon { left: 0 !important; }
	.dp-timeline .mpc-timeline-item__wrap,
	.dp-timeline.dp-ready .mpc-timeline-item__wrap { position: relative !important; left: auto !important; top: auto !important; float: none !important; width: 100%; padding-left: 10px; padding-right: 0 !important; margin-bottom: 0; }
	.dp-timeline .mpc-tl-before { right: 100% !important; }
	.dp-timeline .mpc-tl-icon { right: 100%; transform: translateX(50%); }
}
