/* Application frame */
.application-frame {
  background-color: #ffffff;
}

.application-frame .wrapper {
  width: auto;
}

.application-frame .wrapper > section {
  display: flex;
}

@media screen and (max-width: 768px) {
  .application-frame .wrapper > section {
    display: block;
  }
}

.application-frame .wrapper .main {
  width: 100%;
}

.application-frame .wrapper > section .aside {
  background-color: #e5e5e5;
  margin-left: auto;
  max-width: 400px;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .application-frame .wrapper > section .aside {
    max-width: 300px;
  }
}

@media screen and (max-width: 768px) {
  .application-frame .wrapper > section .aside {
    max-width: none;
  }
}

/* Logomark */
.logomark-container {
  margin-bottom: 40px;
  margin-left: -10px;
  margin-top: -30px;
}

.logomark {
  width: 160px !important;
}

@media screen and (max-width: 768px) {
  .logomark-container {
    margin-bottom: 30px;
    margin-top: 0px;
  }
}

@media screen and (max-width: 480px) {
  .logomark-container {
    margin-bottom: 20px;
    margin-left: -8px;
  }

  .logomark {
    width: 120px !important;
  }
}

/* Instagram */
.aside #sb_instagram .sbi_type_video .sbi_playbtn,
.aside #sb_instagram .sbi_type_carousel .sbi_playbtn,
.aside .sbi_type_carousel .fa-clone,
.aside #sb_instagram .sbi_type_carousel .svg-inline--fa.fa-play,
.aside #sb_instagram .sbi_type_video .svg-inline--fa.fa-play {
  display: none !important;
}

/* Post */
.post-excerpt p,
.post p,
.post-excerpt > h2,
.post > h2 {
  max-width: 720px;
}

.post-excerpt p,
.post p {
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
}

