:root {
 --heading-size: 3.6rem;
 --body-size: 1.8rem;
 --sm-size: 1.6rem;
 /* --mono-font: 'Suisse Int’l Mono Regular';
 --md-font: 'Suisse FE Medium'; */
 --mono-font: 'Suisse Mono', monospace;
 --md-font: 'Suisse Medium', Helvetica Neue, Arial, sans-serif;
 --black: #000000;
 --dark-grey: #727272;
 --gray: #A9A9A9;
 --lt-gray: #E6E6E6;
 --manilla: #FFFDE4;
 --background: #FFFFFF;
}

@media(max-width: 768px) {
  :root {
    --heading-size: 2.8rem;
    --body-size: 1.6rem;
    --sm-size: 1.4rem;
  }
}
body {-webkit-font-smoothing: antialiased;}

.darkTheme body,
.darkTheme .tracking-container {
  background-color: var(--black);
  color: var(--background);
}
.darkTheme #tracking_btn {
  background-color: var(--background);
}
.darkTheme a,
.darkTheme #tracking a:hover {
  color: var(--background);
}
.darkTheme nav#main {
  background-color: var(--black);
}
.darkTheme .project-nav-button[aria-expanded="true"] {
  color: var(--background);
}

.alternateTheme body,
.alternateTheme .tracking-container {
  background-color: var(--manilla);
  color: var(--black);
}

.alternateTheme #tracking_btn {
  background-color: var(--black);
}
.alternateTheme a,
.alternateTheme #tracking a:hover {
  color: var(--black);
}
.alternateTheme nav#main {
  background-color: var(--manilla);
}
.alternateTheme .project-nav-button[aria-expanded="true"] {
  color: var(--black);
}

.alternateTheme .project-nav {
  background-color: var(--manilla);
  box-shadow: 0 -15px 20px var(--manilla);
}

/* Header, Menu */
nav#main, nav#main ul {
  display: flex;
}
nav#main {
  position: fixed;
  top:0;
  width: calc(100% - 6rem);
  gap: 3rem;
  font-size: var(--sm-size);
  z-index: 99998;
  background: var(--background);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.admin-bar nav#main {
  top: 32px;
}
nav#main ul, nav#main li {
  list-style: none;
  margin:0;
  padding:0;
  line-height: normal;
}
.now-time {
  text-align: center;
  min-width: 30ch;
  display: block;
  opacity: 0;
  animation: fadeInTime 0.3s ease forwards;
  font-variant-numeric: tabular-nums;
}
#project-time {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@keyframes fadeInTime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
a.logo {margin-right: auto;}
.menu-datetime {
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: fadeInTime 0.28s ease forwards;
  animation-delay: 0.5s;
  will-change: opacity;
}
.menu-datetime, a.projects, a.practice, nav li a {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  font-weight: normal;
  text-transform: uppercase;
}

a.projects {margin-left:auto;}
a.p-menu::after {
  content: '/';
}

a.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
}
a.nav-search::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  background-image: url(../images/search-dark-gray.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: transparent;
  padding: 0;
  margin: 0;
  margin-left: auto;
}
.darkTheme a.nav-search::before,
.theme-white a.nav-search::before{
  background-image: url(../images/search-w.svg);
}
.theme-white #top_search_form form::before {
  background-image: url(../images/search-w.svg);
}
.theme-black #top_search_form form::before,
.theme-gray #top_search_form form::before {
  background-image: url(../images/search-dark-gray.svg);
}

#menu-items {
  gap: 3rem;
  /* transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    transform: translateY(-10px); */
    opacity: 0;
}

#menu-items:not([hidden]) {
    transform: translateY(0);
    opacity: 1;
}

#mobile-btn {
  position: fixed !important;
  right: 2rem;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  margin: 0;
  padding: 0;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  height: fit-content;
  font-weight: normal;
}

/* #mobile-btn[aria-expanded="true"] {
    transform: rotate(45deg);
} */

body:not(.home) a.logo .full {
  position: absolute;
  left: -10000px;
}
body.home a.logo .short {display: none;}
body:has(.c-lightbox.open).admin-bar nav#main {
  top: 0;
}
body:has(.c-lightbox.open) nav#main {
  background: none !important;
  width: fit-content;
}
body:has(.c-lightbox.open) a.logo {
  color: var(--background);
}
body:has(.c-lightbox.open) .menu-datetime,
body:has(.c-lightbox.open) a:not(.logo),
body:has(.c-lightbox.open) #mobile-btn {
  display: none !important;
}

#top_search_form {
  display: none;
  position: absolute;
  top: 30px;
  right: 3rem;
  width: 32rem;
  z-index: 999999;
  height: fit-content;
}
#top_search_form form {
  margin:0;
  align-items: center;
  display: flex;
}
#top_search_form input[type=text] {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  font-weight: normal;
  height: fit-content;
  box-shadow: none;
  box-sizing: border-box;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 0.5rem;
  margin-bottom:0;
  width: 100%;
  text-align: left;
  min-width: unset;
}
#top_search_form form::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  background-image: url(../images/search-dark-gray.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: transparent;
  padding: 0;
  margin: 0;
  /* margin-left: auto; */
}

button#close_search {
  padding:0;
  margin-left: auto;
  width: 24px;
  height: 24px;
  color: var(--gray);
}

