/* =============================================================================
   style.css – Matilde Cánepa González Art Studio
   Architecture: global base → shared components → page-specific overrides
   ============================================================================= */


/* =============================================================================
   1. BASE
   ============================================================================= */

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #18181b;
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', serif;
}

/* =============================================================================
   2. HEADER & NAV
   ============================================================================= */

header {
  padding: 16px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 2px solid #ebebe8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 24px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 8px;
  text-decoration: none;
  color: #18181b;
  display: block;
}

nav a {
  text-decoration: none;
  margin: 0 10px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: bold;
  color: #18181b;
  padding: 10px;
}

nav a:hover,
nav a.active {
  color: #a1a1aa;
}

/* =============================================================================
   3. HAMBURGER (global – present on all pages)
   ============================================================================= */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:focus { outline: none; }
.hamburger:focus-visible { outline: 2px solid #18181b; outline-offset: 2px; }

.hamburger .bar {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 4px 0;
  background-color: #18181b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* =============================================================================
   4. MOBILE NAV (global – present on all pages)
   ============================================================================= */

@media (max-width: 768px) {
  header { padding: 12px 20px; }

  .logo {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid #ebebe8;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s ease;
    z-index: 99;
  }

  header nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  header nav a {
    padding: 14px 20px;
    width: 100%;
    text-align: center;
  }
}

/* =============================================================================
   5. FOOTER
   ============================================================================= */

footer {
  border-top: 2px solid #ebebe8;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

footer p {
  font-size: 11px;
  color: #52525b;
  letter-spacing: 0.1em;
}

footer a {
  color: #18181b;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover { color: #a1a1aa; }

/* =============================================================================
   6. LIGHTBOX (global – paintings, sculptures, cyanotype)
   ============================================================================= */

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
}

.lb-overlay.is-open { display: flex; }

.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 1px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
  transition: opacity 0.25s ease;
  pointer-events: none;
  user-select: none;
}

.lb-img.fade { opacity: 0; }

.lb-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 1010;
}

.lb-close:hover { color: #ffffff; }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 36px;
  font-weight: 200;
  cursor: pointer;
  background: none;
  border: none;
  padding: 16px 20px;
  transition: color 0.2s;
  z-index: 1010;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lb-arrow:hover { color: #ffffff; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lb-info {
  position: fixed;
  bottom: 28px;
  left: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.9;
  text-align: left;
  pointer-events: none;
  max-width: 40vw;
}

.lb-info strong {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.lb-cta {
  position: fixed;
  bottom: 58px;
  right: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  text-align: right;
  line-height: 1.9;
}

.lb-cta:hover { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 600px) {
  .lb-info { display: none; }
}

/* =============================================================================
   7. SHARED COMPONENTS
   ============================================================================= */

/* --- Page intro text block (paintings, sculptures, cyanotype) --- */
.page-intro {
  max-width: 1075px;
  margin: 0 auto 48px auto;
  text-align: center;
  font-size: 15px;
  color: #3f3f46;
  line-height: 1.85;
  font-weight: 400;
}

.page-intro p { margin: 0 0 18px 0; }
.page-intro p:last-child { margin-bottom: 0; }

/* --- Page title block --- */
.page-title {
  text-align: center;
  margin-bottom: 60px;
}

/* Forced two-line break in gallery titles — mobile only */
.title-break { display: none; }

/* --- Subtitle label --- */
.subtitle {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #52525b;
  font-weight: 600;
}

/* --- Image wrapper (gallery items) --- */
.image-wrapper {
  cursor: pointer;
  overflow: hidden;
  background: #f7f7f5;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  pointer-events: none;
  user-select: none;
}

.image-wrapper:hover img { transform: scale(1.05); }

/* --- Image info caption --- */
.image-info {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: #71717a;
  font-weight: 300;
  border-top: 2px solid #ebebe8;
  padding-top: 12px;
  width: 100%;
}

.image-info strong {
  color: #3f3f46;
  font-weight: 600;
  display: block;
}

/* --- External links grid (index, about) --- */
.external-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 96px));
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 32px;
  margin-top: 18px;
}