@media screen and (max-width: 480px) {
  .post-excerpt p,
  .post p {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media screen and (min-width: 1800px) {
  .post-excerpt p,
  .post p,
  .post-excerpt > h2,
  .post > h2 {
    margin-left: auto;
    margin-right: auto;
  }
}

.post-excerpt h2,
.post h2 {
  line-height: 1.2;
}

.post-excerpt blockquote,
.post blockquote {
  margin-bottom: 36px !important;
  max-width: 520px;
}

@media screen and (max-width: 480px) {
  .post-excerpt blockquote,
  .post blockquote {
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (min-width: 1800px) {
  .post-excerpt blockquote,
  .post blockquote {
    margin-left: auto;
    margin-right: auto;
  }

  .post-meta-bottom p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .more-link-container {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 720px;
  }
}

.post-excerpt p img,
.post p img {
  width: auto;
  max-width: 100%;
  height: auto; /* Ensure the height scales proportionally */
}

@media screen and (min-width: 1200px) {
  .post-excerpts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .post-excerpts-container .post-excerpt:first-child {
    grid-column: 1 / span 2;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) {
    display: flex;
    flex-direction: column;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) h1 {
    font-size: 24px;
    line-height: 1;
    min-height: 120px;
    padding-right: 20px;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) .meta {
    margin-bottom: 20px;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) .like {
    display: none !important;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
    padding-bottom: 0;
    text-align: start;
    text-overflow: ellipsis;
  }

  .post-excerpts-container
    .post-excerpt:not(:first-child)
    .excerpt-image-container {
    aspect-ratio: 1 / 1;
    display: block;
    margin-bottom: 20px;
    order: -1;
    position: relative;
    overflow: hidden;
  }

  .post-excerpts-container
    .post-excerpt:not(:first-child)
    .excerpt-image-container
    img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media screen and (min-width: 1800px) {
  .post-excerpts-container .post-excerpt:not(:first-child) h1 {
    min-height: 95px;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) p,
  .post-excerpts-container
    .post-excerpt:not(:first-child)
    .more-link-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none;
  }
}

/* Container styling for logo + search icon */
.logomark-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
    position: relative; 
}

/* Hide search toggle by default (for larger screens) */
.search-toggle {
display:none;
  position: absolute;
  top: 0;
  right: 0; 
  margin-top: 8px;

}

/* Show on smaller screens only */
@media (max-width: 768px) {
	.search-toggle {
		display: flex;
        direction: row;
		align-items: center;
        gap: 5px;
	}

	.search-toggle i {
		font-size: 22px;
		color: black;
	}
    .search-toggle p {
		font-size: 14px;
		color: black;
	}
}

/* Intro description on full-width listing pages (Mixtapes, Prints, Live) */
.main.sounds-section > .post,
.main.live-in-denmark > .post {
	padding-bottom: 0;
	margin-bottom: 0;
}

.main.sounds-section .post .headline,
.main.live-in-denmark .post .headline {
	margin: 0 0 20px;
}

.main.sounds-section > p,
.main.live-in-denmark > p:not(.events-list__empty) {
	max-width: none;
	font-size: 16px;
	line-height: 21px;
	text-align: start;
	padding: 0 0 20px;
	margin: 0;
}

.main.live-in-denmark .events-featured {
	display: block;
	width: 100%;
	max-width: none;
	clear: both;
	padding-bottom: 20px;
}

/* Full-width events page: restore bottom spacing */
.application-frame .wrapper .main.main--full.page.live-in-denmark {
	padding-bottom: 60px;
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.application-frame .wrapper .main.main--full.page.live-in-denmark {
		padding-bottom: 40px;
	}
}

/* --- Featured events carousel --- */
.events-featured {
	width: 100%;
	max-width: none;
	margin: 2rem 0;
	box-sizing: border-box;
	overflow: visible;
	--events-featured-compact-max: 1024px; /* Keep in sync with @media below and events-featured.js */
	--events-featured-poster-height: 360px;
	--events-featured-nav-size: 3rem;
}

.events-featured__title {
	margin: 0 0 1.25rem;
	padding: 0;
	max-width: none;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 1.5em;
	line-height: 34px;
	font-weight: bold;
	font-style: normal;
	color: #111;
}

.events-featured__carousel {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

.events-featured__viewport {
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.events-featured__viewport::-webkit-scrollbar {
	display: none;
}

.events-featured__viewport:focus {
	outline: none;
}

.events-featured__viewport:focus-visible {
	outline: 2px solid #111;
	outline-offset: 4px;
}

.events-featured__track {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 0 0 0.25rem;
	min-height: var(--events-featured-poster-height);
}

.events-featured__slide {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: fit-content;
	max-width: var(--events-featured-poster-max-width, 100%);
	margin: 0;
	min-width: 0;
}

.events-featured__media-link {
	display: block;
	line-height: 0;
	text-decoration: none;
	max-width: 100%;
}

.events-featured__media-link:focus {
	outline: none;
}

.events-featured__media-link:focus-visible .events-featured__thumb {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.events-featured__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: var(--events-featured-poster-max-width, 100%);
	height: var(--events-featured-poster-height);
	background-color: transparent;
	border-radius: 1px;
	line-height: 0;
}

.events-featured__thumb--boxed {
	background-color: #d5d5d5;
}

.events-featured__thumb img {
	display: block;
	max-width: var(--events-featured-poster-max-width, 100%);
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center center;
	margin: 0;
}

/* Override global full-width img rules from the legacy theme stylesheet. */
.main.main--full.page.live-in-denmark .events-featured__thumb img {
	max-width: min(var(--events-featured-poster-max-width, 100%), 100%) !important;
	width: auto !important;
	height: auto !important;
	max-height: 100% !important;
	margin: 0 !important;
	object-fit: contain !important;
}

.events-featured__caption {
	margin: 0.5rem 0 0;
	padding: 0;
	width: 100%;
	max-width: var(--events-featured-poster-width, 100%);
	overflow-wrap: break-word;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	line-height: 1.35;
	font-weight: normal;
	color: #888;
}

.events-featured__controls {
	display: none;
}

.events-featured--scrollable .events-featured__controls {
	display: block;
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.events-featured__nav {
	display: none;
	position: absolute;
	top: calc(var(--events-featured-poster-height) / 2);
	z-index: 2;
	align-items: center;
	justify-content: center;
	width: var(--events-featured-nav-size);
	height: var(--events-featured-nav-size);
	margin: 0;
	padding: 0;
	border: none;
	background-color: transparent;
	cursor: pointer;
	color: #1f1f1f;
	pointer-events: auto;
}

.events-featured--scrollable .events-featured__nav:not([hidden]) {
	display: flex;
}

.events-featured__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.events-featured__nav--prev {
	left: 0;
	transform: translate(-50%, -50%);
}

.events-featured__nav--next {
	right: 0;
	transform: translate(50%, -50%);
}

.events-featured__nav-svg {
	display: block;
	width: 1.75rem;
	height: 1.3125rem;
}

@media screen and (max-width: 1024px) {
	.events-featured__carousel {
		display: flex;
		flex-direction: column;
	}

	.events-featured__viewport {
		flex: 0 0 auto;
		overflow-y: hidden;
	}

	.events-featured--scrollable .events-featured__controls {
		position: static;
		inset: auto;
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		gap: 0.5rem;
		margin-top: 1rem;
		pointer-events: auto;
	}

	.events-featured__nav {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
	}
}

@media screen and (max-width: 768px) {
	.events-featured {
		--events-featured-poster-height: 300px;
		--events-featured-nav-size: 2.75rem;
	}

	.events-featured__track {
		gap: 1rem;
	}

	.events-featured__nav-svg {
		width: 1.5rem;
		height: 1.125rem;
	}
}

/* --- Events list (Live in Denmark) — row layout --- */
.events-list__section-title {
	max-width: 960px;
	margin: 2rem 0 2rem;
	padding: 0;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 1.5em;
	line-height: 34px;
	font-weight: bold;
	font-style: normal;
	color: #111;
}

.events-list {
	max-width: 960px;
	box-sizing: border-box;
	--events-row-min-height: 90px;
	padding-top: 0;
}

.events-list *,
.events-list *::before,
.events-list *::after {
	box-sizing: border-box;
}

.events-list__empty {
	margin: 0 0 1rem;
	font-style: italic;
	color: #666;
}

.events-list__group + .events-list__group {
	margin-top: 2.25rem;
}

.events-list__month {
	margin: 0 0 0.65rem;
	padding: 0;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2;
	color: #111;
}

.live-in-denmark .events-list__group:first-child .events-list__month {
	margin-top: 0;
}

.events-list__board {
	border: 1px solid #e3e3e3;
	background: #fff;
}

/*
 * Row: min-height matches design band; can grow for long titles.
 * min-height:0 + minmax(0,1fr) prevents poster images from stealing title column width.
 */
.events-list__row {
	display: grid;
	grid-template-columns: 5.25rem 11rem minmax(0, 1fr) auto;
	column-gap: 1.5rem;
	align-items: stretch;
	min-height: var(--events-row-min-height);
	padding: 0 1.5rem;
	border-bottom: 1px solid #e3e3e3;
	overflow: visible;
}

.events-list__row:last-child {
	border-bottom: none;
}

.events-list__when,
.events-list__media,
.events-list__main,
.events-list__cta {
	min-width: 0;
	min-height: 0;
}

.events-list__when {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: center;
	justify-self: stretch;
	width: 100%;
	height: fit-content;
	padding: 0;
	gap: 0.75rem;
}

.events-list__dow,
.events-list__daynum,
.events-list__clock {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 1;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

.events-list__dow {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
	font-style: normal;
	color: #111;
}

.events-list__daynum {
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 1.3rem;
	font-weight: 700;
	font-style: normal;
	color: #111;
}

.events-list__daynum--range {
	font-size: 1rem;
  line-height: normal;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: center;
	width: 100%;
}

.events-list__clock {
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 0.75rem;
	font-weight: 400;
	font-style: normal;
	color: #111;
}

@supports not (text-box-trim: trim-both) {
	.events-list__daynum,
	.events-list__clock {
		margin-bottom: -0.1em;
	}
}

/* Poster: fixed aspect-ratio frame; image cover + clip (ratio never follows artwork) */
.events-list__media {
	align-self: center;
	display: block;
	width: 11rem;
	max-width: 11rem;
	padding: 1.2rem 0;
	flex-shrink: 0;
}

.events-list__media-link {
	display: block;
	width: 100%;
	text-decoration: none;
	line-height: 0;
}

.events-list__media-link:focus {
	outline: none;
}

.events-list__media-link:focus-visible .events-list__thumb {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.events-list__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: var(--events-poster-ratio);
	min-height: 4.75rem;
	overflow: hidden;
	background-color: #d5d5d5;
	border-radius: 1px;
}

.events-list__thumb img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0;
}

/*
 * header.php sets .main.post.page img { width: auto; max-width: 100% } after this file,
 * which breaks absolutely positioned cover crops (images collapse / disappear).
 */
.main.main--full.page.live-in-denmark .events-list__thumb img {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
}

.events-list__main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	align-self: stretch;
	gap: 0.5rem;
	padding: 4px 0;
	width: 100%;
}

.events-list__title {
	margin: 0;
	padding: 0;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	overflow-wrap: anywhere;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	width: 100%;
}

/* Pin in first column; text wraps beside it from the first line */
.events-list__location {
	display: grid;
	grid-template-columns: 1.15em minmax(0, 1fr);
	column-gap: 0.35em;
	align-items: start;
	padding: 0.15rem 0 0;
	margin: 0;
	overflow: hidden;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.2;
	color: #808080;
}

.events-list__pin-wrap {
	width: 1.15em;
	height: 1.15em;
	margin-top: calc(1.2em - 1.15em - 0.32em);
	line-height: 0;
	color: #808080;
}

.events-list__location .events-list__pin {
	display: block;
	width: 100%;
	height: 100%;
	color: #808080;
}

.events-list__location .events-list__pin path,
.events-list__location .events-list__pin circle {
	stroke: #808080;
}

.events-list__location-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	min-width: 0;
	line-height: 1.2;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.events-list__cta {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	justify-self: stretch;
	padding-bottom: 14px;
	flex-shrink: 0;
}

.events-list__link {
	line-height: 1.2;
	white-space: nowrap;
}

@media screen and (max-width: 768px) {
	.events-list__row {
		grid-template-columns: 4.75rem minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		column-gap: 1rem;
		row-gap: 1.35rem;
		min-height: 0;
		padding: 1rem 1.1rem;
		align-items: center;
	}

	.events-list__when {
		grid-column: 1;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		align-self: center;
		justify-self: stretch;
		text-align: center;
		gap: 0.75rem;
		width: auto;
		height: auto;
		padding: 0;
	}

	.events-list__daynum {
		font-size: 1.25rem;
	}

	.events-list__daynum--range {
		font-size: 1rem;
	}

	.events-list__media {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		max-width: none;
		padding: 0;
		align-self: center;
	}

	.events-list__main {
		grid-column: 1 / -1;
		grid-row: 2;
		padding: 0;
		justify-content: flex-start;
	}

	.events-list__title {
		-webkit-line-clamp: 6;
		line-clamp: 6;
	}

	.events-list__location {
		overflow: visible;
	}

	.events-list__location-text {
		overflow: visible;
		text-overflow: clip;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.events-list__cta {
		grid-column: 1 / -1;
		grid-row: 3;
		width: 100%;
		justify-content: flex-end;
		align-items: flex-end;
		padding-bottom: 0;
	}
}
