/* ==========================
   Google Fonts
========================== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ==========================
   Base Styles
========================== */
* {
  padding: 0;
  margin: 0;
  font-family: "EB Garamond", serif;
  box-sizing: border-box;
}

body {
  margin: 20px;
}

hr {
  border: none;
  border-top: 1px solid lightgrey;
}

p {
  font-size: 1.4em;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 10px;
}

h1, h2 {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: italic;
}

h1 {
  font-size: 1.9em;
  line-height: 1.4em;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.3em;
}

a {
  color: #444;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: black;
  text-decoration: none;
}



/* ==========================
   Layout Utility
========================== */
.content {
  padding-top: 5px !important;
}

.homepage {
  font-style: italic;
  max-width: 590px;
  margin: 1.5rem auto;
  text-align: left;
}

.landing-blurb {
  width: 75%;
  margin-bottom: 1.2em;
}

/* ==========================
   Carousel
========================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}


.carousel-track a {
  flex: 0 0 100%;
  text-align: center;
}

.carousel-track img {
  width: 600px;
  height: auto;
  scroll-snap-align: center;
}

.nav {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 100px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  z-index: 2;
 
}

.nav.prev { left: 0; }
.nav.next { right: 0; }

.nav:hover {
  opacity: 0.5;
}

/* ==========================
   Typography Blocks
========================== */
.medium-note {
  font-style: italic;
  font-size: 1.1em;
  padding: 1em 0;
  color: #444;
  border-bottom: 1px solid lightgrey;
  margin-bottom: 30px;
}

.caption,
div.caption p,
div.lg-sub-html p {
  font-size: 1.2em;
  font-style: italic;
  text-align: center !important;
}
.caption,
div.caption p {
  padding: 0.2em 0 0 0;
}
div.caption p,
div.lg-sub-html p {
  line-height: 1.4em;
  color: #444;
  font-family: "EB Garamond", serif;
}

.dimensions {
  font-size: 14px;
}

/* ==========================
   Visual Components
========================== */
.hero-container {
  text-align: center;
  margin-bottom: 2em;
}

.hero {
  max-width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  justify-content: center;
  justify-items: center;
}

.grid-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.full-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-item {
  width: 100%;
  max-width: 400px; /* Or whatever suits your grid */
}


.square-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.video {
  text-align: center;
  padding-top: 20px;
}

/* ==========================
   Interactive / Utility Classes
========================== */
.grid {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid.ready {
  opacity: 1;
}

/* ==========================
   Navigation
========================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 10px 30px;
}

ul.logo,
ul.nav-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
}

ul.logo li a > img {
  width: 65%;
  display: block;
}

.logo {
  max-height: 120px;
}

ul li {
  position: relative;
  font-size: 20px;
}

ul li a {
  display: block;
  padding: 10px 0;
  color: black;
  font-size: 20px;
  text-decoration: none;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-menu a {
  padding-left: 20px;
  font-family: "EB Garamond", serif;
}

/* Dropdown Styling */
ul li ul.dropdown {
  width: max-content;
  min-width: 150px;
  background: white;
  position: absolute;
  z-index: 999;
  display: none;
  padding: 5px 0;
}

ul li ul.dropdown li a {
  padding: 10px 20px;
  text-align: left;
  background: white;
  border-bottom: 1px solid #ddd;
  font-style: italic;
}

ul li ul.dropdown li:last-child a {
  border-bottom: none;
}

ul li:hover ul.dropdown {
  display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-menu > li {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 160px;
}
.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* ==========================
   Details Summary Toggle
========================== */
details {
  width: 100%;
  margin: 1em auto;
  border-bottom: 1px solid lightgray;
}

summary {
  font-size: 1.1em;
  font-style: italic;
  color: #777;
  cursor: pointer;
  list-style: disclosure-closed;
  text-align: left;
  margin-bottom: 20px;
}

details[open] summary {
  list-style: disclosure-open;
}

.longform {
  width: 100% !important;
  padding: 20px 0;
}

details p {
  margin: 15px 0 !important;
}

/* ==========================
   Footer
========================== */
footer {
  text-align: center;
  padding: 0;
  margin-top: 20px;
  font-size: 0.9em;
}
  
footer hr {
    padding-top: 10px;
  }

/* ==========================
   Media Queries
========================== */
@media (max-width: 675px) {


  .nav.prev,
  .nav.next {
    left: 0;
    right: 0;
  }

  nav {
    display: block;
    text-align: center;
    padding: 0px;
  }

  .nav-menu {
    display: block !important;
    width: 100%;
    padding: 10px 0 !important;
    margin: 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }


  .nav-menu li {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    /* padding: 15px 0;
    font-size: 1.2em; */
    text-align: center;
    padding: 10px 0;
  }

  .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
    border-bottom: 1px solid lightgray;
    background-color:#444;
    border-radius: 50px;
  }

  .dropdown-menu li a {
    padding: 10px;
    font-size: 1em;
    color: white;
  }

  .dropdown-menu li a:hover {
    color: white;
    background-color: #444;
  }
  
  span.label {
    text-transform: uppercase;
    font-size: 12px;
    font-family: sans-serif;
    font-style: italic;
  }

  

  /* style the first paragraph the same as the rest for mobile view,
  with the exception of italicization */
  h1 {
    font-size: 1.4em;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 10px;
    font-family: "EB Garamond", serif;
    line-height: 1.6;

  }

  details {
    width: 100%;
    margin: 10px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid lightgray;
  }
  
  


  .landing-blurb {
    width: 90%;
  }

  .carousel-track {
    gap: 0;
    padding: 0;
  }

  .carousel-track img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  ul.logo li a > img {
    width: 100%;
      display: block;
      max-height: unset;
    }

  .nav_hr {
    border: 0;
  }



}