/*
Theme Name: Markéta Brabcová
Theme URI: https://marketabrabcova.cz
Author: Markéta Brabcová
Description: Blokové téma pro web grafické designérky Markéty Brabcové — bílá a tyrkysová z loga, písmo Montserrat.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketa-brabcova
*/

/* Logo: původní logo (SVG) místo textu názvu webu — text zůstává pro čtečky a vyhledávače */
.mb-logo a { display: block; width: 232px; aspect-ratio: 233.44 / 34.91; background: url("assets/img/logo.svg") left center / contain no-repeat; font-size: 0; line-height: 0; color: transparent; text-decoration: none; }
@media (max-width: 600px) { .mb-logo a { width: 190px; } }

/* Hlavička a menu */
.mb-hlavicka { padding-top: 26px; padding-bottom: 26px; }
.mb-menu .wp-block-navigation-item__content { text-decoration: none; color: var(--wp--preset--color--text); }
.mb-menu .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--tyrkys-tmava); }
.mb-menu .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--tyrkys); color: var(--wp--preset--color--inkoust);
	padding: 12px 22px; border-radius: 999px;
}

/* Styly odstavců */
.is-style-rucni { font-family: var(--wp--preset--font-family--rucni); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--wp--preset--color--tyrkys-tmava); }
.is-style-stitek { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--tyrkys-tmava); }
.is-style-perex { font-size: 19px; color: var(--wp--preset--color--text-tlumeny); max-width: 760px; margin-left: 0 !important; }

/* Úvodní obrázek přes šířku (projekty, Kreativní Brabec) — nízký pruh místo čtverce */
.wp-block-image.alignwide.mb-oble img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }

/* Citát ručním písmem */
.wp-block-quote.is-style-rucni { border: 0; padding: 0; margin: 8px 0; }
.wp-block-quote.is-style-rucni p { font-family: var(--wp--preset--font-family--rucni); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; color: var(--wp--preset--color--tyrkys-tmava); }
.wp-block-quote.is-style-rucni cite { font-family: var(--wp--preset--font-family--montserrat); font-size: 14px; color: var(--wp--preset--color--text-tlumeny); font-style: normal; }

