/* =========================================================
   GALLERY PAGES — gallery.html + gallery-details.html
   Fully static markup; this file only handles layout/visuals.
   Same 4-color theme as the rest of the site.
   ========================================================= */

/* ---------- Page header ---------- */
.gal-page-header{
  position:relative; overflow:hidden;
  padding-top:calc(var(--nav-dip-depth, 112px) + 2.6rem);
  padding-bottom:2.8rem;
  background:var(--black);
}
.gal-page-header-bg{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover;
}
.gal-page-header-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(11,10,8,.6) 0%, rgba(11,10,8,.8) 70%, rgba(11,10,8,.92) 100%);
}
.gal-page-header::before{
  content:''; position:absolute; inset:0; z-index:2;
  background:
    radial-gradient(circle at 15% 20%, rgba(212,175,55,.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(212,175,55,.12), transparent 45%);
  pointer-events:none;
}
.gal-breadcrumb{
  position:relative; z-index:3; display:flex; align-items:center; gap:.5rem;
  font-family:var(--font-body); font-size:.78rem; letter-spacing:.04em;
  color:rgba(246,241,231,.55); margin-bottom:1.1rem;
}
.gal-breadcrumb a{ color:rgba(246,241,231,.75); text-decoration:none; transition:color .25s ease; }
.gal-breadcrumb a:hover{ color:var(--gold); }
.gal-breadcrumb .is-current{ color:var(--gold); }
.gal-page-title{
  position:relative; z-index:3; font-family:var(--font-display); color:var(--white);
  font-size:clamp(2rem, 4.2vw, 3.2rem); margin-bottom:.7rem; max-width:680px;
}
.gal-page-title em{ font-style:italic; color:var(--gold); font-weight:400; }
.gal-page-copy{
  position:relative; z-index:3; font-family:var(--font-body); color:rgba(246,241,231,.72);
  font-size:1rem; line-height:1.7; max-width:540px;
}

/* ---------- Featured + secondary grid layout ---------- */
.gal-showcase-section{ padding:2.2rem 0 2.5rem; background:var(--white); }

.gal-showcase-heading{
  display:flex; align-items:center; gap:1rem;
  margin-bottom:2.2rem;
}
.gal-showcase-heading h2{
  font-family:var(--font-display); font-size:clamp(1.4rem, 2.6vw, 1.9rem); color:var(--black);
  white-space:nowrap; margin:0;
}
.gal-showcase-heading span{ flex:1; height:1px; background:rgba(212,175,55,.35); }

.gal-showcase-grid{
  display:grid; grid-template-columns:1fr 1.55fr; gap:1.4rem;
  align-items:start; /* featured has its own fixed height (below) — it should
                         not stretch/shrink to match the secondary grid's
                         current page, which can vary in row count */
}

/* Featured card */
.gal-featured-wrap{ position:relative; }
.gal-featured{
  position:relative; display:block; height:calc(230px * 2 + .8rem); border-radius:14px; overflow:hidden;
  text-decoration:none; color:inherit;
}
.gal-featured-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform 1.1s cubic-bezier(.22,1,.36,1);
}
.gal-featured:hover .gal-featured-img{ transform:scale(1.06); }
.gal-featured::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(11,10,8,.88) 10%, rgba(11,10,8,.35) 55%, transparent 85%);
}
/* Animated gold ring on hover */
@property --gal-angle{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
.gal-featured::before{
  content:''; position:absolute; inset:0; z-index:3; border-radius:inherit; padding:2px;
  background:conic-gradient(from var(--gal-angle),
    transparent 0%, var(--gold) 12%, rgba(212,175,55,.15) 28%, transparent 45%,
    transparent 55%, rgba(212,175,55,.15) 72%, var(--gold) 88%, transparent 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; pointer-events:none; transition:opacity .35s ease;
}
.gal-featured:hover::before{ opacity:1; animation:galAngleSpin 4s linear infinite; }
@keyframes galAngleSpin{ to{ --gal-angle:360deg; } }

.gal-featured-body{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  display:flex; flex-direction:column; padding:1.8rem 2rem;
}
.gal-featured-text{ margin-bottom:1.3rem; padding-right:5.5rem; /* keep text clear of the overlaid thumbnail strip */ }
.gal-featured-eyebrow{
  display:block; font-family:var(--font-body); font-size:.72rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--gold); margin-bottom:.6rem;
}
.gal-featured-title{ font-family:var(--font-display); font-size:clamp(2rem, 3.4vw, 2.8rem); color:var(--white); margin-bottom:.35rem; line-height:1.05; }
.gal-featured-tagline{ font-family:var(--font-body); font-size:.92rem; color:rgba(246,241,231,.82); margin-bottom:1.3rem; }
.gal-featured-btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.75rem 1.6rem; border-radius:999px; background:#c9a15c; color:#241d0f;
  font-family:var(--font-body); font-size:.85rem; font-weight:600;
  box-shadow:0 8px 20px rgba(0,0,0,.25); transition:transform .25s ease, box-shadow .25s ease;
}
.gal-featured-btn i{ font-size:.8rem; transition:transform .25s ease; }
.gal-featured:hover .gal-featured-btn{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(0,0,0,.32); }
.gal-featured:hover .gal-featured-btn i{ transform:translateX(3px); }

