/*
 Theme Name:   Wolverine Child Theme
 Theme URI:    http://themes.g5plus.net/wolverine
 Description:  Wolverine Child Theme
 Author:       G5plus
 Author URI:   http://g5plus.net
 Template:     wolverine
 Version:      1.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: 				two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
Text Domain: 		g5plus-framework
*/


/************************************************************************************
Put your custom CSS below this block :)
*************************************************************************************/
@media screen and (min-width: 992px) {
    header.main-header .container {
		background-image: url(/wp-content/themes/wolverine-child/assets/images/pod_menu.png);
		background-position: center left;
		background-repeat: no-repeat;
    }
    header.main-header .header-nav-wrapper {
        background-color: #2d336f !important;
    }	
	.nav-hover-primary .menu-wrapper .x-nav-menu li.current-menu-item > a.x-menu-a-text, .nav-hover-primary .menu-wrapper .x-nav-menu li > a.x-menu-a-text, .nav-hover-primary .menu-wrapper .x-nav-menu li.x-menu-item:hover > a  {
        color: #fff !important;
	}	
	.nav-hover-primary .menu-wrapper .x-sub-menu li > a.x-menu-a-text {
        color: #2d336f !important;
		font-size: 14px;
	}		
	.nav-hover-primary .menu-wrapper .x-sub-menu li.current_page_item > a.x-menu-a-text {
        color: #2d336f !important;
	}			
	
	header.main-header .menu-wrapper .x-nav-menu li > ul.x-sub-menu li > a {
        letter-spacing: 0 !important;
        font-size: 14px !important;
    }	
	
	header.main-header .menu-wrapper .x-nav-menu > li.x-menu-item > a {
			font-size: 15px;
	}	
    header.main-header ul.header-social-profile-wrapper i.fa-facebook {
        color: #fff;
		font-size: 20px;
		margin-right: 2em;
    }	
	.nav-hover-primary .menu-wrapper .x-nav-menu li > a.x-menu-a-text:hover {
		color: #ffc319 !important;
	}	
    header.main-header ul.header-social-profile-wrapper a:hover i.fa-facebook {
        color: #ffc319 !important;
    }	
    .nav-hover-primary .menu-wrapper .x-nav-menu li.current-menu-ancestor > a.x-menu-a-text, .nav-hover-primary .menu-wrapper .x-nav-menu li.current-menu-parent > a.x-menu-a-text {
		color: #ffc319 !important;
	}	
}

@media screen and (min-width: 992px) and (max-width: 1199px) {	
	header.main-header .menu-wrapper .x-nav-menu > li.x-menu-item + li.x-menu-item {
		margin-left: 10px !important;
	}
	header.main-header .menu-wrapper .x-nav-menu > li.x-menu-item > a {
        font-size: 14px; 
    }
	header.main-header ul.header-social-profile-wrapper i.fa-facebook {
		margin-right: 0; 
	}
}

@media screen and (min-width: 1200px) {	
	header.main-header .menu-wrapper .x-nav-menu > li.x-menu-item + li.x-menu-item {
		margin-left: 30px !important;
	}
}

@media screen and (max-width: 991px) {
    header.header-mobile-2 .header-container-wrapper {
        background-color: #2d336f;
    }
    .header-mobile-nav {
        background: #c3c7eb;
    }	
	.x-nav-menu li.x-menu-item:not(.x-sub-menu-open):hover {
        background-color: #5a609e;
    }
	.x-nav-menu li.x-menu-item > a.x-menu-a-text {
		color: #2d336f !important;
	}		
	.x-nav-menu li.x-menu-item:hover > a.x-menu-a-text {
		color: #ffc319 !important;
	}
    .x-nav-menu ul.x-sub-menu {
        background-color: #b3b7d9;
    }	
}

.footer_top_holder .container {
	   background-color: #f0f0f0;
	   padding: 60px 40px;
}

footer.main-footer-wrapper .main-footer {
    background-color: #f0f0f0 !important;
    padding: 0 !important;
}

footer h1,footer h2,footer h3,footer h4,footer h5,footer h6 {
	color: #2d336f;
}
footer a {
	color: #2d336f;
	font-weight: bold;
}
footer a:hover {
	color: #2d336f;
	font-weight: bold;
	text-decoration: underline;
}
footer p {
	color: #000;
}

footer h1,footer h2,footer h3,footer h4,footer h5,footer h6, footer p {
	margin-bottom: 0;
}

#wrapper-content {
	padding: 3em 0;
}

#wrapper-content .container {
    padding-right: 40px;
    padding-left: 40px;
}

.modula-item .figc-inner {
  position: absolute !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  text-align: center !important;
  padding: 15px !important;
  box-sizing: border-box;
}

.modula-item p.description {
  background-color: rgba(0, 0, 0, 0.65);
}

