/*
  ==============================
  Base variables & reset
  ==============================
*/
:root {
  --bg: #000000;
  --fg: #fff;
  --accent: violet;
  --font-body: 'Arial', monospace;
  --container-width: 1000px;
}

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

/*
  ==============================
  Base layout & typography
  ==============================
*/
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding-top: 128px; /* prevent navbar overlap */
}

h2 {
  color: var(--accent);
  font-size: 1.5em;
  margin-bottom: 0;
  text-align: center;
}

.title_gallery {
  font-size: 2em; /* section title */
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: center;
  width: 100%;
  margin-left: 0;
}

.end-text {
  text-align: center;
  color: grey;
  font-size: 16px;
  margin-top: 20px;
}

/*
  ==============================
  Footer
  ==============================
*/
.footer {
  width: 100%;
  padding: 60px 0 80px 0;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link {
  color: white;
  transition: filter 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover {
  filter: blur(1px);
  transform: scale(1.1);
}

.footer-link svg {
  width: 48px;
  height: 48px;
}

/*
  ==============================
  Navbar
  ==============================
*/
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 24px 10px;
}

.logo {
  color: var(--fg);
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  width: 100%;
}

.nav-links li { margin: 0 15px; }

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 4px 2px;
  transition: opacity 0.2s ease;
  display: inline-block;
  width: auto;
  text-align: center;
  border-bottom: 1px solid transparent;
}

.nav-links a::after {
  content: none;
}

.nav-links a:hover::after,
.nav-links a.active::after { 
  background-color: transparent;
}

.nav-links a:hover,
.nav-links a.active { 
  opacity: 0.75;
  border-bottom-color: transparent;
}

/*
  ==============================
  Galleries
  ==============================
*/
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.gallery a { text-decoration: none; color: inherit; }

.gallery-item {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* sizes per gallery */
.gallery_works .gallery-item { width: 450px; height: 300px; }
.gallery_releases .gallery-item { width: 300px; height: 300px; }

/* overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay { opacity: 1; }

/*
  ==============================
  Responsive
  ==============================
*/
@media (max-width: 900px) {
  .logo {
    font-size: 24px;
    padding: 0;
    letter-spacing: 1px;
  }
  
  .nav-links a {
    font-size: 15px;
    padding: 4px 2px;
    width: auto;
  }
  
  .nav-links li {
    margin: 0 8px;
  }
  
  body {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 18px;
    padding: 0;
    letter-spacing: 1px;
  }
  
  .nav-links a {
    font-size: 12px;
    padding: 3px 1px;
    width: auto;
  }
  
  .nav-links li {
    margin: 0 3px;
  }
  
  body {
    padding-top: 110px;
  }
  
  .gallery {
    padding: 0 15px;
  }
  
  .gallery-item {
    width: calc(100vw - 30px);
    height: calc((100vw - 30px) * 2 / 3);
  }
  
  .gallery_releases .gallery-item {
    width: calc(100vw - 30px);
    height: calc(100vw - 30px);
  }
  
  .gallery img { width: 100%; height: auto; }
  
  .video-wrapper {
    margin: 10px 15px;
    width: calc(100% - 30px);
  }
  
  .work-page {
    padding: 0 15px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 12px 8px 8px;
  }
  
  .logo {
    font-size: 17px;
    padding: 0;
  }
  
  .nav-links a {
    font-size: 11px;
    padding: 2px 1px;
    width: auto;
  }
  
  .nav-links li {
    margin: 0 2px;
  }
  
  body {
    padding-top: 104px;
  }
}

/*
  ==============================
  Tables
  ==============================
*/
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }

/*
  ==============================
  Content containers
  ==============================
*/
.text-container {
  max-width: var(--container-width);
  margin: 20px auto;
  padding: 10px;
  text-align: left;
}

.text-container h2 { font-size: 2em; margin-bottom: 1px; }
.text-container p { font-size: 1em; line-height: 1.4; }

.text-container img { width: 100%; height: auto; display: block; }

.text-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.dates {
  max-width: 700px;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  font-size: 1em;
  flex-grow: 1;
}

/*
  ==============================
  Lists
  ==============================
*/
.list-container { font-family: var(--font-body); max-width: var(--container-width); margin: 0 auto; text-align: left; }
.list-item { margin-bottom: 4px; white-space: normal; }
.job { font-weight: bold; display: inline-block; width: 200px; }
.name, .names { display: inline-block; padding-left: 0; }

/*
  ==============================
  Links
  ==============================
*/
.my-link { color: #f181ea; text-decoration: none; }
.my-link:hover { color: #3dff33; text-decoration: underline; }


/*
  ==============================
  Work pages
  ==============================
*/
.work-page {
  max-width: var(--container-width);
  width: 100%;
  margin: 20px auto;
}

.theater-page {
  max-width: var(--container-width);
  width: 100%;
  margin: 20px auto;
}

.collective-page {
  max-width: var(--container-width);
  width: 100%;
  margin: 20px auto;
}

.other-page {
  max-width: var(--container-width);
  width: 100%;
  margin: 20px auto;
}

.work-nav-link {
  text-decoration: none;
  color: white;
}

.work-nav-link:visited {
  color: white;
}

.work-nav-link:hover {
  color: var(--accent);
}

.work-nav-link:active {
  color: var(--accent);
}

.category-nav-link {
  text-decoration: none;
  color: #4D4D4D;
}

.category-nav-link:visited {
  color: #4D4D4D;
}

.category-nav-link:hover {
  color: #808080;
}

.category-nav-link:active {
  color: #808080;
}

.work-page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 10px auto;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*
  ==============================
  Theater Gallery
  ==============================
*/
.theater-gallery {
  max-width: var(--container-width);
  margin: 40px auto;
  padding: 20px 0;
}

.main-image-container {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.main-image-container img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 60px;
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.3s ease;
  padding: 0;
  line-height: 1;
  font-weight: 200;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gallery-arrow:hover {
  color: rgba(255, 255, 255, 1);
}

.gallery-arrow-left {
  left: 10px;
}

.gallery-arrow-right {
  right: 10px;
}
