/*
Theme Name: Bow Theme
Author: Chase
Version: 5.2
*/

/* ===== Fonts (premium + modern) ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Manrope:wght@300..800&display=swap');

/* =========================
   VARIABLES / COLOR SYSTEM
   (warm brown / dark-cream background + green accent)
========================= */
:root{
  /* Background palette */
  --bg:  #2a2018;     /* deep coffee */
  --bg2: #17110c;     /* near-espresso */

  /* Text */
  --text:#f3efe8;
  --muted: rgba(243,239,232,0.78);

  /* Lines */
  --border: rgba(243,239,232,0.10);

  /* Accent (sage) */
  --accent:#6f8f74;
  --accent2:#3f5f47;
  --accentText:#0e120f;

  --sold:#d38b8b;

  /* Shape / softness */
  --r1: 34px;
  --r2: 26px;

  --shadow1: 0 28px 90px rgba(0,0,0,0.45);
  --shadow2: 0 16px 48px rgba(0,0,0,0.32);
}

/* =========================
   BASE
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color: var(--text);

  background:
    radial-gradient(900px 560px at 18% 12%, rgba(111,143,116,0.18), transparent 60%),
    radial-gradient(900px 560px at 86% 22%, rgba(255,240,220,0.08), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));

  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: inherit; text-decoration:none; }

.container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px;
}

main{ display:block; }

.h-serif{
  font-family: "Fraunces", ui-serif, Georgia, serif;
}

/* =========================
   HEADER
========================= */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(23,17,12,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 0;
}

.brand-mark{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(0,0,0,0.28);
}

.brand-name{
  font-weight:800;
  letter-spacing:0.02em;
}

/* Nav + underline */
.nav{
  display:flex;
  gap:18px;
  align-items:center;
  font-size:13px;
}

.nav a{
  position: relative;
  opacity:.72;
  padding:10px 10px;
  border-radius: 999px;
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}

.nav a:hover{
  opacity:1;
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.nav a.active{
  opacity:1;
  background: rgba(111,143,116,0.18);
}

.nav a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:4px;
  width:0%;
  height:2px;
  background: var(--accent);
  transition: width .25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav a:hover::after{ width:60%; }
.nav a.active::after{ width:60%; }

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius: 999px;
  font-weight:800;
  border:1px solid rgba(243,239,232,0.16);
  background: rgba(255,255,255,0.04);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(243,239,232,0.22);
}

/* Primary = soft green transparent */
.btn.primary{
  background: rgba(111,143,116,0.16);
  border: 1px solid rgba(111,143,116,0.35);
  color: rgba(243,239,232,0.95);
}
.btn.primary:hover{
  background: rgba(111,143,116,0.24);
  border-color: rgba(111,143,116,0.55);
}

.btn.ghost{ background: rgba(255,255,255,0.03); }

/* =========================
   HOME HERO
========================= */
.home-hero{
  position: relative;
  margin-top: 10px;
  padding: 18px 0 0 0;
}

.home-hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}
@media (max-width:980px){
  .home-hero-inner{ grid-template-columns:1fr; }
}

/* Left copy card */
.home-hero-copy{
  max-width: 720px;
  padding: 34px;
  border-radius: var(--r1);
  background: rgba(10,9,8,0.42);
  border: 1px solid rgba(243,239,232,0.10);
  box-shadow: var(--shadow2);
}

.home-kicker{
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:12px;
  opacity:.70;
  margin-bottom:12px;
}

.home-title{
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 520;
  font-size: clamp(46px, 5.2vw, 74px);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.home-sub{
  margin: 0 0 18px 0;
  line-height: 1.75;
  opacity: .90;
  max-width: 62ch;
}

.home-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 10px;
}

.home-note{
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(243,239,232,0.10);
  background: rgba(255,255,255,0.03);
  line-height: 1.6;
  opacity: .88;
}

/* Featured mini info block */
.home-feature-mini{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(243,239,232,0.10);
  background: rgba(255,255,255,0.03);
}

.home-feature-mini-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.home-feature-label{
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .74;
}

.home-feature-dots{
  display:flex;
  gap: 8px;
  align-items:center;
}

/* dots */
.home-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(243,239,232,0.32);
  opacity: .50;
  background: transparent;
  padding: 0;
  cursor:pointer;
}
.home-dot.active{
  background: rgba(111,143,116,0.95);
  border-color: rgba(111,143,116,0.95);
  opacity: 1;
}

