/*
Theme Name: George Koutsi
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: george-koutsi
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* Zero the automatic margin-block-start between the template's top-level
   sections so header/main/footer butt edge-to-edge and own their rhythm. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.wp-site-blocks > main {
	padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl);
}
.wp-site-blocks > main.is-flush {
	padding-block: 0;
}

:root {
	--gk-green: var(--wp--preset--color--background);
	--gk-text: var(--wp--preset--color--text);
	--gk-gold: var(--wp--preset--color--accent);
	--gk-dark: var(--wp--preset--color--dark);
	--gk-line: rgba(0, 0, 0, 0.22);
}

html,
body {
	background: var(--gk-green);
	color: var(--gk-text);
}

body {
	font-family: 'Montserrat', system-ui, sans-serif;
}

::selection {
	background: var(--gk-gold);
	color: var(--gk-green);
}

/* ---------------------------------------------------------------- Header */
.site-header {
	background: var(--gk-green);
	padding-block: 1.1rem 0.8rem;
}
.site-header .gk-logo {
	margin-inline: auto;
	max-width: 320px;
}
.site-header .gk-logo img {
	display: block;
	width: 100%;
	height: auto;
}
/* Centered gold nav */
.site-header-header .wp-block-navigation,
.site-header .wp-block-navigation {
	justify-content: center;
	margin-top: 0.7rem;
}
.site-header .wp-block-navigation .wp-block-navigation-item > a {
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gk-gold);
	text-decoration: none;
	padding-block: 0.35rem;
}
.site-header .wp-block-navigation .wp-block-navigation-item > a:hover {
	color: var(--gk-text);
}
/* Static active marker (non-animated underline) */
.site-header .wp-block-navigation .wp-block-navigation-item.current-menu-item > a {
	border-bottom: 1px solid var(--gk-gold);
}

/* Mobile responsive nav: an in-front top panel that keeps the page visible behind */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	height: auto !important;
	max-height: 100dvh;
	overflow-y: auto;
	z-index: 99999;
	background-color: var(--gk-green) !important;
	padding: 0.8rem 0 1.6rem;
	animation: gkMobileFold 0.32s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: static !important;
	background-color: transparent !important;
	padding-inline: 1.25rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close .wp-block-navigation__responsive-close-btn {
	color: var(--gk-gold);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	color: var(--gk-gold);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item > a {
	border-bottom: 1px solid var(--gk-gold);
}
@keyframes gkMobileFold {
	from {
		opacity: 0;
		transform: translateY(-24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation__responsive-container.is-menu-open {
		animation: none !important;
	}
}

/* ------------------------------------------------------------- Body rules */
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--gk-gold);
}
.page-title {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--headline);
	margin-block: 0.4rem 0;
}
.lead {
	color: var(--gk-text);
	font-size: 0.98rem;
}
.muted {
	color: rgba(221, 221, 221, 0.72);
}
.gk-rule {
	border-top: 1px solid var(--gk-line);
}

/* -------------------------------------------------------------- Home band */
.home-hero {
	position: relative;
	background: transparent;
	margin-top: 0;
}
.home-hero .hero-photo img {
	display: block;
	width: 100%;
	height: auto;
}
.home-covers {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	justify-content: flex-end;
	margin-top: 0;
	padding-bottom: 0;
}
.home-covers .home-cover {
	width: min(300px, 42vw);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.home-covers .home-cover img {
	display: block;
	width: 100%;
	height: auto;
}
.home-covers .home-cover figcaption {
	text-align: center;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gk-gold);
	margin-top: 0.5rem;
}
@media (max-width: 600px) {
	.home-hero {
		min-height: 78vh;
	}
	.home-hero .hero-photo img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.home-covers {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 1.25rem;
		justify-content: center;
		margin-top: 0;
		padding-bottom: 0;
	}
}

/* -------------------------------------------------- Album / gallery blocks */
.album-cover img,
.gallery-item img,
.bio-photo img {
	display: block;
	width: 100%;
	height: auto;
}

/* Consistent centered card grids on Discography and Projects: cap and center
   each cover so both listing pages read the same. */
.wp-block-column .album-cover,
.wp-block-column .bio-photo {
	margin-inline: auto;
	max-width: 360px;
}