/* Karty a plochy */
.mb-karta { background: var(--wp--preset--color--tyrkys-svetla); border-radius: 18px; padding: 28px; }
.mb-karta-bila { background: var(--wp--preset--color--bila); border-radius: 18px; padding: clamp(24px, 3vw, 40px); }
.mb-sedy-pas { background: var(--wp--preset--color--seda-svetla); }
.mb-pruh { background: var(--wp--preset--color--tyrkys); color: var(--wp--preset--color--inkoust); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.mb-pruh h2, .mb-pruh h3, .mb-pruh p { color: var(--wp--preset--color--inkoust); }
.mb-pruh .is-style-rucni { color: var(--wp--preset--color--bila); }
.mb-pilulka { display: inline-block; background: var(--wp--preset--color--tyrkys); color: var(--wp--preset--color--inkoust); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Úvodní dlaždice s fotkou a tmavým přechodem */
.wp-block-cover.mb-dlazdice { border-radius: 20px; overflow: hidden; padding: 36px; color: #fff; height: 100%; }
.wp-block-cover.mb-dlazdice::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(20,20,20,0.8), rgba(20,20,20,0) 72%); }
.wp-block-cover.mb-dlazdice .wp-block-cover__inner-container { z-index: 2; }
.mb-dlazdice h2 a { text-decoration: none; }
.mb-dlazdice h2, .mb-dlazdice h3, .mb-dlazdice p, .mb-dlazdice a { color: #fff; }
.mb-dlazdice .mb-pilulka { color: var(--wp--preset--color--inkoust); }

/* Obrázky se zaoblenými rohy */
.mb-oble img, .wp-block-post-featured-image img, .mb-galerie img { border-radius: 16px; }
.mb-ctverec img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.mb-sirokouhly img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Kroky postupu */
.mb-krok { display: flex; gap: 16px; }
.mb-krok__cislo { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--tyrkys); color: var(--wp--preset--color--inkoust); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0; }

/* Časté otázky */
.wp-block-details { background: var(--wp--preset--color--tyrkys-svetla); border-radius: 16px; padding: 20px 24px; }
.wp-block-details summary { font-weight: 700; font-size: 17px; cursor: pointer; }

/* Tlačítko bílé (na tyrkysové ploše) a obrysové */
.wp-block-button.is-style-bila .wp-block-button__link { background: var(--wp--preset--color--bila); color: var(--wp--preset--color--inkoust); box-shadow: 0 6px 20px rgba(16,41,45,0.12); }
.wp-block-button.is-style-obrys .wp-block-button__link { background: transparent; color: var(--wp--preset--color--text); border: 1.5px solid currentColor; }

/* Patička */
.mb-paticka { font-size: 13px; color: var(--wp--preset--color--text-tlumeny); padding-top: 36px; padding-bottom: 36px; }
.mb-paticka a { color: var(--wp--preset--color--text-tlumeny); }

/* Formulář Contact Form 7 */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #C9D3D5; border-radius: 10px; box-sizing: border-box; }
.wpcf7 input[type="submit"] { background: var(--wp--preset--color--tyrkys); color: var(--wp--preset--color--inkoust); border: 0; border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 700; cursor: pointer; }

/* Obrázky v článcích a stránkách nikdy nepřetečou do strany */
.wp-block-post-content img { max-width: 100%; height: auto; }
.wp-block-post-content figure { max-width: 100%; }

/* Galerie ze starého webu (Jetpack „tiled gallery") — bez pluginu vlastní rozvržení */
.wp-block-jetpack-tiled-gallery { margin: 32px 0; }
.tiled-gallery__gallery { display: flex; flex-direction: column; gap: 10px; }
.tiled-gallery__row { display: flex; gap: 10px; }
.tiled-gallery__col { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; flex-shrink: 1; min-width: 0; }
.tiled-gallery__item { margin: 0; }
.tiled-gallery__item img { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 600px) {
	.tiled-gallery__row { flex-direction: column; }
	.tiled-gallery__col { flex-basis: auto !important; }
}

/* Galerie a obrázky v článcích: zaoblení */
.wp-block-post-content .wp-block-gallery img, .wp-block-post-content .wp-block-image img { border-radius: 10px; }

/* Zvětšení obrázku po kliknutí */
.wp-block-post-content img.mb-zvetsitelny { cursor: zoom-in; }
.mb-zvetseni { position: fixed; inset: 0; z-index: 100000; background: rgba(16, 41, 45, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; opacity: 0; transition: opacity .2s ease; }
.mb-zvetseni.je-otevreno { opacity: 1; }
.mb-zvetseni img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.mb-zvetseni__zavrit, .mb-zvetseni__sipka { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 26px; line-height: 48px; text-align: center; cursor: pointer; padding: 0; }
.mb-zvetseni__zavrit { top: 16px; right: 16px; }
.mb-zvetseni__sipka--predchozi { left: 16px; top: 50%; transform: translateY(-50%); }
.mb-zvetseni__sipka--dalsi { right: 16px; top: 50%; transform: translateY(-50%); }
.mb-zvetseni__zavrit:hover, .mb-zvetseni__sipka:hover { background: var(--wp--preset--color--tyrkys); color: var(--wp--preset--color--inkoust); }

/* Prezentace ze starého webu (Jetpack „slideshow") — bez pluginu jako mřížka náhledů */
.wp-block-jetpack-slideshow { margin: 32px 0; }
.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container,
.wp-block-jetpack-slideshow .swiper-container { overflow: visible; }
.wp-block-jetpack-slideshow_swiper-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; transform: none !important; }
.wp-block-jetpack-slideshow_slide { width: auto !important; margin: 0 !important; }
.wp-block-jetpack-slideshow_slide figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: var(--wp--preset--color--seda-svetla); }
.wp-block-jetpack-slideshow_slide img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: 0 !important; }
.wp-block-jetpack-slideshow_slide figcaption { display: none; }
.wp-block-jetpack-slideshow_button-prev, .wp-block-jetpack-slideshow_button-next,
.wp-block-jetpack-slideshow_button-pause, .wp-block-jetpack-slideshow_pagination,
.wp-block-jetpack-slideshow .swiper-pagination { display: none !important; }

/* Galerie ve starém obsahu bez bloků (styly WordPressu se pro ně nenačtou) */
.wp-block-post-content .wp-block-gallery:not(.has-nested-images) { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 32px 0; }
.wp-block-post-content .wp-block-gallery:not(.has-nested-images) .blocks-gallery-grid { display: contents; }
.wp-block-post-content .wp-block-gallery:not(.has-nested-images) li, .wp-block-post-content .wp-block-gallery:not(.has-nested-images) figure { margin: 0; list-style: none; }
.wp-block-post-content .wp-block-gallery:not(.has-nested-images) img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.wp-block-post-content .wp-block-gallery:not(.has-nested-images) > figcaption { grid-column: 1 / -1; text-align: center; font-size: 15px; color: var(--wp--preset--color--text-tlumeny); }
