:root {
  --brand-red: #bc3d49;
  --bg-cream: #fcfaf3;
}

* { box-sizing: border-box; }

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--bg-cream);
  color: var(--brand-red);
  font-family: adobe-caslon-pro, serif;
  font-variant-numeric: oldstyle-nums;
  -moz-font-feature-settings: "onum";
  -webkit-font-feature-settings: "onum";
  font-feature-settings: "onum";
}

a { color: inherit; text-decoration: none; }

p {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 2.2rem;
}

/* --- Header / Logo --- */
#mark-top {
  position: relative;
  z-index: 20;
  top: 80px;
  padding-bottom:100px;
  text-align: center;
}

#mark-top img {
  height: 120px;
  width: auto;
  display: inline-block;
}

/* --- Navigation --- */

.nav{
position: absolute;
top: 0;
right: 0;
z-index: 40;
margin: 2em;
}

.navitem{
display: inline;
padding: .5em;
  font-variant: small-caps;
  text-transform: lowercase;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

/* --- Homepage Hero & Slideshow (index3.html) --- */
.hero-visual {
  position: relative;
  width: 100%;
  height: 85vh; 
  background-color: #eee; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slideshow-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.slideshow-meta {
  position: absolute;
  bottom: 6vh;
  left: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
  color: var(--brand-red);
}

.upcoming-tag {
  font-variant: small-caps;
  text-transform: lowercase;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.slideshow-subtitle {
  font-size: 2.3rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  padding: 0 20px;
}

.slideshow-details {
  font-size: 1.5rem;
  margin-top: 15px;
  display: block;
  line-height: 1.4;
  opacity: 0.95;
}

/* --- Exhibition Gallery (exhibitions3.html) --- */
.exhibition-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto 1rem; 
  padding: 0 20px;
}

.exhibition-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 2em;
  margin-bottom: 2em;
  line-height: 1.3em;
}

.exhibition-details {
  font-size: 1.5rem;
  margin-top: 15px;
  display: block;
  line-height: 1.4;
}

.slideshow-window {
  position: relative;
  width: 100%;
  height: 65vh; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Shared Slide & Navigation --- */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* Home uses cover, Exhibitions uses contain */
.hero-visual .slide { object-fit: cover; transition: opacity 2.5s ease-in-out; }
.exhibition-container .slide { object-fit: contain; transition: opacity 0.8s ease-in-out; }

.slide.active { opacity: 1; }

.nav-arrow {
  position: absolute;
  top: 58%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--brand-red);
  font-size: 3rem;
  cursor: pointer;
  z-index: 30;
  padding: 20px;
  transition: opacity 0.3s;
  font-family: serif;
}
.nav-arrow:hover { opacity: 0.4; }
.prev { left: 0; }
.next { right: 0; }

.meta-wrapper {
  text-align: center;
  margin-top: 30px;
  min-height: 100px;
}

.counter {
  font-variant: small-caps;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.caption-box { font-size: 1.2rem; line-height: 1.5; }
.caption-box em { font-style: italic; }
.source-captions { display: none; }

/* --- Content & Biographies --- */
.content-wrapper {
  max-width: 720px; /* Default for home */
  margin: 0 auto;
  padding: 100px 30px 80px;
}

/* Wide wrapper for exhibitions */
.exhibition-container + .content-wrapper,
.content-wrapper:has(.bio-grid) {
  max-width: 1100px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 10rem;
}

.bio-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 4rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.15em;
  border-top: 1px solid rgba(188,61,73,0.1);
  padding: 5em 0 0;
}

.bio-en, .bio-fr { font-size: 1rem; line-height: 1.6; }

.sc-text {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-right: 1em;
  display: inline;
}

.attribution {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: 2rem;
  text-align: left;
}

/* --- Footer --- */
.contact-footer {
  text-align: center;
  font-variant: small-caps;
  text-transform: lowercase;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  padding: 0px 20px 100px;
  margin-top: 60px;
}
.contact-footer span { display: block; }

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

body:has(#menu-toggle:checked) {
    overflow: hidden;
  }
  
  .hero-visual { height: 75vh; }
  #mark-top img { height: 100px; }
  .slideshow-subtitle { font-size: 1.8rem; }
  .slideshow-details { font-size: 1.2rem; }
  .slideshow-window { 
  height: 50vh; 
  width: 80vw;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  }
  .nav-arrow { font-size: 2rem; padding: 10px; }
  .bio-grid { grid-template-columns: 1fr; gap: 30px; }
  .content-wrapper { padding: 60px 25px 30px; }
}

/* --- Desktop: Hide Toggle & Label --- */
.menu-toggle, .hamburger {
  display: none;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  /* Position the hamburger in the top right */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100; /* Above the overlay */
    position: relative;
  }

  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--brand-red);
    transition: all 0s ease;
  }

  /* Full Screen Overlay */
  .nav {
    position: fixed; /* Changed from absolute */
    top: 0;
    right: 0;
    margin: 1.5em; /* Adjusted slightly for mobile feel */
    z-index: 100;
  }
  
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
  }

  .navitem {
    display: block;
    padding: 1.5rem;
    font-size: 2rem; /* Larger items as requested */
    text-align: center;
  }

  /* Logic: When checkbox is checked, show overlay */
  .menu-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Logic: Animate Hamburger to an "X" */
  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Keep the toggle input invisible */
  .menu-toggle {
    display: none;
  }
  
  /* Ensure Logo stays visible */
#mark-top {
    position: relative; /* Changed from relative */
    width: 100%;
    top: 40px; /* Adjusted to sit nicely at the top */
    z-index: 95; 
  }
  