/*
Theme Name: DZY Clean
Template: twentysixteen
Description: A tighter, cleaner layout for dzy.dk on top of Twenty Sixteen, with the same colours, fonts and content: a slim header bar, the band picture only on the front page, and media in even sizes and grids. First tried on test.dzy.dk.
Version: 0.1.0
Text Domain: dzy-clean
*/

:root {
	--gold: #f2db74;
	--amber: #f7b552;
	--orange: #dd9933;
	--ink: #000;
	--panel: #0e0e0e;
	--line: rgba(242, 219, 116, .16);
	--muted: rgba(242, 219, 116, .72);
	--radius: 12px;
	--measure: 860px;
	--wide: 1120px;
}

/* ---------- The page: no frame, content from the top ---------- */
body { font-family: Montserrat, "Helvetica Neue", sans-serif; }
.site { margin: 0 auto; max-width: var(--wide); box-shadow: 0 0 60px rgba(0, 0, 0, .8); }
.site-inner { max-width: none; }
body:not(.custom-background-image):before,
body:not(.custom-background-image):after { display: none; }
.site-content { padding: 0; }
.content-area, .no-sidebar .content-area { float: none; width: auto; margin: 0; }
.site-main { margin: 0; }
.site-main > article { margin: 0 0 56px; }

/* ---------- Header: one slim bar that stays at the top ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	padding: 10px clamp(16px, 4vw, 32px);
	background: rgba(0, 0, 0, .94);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.admin-bar .site-header { top: 46px; }
@media screen and (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.site-branding { display: flex; align-items: center; gap: 14px; margin: 0; max-width: none; }
.custom-logo-link { display: block; }
.custom-logo-link img.custom-logo, .wp-custom-logo .custom-logo { width: auto; max-height: 56px; }
.site-description { display: none; margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
@media screen and (min-width: 56.875em) { .site-description { display: block; } }
.header-image { display: none; }   /* the band picture is the front page's hero instead */

/* The menu */
.menu-toggle {
	margin: 0; padding: 8px 14px; border-radius: 999px; border-color: var(--line); color: var(--gold);
	font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.menu-toggle:hover, .menu-toggle:focus, .menu-toggle.toggled-on { border-color: var(--orange); color: var(--orange); background: transparent; }
.site-header-menu { margin: 0; }
.site-header-menu.toggled-on { flex-basis: 100%; }
.main-navigation { margin: 0; }
.main-navigation a {
	padding: 10px 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--gold); border-bottom: 0;
}
.main-navigation li { border: 0; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--orange); }
.main-navigation .current-menu-item > a, .main-navigation .current_page_item > a { color: var(--orange); box-shadow: inset 0 -2px 0 var(--orange); }
@media screen and (min-width: 56.875em) {
	.menu-toggle { display: none; }
	.site-header-menu { display: block; }
	.main-navigation .primary-menu { display: flex; gap: 4px; border: 0; }
	.main-navigation a { padding: 10px 14px; }
}

/* ---------- Pages: a centred column, titles close to the top ---------- */
.entry-header, .entry-content, .entry-footer, .entry-summary, .page-header, .page-content,
.no-sidebar .entry-header, .no-sidebar .entry-content, .no-sidebar .entry-footer {
	margin-left: auto; margin-right: auto; max-width: var(--measure);
	padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px);
}
.entry-header { margin-top: clamp(24px, 5vw, 48px); margin-bottom: 20px; text-align: center; }
.entry-title { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; color: var(--gold); margin: 0; }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content p { margin-bottom: 0; }
.entry-content h1, .entry-content h2, .entry-content h3 {
	margin: 1.8em 0 .5em; line-height: 1.15; text-align: center; color: var(--amber);
}
.entry-content h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.entry-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.entry-content > :first-child { margin-top: 0; }
.entry-content a { color: var(--orange); box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Media: even sizes, rounded, nothing sticking out ---------- */
.entry-content img { border-radius: 10px; }
.entry-content figure { margin-left: auto; margin-right: auto; }
.entry-content .wp-block-image { text-align: center; }
.entry-content .wp-block-image img { display: inline-block; max-width: 100%; height: auto; }
.entry-content figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }

/* The thin golden lines between sections */
.entry-content img.wp-image-150 { border-radius: 0; width: min(100%, 520px); opacity: .85; }
.entry-content .wp-block-image:has(img.wp-image-150) { margin: 32px auto; }

