:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --surface-2: #efe7dc;
  --text: #1e2328;
  --muted: #67707a;
  --dark: #0d1419;
  --line: rgba(20, 28, 34, 0.12);
  --accent: #b59673;
  --max: 1240px;
  --radius: 24px;
  --shadow: 0 18px 50px rgba(15, 20, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-main {
  overflow: clip;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

h1, h2, h3, h4 {
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); max-width: 12ch; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 12ch; }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  background: rgba(246, 241, 234, 0.82);
  backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(15, 20, 24, 0.04);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand a {
  display: inline-flex;
  align-items: center;
}

.brand img,
.custom-logo {
  max-height: 56px;
  width: auto;
}

.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  letter-spacing: .18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav .menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-nav a:hover {
  opacity: .72;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: .25s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}

.button-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: .9rem;
}

.section {
  padding: 110px 0;
}

.section-soft {
  background: var(--surface-2);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--accent);
  font-weight: 700;
}

.section-dark .eyebrow {
  color: #d6b48d;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,16,21,.20), rgba(10,16,21,.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 42rem;
  color: rgba(255,255,255,.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 34px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  z-index: 2;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  animation: scroll 1.6s infinite;
}

@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translate(-50%, 18px); opacity: 0; }
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: .9fr 1.1fr;
}

.media-card,
.gallery-item {
  min-height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  will-change: transform;
}

.media-card {
  background-color: rgba(0,0,0,.05);
}

.media-card:empty::before {
  content: "Add image";
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.feature-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.amenities-grid > div {
  background: var(--surface);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow);
}

.services-panel {
  background: linear-gradient(135deg, rgba(181,150,115,.18), rgba(255,255,255,.55));
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(181,150,115,.22);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 18px;
  grid-template-areas:
    "a b c"
    "a d d";
}

.gallery-item:nth-child(1) { grid-area: a; }
.gallery-item:nth-child(2) { grid-area: b; min-height: 260px; }
.gallery-item:nth-child(3) { grid-area: c; min-height: 260px; }
.gallery-item:nth-child(4) { grid-area: d; min-height: 260px; }

.gallery-item:empty::before {
  content: "Add image";
  display: grid;
  place-items: center;
  min-height: inherit;
  height: 100%;
  color: rgba(255,255,255,.72);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--radius);
}

.distance-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.distance-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.inquiry-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a {
  font-weight: 600;
}

.inquiry-card {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--line);
  min-height: 220px;
}

.inquiry-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 24px;
  padding-bottom: 36px;
}

.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer-links,
.site-footer .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 28px;
  font-size: .92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.est-editor-block {
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
}

.est-editor-media-control {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .stats-grid,
  .amenities-grid,
  .footer-grid,
  .split-grid,
  .split-grid.reverse,
  .inquiry-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c"
      "d d";
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .site-nav {
    position: fixed;
    inset: 86px 20px auto 20px;
    background: rgba(255,253,249,.97);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .25s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav .menu {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .site-nav .button-sm {
    width: 100%;
  }

  .split-grid,
  .split-grid.reverse,
  .stats-grid,
  .amenities-grid,
  .inquiry-grid,
  .footer-grid,
  .feature-columns {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 0;
  }

  .hero-content {
    padding-top: 130px;
  }

  .media-card,
  .gallery-item {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .scroll-indicator::after,
  .hero-media,
  .media-card {
    transition: none;
    animation: none;
  }
}

/* =========================
   Luxury motion polish
========================= */

:root {
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 1s var(--ease-luxury) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.28s; }
.hero-content > *:nth-child(3) { animation-delay: 0.42s; }
.hero-content > *:nth-child(4) { animation-delay: 0.56s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-luxury),
    transform 1s var(--ease-luxury);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slight stagger support */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Refined hover motion */
.media-card,
.gallery-item,
.feature-card,
.stat-card,
.amenities-grid > div,
.inquiry-card,
.services-panel {
  transition:
    transform 0.45s var(--ease-luxury),
    box-shadow 0.45s var(--ease-luxury),
    border-color 0.35s ease,
    opacity 0.35s ease;
}

.media-card:hover,
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(15, 20, 24, 0.14);
}

.feature-card:hover,
.stat-card:hover,
.amenities-grid > div:hover,
.inquiry-card:hover,
.services-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(15, 20, 24, 0.12);
}

/* Soft image zoom feeling */
.hero-media,
.media-card,
.gallery-item {
  overflow: hidden;
}

.hero-media::before,
.media-card::before,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.media-card,
.gallery-item {
  position: relative;
}

/* Elegant section entrance emphasis */
.section-heading,
.split-grid > div,
.stats-grid,
.feature-columns > *,
.amenities-grid > div,
.services-panel,
.gallery-item,
.distance-list,
.contact-links,
.inquiry-card {
  will-change: transform, opacity;
}

/* Subtle dark section polish */
.section-dark .gallery-item {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

/* Better button motion */
.button,
.button-ghost {
  position: relative;
  overflow: hidden;
}

.button::after,
.button-ghost::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 auto;
  width: 140%;
  height: 140%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-luxury);
}

