/*
 * Add to /templates/yootheme/css/custom.css or paste into
 * YOOtheme Pro > Customizer > Settings > Custom Code > CSS.
 */

.kt-event {
	--kt-event-accent: #d40d1d;
	--kt-event-accent-dark: #a90714;
	--kt-event-ink: #171717;
	--kt-event-radius: 6px;
}

.kt-event__hero,
.kt-event__directions,
.kt-event__video-frame {
	border-radius: var(--kt-event-radius);
}

.kt-event__hero {
	width: 100%;
	box-shadow: 0 12px 38px rgba(0, 0, 0, .12);
}

.kt-event__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 520px;
	background: #111;
}

.kt-event__media .dp-view-event__image,
.kt-event__media .dp-figure {
	width: 100%;
	height: 100%;
	margin: 0;
}

.kt-event__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 650px;
	object-fit: contain;
}

/* Safety net if a DPCalendar sublayout cached the special fields. */
.kt-event .dp-field-fld-deinetickets,
.kt-event .dp-field-deinetickets,
.kt-event .dp-field-fld-ktlive,
.kt-event .dp-field-fld-eventim,
.kt-event .dp-field-fld-ticketmaster,
.kt-event .dp-field-fld-positive-records,
.kt-event .dp-field-fld-bandshop,
.kt-event .dp-field-youtube {
	display: none !important;
}

.kt-event__title h1,
.kt-event__title h2,
.kt-event__title h3 {
	margin: 0;
	line-height: 1.08;
}

.kt-event__information {
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

/* Compact information hierarchy: category, then date / admission / start, then Facebook. */
.kt-event__information .dp-information {
	display: grid;
	grid-template-columns: minmax(150px, 1.35fr) minmax(105px, 1fr) minmax(105px, 1fr);
	gap: 10px 14px;
	align-items: end;
}

.kt-event__information .dp-information__calendar {
	grid-column: 1 / -1;
	order: 0;
	margin: 0;
}

.kt-event__information .dp-information__date {
	grid-column: 1;
	order: 10;
	margin: 0;
}

.kt-event__information .com-dpcalendar-event__event-text,
.kt-event__information .dp-fields {
	display: contents;
}

.kt-event__information .dp-field-einlass {
	grid-column: 2;
	order: 11;
	margin: 0;
}

.kt-event__information .dp-field-beginn {
	grid-column: 3;
	order: 12;
	margin: 0;
}

.kt-event__information .dp-information__url,
.kt-event__information .dp-information > .dp-description__description {
	grid-column: 1 / -1;
	order: 20;
	margin: 2px 0 0;
}

.kt-event__information .dp-description__label,
.kt-event__information .dp-description__description {
	margin-bottom: 0;
}

.kt-event__information .dp-field-einlass .dp-description__label,
.kt-event__information .dp-field-beginn .dp-description__label {
	display: inline-block;
	margin-bottom: 4px;
}

.kt-event__information .uk-button {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 5px;
	line-height: 38px;
}

.kt-event__tickets {
	padding: 18px;
	border-left: 0;
	border-radius: 5px;
	background: #343434;
}

.kt-event__tickets #kt-event-ticket-heading {
	color: #f28c18;
	font-weight: 800;
}

.kt-event__tickets-intro {
	color: #fff;
}

.kt-event__event-info {
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.kt-event__description-details summary {
	cursor: pointer;
	list-style: none;
	line-height: 1.6;
}

.kt-event__description-details summary::-webkit-details-marker {
	display: none;
}

.kt-event__description-action,
.kt-event__description-close {
	display: inline-block;
	margin-top: 5px;
	color: #f28c18;
	font-weight: 700;
}

.kt-event__description-close {
	display: none;
}

.kt-event__description-details[open] .kt-event__description-preview {
	display: none;
}

.kt-event__description-details[open] .kt-event__description-close {
	display: inline-block;
}

.kt-event__description-full {
	margin-top: 8px;
	line-height: 1.65;
}

.kt-event__description-full .com-dpcalendar-event__description > .dp-heading {
	display: none;
}

.kt-event__description-full .com-dpcalendar-event__description,
.kt-event__description-full .com-dpcalendar-event__description-content > :first-child {
	margin-top: 0;
}

.kt-event__description-full .com-dpcalendar-event__description-content > :last-child {
	margin-bottom: 0;
}

.kt-ticket-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding-inline: 16px;
	border-radius: 5px;
	background: var(--kt-event-ink);
	font-weight: 700;
	letter-spacing: .025em;
	text-transform: none;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.kt-ticket-button:hover,
.kt-ticket-button:focus {
	transform: translateY(-2px);
	background: var(--kt-event-accent);
	box-shadow: 0 8px 22px rgba(212, 13, 29, .25);
}

.kt-ticket-button__icon {
	margin-right: 9px;
}

.kt-event__content-grid {
	clear: both;
	width: 100%;
}

.kt-event__summary > :first-child {
	margin-top: 0;
}

.kt-event__summary > :last-child,
.kt-event__tickets > :last-child {
	margin-bottom: 0;
}

.kt-event__video-frame {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #000;
	aspect-ratio: 16 / 9;
}

.kt-event__video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.kt-event__directions {
	overflow: hidden;
	background: #171717;
}

.kt-event__directions-image {
	display: block;
	width: 100%;
	max-height: 260px;
	border-radius: 3px;
	object-fit: cover;
}

.kt-event__eyebrow {
	color: #ff6672 !important;
	font-weight: 700;
	letter-spacing: .12em;
}

@media (max-width: 959px) {
	.kt-event__media,
	.kt-event__media img {
		min-height: 0;
		max-height: 680px;
	}
}

@media (max-width: 639px) {
	.kt-event__summary {
		padding: 22px;
	}

	.kt-event__tickets {
		padding: 16px;
	}

	.kt-event__information .dp-information {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.kt-event__information .dp-information__date {
		grid-column: 1 / -1;
	}

	.kt-event__information .dp-field-einlass {
		grid-column: 1;
	}

	.kt-event__information .dp-field-beginn {
		grid-column: 2;
	}

	.kt-event__media,
	.kt-event__media img {
		min-height: 0;
		max-height: 560px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kt-ticket-button {
		transition: none;
	}
}