@media(min-width: 768px) {
  #mobile-btn {display: none;}
  #menu-items {
    display: flex;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;

@media (prefers-reduced-motion: reduce) {
  .menu-datetime {
    animation: none !important;
    opacity: 1 !important;
  }
}
  }
  .search-open #menu-items {
    opacity: 0 !important;
  }
  #menu-items[hidden] {display: flex !important;}
  .menu-datetime {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
  }
}
@media(max-width: 768px) {
  nav#main {
    width: 100%;
    left: 0;
    display: block;
    padding-top: 2rem;
    height: 80px;
    background: var(--background);
    box-shadow: 0px 20px 10px var(--background);
  }
  .darkTheme nav#main {
    box-shadow: 0px 20px 10px var(--black);
  }
  body:has(#project-related-btn[aria-expanded="true"]) nav#main {
    box-shadow: 0px 20px 10px var(--manilla);
  }
  a.logo {
    position: fixed;
    left: 2rem;
    z-index: 999999;
  }
  .menu-datetime {
    position: fixed;
    top: 2.2rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    text-align: center;
    align-items: center;
    margin: auto;
  }
  .now-time {margin: auto;}
  body.home a.logo .full {
    position: absolute;
    left: -10000px;
  }
  body.home a.logo .short {display: inline-flex;}
  #menu-items[hidden] {
    display: none !important;
  }
  #menu-items:not([hidden]) {display: flex !important;}
  body:not(.menu-open) #menu-items {display: none !important;}
  .now-time {
    max-width: 20ch;
    line-height: 1.2;
  }
}

.page-template-project-page .menu-items a:not(.projects),
.single-project .menu-items a:not(.projects) {
  color: var(--gray);
}
.page-practice .menu-items a:not(.practice:first-child) {
  color: var(--gray);
}
.page-template-ppf-page .menu-items a:not(.practice:nth-child(3)),
.single-post .menu-items a:not(.practice:nth-child(3)) {
  color: var(--gray);
}

/* Tracking */
/* Tracking */
#project-time {
  position: relative;
}
#tracking_btn {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  width: 12px !important;
  height: 12px !important;
  background-color: var(--black);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transform: translateX(-50%);
  padding: 0;
  margin-left: 0;
}
#clear_log {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  font-weight: normal;
}
#clear_log:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:not(.single-project) #project-time #tracking_btn {
  top: calc(100% + 0.2rem);
}
.tracking-container {
  display: none;
  position: fixed;
  top:12.4rem;
  left: 3rem;
  bottom: 90px;
  width: calc(100% - 6rem);
  height: calc(100vh - 22.4rem);
  pointer-events: none;
  z-index: 999;
  background-color: var(--background);
  overflow: scroll;
}
#tracking {
  pointer-events: auto; /* Re-enable pointer events for the tracking list */
}
.admin-bar .tracking-container {
  top: calc(12.4rem + 32px);
}
#tracking li {
  list-style: none;
  font-size: var(--sm-size);
  font-family: var(--mono-font);
  margin: 0 0 1rem 0;
  font-weight: normal;
  opacity: 0;
  animation: fadeInTracking 0.3s ease forwards;
}
@keyframes fadeInTracking {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#tracking a {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 7.5rem;
  color: var(--gray);
}

#tracking a > *:first-child {
  margin-left: -7.5rem;
}

#tracking a:hover {
  color: var(--black);
}

#tracking a::before {
  content: '';
  width: 12px;
  height: 12px;
  background-color: var(--gray);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  position: relative;
  top: -1px;
}

#tracking a:hover::before {
  background-color: var(--black);
}

#tracking span {
  display: inline-block;
  line-height: normal;
}

#tracking span.time {
  flex: 0 0 auto;
  min-width: 22ch;
}

#tracking span.comparison {
  margin-left: auto;
  text-transform: uppercase;
}

@media(max-width: 960px) {
  #tracking span.time {
    max-width: 175px;
  }
  #tracking span.comparison {
    max-width: 245px;
  }
}

@media(max-width: 768px) {
  body.menu-open .tracking-container {
    opacity: 0;
  }
  #clear_log {
    display: inline-block;
    width: 100%;
    padding-bottom: 6rem;
  }
  .tracking-container {
    width: 100%;
    top: 11rem;
    height: calc(100vh - 20rem);
    left: 0;
    padding: 0 2rem;
  }
  #tracking li {
    margin-bottom: 3rem;
  }
  #tracking a {
    flex-direction: column;
    gap: 1rem;
    align-items: baseline;
  }
  #tracking a > *:first-child {
    max-width: 20ch;
  }
  #tracking span.comparison {
    margin:0;
  }
  #tracking a::before {
    width: 9.23px;
    height: 9.23px;
    display: inline-flex;
    margin-right: 0;
    position: relative;
    top: 0px;
    left: -2rem;
  }
  #tracking span:first-child {
    margin-left: 2rem;
    margin-top: -2.1rem;
  }
  #tracking span.comparison {
    max-width: 245px;
  }
}

/* Make main content inaccessible when tracking container is open */
body.no-scroll main {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 0;
}

