/* Project write-up pages (BilliardBot, CoilGun, LightBoard, Xylophone). */

/* ---------- Page shell: code blocks, glass panels, flat footer ---------- */

.code-container {
  background-color: #1e1e1e;
  color: #dcdcdc;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
}

@media screen and (max-width: 600px) {
  .framed-flush {
    padding: 0;
  }
}

.row>.row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

hr.rounded {
  width: 100%;
  margin: 1rem auto;
}

.wg-surface::before,
.wg-surface::after {
  display: none;
}

.project-glass-panel {
  border-radius: 12px;
  padding: 0;
}

.project-glass-subsection {
  background: var(--quiet-inner);
  border: 1px solid var(--quiet-edge);
  border-left: 3px solid var(--brand-red);
  border-radius: 8px;
}

.wg-surface:not(.wg-button):not(.tp-tabs) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-glass-subsection.wg-surface {
  padding: 24px 0 0;
  margin-top: 24px;
}

.ce-footer .ce-eyebrow {
  font: 500 11px/1.6 'Space Grotesk', Arial, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body-text);
  margin: 0;
}

/* The write-up footer is flat (the homepage one is a glass card). */
.ce-footer>.container {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.u-center { text-align: center !important; }

.u-left { text-align: left !important; }

.u-right { text-align: right !important; }

.u-w-100 { width: 100% !important; }

.u-w-80 { width: 80% !important; }

.u-w-76 { width: 76% !important; }

.u-h-auto { height: auto !important; }

.u-maxh-250 { max-height: 250px !important; }

.u-maxh-300 { max-height: 300px !important; }

.u-maxh-400 { max-height: 400px !important; }

.u-maxh-560 { max-height: 560px !important; }

.u-maxh-700 { max-height: 700px !important; }

.u-mb-0 { margin-bottom: 0 !important; }

.u-mb-13 { margin-bottom: 13px !important; }

.u-round-40 { border-radius: 40px !important; }

/* ---------- Project write-up pages: glass panels, figures, lists ---------- */

body {
  --project-panel-radius: 23px;
  --project-panel-padding: 20px;
  --project-list-indent: 20px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

.project-details>.container {
  min-width: 0;
}

.project-glass-panel {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--glass-rim);
}

.project-glass-panel>:first-child {
  margin-top: 0;
}

.project-glass-panel>:last-child {
  margin-bottom: 0;
}

.project-details>.container>hr {
  margin: 20px auto;
  scroll-margin-top: 120px;
}

.project-glass-panel :is(img, video, iframe) {
  max-width: 100%;
  box-sizing: border-box;
}

.project-glass-panel .row>:is(img, video, iframe) {
  display: block;
  max-width: calc(100% - 30px);
  margin-inline: 15px;
}

.project-glass-panel .row>:is(h2, h3, h4) {
  margin-inline: 15px;
}

.project-glass-panel pre {
  max-width: 100%;
  overflow-x: auto;
}

.project-glass-panel :is(p, li, a) {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body {
    --project-panel-padding: 16px;
  }

  .project-glass-panel img {
    height: auto;
  }
}

@media (max-width: 575px) {
  body {
    --project-panel-padding: 14px;
    --project-panel-radius: 19px;
  }

  .project-details>.container>hr {
    margin: 17px auto;
  }
}

.project-glass-panel :is(ul, ol) {
  padding-inline-start: var(--project-list-indent);
  margin: 12px 0 0;
  text-align: left;
}

.project-glass-panel li {
  text-align: left;
  padding-inline-start: 2px;
  margin: 5px 0;
}

.project-glass-panel ul>li {
  list-style: disc;
}

.project-glass-panel ul>li::marker {
  color: var(--brand-red);
  font-size: .7em;
}

.project-glass-panel ol>li::marker {
  color: var(--brand-red);
}

:is(h1, h2, h3, h4, h5, h6) {
  font-family: 'Space Grotesk', 'DM Sans', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -.7px;
}

.project-details h1 {
  font-size: 35px;
  line-height: 1.15;
  letter-spacing: -1.1px;
  margin: 26px 0;
}

.project-glass-panel h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.8px;
  margin-bottom: 18px;
}

.project-glass-panel h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.4px;
  margin-bottom: 12px;
}

.project-glass-panel h4 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -.3px;
}

.project-glass-panel h5 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.2px;
}

.project-glass-panel h6 {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

.project-glass-panel :is(p, li) {
  font-size: 18px;
  line-height: 1.8;
  color: var(--body-text);
}

.project-glass-panel p {
  margin-bottom: 14px;
}

.project-glass-panel a {
  font-family: inherit;
  font-size: inherit;
}

.project-glass-panel :is(pre, code) {
  font-family: var(--font-family-monospace, monospace);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .project-details h1 {
    font-size: 30px;
  }

  .project-glass-panel h2 {
    font-size: 24px;
  }

  .project-glass-panel h3 {
    font-size: 20px;
  }

  .project-glass-panel :is(p, li) {
    font-size: 13px;
  }
}

.project-glass-subsection {
  min-width: 0;
  padding: 16px;
  margin-top: 18px;
}

.project-glass-subsection>:first-child {
  margin-top: 0;
}

.project-glass-subsection>:last-child {
  margin-bottom: 0;
}

.project-glass-panel>.project-glass-subsection:first-child {
  margin-top: 0;
}

.project-glass-panel .row>p {
  width: 100%;
  padding-inline: 15px;
}

@media (max-width: 575px) {
  .project-glass-subsection {
    padding: 12px;
    margin-top: 15px;
  }
}

.project-glass-panel figcaption {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--caption-text);
  text-align: center;
  margin: 5 0 5px;
}

:is(img, video).image-gap {
  margin-top: 10px;
  margin-bottom: 10px;
}

.project-details :is(img, video) {
  border-radius: 14px;
}

/* Framed media: the frame's padding sits on a wrapper so each photo keeps its own rounded corners. */
.project-image-spacing {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: top;
  padding: 30px 30px 10px;
}

.project-image-spacing > :is(img, video) {
  width: 100%;
}

.project-image-spacing.w-40 { width: 40%; }
.project-image-spacing.w-70 { width: 70%; }
.project-image-spacing.w-75 { width: 75%; }
.project-image-spacing.w-80 { width: 80%; }
.project-image-spacing.w-85 { width: 85%; }
.project-image-spacing.w-90 { width: 90%; }
.project-image-spacing.w-97 { width: 97%; }

.project-details :is(img, video).project-image-rounded {
  padding: 0;
  border-radius: 14px;
  max-width: 100%;
}

@media (max-width: 575px) {
  .project-image-spacing {
    padding: 7px;
  }
}