@media screen and (min-width: 781px) {
	#wrapper-content .container .trikolora {
		background-image: url(https://tomcz.myqnapcloud.com:923/wp-content/uploads/2025/06/trikolora.png?id=33) !important;
		background-position: top right !important;
	}
}

.page .entry-content table td, .page .entry-content table th  {
  background-color: transparent !important;
}

.single-post .entry-title, .single-post .entry-post-meta-wrap, .single-post .entry-meta-tag-wrap {
	display: none;
}

.site-content-single-post, .blog-wrap {
  margin-top: 0; margin-bottom: 0;
}

.site-content-single-post .blog-inner .entry-content {
  margin-bottom: 0;
}



/* GRID kontejner: na desktopu 3 sloupce, gap 24px */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}



/* jeden tile */
.post-tile {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* obrázek jako pozadí, poměr stran ~1:1 */
.tile-image {
  position: relative;
  padding-top: 70%; /* čtverec */
  background-size: cover;
  background-position: center;
}

/* vlaječka v rohu */
.tile-flag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 47px;
  height: auto;
}
.tile-flag img {
  width: 100%;
  height: auto;
  display: block;
}

/* tlačítko přes obrázek */
.tile-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: #ffc319;
  color: #2d336f;
  text-decoration: none;
  padding: 0.1em 1.5em;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color .3s, color .3s;
  display: inline-block;
}

/* hover efekt */
.tile-btn:hover {
  background-color: #2d336f;
  color: #fff;
}

/* obsah pod obrázkem */
.tile-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* název – max 2 řádky, barva #2d336f */
.tile-title {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #2d336f;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta řádek: datum + lokace */
.tile-meta {
  margin-top: auto;
  font-size: 1.35rem;
  color: #555;
  display: block;
  gap: 12px;
  align-items: center;
  line-height: 1.8;
}

.meta-date, .meta-location {
  display: block;
}

.meta-date:before { content: "\f133"; font-family: "FontAwesome"; margin-right:10px;} 
.meta-location:before { content: "\f041"; font-family: "FontAwesome"; margin-left:2px; margin-right:12px;}

.pobyty .entry-wrap { max-width: 1200px; margin: 0 auto;}
.pobyty .entry-title a { color: #2d336f !important;}

.home #wrapper-content { padding-top: 0 !important; }

.pobyty-tabs {
  margin-bottom: 24px;
}

.pobyty-tabs__buttons {
  display: flex;
  gap: 16px;
  margin: 0 0 52px;
}

.pobyty-tabs__button {
  flex: 1 1 0;
  border: 2px solid #2d336f;
  background: #fff;
  color: #2d336f;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.25;
  min-height: 54px;
  padding: 12px 22px;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pobyty-tabs__button:hover,
.pobyty-tabs__button:focus {
  background: #ffc319;
  border-color: #ffc319;
  color: #2d336f;
  outline: none;
}

.pobyty-tabs__button.is-active {
  background: #2d336f;
  border-color: #2d336f;
  color: #fff;
}

.pobyty-tabs__panel[hidden] {
  display: none;
}

.pobyty-tabs__empty {
  background: #f0f0f0;
  color: #2d336f;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  padding: 20px 24px;
  text-align: center;
}

@media (max-width: 600px) {
  .pobyty-tabs__buttons {
    flex-direction: column;
    gap: 10px;
  }

  .pobyty-tabs__button {
    font-size: 1.45rem;
    min-height: 50px;
    padding: 11px 16px;
  }
}

/* 1) Přepišme přímo Magnific Popup kontejnery pro všechna videa */
body .mfp-iframe-holder .mfp-content {
  /* šířka lightboxu na 90 % šířky obrazovky */
  width: 90vw !important;
  max-width: 90vw !important;
  /* výška se přizpůsobí obsahu (iframe pak natáhne dálku) */
  height: auto !important;
}

/* 2) Omezme maximální výšku iframe, aby nepřesahovalo obrazovku */
body .mfp-iframe-holder .mfp-iframe-scaler {
  max-height: 80vh !important;
  /* aby video opravdu vyplňovalo dostupný prostor */
  width: 100% !important;
  height: 100% !important;
}

/* 3) (Volitelné) Pokud by plugin dále vnucoval vlastní proměnné,
   chytni všechny kontejnery tsvg_pp_pic_holder* a vynucení jejich rozměrů */
div[class^="tsvg_pp_pic_holder"] {
  width: 90vw !important;
  max-width: 90vw !important;
  max-height: 80vh !important;
  /* aby iframe nevyteklo mimo kontejner */
  overflow: visible !important;
}
div[class^="tsvg_pp_pic_holder"] iframe {
  width: 100% !important;
  height: 100% !important;
}
.blog-wrap {
  padding-left: 40px;
  padding-right: 40px;
}