body.no-scroll main * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Projects */
#all-projects.grid-layout li:has(.false) {display:none;}
.page-template-project-page:has(#all-projects.grid-layout) #project-filters {
  display: none;
}
.page-template-project-page:has(#all-projects.list-layout) #project-filters,
#post-nav {
  display: flex;
  list-style: none;
  margin:0;
  gap: 1.2rem;
  justify-content: center;
  padding-bottom: 7.2rem;
}
.page-template-project-page:has(#all-projects.list-layout) #project-filters {
  padding-bottom:0;
}
.page-template-ppf-page #post-nav,
.page-template-project-page:has(#all-projects.list-layout) #project-filters {
  position: fixed;
  top: 12rem;
  left: 0;
  right: 0;
  background: var(--background);
  z-index: 10;
  padding-top: 3rem;
}
.page-template-ppf-page.admin-bar #post-nav {
  top: calc(9rem + 32px);
}
.page-template-ppf-page #all-articles,
.all-projects #all-projects.list-layout {
  position: relative;
  z-index: 100;
  background: var(--background);
}
#project-filters a, #post-nav a, #post-nav li {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  color: var(--gray);
  font-weight: normal;
}
#project-filters a.active, #post-nav a:hover, #post-nav a.active, #post-nav li {
  color: var(--black);
}
#post-nav li {display: flex;gap: 1.2rem;align-items: center;}
#post-nav li:not(:last-child)::after {
  content: '/';
  color: var(--black);
}
.single-project #project-time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}
.single-project #tracking_btn {
  position: unset;
  transform: unset;
  margin-left: 1.3rem;
  margin-right: 1.3rem;
}
.single-project h2 {
  text-align: center;
  transition: margin-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.single-project:has(#project-related.open) h2 {
  margin-bottom:0;
}
.single-project:has(#project-related-btn[aria-expanded="true"]),
.single-project:has(#project-related-btn[aria-expanded="true"]) nav#main,
.single-project:has(#project-related-btn[aria-expanded="true"]) .tracking-container {
  background-color: var(--manilla);
}

.single-project:has(#project-related-btn[aria-expanded="false"]) h3 {
  display: none;
}

.single-project h3 {
  font-size: var(--heading-size);
  color: var(--gray);
  text-align: center;
  margin-bottom: 7.2rem;
}

@media(min-width: 768px) {
  .single-project:has(#project-related-btn[aria-expanded="true"]) .project-nav {
    background: var(--manilla);
    /* box-shadow: 0 -15px 20px var(--manilla); */
  }

  .project-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    gap: 3rem;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--background);
    border-radius: 5rem;
    padding: 1rem 2rem;
    bottom: 2rem;
  }
  .darkTheme .project-nav {
    background: var(--black);
  }
  .project-nav:has(#project-description-btn[aria-expanded="true"]) {
    background: var(--background);
  }
  .darkTheme .project-nav:has(#project-description-btn[aria-expanded="true"]) {
    background: var(--black);
  }
}
.project-nav-button, .projects-display-btn {
  white-space: normal;
  padding: unset;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  text-transform: uppercase;
  color: var(--gray);
  font-weight: normal;
}
.project-nav-button[aria-expanded="true"] {
  color: var(--black);
}
.project-details {
  width: fit-content;
  margin: auto auto 7.5rem auto;
}
.project-details.additional {
  padding-top: 7.5rem;
}
.project-details p, .project-details .with-list {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  margin-bottom:1rem;
  display: flex;
  gap: 4rem;
  font-weight: normal;
}
.project-details .with-list ul {margin-bottom:0;}
.project-details p span:nth-child(1) {
  color: var(--gray);
  text-transform: uppercase;
  width: 8rem;
}
.project-details p span:nth-child(1) {
    flex-shrink: 0;
}
.project-details p span:nth-child(2), .project-details .with-list {
  color: var(--black);
}
.project-details .with-list li {
  list-style: none;
  margin: 0;
}
.project-details .with-list span {
  list-style: none;
  font-size: var(--sm-size);
  display: block;
}
.project-desc-content p:last-child {
  margin-bottom: 0;
}
#all-projects li {
  list-style: none;
  margin:0;
  border-top: 1px solid var(--lt-gray);
}
#all-projects p {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  font-weight: normal;
}

#all-projects.grid-layout a p.post-title {
  padding-top: 2rem;
  opacity:0;
}

#all-projects.grid-layout a:hover p.post-title {
  opacity:1;
}

/* #project-gallery .gallery iframe {
  display: none;
} */

@media(min-width: 768px) {

  .single-project header {
    width: fit-content;
    display: block;
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
  }

  .single-project .project-content {
    margin-top: 10rem;
    z-index: 100;
    position: relative;
  }
  .single-project:has(#project-description.open) .project-content {
    background: var(--background);
  }

  .page-template-project-page:has(#all-projects.list-layout) #project-filters li {
    margin:0;
  }

  .page-template-project-page #all-projects.list-layout {
    z-index: 100;
    position: relative;
    background: var(--background);
  }

  .single-project:has(#project-related.open) .project-content {
    margin-top: 15rem;
    background-color: var(--manilla);
  }

  #all-projects ul,
  #project-gallery .gallery, #project-drawings .gallery {
    display: grid;
    grid-auto-flow: column; /* Lays out items in columns */
    grid-auto-columns: 26%; /* Gives each item a fixed width */
    gap: 3rem; /* Adds spacing between items */
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden;

    &::-webkit-scrollbar {
      display: none;
    }

    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */

    overscroll-behavior: none;
  }
  #all-projects.list-layout ul {
    overscroll-behavior: unset;
    overflow-y: auto;
  }
  #project-drawings .gallery {grid-auto-columns: 46%;}

  .gallery {
    height: calc(100vh - 400px);
  }

  #project-gallery.uniform .gallery {
    display: block;
    width: 100%;
    overflow-x: scroll;
    height: calc(100vh - 36rem);
    white-space: nowrap;
  }
  #project-gallery.uniform .gallery figure {
    height: 100%;
    width: fit-content;
    display: inline-block;
    margin-right: 3rem;
  }
  #project-gallery.uniform .gallery figure:last-child {margin-right:0;}
  #project-gallery.uniform .gallery figure img {
    width: auto;
    height: 100%;
  }

}

