/* Montserrat Font - Self-hosted */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/montserrat-v31-latin-300.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/montserrat-v31-latin-500.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/montserrat-v31-latin-600.woff2') format('woff2');
  font-display: swap;
}

/* Playfair Display Font - Self-hosted */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/playfair-display-light-new.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/playfair-display-regular-new.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/playfair-display-bold-new.woff2') format('woff2');
  font-display: swap;
}

/* Minimal, clean theme */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #0a0a0a;
  --card: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

html, body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  position: relative;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
a:hover { text-decoration: underline; opacity: 0.8; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Top navigation */
.nav { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 50; 
  background: var(--bg); 
  border-bottom: 1px solid transparent; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }

/* Submenu container - second horizontal bar */
.submenu-container {
  position: fixed;
  top: 71px; /* Right below main nav - increased gap for better spacing */
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(250, 250, 250, 0.95); /* Semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.submenu-container.show {
  max-height: 48px;
  opacity: 1;
}

.submenu {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.submenu.active {
  display: block;
}

.submenu-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  /* Start position will be set by JS to align with parent */
  padding-left: 0;
  transition: padding-left 0.2s ease;
}

/* Desktop: Add fade gradients for submenu overflow */
@media (min-width: 769px) {
  .submenu {
    position: relative;
  }
  
  .submenu::before,
  .submenu::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .submenu::before {
    left: 0;
    background: linear-gradient(to right, rgba(250, 250, 250, 0.95), transparent);
  }
  
  .submenu::after {
    right: 0;
    background: linear-gradient(to left, rgba(250, 250, 250, 0.95), transparent);
  }
  
  .submenu.scrollable-left::before,
  .submenu.scrollable-right::after {
    opacity: 1;
  }
}

.submenu-inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.submenu-inner a {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 12px 8px 12px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.submenu-inner a:hover {
  color: #8b1e1e;
  text-decoration: none;
}

.submenu-inner a.active {
  color: #8b1e1e;
  border-bottom-color: #8b1e1e;
  font-weight: 500;
}

/* Parent menu item indicator */
.has-submenu {
  position: relative;
}

.has-submenu::after {
  content: '▼';
  font-size: 8px;
  margin-left: 4px;
  opacity: 0.6;
}
.brand { display: flex; align-items: center; }
.brand a { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; display: block; transition: opacity 0.2s ease; }
/* Brand text styling - Playfair Display two-line layout */
.brand span { 
  font-family: 'Playfair Display', Georgia, serif;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: opacity 0.2s ease;
}

.brand-main {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.brand-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}
.brand a:hover img,
.brand a:hover span { opacity: 0.7; }
.links { display: flex; align-items: center; gap: 14px; }
.links a { 
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fg); 
  text-decoration: none; 
  transition: color 0.2s ease;
}
.links a:hover { opacity: 1; }
.links a.active { color: #8b1e1e; }
.more { display: none; color: var(--fg); }
.menu-items { 
  display: inline-flex; 
  align-items: center; 
  gap: 14px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}
.dropdown { position: relative; }
.dropdown-toggle { padding: 8px 10px; border-radius: 8px; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.dropdown-menu { position: absolute; right: 0; top: 110%; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); display: none; padding: 6px; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--fg); }
.dropdown-menu a:hover { background: #f1f5f9; }
.dropdown.open .dropdown-menu { display: block; }
.ig { opacity: 0.7; display: inline-flex; align-items: center; justify-content: center; }
.ig:hover { opacity: 1; }
.ig svg { width: 18px; height: 18px; display: block; }

/* Overlay defaults (hidden by default on all screens) */
.overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.98); display: none; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.overlay.open { display: block; opacity: 1; }
.overlay-inner { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.overlay-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.overlay-header .brand img { height: 28px; }
.overlay-header .brand-main { font-size: 16px; }
.overlay-header .brand-sub { font-size: 10px; }
.overlay-close { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: background 0.2s ease; }
.overlay-close:hover { background: #f1f5f9; }
.overlay-menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.overlay-menu a { 
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px; 
  color: var(--fg); 
  text-decoration: none; 
  transition: color 0.2s ease, transform 0.2s ease;
}
.overlay-menu a:hover { transform: translateX(4px); }
.overlay-menu a.active { color: #8b1e1e; }
.overlay-social { display: flex; gap: 20px; margin-top: 24px; }
.overlay-social .ig svg { width: 28px; height: 28px; }

.layout { display: block; min-height: 100vh; }
.content { max-width: 1200px; margin: 0 auto; padding: 90px 20px 40px; min-height: calc(100vh - 130px); }
/* Adjust content padding when submenu is visible */
body.submenu-visible .content { padding-top: 128px; }

/* About/Contact layout */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.about .portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about h1 { font-size: 34px; line-height: 1.2; margin: 6px 0 14px; }
.about p { margin: 14px 0; color: var(--muted); }
.about .cta a { color: #d26b6b; text-decoration: none; }
.about .cta a:hover { text-decoration: underline; }

.section-label { margin-top: 22px; margin-bottom: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Hero image adjustments - moved down on both desktop and mobile */
.hero { 
  margin: 40px 0 20px; /* Added top margin to move image down */
  padding: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 300px; 
  width: 100%; 
  overflow: visible; 
  position: relative; 
}
.hero img { 
  max-width: 95%; 
  max-height: calc(100vh - 180px); 
  width: auto; 
  height: auto; 
  display: block; 
  border-radius: 12px; 
  box-shadow: var(--shadow); 
  border: 1px solid var(--border); 
  object-fit: contain; 
}

/* Slideshow styles */
.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.grid {
  column-count: 1;
  column-gap: 16px;
  max-width: 100%;
}
.grid.two-column-mobile {
  column-count: 2;
}
@media (min-width: 640px) { 
  .grid { column-count: 2; } 
  .grid.two-column-mobile { column-count: 2; }
}
@media (min-width: 940px) { 
  .grid { column-count: 3; } 
  .grid.two-column-mobile { column-count: 3; }
}

.tile {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  /* Subtle background while image loads */
  background: #f5f5f5;
  border-radius: 6px;
  /* Fade in the entire tile smoothly */
  opacity: 0;
  animation: fadeInTile 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Staggered animation delays for cascading effect */
.tile:nth-child(1) { animation-delay: 0s; }
.tile:nth-child(2) { animation-delay: 0.05s; }
.tile:nth-child(3) { animation-delay: 0.1s; }
.tile:nth-child(4) { animation-delay: 0.15s; }
.tile:nth-child(5) { animation-delay: 0.2s; }
.tile:nth-child(6) { animation-delay: 0.25s; }
.tile:nth-child(7) { animation-delay: 0.3s; }
.tile:nth-child(8) { animation-delay: 0.35s; }
.tile:nth-child(9) { animation-delay: 0.4s; }
.tile:nth-child(10) { animation-delay: 0.45s; }
.tile:nth-child(11) { animation-delay: 0.5s; }
.tile:nth-child(12) { animation-delay: 0.55s; }
.tile:nth-child(n+13) { animation-delay: 0.6s; }

.tile img { 
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  pointer-events: auto;
}

/* Fade-in animation for tiles - more dramatic */
@keyframes fadeInTile {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.tile:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Remove box-shadow on mobile two-column galleries to fix rendering artifacts */
@media (max-width: 940px) {
  .grid.two-column-mobile .tile img {
    box-shadow: none;
  }
  .grid.two-column-mobile .tile:hover img {
    box-shadow: none;
  }
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.gallery-card h3 { margin: 0 0 6px 0; font-size: 16px; }
.gallery-card .meta { color: var(--muted); font-size: 13px; }

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-backdrop.open { display: flex; opacity: 1; }
.lightbox-content img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: lightboxZoom 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
@keyframes lightboxZoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-controls { position: fixed; inset: 0; display: none; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 1001; pointer-events: none; }
.lightbox-backdrop.open + .lightbox-controls { display: flex; }
.lightbox-btn { background: rgba(255,255,255,0.4); border: none; border-radius: 999px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; opacity: 0.6; transition: opacity 0.2s, background 0.2s; }
.lightbox-btn:hover { background: rgba(255,255,255,0.7); opacity: 1; }

.lightbox-close { position: fixed; top: 20px; right: 20px; z-index: 1002; background: rgba(255,255,255,0.4); border: none; border-radius: 999px; width: 36px; height: 36px; display: none; align-items: center; justify-content: center; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, background 0.2s; }
.lightbox-backdrop.open ~ .lightbox-close { display: flex; }
.lightbox-close:hover { background: rgba(255,255,255,0.7); opacity: 1; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1100; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; color: var(--fg); border: 1px solid var(--border); border-radius: 12px; width: min(560px, 92vw); box-shadow: var(--shadow); }
.modal .body { padding: 22px; color: var(--muted); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }

/* Adult Modal - styled like contact page */
.modal-adult { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; width: min(700px, 92vw); overflow: hidden; }
.modal-adult .modal-image { overflow: hidden; position: relative; }
.modal-adult .modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(8px); transform: scale(1.05); }
.modal-adult .modal-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.modal-adult .modal-body h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.2; }
.modal-adult .modal-body p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-adult .modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-adult .btn { width: 100%; text-align: center; }

/* Text-only adult modal (no image) */
.modal-adult-text-only { display: block; width: min(480px, 92vw); }
.modal-adult-text-only .modal-body { padding: 40px 48px; }

.btn { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--fg); cursor: pointer; font-size: 13px; transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; }
.btn.primary { background: #8b1e1e; color: #fff; border-color: #8b1e1e; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 640px) {
  .modal-adult { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-adult .modal-image { max-height: 200px; }
  .modal-adult-text-only .modal-body { padding: 32px 24px; }
}

.notice {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.form {
  max-width: 520px;
}
.form label { display: block; margin: 12px 0 6px; color: var(--muted); }
.form input, .form textarea, .form button {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.form button { cursor: pointer; }

.footer { 
  color: var(--muted); 
  padding: 14px 20px; 
  font-size: 13px; 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  background: var(--bg); 
  z-index: 50;
  transition: transform 0.3s ease;
}
.footer .admin-link { opacity: 0; transition: opacity 0.3s ease; font-size: 11px; margin-left: 4px; text-decoration: none; }
.footer:hover .admin-link { opacity: 0.4; }
.footer .admin-link:hover { opacity: 1 !important; text-decoration: none; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; padding: 16px 16px; }
  .content { padding: 140px 16px 20px; }
  .grid { column-gap: 12px; }
}

/* Hero image adjustments for mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 200px;
    margin: 30px 0 60px; /* Added top margin to move image down on mobile too */
  }
  .hero img {
    max-height: calc(100vh - 300px);
    max-width: 100%;
  }
}

/* Mobile menu - Horizontal Scroll */
@media (max-width: 768px) {
  .nav { border-bottom: 1px solid var(--border); }
  .nav-inner { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px;
    padding: 12px 0 8px;
  }
  .brand { 
    padding: 0 20px;
  }
  .links { 
    width: 100%; 
    overflow: visible;
    position: relative;
  }
  /* Fade gradients for menu overflow - dynamically shown */
  .links::before,
  .links::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .links::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
  }
  .links::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
  }
  .links.scrollable-left::before,
  .links.scrollable-right::after {
    opacity: 1;
  }
  .menu-items { 
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 20px 8px;
    margin: 0;
    width: 100%;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  .menu-items::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .menu-items a {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .menu-items a:hover {
    text-decoration: none;
    background: #f5f5f5;
  }
  .menu-items a.active {
    background: rgba(139, 30, 30, 0.08);
  }
  .menu-items .ig {
    padding: 6px 8px;
  }
  .more { 
    display: none !important; 
  }
  .overlay {
    display: none !important;
  }
  
  /* Mobile submenu adjustments */
  .submenu-container {
    top: 106px; /* Right below taller mobile nav - increased gap */
  }
  
  .submenu-container.show {
    max-height: 44px; /* Even thinner on mobile */
  }
  
  .submenu-inner {
    padding: 8px 0;
  }
  
  /* Fade gradients for submenu overflow - dynamically shown */
  .submenu::before,
  .submenu::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .submenu::before {
    left: 0;
    background: linear-gradient(to right, rgba(250, 250, 250, 0.95), transparent);
  }
  .submenu::after {
    right: 0;
    background: linear-gradient(to left, rgba(250, 250, 250, 0.95), transparent);
  }
  .submenu.scrollable-left::before,
  .submenu.scrollable-right::after {
    opacity: 1;
  }
  
  .submenu {
    position: relative;
  }
  
  body.submenu-visible .content { 
    padding-top: 178px; /* More space on mobile - adjusted for increased gap */
  }
}

/* Header and footer auto-hide on gallery pages (all screen sizes) */
.nav.header-hidden {
  transform: translateY(-100%);
}

.submenu-container.header-hidden {
  transform: translateY(-100%);
}

.footer.footer-hidden {
  transform: translateY(100%);
}


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

/* Gallery Intro Page - Split Screen with Parallax */

/* Main container: 50/50 split, full height */
.gallery-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: auto;
  min-height: auto;
  max-height: 100vh;
  align-items: stretch;
  padding: 20px 0;
}

/* Left side - Image container */
.intro-image {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: 20px;
  max-height: 100vh;
  display: flex;
  align-items: center;
}

/* The actual image */
.intro-image img {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.8s ease-out, filter 0.8s ease-out;
  filter: grayscale(0.2) contrast(1.1);
}

/* Hover effect on the whole intro section */
.gallery-intro:hover .intro-image img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1);
}

/* Right side - Content container */
.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: 20px;
  animation: slideInRight 0.8s ease-out;
  max-height: 100vh;
  overflow-y: auto;
}

/* Slide-in animation definition */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Text wrapper */
.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
}

/* Main title */
.intro-text h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: #0a0a0a;
  position: relative;
  padding-bottom: 16px;
}