.button:hover::after,
.button-ghost:hover::after {
  transform: translateX(0%);
}

/* Smooth nav underline effect */
.site-nav .menu a {
  position: relative;
}

.site-nav .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  opacity: 0.7;
}

.site-nav .menu a:hover::after,
.site-nav .menu .current-menu-item > a::after,
.site-nav .menu .current_page_item > a::after {
  transform: scaleX(1);
}

/* Hero subtle vignette boost */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.05), transparent 42%),
    linear-gradient(to top, rgba(0,0,0,0.18), transparent 28%);
  pointer-events: none;
  z-index: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .reveal,
  .button,
  .button-ghost,
  .media-card,
  .gallery-item,
  .feature-card,
  .stat-card,
  .amenities-grid > div,
  .inquiry-card,
  .services-panel {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
.site-nav a.is-active {
  opacity: 1;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}
/* =========================
   Contact Form 7 – Estampes
========================= */

.est-form {
  width: 100%;
}

.est-form .wpcf7-form {
  margin: 0;
}

.est-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.est-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.est-form .field-full {
  grid-column: 1 / -1;
}

.est-form label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 600;
}

.est-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.est-form input[type="text"],
.est-form input[type="email"],
.est-form input[type="tel"],
.est-form input[type="date"],
.est-form input[type="number"],
.est-form textarea,
.est-form select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.est-form textarea {
  min-height: 160px;
  resize: vertical;
}

.est-form input::placeholder,
.est-form textarea::placeholder {
  color: #8a9199;
  opacity: 1;
}

.est-form input:focus,
.est-form textarea:focus,
.est-form select:focus {
  border-color: rgba(181, 150, 115, 0.8);
  box-shadow: 0 0 0 4px rgba(181, 150, 115, 0.12);
  background: #fff;
}

.est-form input:hover,
.est-form textarea:hover,
.est-form select:hover {
  border-color: rgba(181, 150, 115, 0.45);
}

/* Date / number fields visual consistency */
.est-form input[type="date"],
.est-form input[type="number"] {
  appearance: none;
  -webkit-appearance: none;
}

/* Acceptance checkbox */
.est-form .est-consent {
  margin-top: 4px;
}

.est-form .est-consent .wpcf7-list-item {
  margin: 0;
}

.est-form .est-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.est-form .est-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--dark);
  transform: scale(1.05);
}

/* Submit area */
.est-form .est-submit-wrap {
  margin-top: 6px;
}

.est-form input[type="submit"],
.est-form .wpcf7-submit {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 12px 24px rgba(13, 20, 25, 0.16);
}

.est-form input[type="submit"]:hover,
.est-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  opacity: .95;
  box-shadow: 0 18px 34px rgba(13, 20, 25, 0.22);
}

.est-form input[type="submit"]:active,
.est-form .wpcf7-submit:active {
  transform: translateY(0);
}

/* Inline validation */
.est-form .wpcf7-not-valid {
  border-color: #b14b4b !important;
  box-shadow: 0 0 0 4px rgba(177, 75, 75, 0.1) !important;
}

.est-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: .86rem;
  color: #9f3a3a;
}

/* CF7 response output */
.est-form .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  font-size: .95rem;
  line-height: 1.5;
}

/* Success */
.est-form .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #cce7d0 !important;
  background: #edf7ef !important;
  color: #1b5e20 !important;
}

/* Validation / failed */
.est-form .wpcf7 form.invalid .wpcf7-response-output,
.est-form .wpcf7 form.unaccepted .wpcf7-response-output,
.est-form .wpcf7 form.failed .wpcf7-response-output,
.est-form .wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid #efd3d3 !important;
  background: #fff4f4 !important;
  color: #8f2f2f !important;
}

/* Spinner */
.est-form .wpcf7-spinner {
  margin: 14px 0 0 12px;
  vertical-align: middle;
}

/* One-column mobile */
@media (max-width: 820px) {
  .est-form .form-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Luxury horizontal gallery
========================= */

/* =========================
   Full-width masonry carousel
========================= */
/* =========================
   Mosaic gallery
========================= */

.gallery-section .container {
  width: min(calc(100% - 32px), 1600px);
}

.lux-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-auto-rows: 26px;
  gap: 14px;
  margin-top: 28px;
}

.lux-mosaic-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  transition:
    transform .35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lux-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lux-mosaic-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.14), transparent 35%),
    linear-gradient(to bottom, rgba(255,255,255,0.03), transparent 18%);
  pointer-events: none;
}

.lux-mosaic-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.24);
}

.lux-mosaic-item:hover img {
  transform: scale(1.03);
}

/* Pattern sizes */
.lux-mosaic-item.is-xl {
  grid-column: span 7;
  grid-row: span 10;
}

.lux-mosaic-item.is-lg {
  grid-column: span 5;
  grid-row: span 10;
}

.lux-mosaic-item.is-md-wide {
  grid-column: span 5;
  grid-row: span 7;
}