@media(max-width: 768px) {
  .project-details {
      width: fit-content;
      margin: 0 0 7.5rem 0;
  }
  .project-details p span:nth-child(1) {
    flex-shrink: 0;
  }
  .project-details p, .project-details .with-list {gap:2rem;}
  .page-template-project-page main {
    margin-top: 2.6rem;
  }
  .page-template-project-page .project-nav {
    margin-bottom: 3.4rem;
    padding-bottom: 0;
  }
  .page-template-project-page:has(#all-projects.list-layout) #project-filters {
    padding-bottom: 3.4rem;
  }
  #all-projects li {
    border: none;
  }
  #all-projects.grid-layout li {
    margin-bottom: 12rem;
  }

}

#all-projects.list-layout > ul {
  display: flex;
  flex-direction: column;

}

#all-projects.list-layout > ul li > a > div,
#all-projects.list-layout > ul li > .false > div {
  display: flex;
}

#all-projects.list-layout .index-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

#all-projects.list-layout .list {
  justify-content: space-between;
  padding: 1.5rem 0;
}

#all-projects.list-layout .list p,
#all-projects.list-layout .list figure {
  margin:0;
}

#all-projects.list-layout .index-gallery img {
  width: 124px;
  height: 180px;
  object-fit: cover;
  max-width: none !important;
  max-height: none !important;
}

#all-projects .project-details {
  width: auto;
  margin: 0;
}

#all-projects.list-layout a:hover p.name span:nth-child(2) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-txt {
  display: flex;
  gap: 4rem;
}

@media(min-width: 960px) {
  .project-txt {
    width: 70%;
  }
}
@media(max-width: 960px) {
  #all-projects.list-layout .list,
  .project-txt {
    flex-direction: column;
  }
}

@media(min-width:768px) {
  #all-projects.list-layout > ul {gap:0;}
  #all-projects.list-layout .project-details {flex: 0 0 40%}
  #all-projects.list-layout .list > p {width: 25%;}
  #all-projects.list-layout .list .index-gallery {
    justify-content: right;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-shrink: 0;
  }
  .single-project footer:not(.off-bottom),
  .page-template-project-page:has(#all-projects.list-layout) footer:not(.off-bottom),
  .page-template-ppf-page footer:not(.off-bottom),
  .single-post footer:not(.off-bottom),
  .single-project:has(#project-related.open) footer {
    opacity:0;
  }
  #all-projects.grid-layout a p.mobile-post-title,
  #all-projects.grid-layout a p.mobile-excerpt {
    display: none;
  }
  .single-project.tracking-open footer:not(.off-bottom) {
    opacity: 1 !important;
  }
}

#all-projects.list-layout .grid {display: none;}
#all-projects.grid-layout .list {display: none;}

@media(max-width: 768px) {

  .project-nav {
      position: relative;
      bottom: unset;
      left: unset;
      transform: unset;
      display: flex;
      gap: 3rem;
      z-index: unset;
      transition: none;
      background: transparent;
      padding: 0 0 6.4rem 0;
      box-shadow: none;
      justify-content: center;
  }

  #all-projects.list-layout .list {
    flex-wrap: wrap;
  }

  #all-projects .project-details {
    padding-bottom: 3rem;
  }

  /*

  #all-projects.list-layout .index-gallery {
    gap:1rem;
    overflow-x: scroll;
    padding-top: 3rem;
  }

  #all-projects.list-layout .index-gallery figure {
    width: 25%;
  }

  #all-projects.list-layout .index-gallery img {
    width: 100%;
    height: 95%;
  } */

  #all-projects.list-layout .list {
    padding-bottom: 5rem;
  }

  #all-projects.grid-layout a p.post-title {
    opacity: 1;
  }
  #all-projects.grid-layout a p.post-title {
    display: none;
  }
  #all-projects.grid-layout a p.mobile-post-title {
    font-family: var(--md-font);
    font-size: var(--md-font);
    text-align: center;
  }
  #all-projects.grid-layout a p.mobile-excerpt {
    padding-top: 1.5rem;
  }
  .project-txt {
    gap: unset;
  }

  #all-projects.list-layout .index-gallery {
    gap: 1rem;
    margin-top: 4rem;
  }
  #all-projects.list-layout .index-gallery img {
    max-width: 100% !important;
    max-height: 100%;
  }
}

/* Home */
.full-screen-home-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 6.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.full-screen-home-text p {
  font-size: var(--heading-size);
  text-align: center;
  max-width: 33ch;
}
.monogram {
  text-align: center;
  font-size: 30vw;
  line-height: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 11rem;
}

.monogram.spaced {
  justify-content: space-between;
  padding-left: 10rem;
  padding-right: 10rem;
}

body:has(#wpadminbar) .home-hero-slider {
  width: 100%;
  height: calc(100vh - 12.5rem);
}

.home-hero-slider {
  width: 100%;
  height: calc(100vh - 9rem);
}

