/* =============================================
   DYAN Gallery — Stylesheet
   ============================================= */

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

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --ink:        #1A1A1A;
  --ink-mid:    #555555;
  --ink-light:  #888888;
  --rule:       #E0E0E0;
  --paper:      #FFFFFF;
  --paper-warm: #F8F7F5;
  --placeholder: #E8E8E8;

  --max-w:    1160px;
  --gutter:   2rem;
  --header-h: 70px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ── Utility ────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.section-intro {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3.5rem;
}

/* Image placeholder blocks */
.img-block,
.work-img {
  background-color: var(--placeholder);
  width: 100%;
  display: block;
}
.portrait  { aspect-ratio: 3 / 4; }
.landscape { aspect-ratio: 4 / 3; }
.square    { aspect-ratio: 1 / 1; }


/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  transition: transform 0.32s ease;
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.5; }

.logo-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1;
}

.primary-nav {
  display: flex;
  gap: 2.25rem;
}

.primary-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.2s;
}
.primary-nav a:hover { opacity: 0.4; }

/* Menu button (mobile) */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.menu-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-icon i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn.is-open .menu-icon i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.menu-btn.is-open .menu-icon i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}


/* =============================================
   MOBILE OVERLAY
   ============================================= */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: opacity 0.2s;
}
.mobile-nav a:hover { opacity: 0.45; }

.mobile-footer-text {
  position: absolute;
  bottom: 2.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}


/* =============================================
   HERO
   ============================================= */

.section-hero {
  padding-top: var(--header-h);
  padding-bottom: 1.75rem;
  background: var(--paper);
}

/* ── Slideshow ── */
.hero-slideshow {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 1.5rem;
}

.hero-track {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h) - 4.5rem);
  min-height: 530px;
  max-height: 1140px;
  background: var(--paper);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

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

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

/* Subtle navigation dots */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: var(--rule);
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease;
}

.slide-dot.is-active {
  background: var(--ink);
}

.slide-dot:hover {
  background: var(--ink-mid);
}


/* =============================================
   ABOUT
   ============================================= */

.section-about {
  padding-block: 8rem;
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-graf {
  font-family: var(--serif) !important;
  font-size: 1.45rem !important;
  font-weight: 300;
  line-height: 1.55 !important;
  margin-bottom: 2rem !important;
}


/* =============================================
   ARTISTS
   ============================================= */

.section-artists {
  padding-block: 8rem;
  background: var(--paper-warm);
}

.artist-roll {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.artist-roll li {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.artist-roll li:nth-child(odd)  { padding-right: 3rem; }
.artist-roll li:nth-child(even) { padding-left:  3rem; }


/* =============================================
   WORKS
   ============================================= */

.section-works {
  padding-block: 8rem;
  background: var(--paper);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2rem;
}

/* Image well — fixed height, artwork contained without cropping */
.work-img-wrap {
  height: 360px;
  background-color: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  overflow: hidden;
  transition: opacity 0.25s ease;
  cursor: zoom-in;
}

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

.work:hover .work-img-wrap { opacity: 0.88; }

/* Panoramic work spans all columns */
.work--wide {
  grid-column: 1 / -1;
}

.work--wide .work-img-wrap {
  height: 320px;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-artist {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.work-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink);
}

.work-medium {
  font-size: 0.7rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

.work-collection {
  font-size: 0.7rem;
  color: var(--ink-light);
  letter-spacing: 0.03em;
  margin-top: 0.35rem;
}

.works-footnote {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-light);
  text-align: center;
  letter-spacing: 0.02em;
}


/* =============================================
   CONTACT
   ============================================= */

.section-contact {
  padding-block: 8rem;
  background: var(--paper-warm);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-group p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.info-label {
  font-size: 0.65rem !important;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light) !important;
  margin-bottom: 0.4rem;
}

.info-group a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.info-group a:hover { opacity: 0.5; }

.info-note {
  font-size: 0.8rem !important;
  color: var(--ink-light) !important;
  line-height: 1.75 !important;
}

/* Form */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding-block: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  outline: none;
  resize: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #C8C8C8;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
}

.enquiry-form button[type="submit"] {
  align-self: flex-start;
  padding: 0.9rem 2.75rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.enquiry-form button[type="submit"]:hover {
  background: transparent;
  color: var(--ink);
}


/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
  flex-shrink: 0;
}

.footer-address {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  line-height: 1.6;
  flex: 1;
  text-align: center;
}

.footer-address a {
  color: var(--ink-light);
  transition: opacity 0.2s;
}
.footer-address a:hover { opacity: 0.5; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}


/* =============================================
   ARTISTS — subtitle
   ============================================= */

.section-artists .section-intro { margin-bottom: 2rem; }

.artists-subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
}


/* =============================================
   SOCIAL LINKS
   ============================================= */

/* Contact section — icon + handle */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-link svg {
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

/* Footer — icon only */
.footer-insta {
  display: inline-flex;
  align-items: center;
  color: var(--ink-light);
  transition: opacity 0.2s;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.footer-insta:hover { opacity: 0.5; }


/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.97);
}

/* ── Close button ── */
.lightbox-close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  padding: 0;
  transition: color 0.2s ease;
}
.lightbox-close:hover { color: rgba(255, 255, 255, 0.85); }

/* ── Navigation arrows ── */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.28);
  padding: 0;
  transition: color 0.2s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover { color: rgba(255, 255, 255, 0.8); }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ── Image + caption ── */
.lightbox-body {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 10rem);
  max-height: 100vh;
}

#lightbox-img {
  display: block;
  max-width: calc(100vw - 10rem);
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  transition: opacity 0.2s ease;
}

#lightbox-img.is-fading { opacity: 0; }

.lightbox-caption {
  margin-top: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lb-artist {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.lb-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.lb-details {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}


/* =============================================
   RESPONSIVE — Tablet
   ============================================= */

@media (max-width: 960px) {
  .primary-nav  { display: none; }
  .menu-btn     { display: flex; }
  .mobile-overlay { display: flex; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual { order: 1; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .work-img-wrap      { height: 280px; }
  .work--wide .work-img-wrap { height: 240px; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

}


/* =============================================
   RESPONSIVE — Mobile
   ============================================= */

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }

  .logo-sub { display: none; }

  .hero-track {
    height: calc(100vw * 0.72);
    min-height: 260px;
    max-height: 560px;
  }

  .section-about,
  .section-artists,
  .section-works,
  .section-contact {
    padding-block: 5rem;
  }

  .section-intro { margin-bottom: 2.5rem; }

  .artist-roll {
    grid-template-columns: 1fr;
  }
  .artist-roll li:nth-child(odd),
  .artist-roll li:nth-child(even) {
    padding-right: 0;
    padding-left:  0;
  }

  .works-grid { grid-template-columns: 1fr; }

  .work-img-wrap      { height: 240px; }
  .work--wide .work-img-wrap { height: 180px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-address {
    text-align: center;
  }

  /* Lightbox on mobile */
  .lightbox-body {
    max-width: calc(100vw - 3rem);
  }
  #lightbox-img {
    max-width: calc(100vw - 3rem);
    max-height: calc(100vh - 9rem);
  }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-caption { margin-top: 1.25rem; }
}
