/* Fonts — Cormorant Garamond for headings, Jost for body */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400&display=swap');

/* ─── Reset & Base ─────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #F5F3EF;
  color: #2c2c2c;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

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

/* ─── Accessibility / SEO ───────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── Layout ────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Navigation ────────────────────────────────────────── */

nav {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  border-top: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  margin-bottom: 1.2rem;
  transition: color 0.2s;
}

.nav-name:hover {
  color: #a08060;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a7a7a;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2c2c2c;
}

.nav-links a.active {
  color: #2c2c2c;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.nav-divider {
  border: none;
  border-top: 1px solid #e0d9ce;
  margin: 0;
}

/* ─── Footer ────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 6rem;
  border-top: 1px solid #e0d9ce;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #a8a8a8;
  text-transform: uppercase;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  text-transform: none;
  letter-spacing: 0.08em;
}

.footer-contact a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: #3a3a3a;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #a08060;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #c0c0c0;
  text-transform: uppercase;
}

.footer-icon {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 0.3rem;
  position: relative;
  top: -1px;
}

/* ─── About / Home Page ─────────────────────────────────── */

.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a8a8a8;
  margin-bottom: 2rem;
  text-align: left;
}

.about-section {
  max-width: 660px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.about-image img {
  width: 100%;
  display: block;
  margin-bottom: 2.5rem;
}

.about-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #3a3a3a;
  margin-bottom: 1.5rem;
}

/* ─── Gallery Slideshow ─────────────────────────────────── */

.slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem 0;
  height: calc(100vh - 160px);
}

.slideshow-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.slide {
  display: none;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.slide.active {
  display: flex;
}

.slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Portrait paintings fill by width so they feel equally large */
.slide.portrait img {
  max-height: 100%;
  width: 42vw;
  max-width: 42vw;
  height: auto;
}

/* Landscape paintings are capped so they don't fill the full screen height */
.slide.landscape img {
  max-height: 55vh;
  width: auto;
  max-width: 80%;
  display: block;
}

.slideshow-controls {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  width: 100%;
  max-width: 800px;
  padding: 1.5rem 0 2rem;
  flex-shrink: 0;
}

.slide-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #7a7a7a;
  padding: 0.5rem;
  transition: color 0.2s;
  font-family: 'Jost', sans-serif;
  justify-self: center;
}

.slide-btn:hover {
  color: #2c2c2c;
}

.slideshow-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.slideshow-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: #3a3a3a;
}

.slideshow-dimensions {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #a8a8a8;
}

.slideshow-counter {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #a8a8a8;
  text-transform: uppercase;
}

/* ─── Contact Page ──────────────────────────────────────── */

.contact-section {
  max-width: 660px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.contact-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #3a3a3a;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8a8a8;
  width: 80px;
  flex-shrink: 0;
}

.contact-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: #3a3a3a;
  border-bottom: 1px solid #c8bfb0;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: #a08060;
  border-color: #a08060;
}

/* ─── Responsive ────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 1024px) {
  .slide.portrait img {
    width: 75vw;
    max-width: 75vw;
  }

  .slide.landscape img {
    max-height: 50vh;
    width: auto;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 2rem;
  }

  .slideshow {
    height: calc(100vh - 180px);
  }

  .slide.portrait img {
    width: 80vw;
    max-width: 80vw;
  }

  .slide.landscape img {
    width: 88vw;
    max-width: 88vw;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  /* Nav wraps to two lines on small screens — give the slideshow more room */
  .slideshow {
    height: calc(100vh - 320px);
  }

  /* Portrait images: loosen the width cap so they fill the screen properly */
  .slide.portrait img {
    width: 88vw;
    max-width: 88vw;
  }

  /* Landscape images: also fill more of the screen width on mobile */
  .slide.landscape img {
    width: 92vw;
    max-width: 92vw;
  }
}