p.home-slide-excerpt {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  font-weight: normal;
  position: fixed;
  bottom: 3rem;
  width: 70%;
  text-align: center;
  left: 50%;
  transform: translate(-50%, 0);
  margin: 0;
}

.admin-bar p.home-slide-excerpt {
  bottom: calc(3rem + 35px);
}

.inside-home-slide figure {margin:0;}
.inside-home-slide img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -57%);
  width: 40%;
  height: 80%;
  object-fit: cover;
}

.swiper-slide:has(.full-screen-iframe) figure {display:none;}
.full-screen-iframe {
  position: static;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.full-screen-iframe iframe,
.full-screen-iframe video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  object-fit: cover;
}
.swiper-slide.swiper-slide-active .full-screen-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  overflow: hidden;
}

/* Global home video background that truly covers the window */
#home-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
#home-video-bg.visible {
  opacity: 1;
}
#home-video-bg iframe,
#home-video-bg video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  object-fit: cover;
}
.inside-home-slide {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
}

/* Ensure monogram appears in front of video backgrounds */
.swiper-slide:has(.full-screen-iframe) .monogram {
  position: relative;
  z-index: 2;
}

/* Make nav transparent when video slide is active */
.swiper-slide:has(.full-screen-iframe).swiper-slide-active ~ * nav#main,
body:has(.swiper-slide.swiper-slide-active .full-screen-iframe) nav#main {
  background-color: transparent !important;
  box-shadow: none !important;
}

@media(max-width: 768px) {
  /* .monogram {
    display: none;
  } */
  .inside-home-slide img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 44%;
    object-fit: cover;
  }
  p.home-slide-excerpt {
    bottom: unset;
    top: 3rem;
  }
  body.home main {
    height: calc(100vh - 155px);
    min-height: unset;
  }

  body.home main .monogram {
    margin-top: 35%;
  }
}

/* Articles */
.single-post header {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.single-post header h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 12ch;
  text-align: center;
  padding-right: 82.7px;
}

.single-post #return,
.single-post #forward {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  color: var(--dark-grey);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  font-weight: normal;
}
.single-post #return:hover,
.single-post #forward:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-post #forward svg {
  rotate: 180deg;
  margin-top: -2px;
}
@media(min-width: 768px) {
  .single-post header h2 {
    padding-right: unset;
  }
  .single-post #return {
    position: fixed;
    left: 20px;
  }
  .single-post #forward {
    position: fixed;
    right: 20px;
  }
}
.single-post time {
  display: block;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  color: rgba(0, 0, 0, 0.4);
  margin: 6.8rem auto 6.8rem auto;
  text-align: center;
  font-weight: normal;
}
.single-post figure.featured-image {
  max-width: 75%;
  margin: auto auto 6.8rem auto;
}
.single-post figure.featured-image img {width: 100%;}
.single-post #content section {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}
.single-post .gallery figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery .full-screen-lightbox {display: none;}

.single-post .gallery figure img {margin: auto;}

#all-articles.list-layout ul {
  list-style: none;
  margin:0;
  padding:0;
}

#all-articles.list-layout ul li {margin-bottom:1.5rem;}

#all-articles.list-layout ul li a {
  width: 100%;
  display: grid;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lt-gray);
}

#all-articles.list-layout ul li a p {
  font-size: var(--heading-size);
}
#all-articles.list-layout ul li a:hover p {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#all-articles.list-layout ul li a span {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  color: var(--dark-grey);
  font-weight: normal;
}
#all-articles.list-layout ul li a time {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  color: var(--dark-grey);
  font-weight: normal;
}
#all-articles.list-layout ul li a figure {margin-bottom:0;}

@media(min-width: 768px) {
  #all-articles.list-layout ul li a {
    grid-template-columns: 1fr 1fr 1fr;
  }
  #all-articles.list-layout ul li a time {
    text-align: center;
  }
  #all-articles.list-layout ul li a figure {
    display: flex;
    justify-content: right;
  }
}
@media(max-width: 768px) {
  .single-post header {
    flex-direction: column-reverse;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .single-post header h2 {
      margin: 0 auto;
      flex: unset;
      min-width: 12ch;
      text-align: center;
      padding-right: unset;
  }
  .single-post #return,
  .single-post #forward {
    flex: unset;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 6rem;
  }
  .single-post #forward { padding-bottom: 2rem; }
  #all-articles.list-layout ul li a {
    display: block;
    position: relative;
  }
  #all-articles.list-layout ul li a p, #all-articles.list-layout ul li a time {width: 50%;}
  #all-articles.list-layout ul li a p {margin-bottom: 2rem;}
  #all-articles.list-layout ul li a figure {
    width: unset;
    height: 100%;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    padding-top: 1.5rem;
    width: 46%;
  }
  #all-articles.list-layout ul li a figure img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: right;
      display: block;
  }
}

/* Footer */

footer address, .footer-links a {
  font-family: var(--mono-font);
  margin:0;
  font-style: normal;
  font-weight: normal;
  color: var(--gray);
  font-size: var(--sm-size);
  line-height: normal;
}
footer address span {
  display:block;
}
.footer-links {
  display: flex;
  gap: 3rem;
}
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}
.footer-links ul {
  list-style: none;
  margin:0;
  padding:0;
  display: flex;
  gap: 3rem;
}
.footer-links ul li {
  margin:0;
  padding:0;
}

