/*
 * CubaDupa Programme
 *
 * Consolidated from the programme rules in Salient's custom CSS (theme options) and the
 * custom CSS of the AirPress template pages, so programme pages no longer depend on either.
 * Loaded only on pages that show programme content. Fonts (AktivGrotesk, Be Vietnam Pro,
 * Figtree) are declared in the theme options.
 */

/* Helpers */

.cdp-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cdp-is-hidden,
.cdp-list [hidden],
.cdp-schedule [hidden] {
	display: none !important;
}

.cdp-empty {
	text-align: center;
	padding: 40px 20px;
}

.cdp-preview-notice {
	background-color: #fff4d6;
	border-left: 4px solid #f46f2c;
	color: #28212a;
	padding: 12px 16px;
	margin: 20px 0;
	font-size: 16px;
}

/* Detail and archive pages */

.cdp-detail {
	padding-bottom: 80px;
}

.cdp-detail__header,
.cdp-archive__header {
	padding-top: 6%;
	padding-bottom: 3%;
}

.cdp-detail__title,
.cdp-archive__title {
	color: #450639;
	margin: 0;
	font-size: 48px;
	line-height: 1.1;
}

.cdp-detail__subtitle {
	color: #450639;
	margin-top: 10px;
	padding-bottom: 0;
}

.cdp-view-all {
	margin-top: 0;
}

.cdp-archive {
	padding-bottom: 80px;
}

/* Cards (artists, venues, vendors, galleries) */

.artists {
	position: relative;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.artists__artist {
	width: calc(33.33% - 26px);
	margin-left: 13px;
	margin-right: 13px;
	margin-bottom: 30px;
	position: relative;
	display: block;
}

.artists__artist__image {
	width: 400px;
	height: 400px;
	max-width: 100%;
	margin: 0 auto 20px;
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	background-color: #000;
	background-size: cover;
	background-position: center center;
	transition: transform 200ms ease;
}

/* Specific enough to beat Salient's ".row .col img { height: auto }". */
.artists .artists__artist .artists__artist__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.artists__artist__image:before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	width: 100%;
	height: 40%;
	background: linear-gradient(to bottom, transparent 0%, rgb(40 33 42 / 30%) 100%);
	transition: background-color ease 200ms;
}

.artists__artist:hover .artists__artist__image {
	transform: scale(1.05);
}

.artists__artist:hover .artists__artist__image:before {
	background: linear-gradient(to bottom, transparent 0%, rgb(40 33 42 / 70%) 100%);
}

.artists__artist:hover h3,
.artists__artist:focus h3 {
	color: #450639;
	text-decoration: underline;
}

.artists__artist__title {
	position: absolute;
	bottom: 40px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: #fff;
}

