/* emmabayless.com. Colors and fonts follow the Squarespace site it replaces. */
@font-face { font-family: "Glacial Indifference"; src: url("/fonts/GlacialIndifference-Regular.otf") format("opentype"); font-display: swap; }
:root {
  --bg: #2a2829; --text: #fff; --muted: rgba(255,255,255,.7);
  --heading: "Glacial Indifference", "Jost", sans-serif;
  --body: "Alegreya", Georgia, serif;
  --card-title: "Jost", "Futura", sans-serif;
  --gutter: 4vw; --max: 1500px; --header-h: 100px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: clamp(30px, 3.3vw, 47px); }
h3 { font-size: clamp(22px, 2vw, 29px); }
h4 { font-size: clamp(18px, 1.5vw, 22px); }
p { margin: 0 0 1em; }

/* header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 20px var(--gutter); height: var(--header-h); }
.logo img { height: 60px; width: auto; }
#site-nav ul { list-style: none; margin: 0; padding: 0; }
#site-nav > ul { display: flex; gap: 1.6em; }
#site-nav li { position: relative; }
#site-nav a, #site-nav button { font: 16px/1.3 var(--body); color: var(--text); text-decoration: none; background: none;
  border: 0; padding: 4px 0; cursor: pointer; }
#site-nav .on > a, #site-nav .on > button, #site-nav a:hover, #site-nav button:hover { text-decoration: underline; text-underline-offset: 6px; }
#site-nav li ul { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding: 10px 0;
  min-width: 190px; text-align: center; }
#site-nav li ul a { display: block; padding: 4px 10px; }
#site-nav .folder:hover ul, #site-nav .folder:focus-within ul, #site-nav .folder.open ul { display: block; }
.menu-toggle { display: none; }

/* sections */
section { position: relative; padding: 4vw var(--gutter); }
section .inner { position: relative; max-width: 1000px; margin: 0 auto; }
section.wide .inner { max-width: var(--max); }
.no-hero main { padding-top: var(--header-h); }
.bg { position: absolute; inset: 0; overflow: hidden; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.bg::after { content: ""; position: absolute; inset: 0; background: rgba(42,40,41,.35); }
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 3vw); }
.hero .bg::after { background: rgba(0,0,0,.6); }
.hero .inner { width: 100%; }
.hero--full { min-height: 100vh; }
.hero--full .bg::after { background: transparent; }
.banner { min-height: 418px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding-top: var(--header-h); border-radius: 0 0 48px 48px; overflow: hidden; }
.banner .bg { border-radius: 0 0 48px 48px; }
.banner h2 { margin: 0; text-transform: uppercase; }
.plain .text { text-align: center; }
.hero .text h3 { text-align: center; font-style: normal; }
.hero .text { font-size: 15px; }
.split .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; max-width: 1200px; }
.split .text { text-align: left; }
.split .image { max-width: 420px; justify-self: center; }
.text a { text-underline-offset: 3px; }

/* project grids (Lighting Design, Process, ...) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 50px; row-gap: 35px; }
.card { text-decoration: none; text-align: center; }
.card-img { aspect-ratio: 1; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card:hover img { opacity: .7; }
.card-title { font: 500 clamp(17px, 1.8vw, 26px)/1.4 var(--card-title); margin: 15px 0 0; }

/* galleries */
.gallery figure { margin: 0; }
.gallery a { display: block; cursor: zoom-in; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; text-align: center; }
.gallery--strips { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery--strips figure { flex: var(--ar) 1 calc(var(--ar) * 300px); }
.gallery--strips::after { content: ""; flex: 100 1 0; }
.gallery--strips img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.gallery--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery--grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery--masonry { columns: 3; column-gap: 12px; }
.gallery--masonry figure { break-inside: avoid; margin-bottom: 12px; }
.gallery--slideshow { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.slides img { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0;
  font-size: 40px; line-height: 1; width: 48px; height: 64px; cursor: pointer; }
.slide-btn.prev { left: 0; } .slide-btn.next { right: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,19,.96); display: flex; align-items: center;
  justify-content: center; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lightbox .close { top: 10px; right: 10px; font-size: 36px; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }

/* video, image, buttons, form */
.video { max-width: 420px; margin: 0 auto; }
.video video { width: 100%; aspect-ratio: var(--ar); background: #000; }
figure.image { margin: 0; }
.button { display: inline-block; background: #fff; color: var(--bg); font: 500 15px/1 var(--card-title); padding: 16px 30px;
  border: 0; border-radius: 300px; text-decoration: none; cursor: pointer; }
.button-wrap { text-align: center; }
.contact-form { max-width: 640px; margin: 0 auto; text-align: left; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form legend { padding: 0; margin-bottom: 4px; }
.contact-form label { display: block; margin-bottom: 16px; font-size: 15px; }
.contact-form label span { color: var(--muted); font-size: 13px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 12px; font: 16px var(--body);
  border: 1px solid #ccc; border-radius: 0; background: #fff; color: #222; }
.contact-form .hp { display: none; }
.form-note, .form-status { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* pager and footer */
.pager { display: flex; justify-content: space-between; gap: 20px; padding: 3vw var(--gutter); max-width: var(--max); margin: 0 auto;
  font: 500 18px/1.4 var(--card-title); }
.pager a { text-decoration: none; } .pager a:hover { text-decoration: underline; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 2vw var(--gutter) 3vw; }
.site-footer p { margin: 0; }

/* phones */
@media (max-width: 767px) {
  :root { --gutter: 6vw; --header-h: 80px; }
  .logo img { height: 44px; }
  .menu-toggle { display: block; background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; font: 15px var(--body);
    padding: 6px 14px; border-radius: 300px; position: relative; z-index: 2; }
  #site-nav { display: none; position: fixed; inset: 0; background: var(--bg); padding: 110px var(--gutter) 40px; overflow-y: auto; }
  .nav-open #site-nav { display: block; }
  #site-nav > ul { flex-direction: column; gap: 14px; font-size: 22px; }
  #site-nav a, #site-nav button { font-size: 22px; }
  #site-nav li ul { display: block; position: static; transform: none; text-align: left; padding: 4px 0 0 16px; }
  #site-nav li ul a { font-size: 18px; padding: 4px 0; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { position: fixed; }
  .banner { min-height: 300px; border-radius: 0 0 28px 28px; } .banner .bg { border-radius: 0 0 28px 28px; }
  .split .inner, .cards, .contact-form fieldset { grid-template-columns: 1fr; }
  .cards { row-gap: 28px; }
  .gallery--grid { grid-template-columns: repeat(2, 1fr); }
  .gallery--masonry { columns: 1; }
  .gallery--strips figure { flex-basis: 100%; }
  .pager { font-size: 15px; }
}