/* Videos: 16:9, full column width */
.entry-content .wp-block-video video,
.entry-content .wp-block-embed__wrapper {
	display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000;
	border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
	border: 1px solid var(--line);
}
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-content .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-content .wp-block-embed, .entry-content .wp-block-video { margin: 24px auto; }

/* Sound */
.entry-content .wp-block-audio { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.entry-content audio { width: 100%; display: block; }

/* Galleries: an even grid of same-shaped photos; a click shows the photo large */
.entry-content .wp-block-gallery,
.entry-content .wp-block-gallery.has-nested-images {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); gap: 10px;
	max-width: var(--wide);
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.entry-content .wp-block-gallery .blocks-gallery-item {
	width: auto !important; margin: 0 !important; flex: none !important;
}
.entry-content .wp-block-gallery img {
	width: 100% !important; height: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
	cursor: zoom-in; transition: transform .2s, filter .2s;
}
.entry-content .wp-block-gallery img:hover { transform: scale(1.02); filter: brightness(1.08); }

.dzy-lightbox {
	position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .94); padding: 24px;
}
.dzy-lightbox.open { display: flex; }
.dzy-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px #000; }
.dzy-lightbox button {
	position: absolute; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); color: var(--gold);
	width: 48px; height: 48px; border-radius: 50%; font-size: 22px; line-height: 1; padding: 0; cursor: pointer;
}
.dzy-lightbox button:hover, .dzy-lightbox button:focus { border-color: var(--orange); color: var(--orange); background: rgba(0, 0, 0, .8); }
.dzy-lightbox .close { top: 16px; right: 16px; }
.dzy-lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.dzy-lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- The booking form ---------- */
.wpforms-container input, .wpforms-container textarea, .wpforms-container select {
	background: #111 !important; color: var(--gold) !important; border: 1px solid var(--line) !important; border-radius: 8px !important;
}
.wpforms-container input:focus, .wpforms-container textarea:focus { border-color: var(--orange) !important; outline: none; }
.wpforms-container label { color: var(--gold) !important; }
.wpforms-container button[type=submit], .wpforms-submit {
	background: var(--orange) !important; color: #000 !important; border: 0 !important; border-radius: 999px !important;
	padding: 12px 28px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- The front page ---------- */
.dzy-hero {
	position: relative; display: grid; place-items: center; text-align: center; overflow: hidden;
	min-height: clamp(320px, 58vh, 620px); padding: 40px 20px; border-bottom: 1px solid var(--line);
}
.dzy-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.dzy-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.85)); }
.dzy-hero .inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; }
.dzy-hero .logo { width: clamp(120px, 22vw, 200px); height: auto; filter: drop-shadow(0 8px 24px #000); }
.dzy-hero .tagline { margin: 0; font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--gold); letter-spacing: .04em; }
.dzy-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.dzy-button {
	display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; font-size: 14px; text-decoration: none; box-shadow: none;
	background: var(--orange); color: #000; border: 2px solid var(--orange);
}
.dzy-button.ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.dzy-button:hover, .dzy-button:focus { filter: brightness(1.12); color: #000; }
.dzy-button.ghost:hover, .dzy-button.ghost:focus { color: var(--orange); border-color: var(--orange); }

.dzy-section { max-width: var(--measure); margin: 0 auto; padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 32px) 0; }
.dzy-section.wide { max-width: var(--wide); }
.dzy-section > h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); text-align: center; color: var(--amber); margin: 0 0 18px; }
.dzy-section .text { font-size: 17px; line-height: 1.7; }
.dzy-section .text p + p { margin-top: 1em; }
.dzy-section .more { text-align: center; margin-top: 22px; }
.dzy-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.dzy-thumbs img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
@media (max-width: 640px) { .dzy-thumbs { grid-template-columns: repeat(2, 1fr); } }
.dzy-front .site-main > article { display: none; }
.dzy-front .dzy-last { padding-bottom: 56px; }

/* ---------- Footer ---------- */
.site-footer { padding: 20px; border-top: 1px solid var(--line); justify-content: center; text-align: center; }
.site-footer .site-title, .site-info { font-size: 13px; color: var(--muted); }
.site-footer .main-navigation, .site-footer .social-navigation { display: none; }

/* The old Visual Composer pages (Fest'ival, Billet): their rows as plain columns */
.vce-row-content { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.vce-col { flex: 1 1 260px; min-width: 0; }
.vce-single-image-inner { padding-bottom: 0 !important; width: auto !important; }
.vce-single-image-container { text-align: center; }
.vce-single-image { max-width: 100%; height: auto; }