.artists__artist .artists__artist__title h3 {
	text-align: center;
	color: #fff;
	max-width: 400px;
	margin: 0 auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Filters */

.artists__filter-inputs {
	display: flex;
}

.artists__filter-inputs__filter {
	flex: 1;
	padding: 0 10px;
	margin-bottom: 10px;
}

body[data-form-style="minimal"] .artists__filter-inputs__filter input[type="text"],
.artists__filter-inputs__filter input[type="text"] {
	border: 2px solid #15236f !important;
	color: #15236f !important;
	border-radius: 0;
	padding-left: 8px !important;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 22px;
	line-height: 24px;
	font-weight: 500;
	height: 50px;
}

body[data-form-style="minimal"] .artists__filter-inputs__filter input[type="text"]::placeholder,
.artists__filter-inputs__filter input[type="text"]::placeholder {
	color: #15236f !important;
}

.cdp-filters {
	margin-bottom: 20px;
}

.cdp-tag-filters {
	text-align: center;
	margin-bottom: 30px;
}

.cdp-tag-filters .nectar-button.small {
	margin-right: 10px;
}

.cdp-tag-filters .nectar-button.small.regular {
	border: 2px solid #450639 !important;
	color: #fff !important;
	background-color: #450639 !important;
	padding-top: 6px;
	padding-bottom: 6px;
}

/* Detail layout */

.single-artist {
	display: flex;
}

.single-artist > div {
	width: 49.8%;
	margin-right: 0.2%;
	font-family: 'Be Vietnam Pro';
}

.single-artist__images img {
	display: block;
	min-width: 100%;
	height: auto;
	margin-bottom: 10px;
}

.single-artist__details {
	padding-left: 50px;
}

/* The text is already in paragraphs; the theme options' "pre-line" would double the gaps. */
.single-artist .single-artist__details__description {
	white-space: normal;
}

.single-artist__details__description p:last-child {
	padding-bottom: 0;
}

.single-artist__details__genre {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	margin-top: 20px;
	font-family: "AktivGrotesk", sans-serif;
}

.single-artist__details__social {
	margin-top: 30px;
}

.single-artist__details__social a {
	display: inline-block;
}

.single-artist__details__social i {
	font-size: 24px;
	border: 1px solid #450639;
	width: 45px;
	height: 45px;
	line-height: 45px;
	text-align: center;
	border-radius: 30px;
	margin-right: 5px;
	color: #450639;
}

/* Shows on artist and venue pages */

.venue-schedule h3 {
	margin-top: 40px;
	margin-bottom: 40px !important;
}

.artist-schedule__item {
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	margin-bottom: 5px;
	padding-bottom: 5px;
}

.artist-schedule__item h4 {
	margin-bottom: 0 !important;
	padding-right: 30px;
}

.artist-schedule__item h4 a:hover {
	color: #262262;
}

.artist-schedule__item p {
	font-size: 16px;
	padding: 0;
}

.cdp-detail--venue .artist-schedule__item {
	border-bottom-color: #ff9a0b;
	margin-bottom: 20px;
	padding-bottom: 20px;
}

.row .col .artist-schedule__item h3.cdp-show-genre,
.artist-schedule__item h3.cdp-show-genre {
	margin-top: 0 !important;
	margin-bottom: 8px !important;
	padding: 0;
	font-size: 16px;
	line-height: 18px;
	color: #ff9a0b;
}

/* Favourite buttons */

.cdp-fav,
.cdp-fav:hover,
.cdp-fav:focus,
.favourites__favourite__toggle-favourite,
.favourites__favourite__toggle-favourite:hover,
.favourites__favourite__toggle-favourite:focus {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	min-height: 0;
	line-height: 1;
	cursor: pointer;
}

.cdp-fav:focus-visible,
.favourites__favourite__toggle-favourite:focus-visible {
	outline: 2px solid #450639;
	outline-offset: 3px;
}

.cdp-heart {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: var(--cdp-heart-off);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	filter: invert(19%) sepia(75%) saturate(5744%) hue-rotate(353deg) brightness(113%) contrast(81%);
	vertical-align: middle;
}

.cdp-fav.is-favourite .cdp-heart {
	background-image: var(--cdp-heart-on);
}

.artist-schedule__item__toggle-favourite {
	position: absolute;
	right: 0;
	top: 0;
	color: #ec008c;
}

/* Schedule */

.schedule-filters {
	margin-bottom: 20px;
}

.schedule-filters::after {
	content: "";
	display: table;
	clear: both;
}

.schedule-filters__days {
	display: inline-block;
}

.cdp-schedule .nectar-button.regular {
	border: 2px solid #450639 !important;
	color: #fff !important;
	background-color: #450639 !important;
}

.schedule-filters__venue {
	display: inline-block;
	float: right;
	min-width: 300px;
}

.select2-results__option {
	color: #444 !important;
}

.schedule {
	color: #000;
}

.schedule__venues__venue {
	margin-bottom: 5px;
}

.schedule__venues__venue.schedule__venues__venue--opened {
	margin-bottom: 30px;
}

.schedule__venues__venue__name {
	position: relative;
}

.schedule__venues__venue__name a {
	display: block;
	font-family: "Figtree", sans-serif;
	padding: 20px 30px;
	font-size: 30px;
	line-height: 34px;
	font-weight: 700;
	color: #450639;
	transition: opacity 200ms ease;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.schedule__venues__venue__name a:hover {
	opacity: 0.8;
	color: #450639;
}

.schedule__venues__venue__name:after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 0;
	color: #450639;
	font-size: 50px;
	line-height: 70px;
	pointer-events: none;
}

.schedule__venues__venue--opened .schedule__venues__venue__name:after {
	content: "-";
	font-size: 100px;
	line-height: 64px;
}

.schedule__venues__venue__day-title {
	white-space: nowrap;
	padding: 5px 30px;
	margin-top: 10px;
}

.schedule__venues__venue__day-title span {
	font-family: "Figtree", sans-serif;
	font-size: 16px;
	font-weight: 700;
}

.schedule__venues__venue__day-title__time {
	width: 200px;
	display: inline-block;
}

.schedule__venues__venue__day-title__day {
	display: inline-block;
}

.schedule__venues__venue__show {
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 5px 50px 5px 30px;
	display: flex;
}

/* Collapsed until a day or venue is chosen. */
.schedule__venues__venue__show,
.schedule__venues__venue__day-title {
	display: none;
}

.schedule__venues__venue__show > div {
	display: inline-block;
	vertical-align: top;
}

.schedule__venues__venue__show__time {
	width: 200px;
	min-width: 200px;
}

.schedule__venues__venue__show__favourite {
	position: absolute;
	right: 15px;
	top: 6px;
}

.favourites {
	display: none;
}

.favourites__empty {
	margin-top: 30px;
	padding-left: 40px;
	padding-right: 40px;
	text-align: center;
}

.favourites__empty h6 {
	margin: 0 0 10px;
	font-size: 24px;
	color: #450639;
}

.favourites__empty p {
	margin: 0;
	color: #595959;
}

.favourites__favourite {
	position: relative;
}

.favourites__venues__venue__day-title {
	white-space: nowrap;
	padding: 5px 30px;
	margin-top: 10px;
	color: #000;
}

.favourites__venues__venue__day-title span {
	font-family: "Figtree", sans-serif;
	font-size: 16px;
	font-weight: 700;
}

.favourites__venues__venue__day-title__time {
	width: 200px;
	display: inline-block;
}

.favourites__venues__venue__day-title__day {
	display: inline-block;
}

.favourites__venues__venue__show {
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 5px 50px 5px 30px;
	display: flex;
	color: #000;
}

.favourites__venues__venue__show > div {
	display: inline-block;
	vertical-align: top;
}

.favourites__venues__venue__show__time {
	width: 200px;
	min-width: 200px;
}

.favourites__venues__venue__show__venue-name,
.schedule__venues__venue__show .schedule__venues__venue__show--name h3 {
	display: block;
	font-size: 14px;
	opacity: 0.6;
	color: #000;
	line-height: 14px;
	font-weight: 400;
}

.schedule__venues__venue__show .schedule__venues__venue__show--name h3 {
	margin: 4px 0 0;
	padding: 0;
}

a.favourites__venues__venue__show__venue-name:hover {
	opacity: 1;
}

.favourites__favourite__toggle-favourite {
	color: #ec008c !important;
	position: absolute;
	right: 15px;
	top: 12px;
}

/* Phone */

@media only screen and (max-width: 480px) {
	.cdp-detail__title,
	.cdp-archive__title {
		font-size: 34px;
	}

	.artists {
		display: block;
	}

	.artists__artist {
		width: 100%;
		margin: 0 auto 20px;
	}

	.artists__filter-inputs {
		display: block;
	}

	.single-artist {
		display: block;
	}

	.single-artist > div {
		width: 100%;
		margin-right: 0;
		padding-left: 0;
	}

	.single-artist__images img {
		display: none;
	}

	.single-artist__images img:first-child {
		display: block;
	}

	.single-artist__details {
		margin-top: 40px;
	}

	body.material[data-button-style="default"] .schedule-filters__days .nectar-button {
		font-size: 14px;
		padding: 10px 15px;
	}

	.schedule-container .vc_col-sm-12 {
		padding: 0 !important;
	}

	.schedule-filters__venue {
		float: none;
		display: block;
	}

	.schedule__venues__venue__name a {
		font-size: 24px;
		padding: 10px 20px;
		line-height: 30px;
	}

	.schedule__venues__venue__name:after {
		font-size: 30px;
		line-height: 50px;
		right: 10px;
	}

	.schedule__venues__venue--opened .schedule__venues__venue__name:after {
		font-size: 60px;
		line-height: 44px;
	}

	.schedule__venues__venue__day-title {
		padding: 5px;
	}

	.schedule__venues__venue__day-title span {
		font-size: 14px;
	}

	.schedule__venues__venue__day-title__time,
	.schedule__venues__venue__show__time {
		width: 150px;
		min-width: 150px;
	}

	.schedule__venues__venue__show {
		padding: 5px 30px 5px 5px;
		font-size: 16px;
	}

	.schedule__venues__venue__show--name {
		max-width: 190px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.schedule__venues__venue__show__favourite {
		right: 0;
	}

	.favourites__favourite {
		padding-left: 15px;
		padding-right: 15px;
	}

	.favourites__favourite__toggle-favourite {
		right: 15px !important;
	}
}