/* Stats — a distinct footer strip pinned under the text block, with a
   vertical separator between each stat (matching the reference) */
.gal-featured-stats{
  display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
  padding-top:1.1rem; border-top:1px solid rgba(255,255,255,.18);
}
.gal-featured-stat{ font-family:var(--font-body); font-size:.78rem; color:rgba(246,241,231,.85); display:flex; align-items:center; gap:.5rem; }
.gal-featured-stat i{ color:var(--gold); font-size:1rem; }
.gal-featured-stat strong{ display:block; font-family:var(--font-display); font-size:1.15rem; color:var(--white); line-height:1; }
.gal-featured-stat-sep{ width:1px; height:22px; background:rgba(255,255,255,.25); flex-shrink:0; }

/* Thumbnail strip — overlaid on the featured image's right edge,
   stopping above the stats footer (not the full card height). No
   manual arrow — cycling is fully automatic. */
.gal-thumb-strip{
  position:absolute; top:1rem; right:1rem; bottom:4.6rem; z-index:4;
  width:78px; display:flex; flex-direction:column; gap:.5rem;
}
.gal-thumb-strip img{
  width:100%; height:100%; object-fit:cover; border-radius:6px; display:block;
  transition:transform .5s cubic-bezier(.22,1,.36,1), opacity .5s ease;
}
.gal-thumb-strip a{
  position:relative; flex:1; display:block; overflow:hidden; border-radius:6px;
  border:1px solid #fffffffa; box-shadow:0 6px 14px rgba(11,10,8,.35);
  transition:border-color .3s ease, transform .3s ease;
}
.gal-thumb-strip a:hover{ transform:translateX(-2px); }
.gal-thumb-strip a:hover img{ transform:scale(1.08); }
.gal-thumb-strip a.is-active{ border-color:var(--gold); }

/* Secondary category grid — simple, uniform, loop-friendly: every card is
   identical markup/CSS regardless of position or how many exist. A backend
   loop can append as many .gal-cat-card items as needed with no other
   changes required. */
