/* ==========================================================================
   Plugins: markup printed by the aktuality and galeria plugins
   ========================================================================== */

/* Akcie page: aktuality slider [aktuality_slider] and calendar -------------------
   Kept exactly as in the original theme until the planned replacement plugin.

   The rules between "ORIGINAL START" and "ORIGINAL END" are copied verbatim from the
   old style.css. They were written against the old theme's global rules, so those are
   recreated here, limited to the Akcie block:
     * { padding:0; border:0; margin:0; color:black; text-decoration:none;
         font-size:1.1vw (3.5vw under 1200px); line-height:1.6; text-align:justify }
     no font set (browser default serif), no box-sizing (content-box)               */

.aktuality_page,
.aktuality_page *,
.kalendar,
.kalendar * {
	box-sizing: content-box;
	padding: 0;
	border: 0;
	margin: 0;
	color: black;
	text-decoration: none;
	font-size: 1.1vw;
	line-height: 1.6;
	text-align: justify;
}

/* Font set on the blocks only, so Font Awesome icons inside keep their own font */
.aktuality_page,
.kalendar {
	font-family: "Times New Roman", Times, serif;
}

@media (max-width: 1200px) {
	.aktuality_page,
	.aktuality_page *,
	.kalendar,
	.kalendar * {
		font-size: 3.5vw;
	}
}

/* ORIGINAL START */
/* AKTUALITY */

.aktuality_page {
	width:calc(90% + 0vw);
	margin: 5vw 0 ;
	padding: 1vw 3.5vw 5vw 4.5vw;
}

.asp-slider{
display:flex;
align-items:center;
gap:1vw;
}

.asp-slider-viewport{
overflow:hidden;
		width:90%;
}

.asp-slider-track{
display:flex;
gap:2vw;
transition:transform .3s ease;

}

.asp-slide{
flex:0 0 calc((100% - 6vw)/4);
}

.asp-slide-inner{
text-align:center;
	display:flex;
	flex-direction:column;
	align-items:center;
}

.asp-icon {
	color:#fff;
	display:flex;
	justify-content:center;
	height:3.5vw;
	width:12vw;
	clip-path: polygon(
		30% 0%,
		70% 0%,
		100% 100%,
		0% 100%
	);
	margin: 0 auto -2.5vw;
	position:relative;

}

.asp-icon i{
	color:#fff;
	font-size: 1.5vw;
	position:absolute;
	bottom:0;
}


.asp-title{
color:#fff;
background:#dd493d;
	display:flex;
	justify-content:center;
	align-items:center;
	width:10vw;
	height:9vw;
	font-weight:400;
	padding:2vw 2vw 0;
	font-size: 1.5vw;
	text-align:center;
}

.asp-date{
color:#fff;
border-top: 0.1px solid #d9d9d9;	display:flex;
	justify-content:center;
	align-items:center;
	width:14.1vw;
	height:4vw;
	font-size: 1.3vw;
	margin:0 auto;
}


.asp-slide[data-color="orange"] .asp-icon {
	background:#dd493d;
}

.asp-slide[data-color="orange"] .asp-title {
	background:#dd493d;
}

.asp-slide[data-color="orange"] .asp-date {
	background:#dd493d;
}

.asp-slide[data-color="blue"] .asp-icon {
	background:#39607d;
}

.asp-slide[data-color="blue"] .asp-title {
	background:#39607d;
}

.asp-slide[data-color="blue"] .asp-date {
	background:#39607d;
}

.asp-slide[data-color="red"] .asp-icon {
	background:#b24247;
}

.asp-slide[data-color="red"] .asp-title {
	background:#b24247;
}

.asp-slide[data-color="red"] .asp-date {
	background:#b24247;
}

.asp-slider button
{
  z-index:999;
  border:none;
  cursor:pointer;
  width:3vw;
  height:3vw;
  border-radius:50%;
  box-shadow:0 0.35vw 0.9vw rgba(0,0,0,0.15);
  background:#fff;
	display:flex;
	align-items:center;
	justify-content:center;
	margin:0 1vw;
}

.yDmH0d {
	width:90000vw !important;
}


.kalendar {
	width:80%;
	margin:0 auto;
}

.kalendar iframe {
	width:100%;
}

.Sp1EOc span{
margin:4vw;
}

.asp-slide{
	cursor:pointer;
}

