:root {
  color-scheme: light;
  --bg-wallpaper: url("../site_media/lightwall.png");
  --bg-deep: #f4f6fb;
  --bg-mid: #e8edf7;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9ff;
  --accent-purple: #7a4eb6;
  --accent-teal: #1f8f87;
  --accent-pink: #d94b80;
  --accent-yellow: #b38300;
  --text-primary: #1d2030;
  --text-secondary: #4a4f67;
  --text-muted: #747a96;
  --border-color: #d2d9ea;
  --sidebar-bg: rgba(244, 246, 251, 0.88);
  --row-even-bg: rgba(29, 32, 48, 0.03);
  --selection-bg: rgba(122, 78, 182, 0.25);
  --accent-purple-hover: #8b62c4;
  --accent-purple-soft: rgba(122, 78, 182, 0.24);
  --accent-teal-soft: rgba(31, 143, 135, 0.14);
  --glow-purple: 0 0 20px rgba(122, 78, 182, 0.2);
  --glow-teal: 0 0 20px rgba(31, 143, 135, 0.18);
  --shadow-card: 0 4px 24px rgba(24, 31, 60, 0.14);
}

:root[data-theme=light] {
  color-scheme: light;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg-wallpaper: url("../site_media/darkwall.jpg");
  --bg-deep: #0d0d1a;
  --bg-mid: #12122b;
  --bg-card: #1a1a35;
  --bg-card-hover: #20203f;
  --accent-purple: #b57bee;
  --accent-teal: #4ecdc4;
  --accent-pink: #ff6b9d;
  --accent-yellow: #ffd166;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b8;
  --text-muted: #5a5a7a;
  --border-color: #2a2a4a;
  --sidebar-bg: rgba(13, 13, 26, 0.85);
  --row-even-bg: rgba(255, 255, 255, 0.02);
  --selection-bg: rgba(181, 123, 238, 0.3);
  --accent-purple-hover: #c692f1;
  --accent-purple-soft: rgba(181, 123, 238, 0.4);
  --accent-teal-soft: rgba(78, 205, 196, 0.1);
  --glow-purple: 0 0 20px rgba(181, 123, 238, 0.25);
  --glow-teal: 0 0 20px rgba(78, 205, 196, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: var(--accent-purple);
}
a.disabled {
  pointer-events: none;
  cursor: default;
}

strong {
  color: var(--text-primary);
}

em {
  color: var(--accent-yellow);
  font-style: italic;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
ul li, ol li {
  margin-bottom: 0.25rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

blockquote {
  border-left: 3px solid var(--accent-purple);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
table th, table td {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}
table th {
  background: var(--bg-card);
  color: var(--accent-purple);
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table tr:nth-child(even) td {
  background: var(--row-even-bg);
}

::selection {
  background: var(--selection-bg);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-mid);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.site-sidebar {
  position: sticky;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
  width: 500px;
  background-image: var(--bg-wallpaper);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-right: 4px double var(--text-secondary);
}
.site-sidebar .sidebar-name {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-sidebar .sidebar-name a {
  text-decoration: none;
}
.site-sidebar .sidebar-name h1 {
  color: #191919;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.5rem;
  background: #cfcec9;
  border: 4px double black;
  border-radius: 8px;
  transform: rotate(3deg);
}
.site-sidebar .sidebar-name:hover a {
  color: var(--text-secondary);
}
.site-sidebar .sidebar-name .about-pointer {
  cursor: help;
}
.site-sidebar .sidebar-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-sidebar .sidebar-menu-content {
  width: 100%;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: visible;
}
.site-sidebar .project-stack {
  margin: auto 0 3rem;
  padding-bottom: 10px;
}
.site-sidebar .project-stack-item-row {
  --stack-row-height: 58px;
  --stack-label-left: 27.7%;
  --stack-label-right: 17.1%;
  --stack-label-top: 10.8%;
  --stack-label-bottom: 10.1%;
  height: var(--stack-row-height);
  display: flex;
  justify-content: center;
}
.site-sidebar .project-stack-item-row + .project-stack-item-row {
  margin-top: 1px;
}
.site-sidebar .project-stack-item-row--notebook {
  --stack-row-height: 35px;
  --stack-label-left: 7.5%;
  --stack-label-right: 22%;
  --stack-label-top: 13.5%;
  --stack-label-bottom: 20.5%;
}
.site-sidebar .project-stack-item-row--cd {
  --stack-row-height: 50px;
  --stack-label-left: 19%;
  --stack-label-right: 14%;
  --stack-label-top: 11%;
  --stack-label-bottom: 9%;
}
.site-sidebar .project-stack-item {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: 100%;
}
.site-sidebar .project-stack-item:hover {
  color: var(--text-primary);
}
.site-sidebar .project-stack-item-art {
  height: 100%;
  width: auto;
}
.site-sidebar .project-stack-item-art svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}
.site-sidebar .project-stack-item-label {
  position: absolute;
  left: var(--stack-label-left);
  right: var(--stack-label-right);
  top: var(--stack-label-top);
  bottom: var(--stack-label-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  overflow: hidden;
  pointer-events: none;
}
.site-sidebar .project-stack-item-label svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-sidebar .project-stack-item-label text {
  fill: #191919;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}
.site-sidebar .shelf {
  background-image: url("../site_media/shelf.png");
  height: 40px;
  border-radius: 15px;
  padding: 1px;
  box-shadow: inset -6px -6px 12px hsl(33, 56%, 18%), inset 6px 6px 12px #eacfae;
}
.site-sidebar .brackets {
  display: flex;
  justify-content: space-between;
}
.site-sidebar .bracket {
  background: url("../site_media/shelf.png");
  height: 60px;
  width: 30px;
  margin: 0 40px;
  border-radius: 0 0 4px 4px;
  box-shadow: inset -6px -6px 12px hsl(33, 56%, 18%), inset 6px 6px 12px hsl(33, 59%, 10%);
}
.site-sidebar .stack-item-text {
  position: absolute;
  display: flex;
  align-items: center;
}
.site-sidebar .stack-item-text::after {
  font-weight: 700;
}
.site-sidebar .stack-item-text1--tape,
.site-sidebar .stack-item-text4--tape {
  justify-content: start;
}
.site-sidebar .stack-item-text2--tape,
.site-sidebar .stack-item-text5--tape {
  justify-content: center;
}
.site-sidebar .stack-item-text3--tape,
.site-sidebar .stack-item-text6--tape {
  justify-content: end;
}
.site-sidebar .stack-item-text1--tape,
.site-sidebar .stack-item-text2--tape,
.site-sidebar .stack-item-text3--tape {
  left: 17%;
  right: 73%;
  top: var(--stack-label-top);
  bottom: var(--stack-label-bottom);
}
.site-sidebar .stack-item-text4--tape,
.site-sidebar .stack-item-text5--tape,
.site-sidebar .stack-item-text6--tape {
  left: 83%;
  right: 6.5%;
  top: var(--stack-label-top);
  bottom: var(--stack-label-bottom);
}
.site-sidebar .stack-item-text1--tape::after,
.site-sidebar .stack-item-text2--tape::after,
.site-sidebar .stack-item-text3--tape::after,
.site-sidebar .stack-item-text4--tape::after,
.site-sidebar .stack-item-text5--tape::after,
.site-sidebar .stack-item-text6--tape::after {
  writing-mode: sideways-lr;
}
.site-sidebar .stack-item-text1--cd,
.site-sidebar .stack-item-text2--cd {
  justify-content: center;
}
.site-sidebar .stack-item-text1--cd {
  left: 3%;
  right: 81%;
  top: var(--stack-label-top);
  bottom: var(--stack-label-bottom);
}
.site-sidebar .stack-item-text2--cd {
  left: 86%;
  right: 3%;
  top: var(--stack-label-top);
  bottom: var(--stack-label-bottom);
}
.site-sidebar .stack-item-text1::after {
  content: var(--text1);
  font-size: var(--text1_size);
  color: var(--text1_color);
}
.site-sidebar .stack-item-text2::after {
  content: var(--text2);
  font-size: var(--text2_size);
  color: var(--text2_color);
}
.site-sidebar .stack-item-text3::after {
  content: var(--text3);
  font-size: var(--text3_size);
  color: var(--text3_color);
}
.site-sidebar .stack-item-text4::after {
  content: var(--text4);
  font-size: var(--text4_size);
  color: var(--text4_color);
}
.site-sidebar .stack-item-text5::after {
  content: var(--text5);
  font-size: var(--text5_size);
  color: var(--text5_color);
}
.site-sidebar .stack-item-text6::after {
  content: var(--text6);
  font-size: var(--text6_size);
  color: var(--text6_color);
}
.site-sidebar .sidebar-menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-sidebar .sidebar-menu-toggle svg {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}
.site-sidebar .sidebar-menu-toggle .menu-line {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.site-sidebar .sidebar-menu-toggle .menu-icon-hamburger,
.site-sidebar .sidebar-menu-toggle .menu-icon-close {
  transition: opacity 150ms ease;
}
.site-sidebar .sidebar-menu-toggle .menu-icon-hamburger {
  opacity: 1;
}
.site-sidebar .sidebar-menu-toggle .menu-icon-close {
  opacity: 0;
}
.site-sidebar .sidebar-menu-toggle:hover {
  border-color: var(--accent-teal);
  background: var(--bg-card);
}
.site-sidebar .sidebar-footer {
  margin-top: auto;
  width: 100%;
  height: 32px;
  padding: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-main {
  flex: 1;
  width: auto;
  max-width: 1000px;
  margin: 0 auto;
}

.article {
  margin: 2rem;
}

.hero {
  padding: 5rem 0 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--bg-card);
}
.btn:focus-visible {
  outline: 1px solid var(--accent-teal);
  outline-offset: 1px;
}
.btn.btn-primary {
  background: var(--accent-purple);
  color: var(--bg-deep);
  border-color: var(--accent-purple);
}
.btn.btn-primary:hover {
  background: var(--accent-purple-hover);
  color: var(--bg-deep);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}
.btn.btn-outline {
  background: transparent;
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}
.btn.btn-outline:hover {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  box-shadow: var(--glow-teal);
  transform: translateY(-2px);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.card:hover {
  border-color: var(--accent-purple-soft);
  box-shadow: var(--glow-purple), var(--shadow-card);
  transform: translateY(-3px);
}
.card .card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.card .card-meta {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.card .card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1rem;
}

.section-label {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--accent-teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
  border-radius: 999px;
  margin-top: 0.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
}
.page-header .header-text-wrapper {
  flex: 1;
  min-width: 280px;
}
.page-header .header-image-wrapper {
  width: 50%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.page-header .header-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.page-content h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.page-content h3 {
  margin-top: 2rem;
}
.page-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-teal-soft);
}
.page-content a:hover {
  text-decoration-color: var(--accent-teal);
}

.theme-toggle {
  gap: 0.25rem;
}
.theme-toggle:hover {
  background: unset;
}

.theme-pill {
  width: 2.5rem;
  height: 1.25rem;
  display: inline-flex;
}
.theme-pill svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.theme-pill-track {
  fill: var(--bg-card);
  stroke: var(--border-color);
}

.theme-pill-sun,
.theme-pill-moon {
  stroke: var(--text-muted);
}

.theme-pill-thumb {
  fill: var(--accent-yellow);
  transition: transform 250ms ease, fill 250ms ease;
}

.theme-toggle[data-resolved-theme=dark] .theme-pill-thumb {
  transform: translateX(32px);
  fill: var(--accent-purple);
}
.theme-toggle[data-resolved-theme=dark] .theme-pill-moon {
  stroke: var(--text-primary);
}

.theme-toggle[data-resolved-theme=light] .theme-pill-sun {
  stroke: var(--text-primary);
}

.sidebar-footer-left {
  flex: 0 0 4.5rem;
  display: flex;
  justify-content: center;
}

.sidebar-footer-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

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

.foreground-video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.ornament {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin: 3rem 0;
  letter-spacing: 0.5em;
  user-select: none;
}

@media (max-width: 800px) {
  .site-wrapper {
    display: block;
    min-height: auto;
  }
  .site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 320;
    width: 100%;
    height: 8rem;
    min-height: 0;
    align-items: stretch;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    transition: height 400ms ease;
    overflow: hidden;
    border-right: unset;
  }
  .site-sidebar .sidebar-header {
    flex: 0 0 auto;
  }
  .site-sidebar .sidebar-name {
    padding: 1rem 1rem 0;
  }
  .site-sidebar .sidebar-menu-toggle {
    display: inline-flex;
  }
  .site-sidebar .sidebar-menu-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
  }
  .site-sidebar[data-menu-open=true] {
    height: 100dvh;
  }
  .site-sidebar[data-menu-open=true] .sidebar-menu-content {
    opacity: 1;
    pointer-events: auto;
  }
  .site-sidebar[data-menu-open=true] .menu-icon-hamburger {
    opacity: 0;
  }
  .site-sidebar[data-menu-open=true] .menu-icon-close {
    opacity: 1;
  }
  .site-sidebar[data-menu-open=false] .theme-toggle {
    display: none;
  }
  .site-main {
    width: 100%;
    padding-top: calc(7rem + 2rem);
  }
  body.sidebar-menu-open {
    overflow: hidden;
  }
}
.panel {
  margin-bottom: 3rem;
}
.panel h3 {
  margin-top: 0.5rem;
}

.panel-images {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  overflow-x: scroll;
}
.panel-images img {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
  height: 400px;
}

/*
    Name styles as a single word like .tape1
    In the project .md file set the stack_style to that value (no .) `stack_style: tape1`
    Tape color vars map to the VHS label bars from left to right.


*/
.tape {
  --tab_unlocked: 1;
  --color1: #305198;
  --color2: #305198;
  --color3: #305198;
  --color4: #305198;
  --color5: #305198;
  --color6: #305198 ;
}

.notebook {
  --notebook-color: #c74719;
  --label-color: #ffa008;
}

.cd {
  --color1: #5036f5;
  --color2: #12176a;
  --label-color: #f7f0e5;
}

.redtape {
  --tab_unlocked: 0;
  --color1: #be2c2c;
  --color6: #be2c2c;
  --color2: #ead4d4;
  --text1: "VCR";
  --text1_color: #ead4d4;
  --text1_size: 10px;
  --text2: "CASSETTE";
  --text2_color: #be2c2c;
  --text2_size: 8px;
  --text6: "HI-DEF";
  --text6_color: #ead4d4;
  --text6_size: 11px;
}

.page-asset-container {
  width: 100%;
  margin: 2rem 0;
  position: relative;
}

.script-container {
  max-width: 800px;
  margin: 2rem auto;
  height: 600px;
  overflow-y: scroll;
  border: double #000 2px;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  padding: 2rem;
}

.screenplay {
  font-family: "Courier New", Courier, monospace;
  font-size: 12pt;
  line-height: 1;
  -webkit-text-size-adjust: none;
}
.screenplay h1,
.screenplay h2,
.screenplay h3,
.screenplay h4,
.screenplay h5,
.screenplay h6 {
  font-weight: bold;
  font-size: inherit;
  color: #000;
}
.screenplay a {
  color: inherit;
  text-decoration: underline;
}
.screenplay p {
  color: #000;
  text-decoration: none;
}
.screenplay .underline {
  text-decoration: underline;
}
.screenplay .title-page {
  margin: 0 auto 1em;
}
.screenplay .title-page .title {
  text-align: center;
}
.screenplay .title-page .title h1 {
  text-transform: uppercase;
  text-decoration: underline;
}
.screenplay .section-heading {
  text-align: center;
}
.screenplay .section-heading:hover {
  background-color: lightyellow;
}
.screenplay .scene {
  margin-top: 2em;
}
.screenplay .scene-heading {
  margin-bottom: 0;
}
.screenplay .scene-heading:hover {
  background-color: lightyellow;
}
.screenplay .action {
  margin: 1em 0;
}
.screenplay .dialog {
  width: 75%;
  max-width: 4in;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 17%;
}
.screenplay .dialog .character {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 25%;
}
.screenplay .dialog .lines {
  max-width: 3.5in;
  margin-top: 0;
  margin-bottom: 0;
}
.screenplay .dialog .paren {
  max-width: 2in;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 15%;
  text-indent: -0.6em;
  page-break-inside: avoid;
  page-break-after: avoid;
}
.screenplay .dual-dialog {
  width: 100%;
  margin: 1em 0;
}
.screenplay .dual-dialog .dialog {
  max-width: 50%;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  float: left;
  clear: none;
}
.screenplay .dual-dialog .dialog .lines {
  width: 95%;
}
.screenplay .trans {
  max-width: 2in;
  margin-left: 63%;
  clear: both;
  page-break-before: avoid;
}
.screenplay .note {
  display: block;
  font-size: 11pt;
  font-family: "Comic Sans MS", "Marker Felt", "sans-serif";
  line-height: 1.5;
  background-color: lightgoldenrodyellow;
  padding: 1em;
}
.screenplay .synopsis {
  margin-top: 0;
  color: grey;
  font-style: italic;
}
.screenplay .center {
  text-align: center;
  white-space: pre-wrap;
}

#page-asset-gallery-lightbox {
  width: 100%;
  height: 100%;
  position: absolute;
}

#page-asset-gallery-controls {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-control-button:hover {
  color: var(--accent-teal);
}

.project-gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 1280px) {
  .project-gallery-grid {
    column-count: 2;
  }
}
@media (max-width: 1000px) {
  .project-gallery-grid {
    column-count: 1;
  }
}
.gallery-thumb {
  width: 100%;
  display: block;
  break-inside: avoid;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, border-color 150ms ease;
}
.gallery-thumb:hover {
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}
.gallery-thumb picture,
.gallery-thumb img {
  width: 100%;
  display: block;
  height: auto;
}

.project-gallery-empty {
  color: var(--text-muted);
  font-style: italic;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-button {
  position: absolute;
  top: 1rem;
  z-index: 1;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .gallery-lightbox {
    padding: 0.5rem;
  }
  .gallery-lightbox-image {
    max-height: calc(100vh - 2rem);
  }
  .gallery-lightbox-button {
    top: 0.5rem;
  }
}

/*# sourceMappingURL=main.css.map */