.ftg_item, .ai-imgfile, .ai-imggal   {
	background-color: #f0f0f0;
	padding: 5px 5px 2px;
	float: left;
	margin-right: 6px;
	margin-bottom: 6px;
	border: 1px solid #CCCCCC;
	width: 372px;
	height: 253;

}

.ai-imgfile  {
	
	width: 100%;
	box-sizing: border-box;

}

.ai-blok-imgfile   {
	
	padding: 15px 10px;
}

.ai-pop   {
	
	display: none;
}



#port-right .ftg_item, #port-right .ai-imggal   {
	
	width: auto;
	

}

.hornitexty .ftg_item, .hornitexty .ai-imggal  {
	width: 30.5%;
	margin-right: 1%;
}

.hornitexty .ftg_item:nth-child(3n+1), .hornitexty .ai-imggal:nth-child(3n+1) {
	clear: left;
}




.ftg_item .ftg_img, .ai-imggal .ai-cover  {
	margin-bottom: 0px !important;
	padding-bottom: 0px !important;



	
}

.ftg_item .ftg_img a, .ai-imggal .ai-cover a {
	
	padding-bottom: 0px !important;
	
	

}

.ftg_item .ftg_img a img, .ai-imggal .ai-cover a img {
	background-color: #FFFFFF;
	border-top: none;
	border-right: none;
	border-bottom: none;
	border-left: none;
	margin-bottom: 0px;
	width: 100% !important;




}

.fancybox-title-float-wrap {
	position: absolute;
	bottom: 0;
	right: 50%;
	margin-bottom: -70px;
	z-index: 1003;
	text-align: center;
}

.fancybox-title-float-wrap .child {
	display: block;
	margin-right: -100%;
	padding: 2px 20px;
	background: transparent; /* Fallback for web browsers that doesn't support RGBa */
	background: rgba(0, 0, 0, 0.8);
	-webkit-border-radius: 15px;
	   -moz-border-radius: 15px;
			border-radius: 15px;
	text-shadow: 0 1px 2px #222;
	color: #FFF;
	font-weight: bold;
	line-height: 24px;
	white-space: normal;
}

.pgkt-fo #portmain .s-vypis1  {
    
    margin-top: 0em;
}

.pgkt-fo #portmain .typ-vypis-1  {
    
    padding-top: 0em;
}

.pgkt-fo #hornitext {
    
    margin-top: 0em;
	margin-bottom: 0em;
}

.pgkt-fo #hornitexttext   {
    
    margin-bottom: 0em;
}

/*----- efekty 2023 -------*/

.ftg_item .ftg_img a.fancybox, .ai-imggal .ai-cover a.fancybox {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
 /* background: rgba(42, 42, 42, 0.7);*/
  width: 100%;
display: block;
}

.ftg_item .ftg_img a.fancybox::before, .ai-imggal .ai-cover a.fancybox::before {
  content: "";
  background: rgba(42, 42, 42, 0.7);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all ease-in-out 0.3s;
  z-index: 2;

  opacity: 0; 
  
}

.ftg_item .ftg_img a.fancybox::after, .ai-imggal .ai-cover a.fancybox::after {
 content: "";

position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: all ease-in-out 0.3s;
z-index: 2;


background: url(/images/icons/search-plus-solid.svg); 
background-size: 50% 50%;

background-repeat: no-repeat;
background-position: center center;
opacity: 0;
  
}

.ftg_item .ftg_img a.fancybox img, .ai-imggal .ai-cover a.fancybox img {
  transition: all ease-in-out 0.3s;
}

.ftg_item .ftg_img a.fancybox:hover::before, .ai-imggal .ai-cover a.fancybox:hover::before {
  opacity: 1;
}

.ftg_item .ftg_img a.fancybox:hover::after, .ai-imggal .ai-cover a.fancybox:hover::after {
  opacity: 0.7;
}

.ftg_item .ftg_img a.fancybox:hover img, .ai-imggal .ai-cover a.fancybox:hover img {
  transform: scale(1.2);
}