/* Animated red underline under title */
.intro-text h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #8b1e1e;
  animation: expandWidth 0.6s ease-out 0.4s both;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 60px; }
}

/* Subheadings */
.intro-text h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 32px 0 16px;
  font-weight: 600;
}

/* Paragraphs */
.intro-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
  margin: 32px 0 48px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bold text styling */
.intro-text strong, .intro-text b {
  font-weight: 600;
  color: var(--fg);
}

/* Italic text (red accent) */
.intro-text em, .intro-text i {
  font-style: italic;
  color: #8b1e1e;
}

/* Button container */
.intro-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
}

/* Enter Gallery button */
.btn-intro {
  align-self: flex-start;
  background: #0a0a0a;
  color: #fff;
  border: 2px solid #0a0a0a;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Red background that slides in on hover */
.btn-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #8b1e1e;
  transition: left 0.3s ease;
  z-index: -1;
}

/* Hover: slide red background in, nudge button right */
.btn-intro:hover::before {
  left: 0;
}

.btn-intro:hover {
  border-color: #8b1e1e;
  transform: translateX(4px);
  opacity: 1;
}

/* Keep the arrow animation */
.btn-intro::after {
  content: '→';
  font-size: 14px;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.btn-intro:hover::after {
  transform: translateX(4px);
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 900px) {
  /* Stack vertically on mobile */
  .gallery-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    max-height: none; /* Remove height constraint on mobile */
    padding: 0;
  }
  
  /* Image takes reasonable height on mobile */
  .intro-image {
    min-height: 50vh;
    max-height: 60vh; /* Cap image height to leave room for content */
    border-radius: 20px;
  }
  
  .intro-image img {
    border-radius: 20px;
  }
  
  /* Smaller text on mobile */
  .intro-text h1 {
    font-size: 32px;
    margin: 0 0 24px;
  }
  
  .intro-text h2 {
    font-size: 20px;
  }
  
  .intro-text {
    font-size: 15px;
  }
  
  .intro-text p {
    font-size: 15px;
    margin: 24px 0 32px;
  }
  
  /* Less padding on mobile - REMOVE height constraint for proper scrolling */
  .intro-content {
    padding: 40px 24px;
    max-height: none; /* Allow content to take natural height */
    overflow-y: visible; /* Allow natural scrolling */
  }
  
  /* Button with same inset as text on mobile */
  .intro-action {
    align-items: flex-start;
    margin-bottom: 20px; /* Add bottom margin for breathing room */
  }
}