.external-links-grid a {
  display: block;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.external-links-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.external-links-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .external-links-grid {
    grid-template-columns: repeat(2, minmax(0, 96px));
    gap: 16px;
    margin-top: 14px;
  }
}

/* --- CTA block (gallery pages) --- */
.cta-block {
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid #ebebe8;
  margin-top: 20px;
}

.cta-block p {
  font-size: 13px;
  color: #52525b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
}

.cta-sell-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 96px));
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
}

.cta-sell-links a {
  display: block;
  width: 96px;
  height: 72px;
  text-decoration: none;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-sell-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cta-sell-links img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-sell-divider {
  border: 0;
  border-top: 2px solid #ebebe8;
  margin: 32px auto 0;
  width: 60px;
}

.cta-inquire-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 36px;
  border: 1px solid #18181b;
  background: transparent;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: #18181b;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-inquire-btn:hover {
  background: #18181b;
  color: #fff;
  border-color: #18181b;
}

/* --- BBK block (about) --- */
.bbk-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding: 24px 36px;
  border: 1px solid #18181b;
}

.bbk-block a {
  display: flex;
  flex-shrink: 0;
}

.bbk-block img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.4s ease;
}

.bbk-block a:hover img {
  transform: scale(1.08);
}

.bbk-block p {
  font-size: 15px;
  color: #3f3f46;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 480px) {
  .bbk-block { gap: 16px; padding: 20px 24px; }
  .bbk-block img { height: 40px; }
}

/* --- Form message (contact) --- */
.form-message {
  display: none;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-message.is-visible {
  display: block;
  opacity: 1;
}

/* --- Slideshow (index) --- */
.slideshow-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  background: #f7f7f5;
}

.slideshow-wrapper .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slideshow-wrapper .slide.active { opacity: 1; }

.slideshow-wrapper .slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}

.slide-caption { display: none; }

.slideshow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
}

.slideshow-caption-label {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #18181b;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.slideshow-caption-label:hover {
  color: #71717a;
}

.slide-dots {
  display: flex;
  gap: 0;
  align-items: center;
}

.slide-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d8;
  cursor: pointer;
  transition: background 0.3s;
  /* Sichtbarer Punkt 8px; Tap-Zone 20×36px – vor allem in der Höhe großzügig.
     gap:0 + margin:-14px 0 => die Tap-Zonen kacheln lückenlos und ohne
     Überlappung (jeder Tap trifft genau einen Punkt); die Höhe "blutet" nach
     oben/unten aus, sodass die Footer-Zeile so kompakt bleibt wie zuvor. */
  padding: 14px 6px;
  margin: -14px 0;
  background-clip: content-box;
  box-sizing: content-box;
}

.slide-dots span.active {
  background: #18181b;
  background-clip: content-box;
}

/* Desktop: Punkte + Abstand etwas größer. Mobil (<=768px) bleibt unverändert,
   da dies nur ab 769px greift. white-space:nowrap (Label) und flex-shrink:0
   (Punkte) verhindern einen Zeilenumbruch der Footer-Zeile. */
@media (min-width: 769px) {
  .slideshow-caption-label { white-space: nowrap; }
  .slide-dots { flex-shrink: 0; }
  .slide-dots span {
    width: 10px;
    height: 10px;
    padding: 14px 7px;   /* Tap-Zone 24×38px, Mittenabstand 24px, sichtbare Lücke 14px */
  }
}

/* --- News row (new-updates) --- */
.news-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 60px;
}

.news-row:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .news-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .news-image {
    display: flex;
    justify-content: center;
  }
}

/* --- Gallery grid (cyanotype) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* --- Sculptures grid --- */
.first-row-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  align-items: start;
  margin-bottom: 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  align-items: start;
}

