  html, body {
    margin: 0;
    background-color: #FFF;
    font-family: "Manrope","DM Sans", sans-serif
  }

  /* Navigation panel */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.42);
  color: white;

  padding: 10px 28px;

  opacity: 0;
  animation: navFadeIn 1s forwards;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

  @keyframes navFadeIn { to { opacity: 1; } }

.nav-content {
  display: flex;
  align-items: center;
  font-size: 0; /* removes the old &nbsp; spacing in the PHP */
}

#nav .nav-content a {
  margin: 0;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

#nav .nav-content a + a {
  margin-left: 40px;
}

#nav .nav-content a:first-child img {
  display: block;
}

/* Fancy underline animation */
#nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #FFD700; /* gold underline */
  transition: width 0.3s ease;
}

#nav a:hover {
  color: #FFD700; /* change text color on hover */
  transform: scale(1.1); /* subtle zoom */
}

#nav a:hover::after {
  width: 100%; /* animate underline on hover */
}

#nav .nav-content a:first-child img {
  width: 48px;
  max-width: 48px !important;
  height: auto;
  display: block;
}

#nav .nav-content {
  min-height: 48px;
}
.text-wrapper {max-width:800px; margin:auto; font-size:18px; line-height:24px;}
.text-wrapper p {margin-bottom:30px;}
.text-wrapper img {max-width:240px; aspect-ratio: 1 / 1;}

figure {margin:20px 0;}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 900px;
  margin: 40px auto;
  padding: 10px;
}

.gallery img {
  width: 300px;
  height:225px;
  object-fit:cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img {
    transition: opacity 0.25s ease;
}

.gallery img:hover {
    transform: none;
    opacity: 0.72;
}
.portfolio-project {
  position: relative;
  display: block;
  overflow: hidden;
}

.portfolio-project-title {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #111111;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;

  opacity: 0;
  transition: opacity 0.25s ease;

  pointer-events: none;
  text-align: center;
}

.portfolio-project:hover .portfolio-project-title {
  opacity: 1;
}

.portfolio-project:hover img {
  opacity: 0.60;
}
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index:21;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox.active {
  display: flex;
}


.contact-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 25px;
  border-radius: 8px;
  width: 800px;
  margin:auto;

}

.contact-form h2 {
  margin-bottom: 15px;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
  height: 100px;
}

.contact-form button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0056b3;
}

  /* Logo animation */
  #logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
    width: 300px;
    height: auto;
    animation: logoAnimation 6s forwards;
    z-index: 10;
  }

  @keyframes logoAnimation {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(2.5); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
  }

  /* Background containers for crossfade */
  .bg-slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
  }

  .bg-slide.active {
    opacity: 1;
  }

  /* Navigation panel */
  .homepage #nav {
    animation: navFadeIn 1s forwards;
    animation-delay: 4s;
  }

  @keyframes navFadeIn { to { opacity: 1; } }

  .nav-content {
    display: flex;
    align-items: center;
  }
