/*
Theme Name: Prostě Poděbrady
Template: twentytwentyfive
Description: Podšablona Twenty Twenty-Five pro prostepodebrady.eu (barvy a písma podle původního webu).
Version: 1.3
Text Domain: prostepodebrady
*/
.wp-block-latest-posts.is-grid li { background: var(--wp--preset--color--base); padding: 0 0 1rem; }
.wp-block-latest-posts__featured-image img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.wp-block-latest-posts__post-title { font-family: var(--wp--preset--font-family--playfair-display); font-size: 1.25rem; font-weight: 700; }
.has-accent-1-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--contrast); }
.has-contrast-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--base); }

/* Slideshow na titulce */
.pp-slideshow { position: relative; overflow: hidden; height: 600px; margin-top: 0 !important; background: var(--wp--preset--color--contrast); }
.pp-slideshow > figure { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; opacity: 0; transition: opacity 1.2s ease-in-out; }
.pp-slideshow > figure:first-of-type, .pp-slideshow > figure.is-active { opacity: 1; }
.pp-slideshow.is-ready > figure:first-of-type:not(.is-active) { opacity: 0; }
.pp-slideshow > figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-slideshow__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.pp-slideshow__dots button { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.4); cursor: pointer; }
.pp-slideshow__dots button.is-active { background: var(--wp--preset--color--accent-1); }
.pp-slideshow__prev, .pp-slideshow__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.75); cursor: pointer; font-size: 0; }
.pp-slideshow__prev { left: 16px; } .pp-slideshow__next { right: 16px; }
.pp-slideshow__prev::before, .pp-slideshow__next::before { content: ""; display: inline-block; width: 12px; height: 12px; border-top: 3px solid var(--wp--preset--color--contrast); border-right: 3px solid var(--wp--preset--color--contrast); }
.pp-slideshow__prev::before { transform: rotate(-135deg); margin-left: 5px; } .pp-slideshow__next::before { transform: rotate(45deg); margin-right: 5px; }

/* Clanky blogu: uzsi sloupec textu kvuli citelnosti */
body.single-post .wp-block-post-content { --wp--style--global--content-size: 820px; }
@media (max-width: 900px) { .pp-slideshow { height: 500px; } }
@media (max-width: 700px) { .pp-slideshow { height: 350px; } }

/* Tlacitka v zelenych sekcich: tmave modra, jinak by splyvala s pozadim */
.has-accent-1-background-color .wp-element-button { background-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.has-accent-1-background-color .wp-element-button:hover, .has-accent-1-background-color .wp-element-button:focus { background-color: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
