/* DreamWalker Gallery - Hero Layout with Dark Theme */
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color-scheme: dark;
}

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

body.gallery-container {
  background: #0a0a0a;
  min-height: 100vh;
  color: #fff;
}

/* Navigation Bar — live HTML over the clean hero artwork */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  background: linear-gradient(180deg, rgba(2, 10, 21, 0.76), transparent);
}

.nav-brand a {
  color: #fff;
  text-decoration: none;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.75rem);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover {
  color: #dcecff;
  opacity: 0.72;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 42rem;
  background-image: url('/assets/img/dreamwalker-gallery-main.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: opacity 0.1s ease-out;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(2, 9, 19, 0.06) 30%, rgba(2, 9, 19, 0.18) 55%, rgba(2, 9, 19, 0.54) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: min(47vw, 46rem);
  min-width: 0;
  margin: 7rem clamp(2rem, 8vw, 11rem) 0 0;
  padding: 2rem;
}

.hero-content h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(2.5rem, 5.2vw, 5.9rem);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 1.8rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.86);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content p {
  max-width: 25rem;
  margin: 0 auto;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(0.9rem, 1.25vw, 1.2rem);
  line-height: 1.75;
  letter-spacing: 0.13em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
  text-transform: uppercase;
  opacity: 0.96;
}

.home-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid currentColor;
  color: #fff;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.home-cta:hover,
.home-cta:focus-visible {
  background: #fff;
  color: #0a0a0a;
}

/* Gallery Main */
.gallery-main {
  padding: 0;
  background: #0a0a0a;
}

/* Gallery Section */
.gallery-section {
  background: #0a0a0a;
  padding: 4rem 0;
}

.gallery-section--featured {
  padding-top: 8rem;
}

.gallery-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.gallery-intro h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.gallery-intro p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.gallery-item {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.gallery-item a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-x, 50%) var(--focal-y, 50%);
  flex: 1;
  min-height: 0;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.9;
}

.caption {
  background: #1a1a1a;
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #333;
}

.gallery-item:hover .caption {
  background: #007acc;
  color: #fff;
}

/* Gallery detail page styles */
.gallery-detail-container {
  padding-top: 6rem;
  min-height: 100vh;
  background: #0a0a0a;
}

.gallery-detail {
  background: #111;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 1000px;
  margin: 2rem auto;
  color: #fff;
}

.gallery-detail h2 {
  margin: 0;
  padding: 2rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 2rem;
  text-align: center;
}

.gallery-detail-image {
  text-align: center;
  background: #000;
}

.gallery-detail-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gallery-detail-description {
  padding: 2rem;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.8;
}

.gallery-nav {
  padding: 2rem;
  text-align: center;
  background: #1a1a1a;
}

.back-link {
  display: inline-block;
  color: #007acc;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #007acc;
  transition: all 0.3s;
}

.back-link:hover {
  background: #007acc;
  color: #fff;
}

/* Footer */
.gallery-footer {
  background: #000;
  color: #666;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 38rem;
    background-position: 42% center;
    align-items: flex-end;
    justify-content: center;
    background-attachment: scroll;
  }

  .hero-section::before {
    background: linear-gradient(180deg, rgba(2, 9, 19, 0.12), rgba(2, 9, 19, 0.65));
  }

  .hero-content {
    width: min(100%, 34rem);
    margin: 0 0 2rem;
    padding: 1.5rem;
  }

  .hero-content h1 {
    /* Keep the unbreakable “DreamWalker” word inside the padded hero. */
    font-size: clamp(1.75rem, 7.25vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: 0.035em;
    overflow-wrap: normal;
    word-break: normal;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    padding: 0;
    letter-spacing: 0.08em;
  }
  
  .navbar {
    padding: 1rem 1.25rem;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-brand,
  .nav-links {
    min-width: 0;
  }

  .nav-brand a {
    display: block;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }
  
  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    max-width: min(54%, 15rem);
  }

  .nav-brand a,
  .nav-link {
    font-size: 0.65rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
    margin: 2rem auto;
  }
  
  .page-content {
    margin-top: 5rem;
    padding: 1rem;
  }
}

/* Page Content Styles */
.page-content {
  max-width: 800px;
  margin: 6rem auto 3rem;
  padding: 2rem;
  color: #fff;
  line-height: 1.6;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #007acc;
  margin-bottom: 2rem;
}

.content-section {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.content-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.content-section h2 {
  margin: 2rem 0 0.75rem;
  color: #fff;
  font-size: 1.5rem;
}

.content-section h2:first-of-type {
  margin-top: 2.25rem;
}

.content-section strong {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form[hidden],
.contact-success[hidden] {
  display: none;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: #fff;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  padding: 0.75rem;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #007acc;
  outline: 2px solid rgba(0, 122, 204, 0.35);
  outline-offset: 1px;
}

.form-field--trap {
  display: none;
}

.contact-form .cta-button {
  justify-self: start;
}

.contact-form .cta-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.form-status[data-state="success"] {
  color: #a8dda8;
}

.form-status[data-state="error"] {
  color: #ffaaa5;
}

.back-to-gallery {
  text-align: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background: #007acc;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #007acc;
}

.cta-button:hover {
  background: transparent;
  color: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 122, 204, 0.3);
}
