/* =========================
   GLOBAL STYLE GUIDE
========================= */

:root {
  --primary-color: #999;
  --secondary-color: #fff;
  --accent-color: #e63946;

  --font-main: "Montserrat", sans-serif;
  --link-color: #fff;

  --header-size: 3rem;
  --subheader-size: 2rem;
  --body-size: 0.9rem;

  --box-shadow: 0 1px 2px #00000090,
    0 3px 4px #00000050;
  --box-shadow-hover: 0 2px 4px #00000090,
    0 3px 4px #00000050;
  --box-shadow-inset: inset 0 1px 3px #aaa;
  --lightbox-background: rgba(0, 0, 0, 0.5);
  --lighting-show-background: rgba(0, 0, 0, 0.75);

  --arrow-background: rgba(255, 255, 255, 0.5);

  --phone-screen: 600px;
}

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

/* Base styles */
body {
  font-family: var(--font-main);
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

body.no-scroll {
  overflow: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography */
h1 {
  font-size: var(--header-size);
  font-weight: lighter;
  text-align: center;
}

h2 {
  font-size: var(--subheader-size);
  font-weight: lighter;
}

p {
  font-size: var(--body-size);
}

a {
  color: var(--link-color);
}

ul {
  list-style-type: "- ";
  margin-left: 2rem;
}

table,
th,
td {
  border: 1px solid white;
  border-collapse: collapse;
  padding: 0.2rem 1rem;
}

/* Layout helpers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.tab {
  display: inline-block;
  margin-left: 4em;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgb(90, 90, 90);
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-links-mobile a {
  display: block;
  padding: 0.5rem 1rem;
  margin-left: 0;
  text-decoration: none;
}


.nav-links a.active {
  border-bottom: 2px solid white;
}

.logo a {
  margin-left: 1rem;
  text-decoration: none;
}

.nav-links-mobile {
  display: none;
}

/* Dropdown Menu */

.dropdown {
  position: relative;
}


.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgb(80, 80, 80);
  border-radius: 10px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
}

.dropdown-menu a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}


.dropdown>.dropdown-menu {
  transform: translateY(10px);
}

.dropdown-menu .dropdown-menu {
  transform: translateX(-10px);
  top: 0;
  left: 100%;
}

.dropdown:hover>.dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu .dropdown:hover>.dropdown-menu {
  transform: translateX(0);
}





/* Footer */
footer {
  text-align: center;
  padding: 0.5rem;
  position: relative;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
  box-shadow: var(--box-shadow-inset);
}

/* Buttons */
.button {
  padding: 1rem 2rem;
  border: 1px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.button:hover {
  background: white;
  color: black;
}

.content {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* Home page background */
.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: 1;
}

.bg.active {
  opacity: 1;
}

/* Lighting Design */

.galleries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 1em;
  row-gap: 1em;
  padding-bottom: 4rem;
}

.galleries a {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 👈 centers everything */
  text-decoration: none;
  transition: letter-spacing 0.3s ease,
    transform 0.3s ease;
}

.galleries a:hover {
  transform: scale(1.05);
  letter-spacing: 0.05em;
}


.galleries img {
  width: 90%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
}

.show-name,
.exhibit-name {
  text-align: center;
  margin-top: 0.5em;
  color: var(--link-color);
}


/* Lighting Design Gallery */

.gallery-page {
  display: grid;
  grid-template-columns: minmax(200px, 500px) minmax(300px, 400px);
  padding: 1rem;
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);

}

/* Lighting Design Show Information */
.gallery-info {
  position: sticky;
  top: 100px;
  background: var(--lighting-show-background);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow), var(--box-shadow-inset)
}

.gallery-info a {
  color: var(--link-color);
}






/* Lightbox background */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lightbox-background);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  will-change: transform;
  transition: transform 0.25s ease, opacity 0.15s ease;
  opacity: 0;
}

#img-current {
  z-index: 2;
  opacity: 1;
}

#img-next {
  z-index: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
  transition: transform 0.2s ease;
  will-change: transform;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  background-color: var(--arrow-background);
  height: 40%;
  border-radius: 10px;
  z-index: 3;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}


.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


/* Audio */
audio {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}



/* Software Page */

.language-applescript {
  border-radius: 10px;

}

pre {
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
}

.section-wrapper {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--box-shadow), var(--box-shadow-inset);
}



@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .nav-links-mobile {
    display: inline;
  }

  .dropdown-menu {
    top: 0;
    left: 100%;
  }

  .gallery-info {
    grid-area: 1 / span 4;
    position: static;
  }

  .gallery {
    grid-area: 2 / span 4;
    gap: 1.5rem;
  }

  .gallery img {
    width: 90%;
    justify-self: center;
  }
}