/* Tablet size adjustment */
@media (max-width: 1200px) and (min-width: 901px) {
  .gallery-intro {
    padding: 16px 0;
  }
  
  .intro-content {
    padding: 50px 40px;
  }
  
  .intro-text h1 {
    font-size: 40px;
  }
}

/* Contact Page Styles */
.contact-subtitle {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -6px 0 22px 0;
}

/* Collapsible text with Read more */
.collapsible-text {
  margin-bottom: 32px;
}

.text-preview {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

.text-preview.expanded {
  max-height: none;
}

.text-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.text-preview.expanded::after {
  opacity: 0;
}

.read-more-link {
  display: inline-block;
  color: var(--fg);
  text-decoration: underline;
  font-size: 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: #8b1e1e;
}

/* Contact Form */
.contact-form {
  max-width: 100%;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b1e1e;
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox styling */
.checkbox-group {
  margin: 22px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
}

/* Submit button - styled like intro button */
.btn-contact {
  background: #0a0a0a;
  color: #fff;
  border: 2px solid #0a0a0a;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 0;
}

.btn-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #8b1e1e;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-contact:hover::before {
  left: 0;
}

.btn-contact:hover {
  border-color: #8b1e1e;
  transform: translateX(4px);
}

.btn-contact::after {
  content: '→';
  font-size: 14px;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.btn-contact:hover::after {
  transform: translateX(4px);
}

/* Form messages */
.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #e57373;
}

/* Mobile adjustments for contact form */
@media (max-width: 900px) {
  .contact-subtitle {
    font-size: 11px;
  }
  
  .text-preview {
    max-height: 100px;
  }
  
  .btn-contact {
    width: 100%;
    text-align: center;
  }
}