/*styles for the kino blocks*/

/*var*/
:root {
  --mediumblue: #0065bd;
  --darkblue: #0055A0;
  --darkbluetransparent: #0055A099;
  --lightgrey: #ccc;
  --lightergrey: #aaa;
  --mediumgrey: #9f9f9f;
  --darkgrey: #555;
  --darkgreen: #008000;
  --mediumgreen:#008F00;
}

/*calendar*/
.kino-block-wrapper .perfs .weekday:not(:last-child) {
	border-bottom:1px solid var(--lightgrey);
}
.kino-block-wrapper .perfs h3.weekday-title {
	margin:1.5rem 0 1rem 0;
	text-align:center;
	width:100%;
}

/*intet at vise*/
.kino-block-wrapper .perfs .empty {
	text-align:center;
}

.kino-block-wrapper .perfs .perf {
	padding-bottom:1rem;
	display:flex;
	flex-direction: column;
}

.kino-block-wrapper .perfs .perf a {
	color:inherit;
	text-decoration:none;
}

.kino-block-wrapper .perfs .perf a:hover,
.kino-block-wrapper .perfs .perf a:active {
	text-decoration:underline;
}

.kino-block-wrapper .perfs .perf img {
	width:100%;
	aspect-ratio: 1/1.5;
	object-fit: cover;
}

.kino-block-wrapper .perfs .perf .showtitle {
	font-size:0.95rem;
}

.kino-block-wrapper .perfs .perf .showtitle {
	flex-grow:1;
}

.kino-block-wrapper.shows .perfs .perf .showtitle,
.kino-block-wrapper.futureshows .perfs .perf .showtitle {
	flex-grow:0;
}

.kino-block-wrapper .perfs .perf .showtitle h4{
	margin-top:0.4rem;
	margin-bottom:0rem;
	font-size:0.95rem;
	font-family:inherit;
	font-weight:600;
}

.kino-block-wrapper .perfs .perf .showtitle h4 a{
	font-weight:600;
}

.kino-block-wrapper .perfs .perf .perftime {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
}

.kino-block-wrapper .perfs .perf .perftime a {
	/*display: inline-block;*/
	border-radius: 3px;
	padding: 0.3rem 0;
	text-decoration: none;
	margin-top: 0.5rem;
	margin-right:0.3rem;
	font-size:0.95rem;
	text-align:center;
	max-width: calc(50% - 0.3rem);
	flex-grow: 1;
	background-color: var(--darkblue);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.3);
}

.kino-block-wrapper .perfs .perf .perftime a:hover,
.kino-block-wrapper .perfs .perf .perftime a:active {
	background-color: var(--mediumblue);
}

.kino-block-wrapper .perfs .perf .perftime a.info {
	background-color: var(--mediumgrey);
	color: #fff;
	margin-right:0;
	margin-left:0.3rem;
}

.kino-block-wrapper .perfs .perf .perftime a.info:hover,
.kino-block-wrapper .perfs .perf .perftime a.info:active {
	background-color: var(--lightergrey);
}

/*Centrering ved visning af en enkelt dag*/
.kino-block-wrapper.one-day .weekday {
	justify-content: center;
}

.kino-block-wrapper.one-day .weekday::before,
.kino-block-wrapper.one-day .weekday::after {
	content: "";
	display: block;
	flex-grow: 1;
}

/*Inactive - afviklede perfs*/
.kino-block-wrapper .perfs .perf.inactive {
	opacity:0.6;
}

.kino-block-wrapper .perfs .perf.inactive .showtitle h4 a:hover,
.kino-block-wrapper .perfs .perf.inactive .showtitle h4 a:active {
	text-decoration: none;
}

.kino-block-wrapper .perfs .perf.inactive .perftime a:not(.info) {
	background-color: transparent;
	color:inherit;
}

.kino-block-wrapper .perfs .perf.inactive .perftime a:not(.info):hover,
.kino-block-wrapper .perfs .perf.inactive .perftime a:not(.info):active {
	background-color: transparent;
}

/*udsolgt*/
.kino-block-wrapper .perfs .perf.item {
	position:relative;
}