@media (max-width: 1000px) {
  .first-row-container { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}


/* =============================================================================
   8. PAGE-SPECIFIC OVERRIDES
   ============================================================================= */

/* ── 404 ── */
body.page-404 .container { max-width: 1100px; margin: 0 auto; padding: 80px 20px; }

body.page-404 .error-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

body.page-404 .error-text { line-height: 1.8; font-size: 15px; color: #3f3f46; }

body.page-404 .error-number {
  font-family: 'Playfair Display', serif;
  font-size: 96px;
  font-weight: 400;
  color: #e4e4e7;
  line-height: 1;
  margin: 10px 0 0 0;
  letter-spacing: 0.05em;
}

body.page-404 .error-text h1 { font-size: 42px; margin: 8px 0 24px 0; font-weight: 400; }
body.page-404 .error-text p { margin-bottom: 16px; }
body.page-404 .btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

body.page-404 .btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

body.page-404 .btn-primary { background: #18181b; color: #ffffff; border: 1px solid #18181b; }
body.page-404 .btn-primary:hover { background: #3f3f46; border-color: #3f3f46; }
body.page-404 .btn-secondary { background: transparent; color: #18181b; border: 1px solid #18181b; }
body.page-404 .btn-secondary:hover { background: #18181b; color: #ffffff; }

@media (max-width: 768px) {
  body.page-404 .error-section { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  body.page-404 .container { padding: 40px 20px; }
  body.page-404 .error-number { font-size: 72px; }
  body.page-404 .error-text h1 { font-size: 32px; }
  body.page-404 .btn-group { justify-content: center; }
}

/* ── Image download protection (index, about, new-updates) ── */
body.page-index .slideshow-wrapper img,
body.page-about .about-image img,
body.page-new-updates .news-image img {
  pointer-events: none;
  user-select: none;
}

/* ── About ── */
body.page-about .container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }

body.page-about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

body.page-about .about-image { width: 100%; display: flex; justify-content: center; }

body.page-about .about-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  aspect-ratio: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.page-about .about-text { line-height: 1.8; font-size: 15px; color: #3f3f46; }
body.page-about .about-text h1 { font-size: 42px; margin: 10px 0 30px 0; font-weight: 400; }

body.page-about footer,
body.page-index footer { margin-top: 4px; }

@media (max-width: 768px) {
  body.page-about .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  body.page-about .about-image img { max-width: 280px; }
  body.page-about .container { padding: 40px 20px; }
}

/* ── Contact ── */
body.page-contact .container { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }
body.page-contact .contact-section { max-width: 600px; margin: 0 auto; text-align: center; }
body.page-contact .contact-section h1 { font-size: 42px; font-style: italic; font-weight: 400; margin-bottom: 10px; }
body.page-contact .contact-section p.subtitle { color: #52525b; text-transform: uppercase; font-size: 11px; letter-spacing: 0.2em; margin-bottom: 50px; }
body.page-contact .contact-form { text-align: left; }
body.page-contact .form-group { margin-bottom: 25px; }

body.page-contact label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  color: #71717a;
}

body.page-contact input,
body.page-contact textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #e4e4e7;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

body.page-contact input:focus,
body.page-contact textarea:focus { border-bottom-color: #18181b; }

body.page-contact .submit-btn {
  background: #18181b;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  margin-top: 30px;
  transition: background 0.3s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

body.page-contact .submit-btn:hover { background: #3f3f46; }
body.page-contact .submit-btn:focus { outline: none; }
body.page-contact .submit-btn:focus-visible { outline: 2px solid #18181b; outline-offset: 3px; }
body.page-contact .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
body.page-contact .form-note { font-size: 11px; color: #52525b; margin-top: 10px; }
body.page-contact .form-message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
body.page-contact .form-message.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
body.page-contact .email-link { margin-top: 50px; font-size: 12px; letter-spacing: 0.1em; }
body.page-contact .email-link a { color: #18181b; text-decoration: none; border-bottom: 1px solid #e4e4e7; padding-bottom: 2px; }
body.page-contact .email-link a:hover { border-bottom-color: #18181b; }

body.page-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

body.page-contact .contact-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
}

body.page-contact .contact-photo img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.page-contact .contact-photo-caption {
  margin-top: 16px;
  font-size: 13px;
  color: #52525b;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 768px) {
  body.page-contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.page-contact .contact-photo {
    padding-top: 0;
  }
  body.page-contact .contact-photo img {
    max-width: 180px;
  }
}

/* ── Impressum & Privacy Policy ── */
body.page-impressum .container,
body.page-privacy-policy .container { max-width: 800px; margin: 0 auto; padding: 60px 20px; }

body.page-impressum .content-text,
body.page-privacy-policy .content-text { min-height: calc(100vh - 200px); }

body.page-impressum h1,
body.page-impressum h2,
body.page-impressum .serif,
body.page-privacy-policy h1,
body.page-privacy-policy h2,
body.page-privacy-policy .serif { font-style: italic; }

body.page-impressum .content-text h1,
body.page-privacy-policy .content-text h1 { font-size: 38px; font-weight: 400; margin-bottom: 10px; }

body.page-impressum .content-text h2,
body.page-privacy-policy .content-text h2 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 400;
  border-bottom: 2px solid #ebebe8;
  padding-bottom: 10px;
}

body.page-impressum .content-text p,
body.page-privacy-policy .content-text p { color: #3f3f46; font-size: 14px; }

body.page-impressum .content-text a { color: #18181b; }

/* ── Index ── */
body.page-index .container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

body.page-index .hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

body.page-index .hero-text { line-height: 1.8; font-size: 15px; color: #3f3f46; }
body.page-index .hero-text h1 { font-size: 48px; margin: 10px 0 30px 0; font-weight: 400; }

.hero-btns {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px auto 0;
  width: fit-content;
}

.hero-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #18181b;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #18181b;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background: #18181b;
  color: #ffffff;
}

.external-links-header {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 14px;
}

.external-links-header p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: #52525b;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 768px) {
  body.page-index .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  body.page-index .container { padding: 40px 20px; }
  body.page-index .hero-text h1 { font-size: 32px; }
  .hero-btns { gap: 8px; }
  .hero-btn { font-size: 10px; padding: 8px 10px; letter-spacing: 0.05em; }
}

@media (max-width: 480px) {
  body.page-index .external-links-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  body.page-index .external-links-grid a {
    width: 100%;
    height: 52px;
  }
}

/* ── HR dividers ── */
.section-divider {
  border: 0;
  border-top: 2px solid #ebebe8;
  margin-top: 60px;
  margin-bottom: 0;
}

.news-divider {
  border: 0;
  border-top: 2px solid #ebebe8;
  margin: 0 0 40px 0;
}

/* external-links-grid: no top margin on index (header already provides spacing) */
body.page-index .external-links-grid {
  margin-top: 0;
}

/* ── News & Updates ── */
body.page-new-updates .container { max-width: 1100px; margin: 0 auto; padding: 20px 30px; }
body.page-new-updates .news-text { line-height: 1.8; font-size: 15px; color: #3f3f46; }
body.page-new-updates .page-title h1 { font-size: 38px; font-style: italic; font-weight: 400; margin-bottom: 20px; }
body.page-new-updates .news-text h2 { font-size: 28px; margin: 10px 0 20px 0; font-weight: 400; }
body.page-new-updates .news-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 364px;
}

body.page-new-updates .news-image-narrow img { max-width: 308px; }

@media (max-width: 768px) {
  body.page-new-updates .page-title h1 { font-size: 36px; }
  body.page-new-updates .container { padding: 20px; }
}

/* ── Paintings ── */
body.page-paintings .container { max-width: 1200px; margin: 0 auto; padding: 20px 30px 10px; }
body.page-paintings .gallery-row:last-child { margin-bottom: 0; }
body.page-paintings .page-title { text-align: center; margin-bottom: 60px; }
body.page-paintings .page-title h1 { font-size: 38px; font-style: italic; font-weight: 400; margin-bottom: 20px; }

body.page-paintings .gallery-row { display: grid; gap: 20px; margin-bottom: 40px; align-items: start; }
body.page-paintings .row-2 { grid-template-columns: repeat(2, 1fr); }
body.page-paintings .row-3 { grid-template-columns: repeat(3, 1fr); }
body.page-paintings .row-1 { grid-template-columns: 1fr; max-width: 373px; margin-left: auto; margin-right: auto; }
body.page-paintings .grid-item { margin-bottom: 20px; }

@media (max-width: 768px) {
  body.page-paintings .gallery-row { grid-template-columns: 1fr !important; }
  body.page-paintings .image-wrapper { min-height: 250px; }
  body.page-paintings .image-wrapper img { height: 100%; object-fit: contain; }
  body.page-paintings .page-title h1 { font-size: 22px; }
  body.page-paintings .title-break { display: block; }
}

/* ── Cyanotype ── */
body.page-cyanotype .container { max-width: 1200px; margin: 0 auto; padding: 20px 30px; }
body.page-cyanotype .page-title h1 { font-size: 38px; font-style: italic; font-weight: 400; margin-bottom: 20px; }
body.page-cyanotype .grid-item { margin-bottom: 20px; }

body.page-cyanotype .gallery-grid .grid-item:nth-child(7) .image-wrapper,
body.page-cyanotype .gallery-grid .grid-item:nth-child(8) .image-wrapper,
body.page-cyanotype .gallery-grid .grid-item:nth-child(9) .image-wrapper {
  height: 420px;
}

body.page-cyanotype .gallery-grid .grid-item:nth-child(7) .image-wrapper img,
body.page-cyanotype .gallery-grid .grid-item:nth-child(8) .image-wrapper img,
body.page-cyanotype .gallery-grid .grid-item:nth-child(9) .image-wrapper img {
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  body.page-cyanotype .page-title h1 { font-size: 22px; }
  body.page-cyanotype .title-break { display: block; }
}

/* ── Sculptures ── */
body.page-sculptures .container { max-width: 1200px; margin: 0 auto; padding: 20px 30px; }
body.page-sculptures .page-title { text-align: center; margin-bottom: 60px; }
body.page-sculptures .page-title h1 { font-size: 38px; font-style: italic; font-weight: 400; margin-bottom: 20px; }

body.page-sculptures .first-row-container .grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.page-sculptures .first-row-container .image-wrapper {
  height: 450px;
  width: 100%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-sculptures .first-row-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-sculptures .first-row-container .image-info { width: 100%; }
body.page-sculptures .first-row-container img.img-expand { width: 100%; max-height: none; height: auto; }

body.page-sculptures .grid-item { display: flex; flex-direction: column; }

body.page-sculptures .image-wrapper {
  position: relative;
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  width: 100%;
  overflow: hidden;
}

body.page-sculptures .grid img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-sculptures .image-wrapper:hover img,
body.page-sculptures .first-row-container .image-wrapper:hover img { transform: scale(1.03); }

@media (max-width: 1000px) {
  body.page-sculptures .first-row-container .image-wrapper { height: 350px; }
}

@media (max-width: 600px) {
  body.page-sculptures .first-row-container .image-wrapper,
  body.page-sculptures .image-wrapper { height: 300px; }
  body.page-sculptures .page-title h1 { font-size: 22px; }
  body.page-sculptures .title-break { display: block; }
}

/* ===== Ausgelagerte Inline-Styles (Aufräumung Block C) ===== */
body.page-404 .artwork-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.page-about .cta-block {
  border-top: 0;
}

body.page-index .slideshow-wrapper .slide img.slide-img-top {
  object-position: top;
}

body.page-paintings .row-3-asym {
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
}
