/*==============================================================================
  1) Embed Google Fonts
==============================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Kings&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/*==============================================================================
  2) Root Variables & Global Reset
==============================================================================*/
:root {
  --bg-color: #453923;
  --text-color: #1FFFFF;
  --hover-color: #F8793D;
  --phi: 1.618;
  --sidebar-perc: 38.2%;    /* 1/(φ+1) */
  --main-perc: 61.8%;
  --font-size-header: clamp(3rem, 6vw, 4rem);
  --font-size-nav:    clamp(1.2rem, 2.5vw, 1.8rem);
  --font-size-base:   clamp(1rem, 2vw, 1.125rem);
  --font-size-footer: clamp(0.75rem, 1.5vw, 1rem);
  --footer-padding:   1rem;
  --gap:              1rem;
  --measure:          40ch;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Open Sans', sans-serif;
  font-size: var(--font-size-base);
  min-height: 100vh;
}

/* Use Kings for all headings */
h1, h2, h3, h4, h5 {
  font-family: 'Kings', serif;
  text-transform: uppercase;
}

/*==============================================================================
  3) Layout
==============================================================================*/
.content {
  display: flex;
  flex: 1;
}

aside {
  flex: 0 0 var(--sidebar-perc);
  padding: 2rem;
}

main {
  flex: 0 0 var(--main-perc);
  padding: 2rem;
  overflow: auto;
}

/* for the “bio & contact” pages */
.bp {
  margin-bottom: var(--gap);
  max-inline-size: var(--measure);
}

/*==============================================================================
  4) Sidebar
==============================================================================*/
.logo {
  font-size: var(--font-size-header);
  margin-bottom: 2rem;
}

.profile {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2rem;
  display: block;
}

nav ul {
  list-style: none;
}

nav li {
  margin-bottom: 1rem;
  font-family: 'Kings', serif;
  font-size: var(--font-size-nav);
  text-transform: uppercase;
}

nav li.subitem {
  margin-left: 1rem;
  position: relative;
}

nav li.subitem::before {
  content: '↳ ';
  color: orange;
  position: absolute;
  left: -1rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--hover-color);
}

/*==============================================================================
  5) Hero & Galleries
==============================================================================*/
.hero {
  width: 100%;
  max-width: 1057px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* 3-column grid for mandalas & exhibitions */
.gallery {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--gap);
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Masonry for hats-etc */
.gallery2 {
  column-count: 3;
  column-gap: var(--gap);
}

.gallery2 img {
  width: 100%;
  display: block;
  margin-bottom: var(--gap);
  break-inside: avoid;
}

/*==============================================================================
  6) Lightbox Overlay & Navigation
==============================================================================*/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.lightbox:target {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--text-color);
  text-decoration: none;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.lightbox .nav a {
  pointer-events: auto;
  color: var(--text-color);
  font-size: 2rem;
  padding: 1rem;
  text-decoration: none;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  line-height: 1;
}

.lightbox .nav a:hover {
  background: rgba(0,0,0,0.6);
}

/*==============================================================================
  7) Video Embeds
==============================================================================*/
.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-padding);
  justify-content: center;
}

.video-container .video-figure {
  flex: 0 0 calc((100% - var(--footer-padding)) / 2);
  max-width: 560px;
}

.video-container video {
  width: 100%;
  height: auto;
}

/*==============================================================================
  8) Bio / Contact Pages
==============================================================================*/
.bio-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem;
}

.bio-content {
  max-width: 70%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.section-title {
  font-size: var(--font-size-header);
  margin: 0 0 var(--gap) 0;
}

/*==============================================================================
  9) Footer
==============================================================================*/
footer {
  text-align: center;
  padding: var(--footer-padding);
  font-size: var(--font-size-footer);
}
footer a {color: var(--hover-color);}
footer a:hover {color: var(--text-color);}

/*==============================================================================
 10) Responsive Adjustments
==============================================================================*/
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }
  aside, main {
    width: 100%;
    flex: none;
  }
  .profile,
  .hero {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto 2rem;
  }
  .video-container video {
    max-width: none;
  }.bio-content {
  max-width: 100%;
  }
  .collab {font-size: 2rem;}
}