.kino-block-wrapper .perfs .soldout::before {
    content: "";
    display: block;
    position: absolute;
    left: 5%;
    top: 15%;
    background-image: url(img/udsolgt_2024.png);
    background-position: center top;
    width: 100%;
    max-width: 90%;
    height: 100%;
    max-height:200px;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/*ikoner på filmkalenderen til seniorbio, babybio etc.*/

.kino-block-wrapper .perfs div[class*="showperfs-"]::after {
    display: block;
    position: absolute;
    left: -10px;
    top: -10px;
    background-repeat: no-repeat;
    background-size: calc(100% - 20px) auto;
    width: 60px;
    height: 60px;
    background-position: center;
    background-color:rgba(255,255,255,0.9);
    border: 1px solid lightgray;
    border-radius:50%;
}

/*Seniorbio*/
.kino-block-wrapper .perfs .perf.showperfs-seniorbio::after {
	content: "";
	background-image: url('img/icon_seniorbio.png');
}

/*Babybio*/
.kino-block-wrapper .perfs .perf.showperfs-babybio::after {
	content: "";
	background-image: url('img/icon_babybio.png');
}

/*Børnefilmklub*/
.kino-block-wrapper .perfs .perf.showperfs-boernefilmklub::after {
	content: "";
	background-image: url('img/icon_boernefilmklub.png');
}

/*Matiné*/
.kino-block-wrapper .perfs .perf.showperfs-matine::after {
	content: "";
	background-image: url('img/icon_matine.png');
}

/*Opera*/
.kino-block-wrapper .perfs .perf.showperfs-opera::after {
	content: "";
	background-image: url('img/icon_opera.png');
}

/*Højskolebio*/
.kino-block-wrapper .perfs .perf.showperfs-hoejskolebio::after {
	content: "";
	background-image: url('img/icon_hoejskolebio.png');
}

/*Drive in Bio*/
.kino-block-wrapper .perfs .perf.showperfs-drive-in-bio::after {
	content: "";
	background-image: url('img/icon_drive_in.png');
}

/*Kino Klassikere*/
.kino-block-wrapper .perfs .perf.showperfs-kino-klassiker::after {
	content: "";
	background-image: url('img/icon_klassiker.png');
}

/*Offentlige foredrag i naturvidenskab*/
.kino-block-wrapper .perfs .perf.showperfs-offentlige-foredrag-i-naturvidenskab::after {
	content: "";
	background-image: url('img/icon_naturvidenskab.png');
}

/*REBILD:DOX*/
.kino-block-wrapper .perfs .perf.showperfs-rebilddox::after {
	content: "";
	background-image: url('img/icon_rebild_dox.png');
}

/*Filmporten*/
.kino-block-wrapper .perfs .perf.showperfs-filmporten::after {
	content: "";
	background-image: url('img/icon_filmporten.png');
}

/*Biografklub Danmark*/
.kino-block-wrapper .perfs .perf.showperfs-biografklub-danmark::after {
	content: "";
	background-image: url('img/icon_bioklub_dk.png');
}

/*knorevuen præsenterer*/
.kino-block-wrapper .perfs .perf.showperfs-knorevuen-praesenterer::after {
	content: "";
	background-image: url('img/icon_knorevuen.png');
}

/*Kalenderfilter*/
#calendarfilter {
	display:flex;
	justify-content: space-between;
}

#calendarfilter .filter {
	width:calc(100% / 3 - 10px);
	text-align:center;
}

@media only screen and (max-width: 767px){

	#calendarfilter {
		flex-direction: column;
	}

	#calendarfilter .filter {
		width:100%;
	}
}

#calendarfilter .filter label {
	text-align: center;
	display: block;
	margin-top:1rem;
}

#calendarfilter .filter select {
	width: 100%;
	max-width:250px;
	border: 1px inset var(--mediumblue);
	padding: 0.3rem 0.6rem;
	border-radius: 5px;
	background-color: var(--darkblue);
	font-size: 0.9rem;
	color: #fff;
	appearance: none;
	background-image: url(img/select_arrow.png);
	background-size: auto 8px;
	background-repeat: no-repeat;
	background-position: calc(100% - 0.6rem) 50%;
	cursor:pointer;
}

#calendarfilter .filter.submit {
	width:100%;
}

#calendarfilter .filter.submit input {
	margin-left:auto;
	margin-right:auto;
}

/***NextPerf***/
.kino-block-wrapper.kinonextperf .perfs .perf {
	padding-bottom:0;
}

.kino-block-wrapper.kinonextperf .perfs .perf > a {
	line-height:0; /*Død over sær bund-padding*/
}

@keyframes perf-img-saturation {
  from {filter:saturate(0);}
  to {filter:saturate(1);}
}

.kino-block-wrapper.kinonextperf .perfs .perf img.image_poster {
	border-radius: 0;
	aspect-ratio: initial;
	filter:saturate(0);
	animation-name: perf-img-saturation;
	animation-duration: 3s;
	animation-fill-mode: forwards;
	animation-timing-function: ease-in-out;
}