/* Search */
.search-results main {
  margin-top: 3.5rem;
}
.search-results form {
  text-align: center;
  margin-bottom: 6rem;
}
.search-results form input[type=text] {
  text-align: center;
  border: 0;
  margin: 0 auto;
  width: fit-content;
  min-width: 120px;
  height: auto;
  padding: unset;
  border-radius: unset;
  background-color: transparent;
  font-family: var(--md-font);
  font-size: var(--heading-size);
}

.search-results .parent-title {
  font-family: var(--md-font);
  font-size: var(--heading-size);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--lt-gray);
  color: var(--dark-grey);
}
.search-results .result-container {
  display: grid;
  margin-bottom: 10rem;
  gap: 3rem;
}
.search-results .parent span.count {
  display: inline-block;
  padding-left: 5px;
}
.search-results .parent span.count::before {
  content: '(';
}
.search-results .parent span.count::after {
  content: ')';
}
.search-results .child .thumb {
  height: 222px;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  background-color: var(--lt-gray);
}
.search-results .child p {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  font-weight: normal;
}
@media(min-width: 768px) {
  .search-results .result-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media(min-width: 1024px) {
  .search-results .result-container {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}
@media(max-width: 768px) {
  .search-results .result-container {
    grid-template-columns: 1fr 1fr;
  }
}
/* .business-information {background-color: var(--background);} */
/* ***** STRUCTURE ***** */
body {
  font-family: var(--md-font);
  font-size: var(--body-size);
  padding: 3rem;
  position: relative;
  background-size: cover;
  background-position: center;
}
body.no-scroll, body.home {
  overflow: hidden;
}
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
main {
  padding: 6rem 0;
  margin-top: 6rem;
}
.home main {
  padding: 0;
  height: 100%;
  min-height: 100vh;
}
.page-template-ppf-page main,
.page-template-project-page:has(#all-projects.list-layout) main {
  margin-top: 18rem;
}
@media(min-width: 768px) {
  .single-post main {
    height: calc(100vh + 550px);
  }
}
/* main#content {
  position: relative;
  z-index: 1;
} */
footer {
  position: fixed;
  width: calc(100% - 6rem);
  bottom:0;
  /* background: white; */
  z-index: 999;
}
.inside-footer {
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
h1, h2, h3, h4, h5, h6 {
  font-size: var(--heading-size);
  margin: 0 0 2.6rem 0;
}
h1, h2 {
  margin-bottom: 6.8rem;
}
.page-template-default h2 {
  text-align: center;
  margin-bottom: 5.5rem;
}
p, li {
  margin: 0 0 2.6rem 0;
}
p.headline {
  font-size: var(--heading-size);
  max-width: 49ch;
  text-align: center;
  margin: auto auto 2rem auto;
  line-height: 1.05;
}
button, .button {
  height: unset;
  width: unset;
  background: transparent;
  text-transform: unset;
  margin: unset;
}
figcaption {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  padding-top: 2rem;
  font-weight: normal;
}

.single-post .gallery figcaption {text-align: center;}

@media(max-width: 768px) {
  h1, h2 {margin-bottom: 6.4rem;}
}

*.mono-font {font-family: var(--mono-font);font-weight: normal;font-size: var(--sm-size);}
*.dark-grey {color: var(--dark-grey);}
*.light-grey {color: var(--lt-gray);}
*.small-font {font-size: var(--sm-size);}
*.large-font {font-size: var(--heading-size);line-height: normal;}

/* Grid */
.container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 100px auto;
    padding: 0 35px;
    box-sizing: border-box;
}

.flex-layouts .row:after {content: none;}

.row {
  display: flex;
  justify-content: center;
  gap: 3.2rem;
}

.flex-two-column-text .row,
.two_column_text .row {
  justify-content: normal;
  gap: 2.5rem;
}

.flex-two-column-text .row {
  margin-bottom: 0.3rem;
}

.flex-two-column-text .row.bottom-padding {
  padding-bottom: 1.5rem;
}

.flex-timeline .row {
  margin-bottom: 3rem;
}

p.timeline-title,
p.timeline-footer {
  margin-bottom: 4rem;
  font-family: var(--mono-font);
  color: var(--dark-grey);
  text-transform: uppercase;
  font-size: var(--sm-size);
  font-weight: normal;
}
p.timeline-footer {
  text-transform: none;
  margin-top: 1rem;
}

.flex-two-column-text .key {
  flex: 0 0 235px;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  line-height: 1.35;
  color: var(--dark-grey);
  text-transform: uppercase;
  font-weight: normal;
}
.flex-two-column-text .value,
.flex-two-column-text .value p {
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  line-height: 1.35;
  font-weight: normal;
}
.flex-two-column-text .value a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flex-timeline .flex-two-column-text .key {
  flex: none;
  color: var(--black);
}
.flex-timeline .flex-two-column-text p {
  color: var(--dark-grey);
}
.flex-timeline .flex-two-column-text p strong {
  color: var(--black);
  font-weight: normal;
}
.flex-two-column-text .row p,
.two_column_text .row p {
  margin:0;
}

.flex-image-section {
  padding: 5.5rem 0;
}

#project-description,
.rich-text, .flex-two-column-text, .flex-timeline,
.flex-image-section.constrain {
  max-width: 77ch;
  margin: auto;
}

.flex-text-image-section {
  max-width: 77ch;
  margin: auto;
  align-items: center;
}
.flex-text-image-section figure,
.flex-text-image-section .text {
  flex: 1;
}

.row.flex-text-image-section.right {
  flex-direction: row-reverse;
}

@media(max-width: 768px) {
  body {
    padding: 2rem;
  }
  body.home {
    overflow-y: scroll;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open nav#main {
    height: calc(100% - 10rem);
  }
  body.menu-open #menu-items {
    position: absolute;
    align-items: center;
    justify-content: center;
    height: calc(100% - 4rem);
    width: 100%;
    text-align: center;
    margin-top: 4rem;
  }
  body.menu-open #menu-items a {
    margin: unset;
  }
  body.menu-open nav#main li {
    display: inline-flex;
    align-items: center;
  }
  body.menu-open main#content {
    z-index: -1;
    opacity: 0;
    height: 0px;
  }
  footer {
    position: relative;
    width: 100%;
  }
  .inside-footer {padding:0;}
  body.no-scroll footer {
    position: fixed;
    bottom:0;
    z-index: 999;
    width: calc(100% - 4rem);
    padding-bottom: 2rem;
  }
  body.menu-open footer {
    position: fixed;
    z-index: 99999999;
    bottom: 0;
    width: calc(100% - 4rem);
    padding-bottom: 2rem;
  }
  .flex-two-column-text .row,
  .two_column_text .row {
    gap: 2rem;
  }
  .flex-two-column-text .key {
    flex: 0 0 84px;
  }
  /* .row {
    flex-direction: column;
  } */
  .row.flex-image-section.double {
    flex-direction: column;
    gap: 2rem;
  }
  .row.flex-image-section.double figure,
  .row.flex-image-section.single figure {
    margin:0;
  }
  .row.double {
    flex-direction: column;
  }
  .flex-two-column-text .row.double .key {
    flex: unset;
  }
  .flex-timeline .row.double {
    flex-direction: row;
  }
  .flex-layouts:not(.flex-timeline):not(.flex-image-section) .row.double {
    gap: 0;
    margin-bottom: 2rem;
  }
  .row.double.bottom-padding {padding-bottom: 0;}
  .row.flex-image-section.double figure:first-child {
    margin-bottom: 2rem;
  }
  .flex-layouts .flex-timeline .row.double {
    gap: 3rem !important;
  }
  .row.flex-text-image-section.left {
    flex-direction: column;
    align-items: flex-start;
  }
  .row.flex-text-image-section.right {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* slide */
.theme-white nav#main,
.theme-black.full-screen nav#main {
  background-color: transparent;
  box-shadow: none;
}
.theme-white nav#main, .theme-white nav#main a, .theme-white .monogram,
.theme-white #tracking li, .theme-white #tracking li a,
.theme-white p.home-slide-excerpt,
.theme-white footer address, .theme-white .footer-links a {
  color: var(--background);
}
.theme-white #tracking_btn, .theme-white #tracking a::before {background-color: var(--background);}
.theme-black.full-screen .tracking-container, .theme-white .tracking-container {background-color: transparent;}
.theme-white #tracking li a:hover {color: var(--dark-grey);}

