:root {
    --sand: #f5f0e8;
    --warm-white: #faf8f4;
    --terracotta: #c4714a;
    --deep: #1e1a16;
    --muted: #7a6e62;
    --gold: #b8965a;
    --light-line: rgba(30,26,22,0.1);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Jost', sans-serif;
    background: var(--warm-white);
    color: var(--deep);
    overflow-x: hidden;
  }

  /* ========== NAV ========== */
  nav {
    position: fixed; top:0; left:0; right:0; z-index:100;
    display: flex; align-items:center; justify-content:space-between;
    padding: 1.2rem 3rem;
    background: rgba(250,248,244,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-line);
    transition: all 0.3s;
  }

  .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--deep);
    text-decoration: none;
  }
  .logo span { color: var(--terracotta); }

  .nav-links { display:flex; gap:2.0rem; list-style:none; }
  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--deep);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--terracotta); }

  /* Hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
  }
  .hamburger span {
    display:block; width:24px; height:1.5px;
    background: var(--deep);
    transition: all 0.35s;
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity:0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    position: fixed; inset:0; z-index:150;
    background: var(--warm-white);
    flex-direction: column;
    align-items:center; justify-content:center;
    gap: 2.5rem;
  }
  .mobile-menu.open { display:flex; animation: fadeIn 0.3s ease; }
  .mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--deep);
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-menu a:hover { color: var(--terracotta); }

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

  /* ========== HERO ========== */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction:column;
    align-items:center; justify-content:center;
    text-align:center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background:
      linear-gradient(rgba(250,248,244,0.58), rgba(250,248,244,0.72)),
      radial-gradient(ellipse at 20% 50%, rgba(196,113,74,0.08) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(184,150,90,0.1) 0%, transparent 50%),
      url("/images/propA/cm (1).webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero::before {
    content:'';
    position:absolute; top:0; left:0; right:0; bottom:0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='0.5' fill='%231e1a16' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events:none;
  }

  .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 900px;
    margin-bottom: 1.5rem;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--terracotta);
  }

  .hero-sub {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 3rem;
  }

  .hero-btns { display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }

  .btn-primary {
    background: var(--terracotta);
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
  }
  .btn-primary:hover { background: #b05f3a; transform: translateY(-2px); }

  .btn-outline {
    background: transparent;
    color: var(--deep);
    border: 1px solid var(--deep);
    padding: 0.9rem 2.2rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
  }
  .btn-outline:hover { background: var(--deep); color:#fff; }

  .scroll-indicator {
    position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:0.5rem;
    font-size:0.65rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted);
  }
  .scroll-indicator::after {
    content:'';
    width:1px; height:40px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
  }
  @keyframes scrollPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

  /* ========== SECTIONS ========== */
  section { padding: 6rem 2rem; }

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

  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  /* ========== PROPERTIES GRID ========== */
  #katikies { background: var(--sand); }

  .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .property-card {
    background: var(--warm-white);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display:block;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }
  .property-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(30,26,22,0.12); }

  .property-card.under-construction { pointer-events:none; }

  .card-img {
    width:100%; height:240px; object-fit:cover;
    display:block;
    background: linear-gradient(135deg, #d4c5b0, #b8a898);
    position:relative;
    overflow:hidden;
  }

  .card-img-inner {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    font-family:'Cormorant Garamond',serif;
    font-size:1.2rem; color:rgba(30,26,22,0.4); font-style:italic;
  }

  /* Fake photo backgrounds for cards */
  .card-a .card-img {
    background:
      linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
      url("/images/propA/cm (14).webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .card-b .card-img {
    background:
      linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
      url("/images/propB/cs (9).webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .card-c .card-img { 
    background: linear-gradient(160deg, #c0c0c0 0%, #a0a0a0 50%, #888888 100%);
  }

  .badge-uc {
    position:absolute; top:1rem; left:1rem;
    background: var(--deep); color:#fff;
    font-size:0.65rem; letter-spacing:0.15em; text-transform:uppercase;
    padding:0.35rem 0.8rem;
  }

  .badge-platform {
    position:absolute; bottom:1rem; right:1rem;
    display:flex; gap:0.4rem;
  }
  .badge-platform span {
    background:rgba(250,248,244,0.92);
    font-size:0.6rem; letter-spacing:0.1em; text-transform:uppercase;
    padding:0.25rem 0.6rem; color:var(--deep);
  }

  .card-body { padding: 1.5rem; }
  .card-location {
    font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase;
    color:var(--terracotta); margin-bottom:0.5rem;
  }
  .card-title {
    font-family:'Cormorant Garamond',serif;
    font-size:1.5rem; font-weight:400; margin-bottom:0.5rem;
  }
  .card-desc {
    font-size:0.85rem; color:var(--muted); line-height:1.7; margin-bottom:1rem;
  }
  .card-arrow {
    font-size:0.75rem; letter-spacing:0.12em; text-transform:uppercase;
    color:var(--terracotta); display:flex; align-items:center; gap:0.4rem;
  }
  .card-arrow::after { content:'→'; font-size:1rem; }

  /* ========== ABOUT ========== */
  #about {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:4rem; align-items:center;
    max-width:1100px; margin:0 auto;
  }
  @media(max-width:768px){
    #about { grid-template-columns:1fr; }
  }
  .about-text p {
    color:var(--muted); line-height:1.9; margin-bottom:1rem; font-size:0.95rem; font-weight:300;
  }
  .about-visual {
    aspect-ratio:4/5;
    background: linear-gradient(160deg, #d4c5b0 0%, #b8a898 60%, #8a7060 100%);
    position:relative; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
    font-family:'Cormorant Garamond',serif; font-size:2rem;
    color:rgba(255,255,255,0.3); font-style:italic; text-align:center;
  }
  .about-visual::after {
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(circle at 30% 70%, rgba(196,113,74,0.3) 0%, transparent 60%);
  }

  /* ========== CONTACT ========== */
  #contact { background:var(--deep); color:#fff; }
  #contact .section-label { color:var(--gold); }
  #contact .section-title { color:#fff; }

  .contact-grid {
    display:grid; grid-template-columns:1fr 1fr; gap:4rem; margin-top:3rem;
    align-items:start;
  }
  @media(max-width:768px){
    .contact-grid { grid-template-columns:1fr; gap:2.5rem; }
  }

  .contact-info p { color:rgba(255,255,255,0.6); font-size:0.9rem; line-height:1.8; margin-bottom:1.5rem; font-weight:300; }
  .contact-item { display:flex; flex-direction:column; gap:0.2rem; margin-bottom:1.2rem; }
  .contact-item label { font-size:0.65rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); }
  .contact-item a, .contact-item span { color:rgba(255,255,255,0.85); font-size:0.9rem; text-decoration:none; }
  .contact-item a:hover { color:var(--gold); }

  .contact-social { display:flex; gap:1rem; margin-top:1.5rem; }
  .contact-social a {
    border:1px solid rgba(255,255,255,0.2);
    padding:0.5rem 1rem;
    font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase;
    color:rgba(255,255,255,0.7); text-decoration:none;
    transition:all 0.2s;
  }
  .contact-social a:hover { border-color:var(--gold); color:var(--gold); }

  .contact-form { display:flex; flex-direction:column; gap:1rem; }
  .contact-form input, .contact-form textarea, .contact-form select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color:#fff; padding:0.85rem 1rem;
    font-family:'Jost',sans-serif; font-size:0.85rem;
    outline:none; transition:border 0.2s;
    width:100%;
    appearance:none;
  }
  .contact-form input::placeholder, .contact-form textarea::placeholder { color:rgba(255,255,255,0.3); }
  .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color:var(--gold);
  }
  .contact-form textarea { resize:vertical; min-height:85px; }
  .contact-form select { color:rgba(255,255,255,0.7); }
  .contact-form select option { background:var(--deep); }
  .contact-form .btn-primary { align-self:flex-start; }

  /* ========== FOOTER ========== */
  footer {
    background: #100e0a;
    color:rgba(255,255,255,0.3);
    text-align:center; padding:1.5rem 2rem;
    font-size:0.75rem; letter-spacing:0.05em;
  }
  footer a { color:rgba(255,255,255,0.4); text-decoration:none; }
  footer a:hover { color:var(--gold); }

  /* ========== PAGE: PROPERTY ========== */
  .page { display:none; }
  .page.active { display:block; }

  .prop-hero {
    height: 75vh; min-height:400px;
    position:relative; overflow:hidden;
    display:flex; align-items:flex-end;
  }

  .prop-hero-img {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    font-family:'Cormorant Garamond',serif;
    font-size:3rem; font-style:italic; color:rgba(255,255,255,0.2);
  }

  .prop-a-bg {
    background:
      linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
      url("/images/propA/cm (14).webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .prop-b-bg {
    background:
      linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
      url("/images/propB/cs (9).webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .prop-c-bg { background: linear-gradient(160deg, #999 0%, #555 100%); }

  .prop-hero::after {
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(10,8,5,0.85) 0%, transparent 60%);
  }

  .prop-hero-content {
    position:relative; z-index:1;
    padding:3rem; color:#fff;
  }
  .prop-hero-tag {
    font-size:0.65rem; letter-spacing:0.22em; text-transform:uppercase;
    color:var(--gold); margin-bottom:0.7rem;
  }
  .prop-hero-title {
    font-family:'Cormorant Garamond',serif;
    font-size: clamp(2.5rem,5vw,4.5rem);
    font-weight:300; line-height:1.1; margin-bottom:0.5rem;
  }
  .prop-hero-location {
    font-size:0.85rem; color:rgba(255,255,255,0.7);
    display:flex; align-items:center; gap:0.4rem;
  }

  .prop-back {
    position:absolute; top:5.5rem; left:2rem; z-index:2;
    color:#fff; font-size:0.72rem; letter-spacing:0.15em;
    text-transform:uppercase; cursor:pointer;
    display:flex; align-items:center; gap:0.5rem;
    text-decoration:none; opacity:0.8; transition:opacity 0.2s;
  }
  .prop-back:hover { opacity:1; }

  .prop-content { max-width:900px; margin:0 auto; padding:4rem 2rem; }

  .prop-meta {
    display:flex; flex-wrap:wrap; gap:1.5rem;
    padding-bottom:2.5rem; margin-bottom:2.5rem;
    border-bottom:1px solid var(--light-line);
  }
  .prop-meta-item { display:flex; flex-direction:column; gap:0.2rem; }
  .prop-meta-item label { font-size:0.65rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--terracotta); }
  .prop-meta-item span { font-size:0.9rem; font-weight:400; }

  .prop-section { margin-bottom:3rem; }
  .prop-section h3 {
    font-family:'Cormorant Garamond',serif; font-size:1.6rem; font-weight:400;
    margin-bottom:1rem; padding-bottom:0.5rem;
    border-bottom:1px solid var(--light-line);
  }
  .prop-section p { color:var(--muted); line-height:1.9; font-size:0.9rem; font-weight:300; }

  .amenities-grid {
    display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:0.75rem; margin-top:1rem;
  }
  .amenity-item {
    display:flex; align-items:center; gap:0.7rem;
    padding:0.75rem; border:1px solid var(--light-line);
    font-size:0.82rem; color:var(--deep);
  }
  .amenity-icon { font-size:1.1rem; }

  .services-list { list-style:none; margin-top:1rem; }
  .services-list li {
    padding:0.6rem 0; border-bottom:1px solid var(--light-line);
    font-size:0.88rem; color:var(--muted);
    display:flex; align-items:center; gap:0.8rem;
  }
  .services-list li::before { content:'✓'; color:var(--terracotta); font-size:0.75rem; }

  .map-placeholder {
    width:100%; height:280px;
    background: linear-gradient(135deg, #e8ede8 0%, #d0d8d0 100%);
    display:flex; align-items:center; justify-content:center;
    font-family:'Cormorant Garamond',serif; font-size:1.1rem;
    color:var(--muted); font-style:italic; margin-top:1rem;
    border:1px solid var(--light-line);
    position:relative; overflow:hidden;
  }
  .map-placeholder::before {
    content:'';
    position:absolute; inset:0;
    background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px),
      repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px);
  }
  .map-embed {
    width:100%; height:280px;
    margin-top:1rem;
    border:1px solid var(--light-line);
    overflow:hidden;
  }

  .map-embed iframe {
    width:100%;
    height:100%;
    border:0;
    display:block;
  }


  /* Interest Form on property page */
  .interest-form {
    background:var(--sand);
    padding:2.5rem;
    margin-top:1rem;
  }
  .interest-form h4 {
    font-family:'Cormorant Garamond',serif;
    font-size:1.4rem; margin-bottom:1.2rem; font-weight:400;
  }
  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
  @media(max-width:600px){ .form-row { grid-template-columns:1fr; } }
  .form-field { display:flex; flex-direction:column; gap:0.3rem; }
  .form-field label { font-size:0.68rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--muted); }
  .form-field input, .form-field textarea, .form-field select {
    border:1px solid rgba(30,26,22,0.15);
    background:var(--warm-white); color:var(--deep);
    padding:0.75rem; font-family:'Jost',sans-serif; font-size:0.85rem;
    outline:none; transition:border 0.2s; appearance:none;
  }
  .form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color:var(--terracotta); }
  .form-field textarea { min-height:100px; resize:vertical; }
  .interest-form .btn-primary { margin-top:0.5rem; }

  .book-links {
    display:flex; gap:1rem; flex-wrap:wrap; margin-top:1rem;
  }
  .book-link {
    display:flex; align-items:center; gap:0.6rem;
    padding:0.85rem 1.5rem;
    border:1px solid var(--light-line);
    text-decoration:none; color:var(--deep);
    font-size:0.8rem; letter-spacing:0.08em;
    transition:all 0.2s;
  }
  .book-link:hover { background:var(--terracotta); color:#fff; border-color:var(--terracotta); }
  .book-link.airbnb { border-color:#FF5A5F; color:#FF5A5F; }
  .book-link.airbnb:hover { background:#FF5A5F; color:#fff; }
  .book-link.booking { border-color:#003580; color:#003580; }
  .book-link.booking:hover { background:#003580; color:#fff; }

  /* ======= RESPONSIVE ======= */
  @media(max-width:768px){
    nav { padding:1rem 1.5rem; }
    .nav-links { display:none; }
    .hamburger { display:flex; }
    section { padding:4rem 1.5rem; }
    .prop-content { padding:2.5rem 1.5rem; }
    .prop-hero-content { padding:2rem; }
    .prop-back { left:1.5rem; }
    .interest-form { padding:1.5rem; }
  }
  @media(max-width:480px){
    .properties-grid { grid-template-columns:1fr; }
    .btn-primary, .btn-outline { width:100%; text-align:center; }
    .hero-btns { flex-direction:column; align-items:stretch; }
  }

  /* Animations */
  .fade-up {
    opacity:0; transform:translateY(30px);
    animation: fadeUp 0.8s ease forwards;
  }
  @keyframes fadeUp { to { opacity:1; transform:none; } }
  .fade-up:nth-child(2) { animation-delay:0.15s; }
  .fade-up:nth-child(3) { animation-delay:0.3s; }
  .fade-up:nth-child(4) { animation-delay:0.45s; }


/* ===== Font Awesome Adjustments ===== */
.amenity-icon i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--terracotta);
}

.book-link i {
  font-size: 0.9rem;
}


/* ===== i18n / Language Switcher ===== */
.nav-right{
  display:flex;
  align-items:center;
  gap:1.6rem;
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:0.4rem;
}

.lang-btn{
  border:1px solid var(--light-line);
  background: transparent;
  color: var(--deep);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover{
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.lang-btn.active{
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.mobile-close{
  position:absolute;
  top:1.2rem;
  right:1.2rem;
  width:42px;
  height:42px;
  border:1px solid var(--light-line);
  background: transparent;
  color: var(--deep);
  font-size: 1.8rem;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.mobile-lang{
  display:flex;
  flex-direction:column;
  gap:0.8rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--light-line);
  width:min(260px, 80vw);
  align-items:center;
}

.mobile-lang .lang-btn{
  width:100%;
  text-transform:none;
  letter-spacing:0.04em;
  font-size:0.9rem;
  padding: 0.75rem 0.9rem;
  border-color: rgba(30,26,22,0.18);
}

@media(max-width:768px){
  .desktop-lang{ display:none; }
}

@media(min-width:769px){
  .mobile-lang{ display:none; }
  .mobile-close{ display:none; }
}


/* ===== Property Gallery ===== */
.prop-gallery{
  margin: 2.2rem 0 2.5rem;
}

.gallery-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom: 0.8rem;
}

.gallery-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.6rem;
  font-weight:400;
  margin:0;
  padding-bottom:0.5rem;
  border-bottom:1px solid var(--light-line);
  width:100%;
}

.gallery-wrap{
  position:relative;
}

.gallery-track{
  display:flex;
  gap: 0.9rem;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.15rem 0.2rem;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar{ display:none; }

.gallery-item{
  flex: 0 0 auto;
  width: min(260px, 70vw);
  scroll-snap-align: start;
  margin:0;
  position:relative;
  border:1px solid var(--light-line);
  background: var(--warm-white);
  overflow:hidden;
}

.gallery-item img{
  display:block;
  width:100%;
  height: 170px;
  object-fit: cover;
  cursor: pointer;
}

.gallery-caption{
  position:absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(30,26,22,0.55);
  color:#fff;
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align:center;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.gallery-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--light-line);
  background: rgba(250,248,244,0.92);
  color: var(--deep);
  cursor:pointer;
  display:none; /* enabled on desktop */
  align-items:center;
  justify-content:center;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 5;
  transition: all 0.2s;
}
.gallery-arrow:hover{
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.gallery-arrow.left{ left: -10px; }
.gallery-arrow.right{ right: -10px; }

@media(min-width: 769px){
  .gallery-arrow{ display:flex; }
  .gallery-item{ width: 280px; }
  .gallery-item img{ height: 180px; }
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(10,8,5,0.78);
  z-index: 9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 2rem 1rem;
}

.lightbox.open{ display:flex; }

.lightbox-inner{
  width: min(1100px, 96vw);
  max-height: 88vh;
  position:relative;
  display:flex;
  flex-direction:column;
  gap: 0.8rem;
}

.lightbox-close{
  position:absolute;
  top:-52px;
  right:0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color:#fff;
  font-size: 1.8rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-stage{
  position:relative;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
}

.lightbox-track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.lightbox-track::-webkit-scrollbar{ display:none; }

.lightbox-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
  display:flex;
  align-items:center;
  justify-content:center;
}

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

.lightbox-caption{
  color: rgba(255,255,255,0.9);
  text-align:center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lightbox-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color:#fff;
  cursor:pointer;
  display:none; /* desktop only */
  align-items:center;
  justify-content:center;
  font-size: 1.8rem;
  line-height:1;
}
.lightbox-arrow.left{ left: 10px; }
.lightbox-arrow.right{ right: 10px; }

@media(min-width: 769px){
  .lightbox-arrow{ display:flex; }
}

@media(max-width: 768px){
  .lightbox-close{ top:-48px; }
  .lightbox-slide img{ height: 62vh; max-height:62vh; }
}