/* WordPress theme integration and responsive refinements */
*,*::before,*::after{box-sizing:border-box}body{margin:0}.page-content{padding:85px 20px 40px}.contact-form{width:min(800px,100%)}.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery img{width:100%;height:auto;aspect-ratio:4/3}@media(max-width:700px){.nav-content{gap:4px;flex-wrap:wrap}#nav{padding:12px 10px}#nav a{margin:0 6px;font-size:14px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0}.text-wrapper{font-size:16px}.text-wrapper .flex-row{flex-direction:column}.process-inner{padding:20px;flex-direction:column}.process-inner>div{flex-basis:auto!important}}

.lightbox {
  display: none !important;
}

.lightbox.active {
  display: flex !important;
}

.portfolio-coming-soon,
.portfolio-coming-soon img {
  cursor: default;
}

/* Contact page */
.contact-page-content {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 110px;

  /* Align contact text with Portfolio in navigation */
  padding-left: 116px;
}

.contact-form {
  color: white;
  font-size: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.contact-form p {
  margin: 0 0 18px 0;
}

.contact-form a {
  color: white;
  text-decoration: none;
}

.contact-form a:hover {
  opacity: 0.65;
}

/* Mobile */
@media (max-width: 700px) {
  .contact-page-content {
    padding-left: 28px;
    padding-right: 28px;
    padding-top: 100px;
    background-position: center;
  }
}

/* Final Contact Page Layout */
.contact-page-content {
  min-height: 100vh;
  box-sizing: border-box;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 120px;
  padding-left: 116px;
  padding-right: 30px;
}

.contact-page-content .contact-form {
  margin: 0 !important;
  padding: 0 !important;

  width: auto !important;
  max-width: none !important;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  color: white;
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
}

.contact-page-content .contact-form p {
  margin: 0 0 18px 0;
}

.contact-page-content .contact-form a {
  color: white;
  text-decoration: none;
}
/* Keep Contact page exactly within browser height */
.contact-page-content {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

/* Account for WordPress admin bar while logged in */
body.admin-bar .contact-page-content {
  height: calc(100vh - 32px);
}
/* Studio page - top section */

.studio-page {
  padding-top: 110px;
}

.studio-intro {
  width: 100%;
box-sizing: border-box;
margin: 0 0 70px;
padding: 0 28px 0 116px;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: 90px;
  align-items: start;
}

.studio-intro-copy {
  font-size: 15px;
  line-height: 1.5;
  max-width: 520px;
}

.studio-intro-copy p {
  margin: 0 0 18px;
}

.studio-wordmark {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 4px;
}

.studio-wordmark-rule {
  width: 1px;
  height: 90px;
  background: #ad8b3d;
  flex-shrink: 0;
}

.studio-wordmark-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 0.95;
  font-weight: 600;
}

.studio-wordmark-text .thoughtful {
  color: #35636e;
}

.studio-wordmark-text .beautiful {
  color: #ad8b3d;
}

.studio-wordmark-text .functional {
  color: #89a1a8;
}

/* Mobile */
@media (max-width: 700px) {

.studio-intro {
  width: 100%;
  box-sizing: border-box;

  margin: 0 0 70px;
  padding: 0 90px 0 116px;

  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(300px, 1fr);
  column-gap: 90px;
  align-items: start;
}

}
/* Studio - Process section */

.studio-process {
  width: 100vw;
  box-sizing: border-box;

  position: relative;
  left: 50%;
  margin-left: -50vw;

  padding: 10px 90px 80px 116px;

  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(300px, 1fr);
  column-gap: 90px;
  align-items: center;
}

.studio-section-rule {
  width: 105px;
  height: 1px;
  background: #ad8b3d;
  margin-bottom: 34px;
}

.studio-section-label {
  margin-bottom: 18px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ad8b3d;
}

.studio-process-copy {
  font-size: 15px;
  line-height: 1.5;
}

.studio-process-copy p {
  margin: 0 0 18px;
}

.studio-process-image {
  display: flex;
  justify-content: flex-end;
}

.studio-process-image img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
}

/* Mobile */
@media (max-width: 700px) {

  .studio-process {
    grid-template-columns: 1fr;
    row-gap: 35px;

    padding: 20px 28px 60px;
  }

  .studio-process-image {
    justify-content: flex-start;
  }

  .studio-process-image img {
    max-width: 100%;
  }
}

/* --- Studio Leadership: final alignment + image sizing --- */

.studio-leadership {
  width: 100% !important;
  box-sizing: border-box !important;

  position: static !important;
  left: auto !important;
  margin: 0 !important;

  padding: 30px 90px 90px 116px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 520px) minmax(300px, 1fr) !important;
  column-gap: 90px !important;
  align-items: start !important;
}

.studio-leadership-copy {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 !important;
}

.studio-leadership-visual {
  width: 100% !important;
  max-width: 320px !important;
  justify-self: end !important;
  margin: 0 !important;
}

.studio-leadership-image {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
}

.studio-page .flex-row figure img {
  width: 100% !important;
  max-width: 300px !important;
  height: auto !important;
}

/* Studio - Michael */

.studio-michael {
  width: 100%;
  box-sizing: border-box;

  padding: 25px 90px 100px 116px;

  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(300px, 1fr);
  column-gap: 90px;
  align-items: start;
}

.studio-michael-copy {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
}

.studio-michael-copy p {
  margin: 0 0 18px;
}

.studio-michael-visual {
  width: 100%;
  max-width: 320px;
  justify-self: end;
}

.studio-michael-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 36px;
}

.studio-michael-words {
  display: flex;
  align-items: center;
  gap: 24px;
}

.studio-michael-word-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 0.98;
  font-weight: 600;
}

.studio-michael-word-text .collaboration {
  color: #35636e;
}

.studio-michael-word-text .exploration {
  color: #ad8b3d;
}

.studio-michael-word-text .practice {
  color: #89a1a8;
}