body.theme-white.tracking-open {
  background-image: none !important;
  background-color: var(--black) !important;
}

body.theme-black.tracking-open {
  background-image: none !important;
  background-color: var(--background) !important;
}

body.tracking-open .home-hero-slider {
  opacity: 0 !important;
}

/* Home hero slider navigation buttons */
.home-swiper-button-next,
.home-swiper-button-prev {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  width: 25vw;
  height: 100vh;
  margin-top: 0;
  padding: 0;
  cursor: pointer;
  position: fixed;
  top: 0;
  transform: none;
  z-index: 10;
  color: inherit;
}
.home-swiper-button-next {
  right: 1rem;
  justify-content: flex-end;
  padding-right: 30px;
}
.home-swiper-button-prev {
  left: 1rem;
  justify-content: flex-start;
  padding-left: 30px;
}
.home-swiper-button-next:hover,
.home-swiper-button-prev:hover {
  opacity: 1;
}
.home-swiper-button-next:after {
  font-size: 15px;
  margin-left: 0.5rem;
  position: static;
}
.home-swiper-button-prev:after {
  content: '';
}
.home-swiper-button-next:after,
.home-swiper-button-prev:before {
  content: '';
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}
.home-swiper-button-next:after {
  width: calc(27px / 44 * 15);
  height: 15px;
  margin-left: 0.5rem;
}
.home-swiper-button-prev:before {
  width: calc(27px / 44 * 15);
  height: 15px;
  margin-right: 0.5rem;
}
.home-swiper-button-next.color-white,
.home-swiper-button-prev.color-white {
  color: #ffffff;
}
.home-swiper-button-next.color-white:after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 44"><path d="M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z" fill="%23ffffff"/></svg>');
}
.home-swiper-button-prev.color-white:before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 44"><path d="M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z" fill="%23ffffff"/></svg>');
}
.home-swiper-button-next.color-black,
.home-swiper-button-prev.color-black,
.home-swiper-button-next.color-gray,
.home-swiper-button-prev.color-gray {
  color: #000000;
}
.home-swiper-button-next.color-black:after,
.home-swiper-button-next.color-gray:after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 44"><path d="M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z" fill="%23000000"/></svg>');
}
.home-swiper-button-prev.color-black:before,
.home-swiper-button-prev.color-gray:before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 44"><path d="M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z" fill="%23000000"/></svg>');
}