.asp-image{
	display:none;
}

.asp-lightbox{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.7);
	display:none;
	align-items:center;
	justify-content:center;
	z-index:9999;
}

.asp-lightbox img{
	max-width:80%;
	max-height:80%;
	box-shadow:0 0.1vw 1vw rgba(0,0,0,0.5);
}

@media (max-width: 1200px){
	
	
.aktuality_page {
	margin: 10vw 0 ;
}

.asp-slide{
flex:0 0 calc((100%)/1);
}


.asp-icon {
	height:7.5vw;
	width:38vw;
	margin: 0 auto -2.5vw;
}

.asp-icon i{
	font-size: 3.5vw;
}


.asp-title{
	width:40vw;
	height:32vw;
	padding:2vw 2vw 0;
	font-size: 3vw;
}

.asp-date{
	width:44.1vw;
	height:8vw;
	font-size: 2.3vw;
}


.asp-slider button
{
  width:7vw;
  height:6vw;
	margin:0 0vw;
}


.kalendar {
	width:100%;
	margin:0 auto;
}

}



/* ORIGINAL END */

/* The old theme's page column was the whole window minus 4vw on each side (8vw under 1200px),
   and the sizes above are relative to it. The new theme centres content in a narrower column,
   so both blocks step out of it to their old width and position. */
.aktuality_page {
	margin-left: calc(50% - 50vw + 4vw);
	width: calc(92vw * 0.9);
}

.kalendar {
	width: calc(92vw * 0.8);
	margin-left: calc(50% - 46vw * 0.8);
}

@media (max-width: 1200px) {
	.aktuality_page {
		margin-left: calc(50% - 50vw + 8vw);
		width: calc(84vw * 0.9);
	}

	.kalendar {
		width: 84vw;
		margin-left: calc(50% - 42vw);
	}
}

/* Galéria [custom_gallery] ---------------------------------------------------------- */

.cgp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1.25rem;
}

.cgp-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.cgp-gallery-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cgp-no-link {
	cursor: default;
}

.cgp-gallery-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.cgp-gallery-item:hover .cgp-gallery-image {
	transform: scale(1.05);
}

.cgp-gallery-overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 2.5rem 1rem 1rem;
	background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 65%) 45%, rgb(0 0 0 / 88%));
}

.cgp-gallery-title {
	margin: 0 0 0.2rem;
	color: #fff;
	font-size: 1.05rem;
}

.cgp-gallery-date {
	display: none;
}

.cgp-gallery-text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: rgb(255 255 255 / 90%);
	font-size: 0.875rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.cgp-gallery-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

.cgp-gallery-pagination a,
.cgp-gallery-pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

.cgp-gallery-pagination .current {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

/* The plugin prints empty previous/next links */
.cgp-gallery-pagination .next,
.cgp-gallery-pagination .prev {
	display: none !important;
}

/* Tím [domka_tim] (plugin domka-tim) ---------------------------------------------------
   One card per member: photo left, name and details right, role bar along the bottom.
   Phones: photo on top. Empty fields are simply not printed by the plugin.            */

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
	gap: 1.5rem;
	margin-block: 1.5rem;
}

.team-card {
	display: grid;
	grid-template-columns: 38% 1fr;
	grid-template-rows: 1fr auto;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg);
	box-shadow: var(--shadow-sm);
}

.team-card__photo {
	grid-row: 1 / span 2;
	aspect-ratio: 1;
	background: var(--color-surface);
}

.team-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__photo--empty {
	display: grid;
	place-items: center;
	color: #c9c2bb;
	font-size: 3.5rem;
}

.team-card__body {
	padding: 1.1rem 1.25rem 1rem;
}

.entry-content .team-card__name {
	margin: 0 0 0.6rem;
	color: #4d4d4d;
	font-size: 1.15rem;
}

.team-card__details {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.team-card__details li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	overflow-wrap: anywhere;
}

.team-card__details i {
	width: 1rem;
	color: var(--color-accent);
	text-align: center;
}

.team-card__details a {
	color: var(--color-text);
}

.team-card__role {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0.6rem 1.25rem;
	background: var(--color-accent);
	color: #fff;
	font-size: 0.95rem;
}

@media (max-width: 30rem) {
	.team-card {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.team-card__photo {
		grid-row: auto;
		aspect-ratio: 4 / 3;
	}
}