/* pills */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 900;
  background: rgba(111,143,116,0.18);
  border: 1px solid rgba(111,143,116,0.28);
}
.pill.sold{
  background: rgba(211,139,139,0.16);
  border-color: rgba(211,139,139,0.30);
  color: var(--sold);
}

.home-feature-mini-row{
  display:flex;
  align-items:baseline;
  gap: 12px;
}

.home-feature-mini-name{
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 22px;
  font-weight: 520;
  opacity: .98;
}

.home-feature-mini-meta{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap: 10px;
  opacity: .86;
}

.home-feature-mini-price{ font-weight: 900; }
.home-feature-mini-sep{ opacity: .5; }

/* =========================
   CIRCULAR SHOWCASE (RIGHT)
========================= */
.home-showcase{
  justify-self: end;
  align-self: start;
  margin-top: 8px;

  width: 420px;
  height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 9999px;
}

@media (max-width: 980px){
  .home-showcase{
    width: min(420px, 92vw);
    height: min(420px, 92vw);
    margin: 18px auto 0 auto;
    justify-self: center;
  }
}

.home-showcase-ring{
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid rgba(243,239,232,0.18);
  box-shadow:
    0 0 0 10px rgba(255,255,255,0.02) inset,
    0 24px 80px rgba(0,0,0,0.30);
  pointer-events: none;
}

.home-showcase-media{
  width: 82%;
  height: 82%;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(243,239,232,0.12);
  background: rgba(255,255,255,0.03);
}

.home-showcase-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 9999px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .35s ease;
}

.home-showcase-media img.is-on{
  opacity: 1;
  transform: scale(1);
}

.home-showcase-glow{
  position: absolute;
  inset: -18px;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(111,143,116,0.18), transparent 62%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

/* =========================
   TRUST STRIP
========================= */
.home-trust{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-bottom: 30px;
}

.home-trust-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px){
  .home-trust-grid{ grid-template-columns: 1fr; }
}

.home-trust-card{
  border-radius: var(--r2);
  padding: 18px 18px 20px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,239,232,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.home-trust-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.home-trust-sub{
  line-height: 1.7;
  opacity: .82;
}

/* =========================
   PAGE HEAD (Bows/Gallery/Contact)
========================= */
.page-head{
  padding: 18px 0 8px 0;
}

.page-head .kicker{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  opacity: .70;
  margin-bottom: 10px;
}

.page-head h1{
  margin: 0 0 10px 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 520;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.02em;
  color: rgba(243,239,232,0.95);
}

.page-head .desc{
  max-width: 70ch;
  line-height: 1.7;
  color: rgba(243,239,232,0.85);
}

.page-head .desc a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   BOWS GRID (RESPONSIVE)
========================= */
.bow-grid{
  display:grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 1100px){
  .bow-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) and (max-width: 1099px){
  .bow-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 759px){
  .bow-grid{ grid-template-columns: 1fr; }
}

.bow-card{
  border-radius: var(--r1);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,239,232,0.10);
  box-shadow: var(--shadow2);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bow-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.045);
  border-color: rgba(243,239,232,0.14);
}

.bow-img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.02);
}

@media (max-width: 759px){
  .bow-img{ height: 320px; }
}

.bow-body{ padding: 16px 16px 18px 16px; }

.bow-title{
  margin: 10px 0 6px 0;
  font-size: 22px;
  font-weight: 650;
}

.bow-sub{
  margin: 0 0 14px 0;
  line-height: 1.65;
  color: rgba(243,239,232,0.78);
}

/* Specs */
.spec-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 14px 0;
}

.spec{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,239,232,0.10);
  border-radius: 18px;
  padding: 10px 12px;
  min-width: 140px;
}

.spec label{
  display:block;
  font-size: 11px;
  color: rgba(243,239,232,0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.spec div{ font-weight: 900; }

.card-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* =========================
   BOW PHOTO MODAL (photos-only)
========================= */
#bow-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background: rgba(0,0,0,0.85);
  padding: 18px;
}
#bow-modal.open{
  display:flex;
  align-items:center;
  justify-content:center;
}

#bow-modal .modal-inner.modal-photos{
  width: min(1100px, 96vw);
  height: min(820px, 92vh);
  border-radius: var(--r1);
  border: 1px solid rgba(243,239,232,0.10);
  background: rgba(18,16,15,0.98);
  box-shadow: var(--shadow1);
  position: relative;

  display:flex;
  flex-direction: column;
  overflow:hidden;
}