/* .theme-black.full-screen */
@media(min-width: 768px) {
  body:has(.home-hero-slider) {
    overflow: hidden;
  }
}
a.logo .full, a.logo .short {display: none !important;}
.full-fade span.fade {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.home .full-fade span.fade {
  opacity:1;
}
.full-fade:hover span.fade {
  opacity: 1;
}

@media(max-width: 768px) {
  a.logo .full-fade, a.logo .full {display: none !important;}
  a.logo .short {display: block !important;}
}

/* Project Time Responsive Styles */
@media (max-width: 960px) {
  /* Keep project time display inline on mobile - no line breaks */
  .project-time-responsive,
  #project-time .project-time-responsive {
    display: inline !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    gap: 0 !important;
  }
  .project-time-responsive .project-time-diff,
  #project-time .project-time-diff {
    display: inline !important;
    width: auto !important;
    line-height: inherit !important;
  }
  .project-time-responsive .project-time-suffix,
  #project-time .project-time-suffix {
    display: inline !important;
    width: auto !important;
    line-height: inherit !important;
  }
  .project-time-responsive #tracking_btn,
  #project-time #tracking_btn {
    display: inline !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
  }
  .single-project .project-time-responsive #tracking_btn,
  .single-project #project-time #tracking_btn {
    margin: 0 0 0 10px !important;
  }
  /* Keep project time container inline */
  #project-time {
    display: inline !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  #project-time > * {
    display: inline !important;
    width: auto !important;
  }
  /* Center tracking button when no responsive container exists */
  #project-time:not(:has(.project-time-responsive)) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  #project-time:not(:has(.project-time-responsive)) #tracking_btn {
    margin: 0 auto !important;
  }
}

@media (min-width: 961px) {
  .project-time-responsive,
  #project-time .project-time-responsive {
    /* display: inline !important;
    flex-direction: row !important; */
    display: flex!important;
    flex-direction: row !important;
    align-content: center;
    align-items: center;
  }
  .project-time-responsive .project-time-diff,
  .project-time-responsive .project-time-suffix,
  #project-time .project-time-diff,
  #project-time .project-time-suffix {
    display: inline !important;
  }
  #project-time {
    display: inline !important;
  }
  /* Center tracking button when no responsive container exists - desktop */
  #project-time:not(:has(.project-time-responsive)) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  #project-time:not(:has(.project-time-responsive)) #tracking_btn {
    margin: 0 auto !important;
  }
}

/* Page Countdown Styles */
.page-countdown-responsive {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  white-space: nowrap !important;
}

.page-countdown-diff,
.page-countdown-suffix {
  display: inline-block !important;
  font-family: var(--mono-font);
  font-size: var(--sm-size);
  line-height: inherit !important;
  margin: 0 !important;
  font-weight: normal;
}

.page-countdown-diff,
.page-countdown-suffix {
  color: var(--black);
}

.page-countdown-suffix { text-transform: uppercase; }

.darkTheme .page-countdown-diff,
.darkTheme .page-countdown-suffix {
  color: var(--background);
}

/* Tracking button within page countdown */
.page-countdown-responsive #tracking_btn {
  position: static !important;
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  flex-shrink: 0 !important;
}

@media (max-width: 960px) {
  .page-countdown-responsive {
    gap: 12px !important;
  }

  .page-countdown-responsive #tracking_btn {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
  }
}

/* Lightbox Text Slides */
.c-lightbox .swiper-slide.text-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  color: var(--background);
}

.c-lightbox__text {
  width: 80%;
  max-width: 800px;
  padding: 4rem 2rem;
  text-align: center;
}

.c-lightbox__text-content {
  font-family: var(--md-font);
  font-size: var(--heading-size);
  line-height: 1.2;
  margin: 0;
}

.c-lightbox__text-content h1,
.c-lightbox__text-content h2,
.c-lightbox__text-content h3,
.c-lightbox__text-content h4,
.c-lightbox__text-content h5,
.c-lightbox__text-content h6 {
  font-size: var(--heading-size);
  line-height: 1.2;
  margin: 0 0 2rem 0;
  color: var(--background);
}

.c-lightbox__text-content p {
  font-size: var(--body-size);
  line-height: 1.4;
  margin: 0 0 2rem 0;
  color: var(--background);
}

.c-lightbox__text-content p:last-child {
  margin-bottom: 0;
}

/* Lightbox iframe/video slides */
.c-lightbox .iframe-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
}

.c-lightbox__iframe {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-lightbox__iframe iframe {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  border: 0;
}

@media (max-width: 768px) {
  .c-lightbox__text {
    width: 90%;
    padding: 2rem 1rem;
  }

  .c-lightbox__text-content {
    font-size: var(--body-size);
  }

  .c-lightbox__text-content h1,
  .c-lightbox__text-content h2,
  .c-lightbox__text-content h3,
  .c-lightbox__text-content h4,
  .c-lightbox__text-content h5,
  .c-lightbox__text-content h6 {
    font-size: var(--heading-size);
  }
}

/* Full-screen lightbox elements - clickable styling */
.full-screen-lightbox {
  cursor: pointer;
  padding: 2rem;
  background-color: var(--lt-gray);
  border-radius: 4px;
  margin: 1rem 0;
  transition: background-color 0.2s ease;
}

.full-screen-lightbox:hover {
  background-color: var(--gray);
}

.darkTheme .full-screen-lightbox {
  background-color: var(--dark-grey);
  color: var(--background);
}

.darkTheme .full-screen-lightbox:hover {
  background-color: var(--gray);
}

address {
    margin: unset;
    font-style: inherit;
}

