.ftg_item  {
	background-color: #f0f0f0;
	padding: 5px 5px 2px;
	float: left;
	margin-right: 6px;
	margin-bottom: 25px;
	border: 1px solid #CCCCCC;
	/*width: 368px;*/
	height: 253;

}

.ftg_item .ftg_img  {
	margin-bottom: 0px !important;
	padding-bottom: 0px !important;



	
}

.ftg_item .ftg_img a {
	
	padding-bottom: 0px !important;
	
	

}

.ftg_item .ftg_img a img {
	background-color: #FFFFFF;
	border-top: none;
	border-right: none;
	border-bottom: none;
	border-left: none;
	margin-bottom: 0px;





}

.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;
}

/*------- horizontal --------*/
.ai-blok-imggal .inn {
    
    display: flex;
	flex-wrap: wrap;
}

.ai-blok-imggal .inn .ai-imggal {
    background-color: #f0f0f0;
    padding: 5px 5px 2px;
    float: left;
 
   
    border: 1px solid #CCCCCC;
    width: 372px;
    height: 253;
}

.ai-blok-imggal .inn .ai-imggal {
  
    margin-right: 10px;
   
 
}


/* ------ vypis fotek alba (copper-album): mrizka max. 4 vedle sebe, zaoblene ------ */
#portmain .copper-album {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 42px) / 4)), 1fr));
	gap: 14px;
	margin-top: 10px;
}
#portmain .copper-album::after {
	display: none;
}
#portmain .copper-album .ftg_item {
	float: none;
	margin: 0;
	padding: 0;
	border: none;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	transition: box-shadow .2s, transform .2s;
}
#portmain .copper-album .ftg_item:hover,
#portmain .copper-album .ftg_item:focus-within {
	box-shadow: 0 8px 20px rgba(0, 158, 227, .25);
	transform: translateY(-3px);
}
#portmain .copper-album .ftg_img a {
	display: block;
}
#portmain .copper-album .ftg_img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