/* Close */
#bow-modal .modal-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(243,239,232,0.14);
  background: rgba(255,255,255,0.07);
  color: rgba(243,239,232,0.95);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display:grid;
  place-items:center;
  z-index:10;
}
#bow-modal .modal-close:hover{
  background: rgba(255,255,255,0.11);
  border-color: rgba(243,239,232,0.22);
}

#bow-modal .modal-photos-body{
  flex: 1 1 auto;
  min-height: 0;
  display:flex;
  align-items: stretch;
  gap: 12px;
  padding: 54px 14px 10px 14px;
}

#bow-modal .modal-nav{
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(243,239,232,0.14);
  background: rgba(255,255,255,0.07);
  color: rgba(243,239,232,0.95);
  cursor: pointer;
  font-size: 24px;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#bow-modal .modal-nav:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.11);
  border-color: rgba(243,239,232,0.22);
}
#bow-modal .modal-nav:disabled{
  opacity:.35;
  cursor:default;
  transform:none;
}

#bow-modal .modal-stage{
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 22px;
  border: 1px solid rgba(243,239,232,0.10);
  background: rgba(255,255,255,0.03);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
}

#bow-modal .modal-main-img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display:block;
}

#bow-modal .thumbs-scroll{
  flex: 0 0 110px;
  height: 110px;
  padding: 12px 14px 14px 14px;
  display:flex;
  gap: 10px;
  overflow-x:auto;
  overflow-y:hidden;
  border-top: 1px solid rgba(243,239,232,0.08);
  background: rgba(255,255,255,0.02);
}

#bow-modal .thumbs-scroll img{
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor:pointer;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.03);
}
#bow-modal .thumbs-scroll img.active{
  border-color: rgba(111,143,116,0.90);
}

@media (max-width: 760px){
  #bow-modal .modal-photos-body{ padding: 54px 10px 10px 10px; gap: 8px; }
  #bow-modal .modal-nav{ width: 44px; height: 44px; font-size: 20px; }
  #bow-modal .thumbs-scroll{ height: 92px; flex-basis: 92px; }
  #bow-modal .thumbs-scroll img{ width: 72px; height: 72px; }
}

/* =========================
   FOOTER
========================= */
.site-footer{
  margin-top: 34px;
  padding: 26px 0;
  border-top: 1px solid rgba(243,239,232,0.10);
  color: rgba(243,239,232,0.74);
  font-size: 14px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
@media (max-width: 700px){
  .footer-inner{ flex-direction: column; align-items:flex-start; }
}

/* =========================================================
   GALLERY (PAGE + MODAL) — SINGLE SOURCE OF TRUTH
   (No duplicates, no conflicts)
========================================================= */

/* Center the header text on Gallery page */
.page-head{
  text-align: center;
}
.page-head .kicker,
.page-head h1,
.page-head .desc{
  margin-left: auto;
  margin-right: auto;
}
.page-head .kicker{ color: rgba(243,239,232,0.70); }
.page-head h1{ color: rgba(243,239,232,0.98); }
.page-head .desc{
  color: rgba(243,239,232,0.85);
  max-width: 70ch;
  line-height: 1.7;
}

/* If your template still uses .grid, make it behave like the gallery grid */
.grid,
.gallery-grid{
  display: grid;
  gap: 18px;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 1099px){
  .grid,
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px){
  .grid,
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Card is a <button> */
.gallery-card{
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;

  padding: 0;
  text-align: left;

  color: var(--text);

  border-radius: var(--r1);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,239,232,0.10);
  box-shadow: var(--shadow2);

  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.gallery-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.045);
  border-color: rgba(243,239,232,0.14);
}

/* ✅ Thumbnails NEVER crop */
.gallery-card img{
  width: 100%;
  height: 260px;
  display: block;

  object-fit: contain;
  object-position: center;

  padding: 16px;
  background: rgba(255,255,255,0.035);
  border-bottom: 1px solid rgba(243,239,232,0.08);
}
@media (max-width: 759px){
  .gallery-card img{ height: 320px; }
}

/* Caption containers (support both .gallery-cap and legacy .cap) */
.gallery-cap,
.gallery-card .cap{
  padding: 12px 14px 14px 14px;
  background: rgba(0,0,0,0.14);
}

/* Title */
.gallery-cap strong,
.gallery-card .cap strong{
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  color: rgba(243,239,232,0.95);
}