@media (max-width: 650px) {

  .studio-michael {
    grid-template-columns: 1fr;
    row-gap: 40px;
    padding: 25px 28px 60px;
  }

  .studio-michael-visual {
    justify-self: stretch;
    max-width: 100%;
  }

  .studio-michael-word-text {
    font-size: 34px;
  }
}

/* Restore Leadership wordmark typography */
.studio-leadership .studio-leadership-word-text,
.studio-leadership .studio-leadership-word-text > div {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 38px !important;
  line-height: 0.98 !important;
  font-weight: 600 !important;
}

.studio-leadership .traditional {
  color: #35636e !important;
}

.studio-leadership .contemporary {
  color: #ad8b3d !important;
}

.studio-leadership .timeless {
  color: #89a1a8 !important;
}
/* Fix Leadership wordmark rule alignment */
.studio-leadership .studio-leadership-words {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 32px !important;
}

.studio-leadership .studio-wordmark-rule {
  width: 1px !important;
  height: 72px !important;
  margin: 0 !important;
  flex: 0 0 1px !important;
  background: #ad8b3d !important;
}

.studio-leadership .studio-leadership-word-text {
  margin: 0 !important;
  padding: 0 !important;
}
/* Fine-tune Process alignment */
.studio-process {
  padding-left: 140px !important;
}
/* =========================================
   GLOBAL EDM NAVIGATION
   ========================================= */

#nav {
  background: transparent !important;

  /* Logo begins on our 116px datum */
  padding: 28px 28px 14px 116px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  box-sizing: border-box !important;
}


/* Navigation row */
#nav .nav-content {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;

  /* Neutralizes the old &nbsp; spacing in the PHP */
  font-size: 0;
}


/* New EDM watermark logo */
#nav .nav-content a:first-child img {
  content: url('https://dunnemarcoulier.com/wp-content/uploads/2024/05/1fd4c-watermark.jpg');

  display: block;
  width: 54px !important;
  max-width: 54px !important;
  height: auto !important;
}


/* Navigation text */
#nav .nav-content a {
  margin: 0 !important;

  color: #2a2a2a !important;
  text-decoration: none !important;

  font-size: 13px !important;
  font-weight: 500 !important;

  padding: 5px 8px;
  border-radius: 2px;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease !important;
}


/* More breathing room between items */
#nav .nav-content a + a {
  margin-left: 58px !important;
}


/* Subtle dark fade behind text on hover */
#nav .nav-content a:not(:first-child):hover {
  background: rgba(0, 0, 0, 0.12);
  color: #111111 !important;
  opacity: 1 !important;
  transform: none !important;
}


/* Keep logo hover quiet */
#nav .nav-content a:first-child:hover {
  opacity: 0.65;
  transform: none !important;
}


/* Remove the old gold underline */
#nav a::after {
  display: none !important;
}
/* =========================================================
   EDM GLOBAL NAVIGATION — MASTER
   ========================================================= */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;

  background: transparent;

  /* 116px = global left datum */
  padding: 28px 28px 14px 116px;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  opacity: 0;
  animation: navFadeIn 1s forwards;
}

#nav .nav-content {
  display: flex;
  align-items: center;
  gap: 0;
}

#nav .site-nav-logo {
  margin: 0;
  padding: 0;
}

#nav .nav-content a.site-nav-logo img {
  content: normal !important;
  display: block !important;
  width: 54px !important;
  max-width: 54px !important;
  height: auto !important;
  background: transparent !important;
}

/* Navigation words */
#nav .nav-content > a:not(.site-nav-logo) {
  margin: 0 0 0 58px;

  padding: 5px 8px;

  color: #2a2a2a;
  text-decoration: none;

  font-size: 14px;
  font-weight: 400;

  border-radius: 2px;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

/* Subtle contrast on hover */
#nav .nav-content > a:not(.site-nav-logo):hover {
  background: transparent;
  color: #000000;
  font-weight: 700;
}

/* Quiet logo hover */
#nav .site-nav-logo:hover {
  opacity: 0.65;
}

/* Kill old underline / zoom behavior */
#nav a::after {
  display: none;
}

#nav a:hover {
  transform: none;
}
/* Align project title + counter with global watermark datum */
.project-title-below-image,
.project-slideshow .wp-block-jetpack-slideshow_pagination {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-left: 116px !important;
  text-align: left !important;
}
@media (max-width: 700px) {
  .project-title-below-image,
  .project-slideshow .wp-block-jetpack-slideshow_pagination {
    padding-left: 28px !important;
  }
}
/* Studio leadership names */
.studio-person-name {
  font-weight: 700 !important;
}