/* Discography photo background behind the album covers */
.discography-bg {
	position: relative;
	background: url("/wp-content/uploads/2026/10/gk_0156bw2-AzGz3LXvNKU2JJVk-1-scaled.jpg") center / cover no-repeat #566357;
}
.discography-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(16, 16, 16, 0.55);
}
.discography-bg > * {
	position: relative;
}

/* About photo background */
.about-bg {
	position: relative;
	background: url("/wp-content/uploads/2026/10/img-YBgg9W4keqCkv5N3.jpg") center / cover no-repeat #566357;
}
.about-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(16, 16, 16, 0.55);
}
.about-bg > * {
	position: relative;
}

/* Projects photo background */
.projects-bg {
	position: relative;
	background: url("/wp-content/uploads/2026/10/gk_0086bw2-AzGz3L7xnqf5eMov.jpg") center / cover no-repeat #566357;
}
.projects-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(16, 16, 16, 0.55);
}
.projects-bg > * {
	position: relative;
}

/* -------------------------------------------------- Gallery lightbox */
.gallery-item img {
	cursor: pointer;
}

/* Masonry gallery: images flow down columns, nested flush with no grid gaps */
.gallery-masonry {
	columns: 3;
	column-gap: 1.5rem;
}
.gallery-masonry .gallery-item {
	display: inline-block;
	width: 100%;
	margin: 0 0 1.5rem;
	break-inside: avoid;
	vertical-align: top;
}
@media (max-width: 820px) {
	.gallery-masonry {
		columns: 2;
	}
}
@media (max-width: 520px) {
	.gallery-masonry {
		columns: 1;
	}
}
.gk-lb-lock {
	overflow: hidden;
}
.gk-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 10, 0.92);
}
.gk-lightbox.open {
	display: flex;
}
.gk-lb-figure {
	margin: 0;
}
.gk-lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 88vh;
}
.gk-lb-close,
.gk-lb-prev,
.gk-lb-next {
	position: absolute;
	background: transparent;
	border: 0;
	padding: 0.5rem 1rem;
	color: var(--gk-gold);
	font-size: 2.6rem;
	line-height: 1;
	cursor: pointer;
}
.gk-lb-close {
	top: 1rem;
	right: 1.5rem;
}
.gk-lb-prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}
.gk-lb-next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

/* Click-to-open accordion: panels are visible by default and collapse only once
   the .js class is present (added by assets/js/accordion.js). */
.gk-cover {
	cursor: pointer;
}
.js .gk-panel {
	display: none;
}
.js .gk-item.gk-open .gk-panel {
	display: block;
}

/* --------------------------------------------------------------- Footer */
.site-footer {
	background: var(--gk-green);
	border-top: 1px solid var(--gk-line);
	padding-block: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--lg);
	text-align: center;
}
.site-footer .gk-logo {
	max-width: 220px;
	margin-inline: auto;
}
.site-footer .gk-logo img {
	width: 100%;
	height: auto;
}
.site-footer .wp-block-social-links {
	justify-content: center;
	margin-top: 1.4rem;
}
.site-footer .wp-block-social-links .wp-social-link {
	color: var(--gk-green);
	background: var(--gk-text);
}
.site-footer .subscribe-title {
	margin-block: 2.6rem 0.4rem;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--headline);
}

/* Subscribe form (editable). Light inputs on the green ground. */
.gk-form .wp-block-jetpack-contact-form {
	justify-content: center;
}
.gk-form input[type='text'],
.gk-form input[type='email'],
.gk-form .grunion-field-text input,
.gk-form .grunion-field-email input {
	background: var(--wp--preset--color--paper);
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 0;
	color: #2a2a2a;
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.85rem;
	padding: 0.6rem 0.8rem;
	width: 100%;
}
.gk-form .wp-block-jetpack-button {
	margin-top: 0.9rem;
}
.gk-form .wp-block-jetpack-button button {
	width: 100%;
}

.footer-copyright {
	margin-top: 3rem;
	font-size: 0.78rem;
	color: var(--gk-text);
}
.footer-copyright a {
	color: var(--gk-gold);
	text-decoration: none;
}

.contact-email {
	font-size: 1.05rem;
}
.contact-email a {
	color: var(--gk-gold);
	text-decoration: none;
}
.contact-email a:hover {
	color: var(--gk-text);
}

/* ------------------------------------------------- Plain content helpers */
.wp-block-columns + .wp-block-columns {
	margin-top: var(--wp--preset--spacing--sm);
}
a {
	color: var(--gk-gold);
}