/* Preview text: show up to 2 lines (no ugly overflow) */
.gallery-cap .small,
.gallery-card .cap .small{
  color: rgba(243,239,232,0.75);
  line-height: 1.55;
  font-size: 13px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   GALLERY MODAL — FIXED TO MATCH page-gallery.php
   HTML uses:
   #gallery-modal.modal -> .modal-inner.modal-photos -> .modal-photos-body -> .modal-stage -> img#g-main.modal-main-img
========================= */

/* overlay */
#gallery-modal.modal{
  display:none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 18px;
  background: rgba(0,0,0,0.85);
}
#gallery-modal.modal.open{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* modal box */
#gallery-modal .modal-inner.modal-photos{
  width: min(1200px, 96vw);
  height: min(860px, 92vh);

  border-radius: var(--r1);
  border: 1px solid rgba(243,239,232,0.10);
  background: rgba(18,16,15,0.98);
  box-shadow: var(--shadow1);

  position: relative;
  overflow: hidden;

  display:flex;
  flex-direction: column;
}

/* Close button */
#gallery-modal .modal-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(243,239,232,0.14);
  background: rgba(255,255,255,0.07);
  color: rgba(243,239,232,0.95);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
}
#gallery-modal .modal-close:hover{
  background: rgba(255,255,255,0.11);
  border-color: rgba(243,239,232,0.22);
}

/* Body row that contains arrows + stage */
#gallery-modal .modal-photos-body{
  flex: 1 1 auto;
  min-height: 0;
  display:flex;
  align-items: stretch;
  gap: 12px;
  padding: 54px 14px 10px 14px;
}

/* arrows */
#gallery-modal .modal-nav{
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(243,239,232,0.14);
  background: rgba(255,255,255,0.07);
  color: rgba(243,239,232,0.95);
  cursor: pointer;
  font-size: 24px;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#gallery-modal .modal-nav:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.11);
  border-color: rgba(243,239,232,0.22);
}
#gallery-modal .modal-nav:disabled{
  opacity:.35;
  cursor:default;
  transform:none;
}

/* stage */
#gallery-modal .modal-stage{
  flex: 1 1 auto;
  min-height: 0;

  border-radius: 22px;
  border: 1px solid rgba(243,239,232,0.10);
  background: rgba(255,255,255,0.03);

  display:flex;
  align-items:center;
  justify-content:center;

  overflow: hidden;
  padding: 12px;
}

/* ✅ FIX: image fits stage, never crops, never overflows */
#gallery-modal #g-main.modal-main-img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display:block;
}

/* thumbs strip */
#gallery-modal .thumbs-scroll{
  flex: 0 0 110px;
  height: 110px;
  padding: 12px 14px 14px 14px;
  display:flex;
  gap: 10px;
  overflow-x:auto;
  overflow-y:hidden;
  border-top: 1px solid rgba(243,239,232,0.08);
  background: rgba(255,255,255,0.02);
}

#gallery-modal .thumbs-scroll img{
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor:pointer;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.03);
}

/* modal caption (your PHP uses #g-caption class="desc") */
#gallery-modal #g-caption{
  color: rgba(243,239,232,0.82);
  line-height: 1.65;

  max-height: 180px;
  overflow: auto;
}
#gallery-modal #g-caption:empty{
  display:none;
}

/* Mobile */
@media (max-width: 760px){
  #gallery-modal .modal-photos-body{ padding: 54px 10px 10px 10px; gap: 8px; }
  #gallery-modal .modal-nav{ width: 44px; height: 44px; font-size: 20px; }
  #gallery-modal .thumbs-scroll{ height: 92px; flex-basis: 92px; }
  #gallery-modal .thumbs-scroll img{ width: 72px; height: 72px; }
}

/* === Gallery modal: remove the big gap + give caption more room === */

/* If thumbs are empty, don't reserve space for them */
#gallery-modal .thumbs-scroll:empty{
  display:none !important;
}

/* Tighten spacing between image + caption */
#gallery-modal .modal-photos-body{
  padding-bottom: 6px !important;
}

/* Give caption more vertical room + make it scroll nicely */
#gallery-modal #g-caption{
  max-height: 32vh !important;   /* more room than the old 180px cap */
  overflow: auto !important;
  padding-top: 10px !important;
}

/* =========================================================
   CONTACT PAGE
   (styles for page-contact.php)
========================================================= */

.panel{
  border-radius: var(--r1);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,239,232,0.10);
  box-shadow: var(--shadow2);
}

.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px){
  .about-grid{
    grid-template-columns: 1fr;
  }
}

.big-title{
  color: rgba(243,239,232,0.98);
  letter-spacing: -0.02em;
}

.copy{
  color: rgba(243,239,232,0.82);
  line-height: 1.7;
  margin: 10px 0 0 0;
  max-width: 62ch;
}

.inquire-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