.lux-mosaic-item.is-md {
  grid-column: span 4;
  grid-row: span 6;
}

.lux-mosaic-item.is-sm {
  grid-column: span 3;
  grid-row: span 3;
}

/* Empty state */
.lux-gallery-empty {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 24px;
  color: rgba(255,255,255,0.7);
}

/* Tablet */
@media (max-width: 1200px) {
  .lux-mosaic-grid {
    grid-template-columns: repeat(18, 1fr);
    grid-auto-rows: 24px;
  }

  .lux-mosaic-item.is-xl { grid-column: span 8; grid-row: span 9; }
  .lux-mosaic-item.is-lg { grid-column: span 6; grid-row: span 9; }
  .lux-mosaic-item.is-md-wide { grid-column: span 6; grid-row: span 6; }
  .lux-mosaic-item.is-md { grid-column: span 4; grid-row: span 5; }
  .lux-mosaic-item.is-sm { grid-column: span 4; grid-row: span 3; }
}

/* Mobile */
@media (max-width: 820px) {
  .lux-mosaic-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 24px;
    gap: 10px;
  }

  .lux-mosaic-item {
    border-radius: 18px;
  }

  .lux-mosaic-item.is-xl,
  .lux-mosaic-item.is-lg,
  .lux-mosaic-item.is-md-wide,
  .lux-mosaic-item.is-md {
    grid-column: span 6;
    grid-row: span 10;
  }

  .lux-mosaic-item.is-sm {
    grid-column: span 3;
    grid-row: span 4;
  }
}
/* =========================
   Mosaic gallery
========================= */
/* =========================
   Curated desktop grid + mobile carousel
========================= */

.gallery-section .container {
  width: min(calc(100% - 32px), 1800px);
}

.lux-curated-grid-wrap {
  position: relative;
  margin-top: 28px;
}

.lux-curated-grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(90px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.lux-curated-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  transition:
    transform .35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lux-curated-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lux-curated-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.10), transparent 35%),
    linear-gradient(to bottom, rgba(255,255,255,0.03), transparent 18%);
  pointer-events: none;
}

.lux-curated-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.24);
}

.lux-curated-item:hover img {
  transform: scale(1.03);
}

/* ===== Desktop pattern from your table ===== */
/* Total: 20 columns x 4 rows */

.lux-curated-item.item-1  { grid-column: 1 / span 2;  grid-row: 1 / span 1; }
.lux-curated-item.item-2  { grid-column: 3 / span 1;  grid-row: 1 / span 1; }
.lux-curated-item.item-3  { grid-column: 4 / span 2;  grid-row: 1 / span 4; }
.lux-curated-item.item-4  { grid-column: 6 / span 2;  grid-row: 1 / span 1; }
.lux-curated-item.item-5  { grid-column: 8 / span 2;  grid-row: 1 / span 1; }
.lux-curated-item.item-6  { grid-column: 10 / span 6; grid-row: 1 / span 4; }
.lux-curated-item.item-7  { grid-column: 16 / span 3; grid-row: 1 / span 2; }
.lux-curated-item.item-8  { grid-column: 19 / span 2; grid-row: 1 / span 3; }
.lux-curated-item.item-9  { grid-column: 6 / span 4;  grid-row: 2 / span 3; }
.lux-curated-item.item-10 { grid-column: 1 / span 3;  grid-row: 3 / span 2; }
.lux-curated-item.item-11 { grid-column: 16 / span 3; grid-row: 3 / span 2; }
.lux-curated-item.item-12 { grid-column: 19 / span 2; grid-row: 4 / span 1; }

/* Fallback for extra items inside a chunk */
.lux-curated-item:nth-child(n+13) {
  display: none;
}

/* Empty */
.lux-gallery-empty {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 24px;
  color: rgba(255,255,255,0.7);
}

/* arrows hidden on desktop */
.lux-gallery-arrow {
  display: none;
}

/* ===== Mobile: 1 image at a time carousel ===== */
@media (max-width: 820px) {
  .lux-curated-grid-wrap {
    overflow: hidden;
    padding: 0 44px;
  }

  .lux-curated-grid {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0;
    transform: translate3d(0,0,0);
    transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .lux-curated-item,
  .lux-curated-item.item-1,
  .lux-curated-item.item-2,
  .lux-curated-item.item-3,
  .lux-curated-item.item-4,
  .lux-curated-item.item-5,
  .lux-curated-item.item-6,
  .lux-curated-item.item-7,
  .lux-curated-item.item-8,
  .lux-curated-item.item-9,
  .lux-curated-item.item-10,
  .lux-curated-item.item-11,
  .lux-curated-item.item-12 {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 320px;
    grid-column: auto;
    grid-row: auto;
    border-radius: 20px;
  }

  .lux-gallery-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    background: rgba(13,20,25,0.62);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
  }

  .lux-gallery-arrow--prev { left: 0; }
  .lux-gallery-arrow--next { right: 0; }

  .lux-gallery-arrow span {
    font-size: 1rem;
    line-height: 1;
  }
}