.kino-block-wrapper.kinonextperf .perfs .perf img.image_poster:not(.fullheight) {
	/*max-height: clamp(100px, 50vh, 450px);*/
	max-height:450px;
	aspect-ratio: 996 / 450;
  	object-fit: cover;
}

@media ( min-width: 996px ) {

	@keyframes show-bg-color {
	  from {background-color:rgba(255,255,255,1);}
	  to {background-color:rgba(255,255,255,0);}
	}

	.kino-block-wrapper.kinonextperf {
		background-color:rgba(255,255,255,1);
		background-blend-mode: lighten;
		background-position: center;
		background-size:800%;
		animation-name: show-bg-color;
		animation-duration: 1s;
		animation-fill-mode: forwards;
		animation-timing-function: ease-in-out;
	}

	.kino-block-wrapper.kinonextperf .perfs {
		backdrop-filter: blur(50px);
		padding-top: var(--wp--preset--spacing--20);
		padding-bottom: var(--wp--preset--spacing--20);
	}

	.kino-block-wrapper.kinonextperf .perfs .perf img.image_poster {
		box-shadow: 0px 0px 40px rgba(0,0,0,0.7);
		border-radius:3px;

	}
}

.kino-block-wrapper.kinonextperf .info {
/*	position:absolute;
	bottom:1rem; */
	border-radius:3px;
}

.kino-block-wrapper.kinonextperf .perfs .perf .showtitle {
	z-index:1;
	position: absolute;
	bottom: 4rem;
	right: 5%;
	max-width:calc(90% - 1rem);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background-color: rgba(0,0,0,0.4);
	padding: 0.1rem 0.5rem 0.1rem 0.5rem;
	border-radius:3px;
	color:#fff;
	text-align:right;
	font-size: 1.1rem;
}

.kino-block-wrapper.kinonextperf .perfs .perf .showtitle h4 {
	font-family: Antonio;
	color:#fff;
	font-size: clamp(1.2rem, 3.2vw, 2.1rem);
	margin:0;
}

.kino-block-wrapper.kinonextperf .perfs .perf .perftime {
	position: absolute;
	width: 90%;
	max-width: 300px;
	bottom: 1rem;
	right: 5%;
}

.kino-block-wrapper.kinonextperf .perfs .perf .trompet {
	z-index:1;
	position: absolute;
	top: 1rem;
	left: 1rem;
	max-width:calc(90% - 1rem);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background-color: var(--darkbluetransparent);
	padding: 0.1rem 0.5rem 0.1rem 0.5rem;
	border-radius:3px;
	color:#fff;
	font-size: 1.1rem;
}

.kino-block-wrapper.kinonextperf .perfs div[class*="showperfs-"] .trompet {
	left:85px;
}

.kino-block-wrapper.kinonextperf .perfs .perf .trompet h3 {
	font-family: Antonio;
	color:#fff;
	font-size: clamp(1rem, 3vw, 1.8rem);
	margin:0;
}

.kino-block-wrapper.kinonextperf .perfs div[class*="showperfs-"]::after {
    left: 10px;
    top: 10px;
}

.kino-block-wrapper.kinonextperf .perfs .soldout::before {
	display:none;
}

.kino-block-wrapper.kinonextperf .perfs .soldout .perftime a:not(.info)::before {
	content: "";
	display: block;
	position: absolute;
	left: 26%;
	top: 2%;
	background-image: url(img/udsolgt_2024.png);
	background-position: center top;
	width: 100%;
	max-width: 25%;
	height: 100%;
	max-height: 200px;
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
	rotate: 40deg;
}

@media screen and (max-width: 439px) {

	.kino-block-wrapper.kinonextperf {
		margin-bottom:3rem;
	}

	.kino-block-wrapper.kinonextperf .perfs .perf .perftime {
		bottom: -3rem;
	}

	.kino-block-wrapper.kinonextperf .perfs .perf .showtitle {
		bottom: 1rem;
	}
}



/***Posters***/
.kino-block-wrapper.posters .perfs .perf .showtitle h4 {
	font-size:1.1em;
	text-align:center;
}
.kino-block-wrapper.posters .perfs .perf {
	padding-bottom:0;
}


/*** I editoren ***/
/*Deaktivér links*/
.block-editor-block-list__layout .block-editor-block-list__block .kino-block-wrapper a {
	pointer-events:none;
}