.gal-secondary-grid{
  display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:.8rem;
  align-items:start;
}
.gal-cat-card{
  position:relative; border-radius:12px; overflow:hidden; height:230px;
  display:block; text-decoration:none; color:inherit;
}
.gal-cat-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.gal-cat-card:hover img{ transform:scale(1.08); }
.gal-cat-card::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(11,10,8,.85) 15%, transparent 80%);
}
/* Animated gold ring on hover — same technique as the featured card */
.gal-cat-card::before{
  content:''; position:absolute; inset:0; z-index:3; border-radius:inherit; padding:2px;
  background:conic-gradient(from var(--gal-angle),
    transparent 0%, var(--gold) 12%, rgba(212,175,55,.15) 28%, transparent 45%,
    transparent 55%, rgba(212,175,55,.15) 72%, var(--gold) 88%, transparent 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; pointer-events:none; transition:opacity .35s ease;
}
.gal-cat-card:hover::before{ opacity:1; animation:galAngleSpin 4s linear infinite; }
.gal-cat-body{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:flex-end; padding:1rem 1.1rem; }
.gal-cat-title{ font-family:var(--font-display); font-size:1.2rem; color:var(--white); margin-bottom:.15rem; }
.gal-cat-tagline{ font-family:var(--font-body); font-size:.72rem; color:rgba(246,241,231,.75); margin-bottom:.3rem; }
.gal-cat-count{ font-family:var(--font-body); font-size:.7rem; color:rgba(246,241,231,.6); display:flex; align-items:center; justify-content:space-between; }
.gal-cat-count i{ color:var(--gold); }

/* Pagination */
.gal-pagination{
  display:flex; align-items:center; justify-content:center; gap:.7rem;
  margin-top:2.6rem; padding:.4rem .8rem;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(212,175,55,.09), rgba(212,175,55,.02));
  width:fit-content; margin-left:auto; margin-right:auto;
}
.gal-page-btn{
  width:40px; height:40px; border-radius:50%; border:none;
  background:var(--white); color:var(--black); display:flex; align-items:center; justify-content:center;
  font-size:.8rem; cursor:pointer; transition:background .25s ease, color .25s ease, transform .2s ease;
  flex-shrink:0; box-shadow:0 4px 10px rgba(11,10,8,.1);
}
.gal-page-btn:hover{ background:var(--gold); color:var(--white); transform:translateY(-1px); }
.gal-page-btn:disabled{ opacity:.3; cursor:default; }
.gal-page-btn:disabled:hover{ background:var(--white); color:var(--black); transform:none; }
.gal-page-numbers{ display:flex; align-items:center; gap:.5rem; }
.gal-page-number{
  position:relative; isolation:isolate; width:40px; height:40px; border-radius:50%; border:none;
  display:flex; align-items:center; justify-content:center; line-height:1; padding:0;
  background:var(--white); color:var(--black); font-family:var(--font-display); font-size:1.05rem; font-weight:700;
  cursor:pointer; box-shadow:0 4px 10px rgba(11,10,8,.1); transition:color .25s ease, background .25s ease;
}
.gal-page-number:hover{ color:var(--gold); }
.gal-page-number.is-active{ color:var(--white); background:transparent; box-shadow:none; }
.gal-page-number.is-active::before{
  content:''; position:absolute; inset:0; z-index:0; border-radius:50%;
  background:conic-gradient(from var(--gal-angle), var(--gold), #f3d98a, var(--gold));
  animation:galAngleSpin 5s linear infinite;
}
.gal-page-number.is-active::after{
  content:''; position:absolute; inset:2px; z-index:0; border-radius:50%; background:var(--black);
}
.gal-page-number span{ position:relative; z-index:1; }

/* =========================================================
   BROWSE BY FEATURES — horizontal slidable tab row + static panels
   ========================================================= */
.gal-features-section{ padding:1rem 0 4.5rem; background:var(--white); }

.gal-feature-tabs-wrap{ position:relative; margin-bottom:2rem; }
.gal-feature-tabs-scroll{
  overflow-x:auto; scrollbar-width:none; cursor:grab; user-select:none;
}
.gal-feature-tabs-scroll::-webkit-scrollbar{ display:none; }
.gal-feature-tabs-scroll.is-dragging{ cursor:grabbing; }
.gal-feature-tabs-scroll.is-dragging .gal-feature-tab{ pointer-events:none; }
.gal-feature-tabs-row{ display:flex; gap:.8rem; min-width:max-content; padding-right:.2rem; }

.gal-feature-tab{
  position:relative; flex:0 0 auto; display:flex; align-items:center; gap:.7rem;
  width:230px; padding:.85rem 1rem; border-radius:12px; border:1px solid rgba(11,10,8,.08);
  background:var(--white); text-align:left; cursor:pointer;
  box-shadow:0 6px 16px rgba(11,10,8,.05);
  transition:background .3s ease, border-color .3s ease, transform .25s ease, box-shadow .25s ease;
}
.gal-feature-tab:hover{ transform:translateY(-2px); box-shadow:0 12px 24px rgba(11,10,8,.1); border-color:rgba(212,175,55,.35); }
.gal-feature-tab.is-active{
  background:#5c1a2b; border-color:#5c1a2b;
  box-shadow:0 14px 28px rgba(92,26,43,.28);
}
/* Animated gold ring — same masked conic-gradient technique used
   sitewide, shown on hover and permanently while active */
.gal-feature-tab::before{
  content:''; position:absolute; inset:0; z-index:1; border-radius:inherit; padding:1.5px;
  background:conic-gradient(from var(--gal-angle),
    transparent 0%, var(--gold) 12%, rgba(212,175,55,.15) 28%, transparent 45%,
    transparent 55%, rgba(212,175,55,.15) 72%, var(--gold) 88%, transparent 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.gal-feature-tab:hover::before,
.gal-feature-tab.is-active::before{ opacity:1; animation:galAngleSpin 4s linear infinite; }
.gal-feature-tab-icon{
  flex-shrink:0; width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(212,175,55,.12); color:var(--gold); font-size:1.05rem;
}
.gal-feature-tab.is-active .gal-feature-tab-icon{ background:rgba(255,255,255,.14); color:var(--white); }
.gal-feature-tab-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:.15rem; }
.gal-feature-tab-title{ font-family:var(--font-body); font-size:.85rem; font-weight:700; color:var(--black); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gal-feature-tab.is-active .gal-feature-tab-title{ color:var(--white); }
.gal-feature-tab-desc{ font-family:var(--font-body); font-size:.72rem; color:#8a8471; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gal-feature-tab.is-active .gal-feature-tab-desc{ color:rgba(255,255,255,.75); }
.gal-feature-tab-arrow{ flex-shrink:0; font-size:.75rem; color:#8a8471; transition:transform .25s ease; }
.gal-feature-tab.is-active .gal-feature-tab-arrow{ color:var(--white); }
.gal-feature-tab:hover .gal-feature-tab-arrow{ transform:translateX(3px); }

/* Overflow-only "more tabs" arrow — JS toggles .is-visible only when the
   row actually overflows its container */
.gal-feature-tabs-nav{
  display:none; position:absolute; top:50%; right:-6px; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%; border:none; background:var(--white);
  color:var(--black); align-items:center; justify-content:center; font-size:.8rem; cursor:pointer;
  box-shadow:0 8px 20px rgba(11,10,8,.18); z-index:2;
}
.gal-feature-tabs-nav.is-visible{ display:flex; }
.gal-feature-tabs-nav:hover{ background:var(--gold); color:var(--white); }

/* Static gallery panels — one per tab, only the active one shown. Content
   is plain static HTML (duplicated per tab for now), no JS templating. */
.gal-feature-panel{ display:none; }
.gal-feature-panel.is-active{ display:block; }
.gal-feature-gallery{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1rem; margin-bottom:1.2rem;
}
.gal-feature-photo{ display:block; border-radius:10px; overflow:hidden; height:200px; }
.gal-feature-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.gal-feature-photo:hover img{ transform:scale(1.07); }
.gal-feature-view-link{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:var(--font-body); font-size:.82rem; font-weight:700; color:var(--gold); text-decoration:none;
}
.gal-feature-view-link i{ font-size:.75rem; transition:transform .25s ease; }
.gal-feature-view-link:hover i{ transform:translateX(3px); }

/* =========================================================
   DETAILS PAGE — rich photo hero, masonry gallery + sidebar
   ========================================================= */
.gal-details-hero{
  position:relative; overflow:hidden; background:var(--black);
  padding-top:calc(var(--nav-dip-depth, 112px) + 2.4rem); padding-bottom:2.6rem;
}
.gal-details-hero-bg{ position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; }
.gal-details-hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(11,10,8,.75) 0%, rgba(11,10,8,.9) 75%, rgba(11,10,8,.97) 100%);
}
.gal-details-hero .container{ position:relative; z-index:2; }
.gal-details-hero .gal-breadcrumb{ color:rgba(246,241,231,.55); }
.gal-details-hero .gal-breadcrumb a{ color:rgba(246,241,231,.8); }
.gal-details-hero .gal-breadcrumb a:hover{ color:var(--gold); }

.gal-details-tag{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem 1.1rem; border-radius:999px; background:rgba(212,175,55,.16);
  color:var(--gold); font-family:var(--font-body); font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  margin-bottom:1.1rem;
}
.gal-details-title{ font-family:var(--font-display); font-size:clamp(2.1rem, 4vw, 3.2rem); color:var(--white); margin-bottom:.8rem; }
.gal-details-title em{ font-style:italic; color:var(--gold); font-weight:400; }
.gal-details-desc{ font-family:var(--font-body); font-size:1rem; line-height:1.75; color:rgba(246,241,231,.72); max-width:640px; margin-bottom:0; }

/* Systematic layout: masonry + sticky sidebar */
.gal-masonry-section{ padding:3rem 0 4.5rem; background:var(--white); }
.gal-details-layout{ display:grid; grid-template-columns:1fr 320px; gap:2rem; align-items:start; }

.gal-masonry{
  display:grid; grid-template-columns:repeat(3, 1fr); grid-template-rows:repeat(2, 240px); gap:14px;
}
.gal-masonry-item{
  position:relative; display:block; border-radius:12px; overflow:hidden; cursor:zoom-in;
  box-shadow:0 10px 24px rgba(11,10,8,.08);
}
.gal-masonry-item:first-child{ grid-row:span 2; }
.gal-masonry-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.gal-masonry-item:hover img{ transform:scale(1.07); }
/* Animated gold ring on hover — same technique used sitewide */
.gal-masonry-item::before{
  content:''; position:absolute; inset:0; z-index:2; border-radius:inherit; padding:2px;
  background:conic-gradient(from var(--gal-angle),
    transparent 0%, var(--gold) 12%, rgba(212,175,55,.15) 28%, transparent 45%,
    transparent 55%, rgba(212,175,55,.15) 72%, var(--gold) 88%, transparent 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; pointer-events:none; transition:opacity .35s ease;
}
.gal-masonry-item:hover::before{ opacity:1; animation:galAngleSpin 4s linear infinite; }
.gal-masonry-more{
  position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center;
  background:rgba(11,10,8,.7); backdrop-filter:blur(2px); color:var(--white); font-family:var(--font-body); font-size:.95rem; font-weight:600;
  gap:.5rem;
}
.gal-masonry-more i{ font-size:1.1rem; }

/* Sticky sidebar */
.gal-details-sidebar{ position:sticky; top:100px; display:flex; flex-direction:column; gap:1.2rem; }
.gal-sidebar-card{
  border:1px solid rgba(212,175,55,.2); border-radius:14px; padding:1.4rem 1.3rem;
  background:var(--white); box-shadow:0 10px 24px rgba(11,10,8,.05);
}
.gal-sidebar-card h5{ font-family:var(--font-display); font-size:1.05rem; color:var(--black); margin-bottom:.6rem; }
.gal-sidebar-card p{ font-family:var(--font-body); font-size:.85rem; line-height:1.6; color:#7a7568; margin:0; }
.gal-sidebar-cta{ background:linear-gradient(135deg, rgba(212,175,55,.08), rgba(212,175,55,.02)); }
.gal-sidebar-cta p{ margin-bottom:1rem; }
.gal-share-row{ display:flex; gap:.6rem; }
.gal-share-btn{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(212,175,55,.3); color:var(--gold); background:transparent;
  text-decoration:none; font-size:.85rem; transition:background .25s ease, color .25s ease;
}
.gal-share-btn:hover{ background:var(--gold); color:var(--white); }
.gal-sidebar-links{ display:flex; flex-direction:column; }
.gal-sidebar-links a{
  display:flex; align-items:center; gap:.6rem;
  padding:.6rem 0; border-bottom:1px solid rgba(11,10,8,.08);
  font-family:var(--font-body); font-size:.85rem; font-weight:600; color:#3b382f; text-decoration:none;
  transition:color .25s ease;
}
.gal-sidebar-links a:last-child{ border-bottom:none; padding-bottom:0; }
.gal-sidebar-links a:hover{ color:var(--gold); }
.gal-sidebar-links a i{ color:var(--gold); width:16px; text-align:center; }

/* Related galleries */
.gal-related-section{ padding:1rem 0 4.5rem; background:var(--ivory); }
.gal-related-viewport{ overflow-x:hidden; scroll-behavior:smooth; cursor:grab; user-select:none; }
.gal-related-viewport.is-dragging{ cursor:grabbing; scroll-behavior:auto; }
.gal-related-track{ display:flex; gap:1rem; }
.gal-related-track .gal-cat-card{ flex:0 0 calc(25% - .75rem); height:230px; }
.gal-related-viewport.is-dragging .gal-cat-card{ pointer-events:none; }

/* =========================================================
   GET QUICK QUOTE MODAL
   ========================================================= */
.gal-quote-modal{
  position:fixed; inset:0; z-index:5500;
  display:flex; align-items:center; justify-content:center; padding:1.5rem;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s ease, visibility .3s ease;
}
.gal-quote-modal.is-open{ opacity:1; visibility:visible; pointer-events:auto; }
.gal-quote-modal-backdrop{ position:absolute; inset:0; background:rgba(11,10,8,.75); backdrop-filter:blur(3px); }
.gal-quote-modal-dialog{
  position:relative; z-index:1; width:100%; max-width:420px;
  background:var(--white); border-radius:16px; padding:2.2rem 2rem;
  box-shadow:0 30px 70px rgba(0,0,0,.35);
}
.gal-quote-modal-close{
  position:absolute; top:1rem; right:1rem; width:34px; height:34px; border-radius:50%;
  border:1px solid rgba(11,10,8,.1); background:transparent; color:#5c5548; font-size:.9rem;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.gal-quote-modal-close:hover{ background:var(--gold); color:var(--white); transform:rotate(90deg); }
.gal-quote-modal-icon{
  display:flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:50%; margin-bottom:1rem;
  background:rgba(212,175,55,.12); color:var(--gold); font-size:1.3rem;
}
.gal-quote-modal-body h3{ font-family:var(--font-display); font-size:1.6rem; color:var(--black); margin-bottom:.4rem; }
.gal-quote-modal-body > p{ font-family:var(--font-body); font-size:.9rem; color:#7a7568; margin-bottom:1.5rem; }
.gal-quote-field{ display:block; margin-bottom:1.1rem; }
.gal-quote-field span{
  display:block; font-family:var(--font-body); font-size:.72rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color:#8a8471; margin-bottom:.4rem;
}
.gal-quote-field input{
  width:100%; padding:.75rem .9rem; border-radius:8px; border:1px solid rgba(11,10,8,.15);
  font-family:var(--font-body); font-size:.9rem; color:var(--black);
  transition:border-color .25s ease, box-shadow .25s ease;
}
.gal-quote-field input:focus{
  outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,.15);
}
.gal-quote-success{
  text-align:center; padding:1rem 0;
}
.gal-quote-success i{ font-size:2.2rem; color:var(--gold); margin-bottom:.8rem; display:block; }
.gal-quote-success h4{ font-family:var(--font-display); font-size:1.3rem; color:var(--black); margin-bottom:.4rem; }
.gal-quote-success p{ font-family:var(--font-body); font-size:.88rem; color:#7a7568; margin:0; }

@media (max-width:480px){
  .gal-quote-modal-dialog{ padding:1.8rem 1.4rem; }
}

/* =========================================================
   LIGHTBOX (custom, reads images straight from the static DOM)
   ========================================================= */
.gal-lightbox{
  position:fixed; inset:0; z-index:5000;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s ease, visibility .3s ease;
}
.gal-lightbox.is-open{ opacity:1; visibility:visible; pointer-events:auto; }
.gal-lightbox-backdrop{ position:absolute; inset:0; background:rgba(5,7,6,.96); }
.gal-lightbox-dialog{
  position:relative; z-index:1; width:100%; height:100%;
  display:flex; flex-direction:column; padding:20px 24px; box-sizing:border-box; overflow:hidden;
  color:#fff; font-family:Inter, Arial, Helvetica, sans-serif;
}
.gal-lightbox-top{ flex-shrink:0; display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.gal-lightbox-counter{ padding:6px 16px; border-radius:999px; background:rgba(255,255,255,.08); font-size:13px; font-weight:500; }
.gal-lightbox-tools{ display:flex; align-items:center; gap:10px; }
.gal-lightbox-tool{
  width:38px; height:38px; display:flex; align-items:center; justify-content:center; border:none; border-radius:50%;
  background:rgba(255,255,255,.08); color:#fff; font-size:14px; cursor:pointer; transition:background .2s ease;
}
.gal-lightbox-tool:hover{ background:rgba(215,173,92,.28); }
.gal-lightbox-tool.is-active{ background:#d7ad5c; color:#050706; }
#galLightboxClose:hover{ transform:rotate(90deg); }

.gal-lightbox-media{ position:relative; flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.gal-lightbox-media img{
  max-width:100%; max-height:100%; display:block; object-fit:contain; cursor:zoom-in;
  transform:scale(var(--gal-zoom, 1)); transition:transform .25s ease;
}
.gal-lightbox-grid{
  display:none; width:100%; height:100%; overflow-y:auto;
  grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; padding:6px;
}
.gal-lightbox-grid.is-visible{ display:grid; }
.gal-lightbox-grid img{ width:100%; height:140px; object-fit:cover; border-radius:8px; cursor:pointer; opacity:.8; transition:opacity .2s ease; }
.gal-lightbox-grid img:hover{ opacity:1; }

.gal-lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.18); border-radius:50%; background:rgba(13,15,14,.55);
  backdrop-filter:blur(10px); color:#fff; font-size:17px; cursor:pointer; transition:background .2s ease;
}
.gal-lightbox-nav:hover{ background:rgba(215,173,92,.22); }
.gal-lightbox-prev{ left:20px; }
.gal-lightbox-next{ right:20px; }

.gal-lightbox-thumbs{
  flex-shrink:0; display:flex; justify-content:center; gap:8px; overflow-x:auto;
  margin-top:14px; padding-bottom:4px; scrollbar-width:none;
}
.gal-lightbox-thumbs::-webkit-scrollbar{ display:none; }
.gal-lightbox-thumb{
  flex:0 0 auto; width:64px; height:64px; padding:0; border:2px solid transparent; border-radius:8px;
  overflow:hidden; cursor:pointer; opacity:.55; transition:opacity .2s ease, border-color .2s ease;
}
.gal-lightbox-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.gal-lightbox-thumb.is-active{ opacity:1; border-color:#d7ad5c; }

/* =========================================================
   RESPONSIVE — tablet
   ========================================================= */
@media (max-width:991px){
  .gal-showcase-grid{ grid-template-columns:1fr; }
  .gal-featured{ min-height:360px; }
  .gal-thumb-strip{ width:60px; top:.8rem; right:.8rem; bottom:4.4rem; }
  .gal-featured-text{ padding-right:4.5rem; }
  .gal-cat-card{ height:190px; }
  .gal-secondary-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .gal-masonry{ grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(3, 200px); }
  .gal-masonry-item:first-child{ grid-column:span 2; grid-row:span 1; }
  .gal-feature-tab{ width:200px; }
  .gal-feature-gallery{ grid-template-columns:repeat(2, 1fr); }
  .gal-feature-photo{ height:170px; }
  .gal-details-layout{ grid-template-columns:1fr; }
  .gal-details-sidebar{ position:relative; top:0; }
  .gal-related-track .gal-cat-card{ flex:0 0 calc(33.333% - .67rem); }
}

/* =========================================================
   RESPONSIVE — mobile
   ========================================================= */
@media (max-width:575px){
  .gal-page-header{ padding-top:calc(var(--nav-dip-depth, 70px) + 1.6rem); padding-bottom:2rem; }
  .gal-details-hero{ padding-top:calc(var(--nav-dip-depth, 70px) + 1.6rem); padding-bottom:2rem; }
  .gal-related-track .gal-cat-card{ flex:0 0 calc(50% - .5rem); height:190px; }
  .gal-featured{ min-height:300px; }
  .gal-featured-body{ padding:1.3rem; }
  .gal-featured-text{ padding-right:3.6rem; }
  .gal-featured-stats{ gap:1rem; flex-wrap:wrap; }
  .gal-thumb-strip{ width:46px; top:.6rem; right:.6rem; bottom:4.2rem; gap:.3rem; }
  .gal-secondary-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .gal-cat-card{ height:150px; }
  .gal-masonry{ grid-template-columns:1fr; grid-template-rows:repeat(5, 220px); gap:10px; }
  .gal-masonry-item:first-child{ grid-column:auto; grid-row:auto; }
  .gal-lightbox-nav{ width:38px; height:38px; font-size:14px; }
  .gal-lightbox-prev{ left:6px; }
  .gal-lightbox-next{ right:6px; }
  .gal-lightbox-thumb{ width:48px; height:48px; }
  .gal-lightbox-tools{ gap:6px; }
  .gal-lightbox-tool{ width:32px; height:32px; font-size:12px; }
  .gal-feature-tab{ width:170px; padding:.7rem .8rem; }
  .gal-feature-tab-icon{ width:32px; height:32px; font-size:.9rem; }
  .gal-feature-gallery{ grid-template-columns:repeat(2, 1fr); gap:.6rem; }
  .gal-feature-photo{ height:140px; }
}

@media (prefers-reduced-motion: reduce){
  .gal-featured-img, .gal-cat-card img, .gal-masonry-item img, .gal-thumb-strip img,
  .gal-featured::before, .gal-lightbox-media img, .gal-feature-photo img, .gal-feature-tab{ transition:none; animation:none; }
}