/* Give Michael's bio a little more breathing room */
.studio-michael .studio-person-role {
  margin-bottom: 22px !important;
}
/* Force consistent nav hover on every page */

#nav .nav-content > a:not(.site-nav-logo) {
  font-weight: 400 !important;
}

#nav .nav-content > a:not(.site-nav-logo):hover {
  background: transparent !important;
  color: #000000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  transform: none !important;
}
/* Portfolio hover title — center within bottom third */
.portfolio-project-title {
  top: 66.666% !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;

  align-items: center !important;
  justify-content: center !important;
}
/* Portfolio Coming Soon subtitle */

.portfolio-project-title {
  flex-direction: column;
  gap: 4px;
}

.portfolio-project-title-main {
  display: block;
}

.portfolio-project-status {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.7;
}
/* Keep project photos from scrolling behind the top navigation */
.project-page-content::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: #fff;
  z-index: 19;
  pointer-events: none;
}
/* Studio Process image — match leadership image sizing/alignment */
.studio-process-image {
  width: 100% !important;
  max-width: 320px !important;
  justify-self: end !important;
  margin: 0 !important;
}

.studio-process-image img {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 !important;
}
/* Final alignment of top Studio image */
.studio-process-image {
  transform: translateX(-24px) !important;
}
/* Align top Studio wordmark with right-side image column */
.studio-wordmark {
  width: 100% !important;
  max-width: 320px !important;
  justify-self: end !important;
  margin: 0 !important;
  transform: translateX(-50px) !important;
}
/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 700px) {

  #nav {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 16px 18px 12px 18px !important;
    box-sizing: border-box !important;
  }

  #nav .nav-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 44px 1fr 1fr 1fr !important;
    column-gap: 8px !important;
    align-items: center !important;
  }

  #nav .site-nav-logo {
    margin: 0 !important;
    padding: 0 !important;
    justify-self: start !important;
  }

  #nav .nav-content a.site-nav-logo img {
    width: 42px !important;
    max-width: 42px !important;
    height: auto !important;
  }

  #nav .nav-content > a:not(.site-nav-logo) {
    margin: 0 !important;
    padding: 4px 0 !important;
    font-size: 12px !important;
    justify-self: center !important;
  }

}
/* =========================================================
   STUDIO PAGE — MOBILE MASTER
   ========================================================= */

@media (max-width: 700px) {

  .studio-page {
    padding-top: 90px !important;
  }

  /* Make every Studio section one column */
  .studio-intro,
  .studio-process,
  .studio-leadership,
  .studio-michael {
    width: 100% !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 32px !important;

    padding-left: 28px !important;
    padding-right: 28px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Reset desktop nudges */
  .studio-wordmark,
  .studio-process-image {
    transform: none !important;
  }

  /* Text columns */
  .studio-intro-copy,
  .studio-process-copy,
  .studio-leadership-copy,
  .studio-michael-copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* Right-side visual columns become normal mobile content */
  .studio-wordmark,
  .studio-process-image,
  .studio-leadership-visual,
  .studio-michael-visual {
    width: 100% !important;
    max-width: 320px !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  /* Images */
  .studio-process-image img,
  .studio-leadership-image,
  .studio-michael-image {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Scale the large serif words for phone */
  .studio-wordmark-text,
  .studio-leadership .studio-leadership-word-text,
  .studio-michael-word-text {
    font-size: 30px !important;
    line-height: 1 !important;
  }

}
/* =========================================================
   STUDIO MOBILE — INTRO + ELIZABETH FIX
   ========================================================= */

@media (max-width: 700px) {

  .studio-intro,
  .studio-leadership {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;

    padding-left: 28px !important;
    padding-right: 28px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .studio-intro-copy,
  .studio-leadership-copy {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .studio-intro-copy p,
  .studio-leadership-copy p {
    width: 100% !important;
    max-width: none !important;
  }

  .studio-wordmark,
  .studio-leadership-visual {
    margin-top: 32px !important;
  }

}
/* =========================================================
   PORTFOLIO GRID — MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .page-content .gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;

    gap: 18px !important;
    margin: 35px 0 !important;
    padding: 0 18px !important;
  }

  .page-content .gallery > .portfolio-project {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .page-content .gallery > .portfolio-project img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }

}

}