:root{
  --void:#f6efeb;
  --surface:#fffaf7;
  --surface-2:#f7eeea;
  --gold:#caa45f;
  --gold-light:#e4c991;
  --ink:#253042;
  --ink-soft:#5b6372;
  --ink-muted:#7e7380;
  --moss-dark:#2d3646;
  --rose-blush:rgba(229,186,196,.34);
  --blue-mist:rgba(210,220,242,.4);
  --champagne:rgba(236,220,188,.34);
  --glass-border:rgba(255,255,255,.7);
  --glass-border-strong:rgba(202,164,95,.24);
  --glass-shadow:0 18px 40px rgba(101,87,117,.08);
  --glass-shadow-hover:0 24px 48px rgba(101,87,117,.14);
  --font-display:'Playfair Display','Cormorant Garamond',Georgia,serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--void);color:var(--ink);font-family:var(--font-body);line-height:1.7;overflow-x:hidden;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit;}

.cosmic-fallback{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 14% 14%, rgba(229,186,196,.28), transparent 20%),
    radial-gradient(circle at 85% 16%, rgba(210,220,242,.34), transparent 20%),
    radial-gradient(circle at 75% 72%, rgba(236,220,188,.22), transparent 24%),
    linear-gradient(180deg, #fbf6f3 0%, #f6efeb 48%, #f3eae6 100%);
}

.starfield{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.star{
  position:absolute;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(228,201,145,.64));
  box-shadow:0 0 12px rgba(228,201,145,.18);
  opacity:0;
  animation:twinkle 6s ease-in-out infinite;
}
@keyframes twinkle{
  0%,100%{opacity:0;transform:translateY(0) scale(.75);}
  50%{opacity:.55;transform:translateY(-4px) scale(1);}
}

#scroll-progress{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:2px;
  width:0;
  z-index:60;
  background:linear-gradient(90deg, var(--gold), var(--gold-light));
  transition:width .1s linear;
}


.glass{
  position:relative;
  background:
    radial-gradient(circle at top right, rgba(229,186,196,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.34));
  border:1px solid var(--glass-border);
  border-radius:30px;
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  box-shadow:var(--glass-shadow);
}
.glass::before{
  content:"";
  position:absolute;
  top:0;
  left:12%;
  right:12%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.64), transparent);
  pointer-events:none;
}

main{position:relative;z-index:2;padding-bottom:84px;}

.page-intro{
  max-width:1320px;
  margin:0 auto;
  padding:156px 32px 34px;
}
.page-intro-shell{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:24px;
  padding:34px;
}
.page-intro-copy{
  position:relative;
  padding:22px;
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.eyebrow,.section-kicker,.lightbox-kicker,.intro-note-kicker,.gallery-highlight-kicker{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:var(--gold);
  letter-spacing:.3em;
  text-transform:uppercase;
}
.eyebrow{margin-bottom:18px;}
.page-intro h1{
  max-width:9ch;
  margin-bottom:16px;
  font-family:var(--font-display);
  font-size:clamp(3rem, 7vw, 5.4rem);
  font-weight:500;
  line-height:.94;
  letter-spacing:.06em;
  color:var(--ink);
}
.page-intro p{
  max-width:560px;
  color:var(--ink-soft);
  font-size:16px;
}
.intro-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}
.intro-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.76);
  background:rgba(255,255,255,.44);
  color:var(--ink);
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  transition:transform .28s ease,background .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.intro-link:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.78);
  border-color:rgba(202,164,95,.28);
  box-shadow:0 14px 28px rgba(202,164,95,.12);
}
.intro-link.primary{
  background:var(--moss-dark);
  border-color:transparent;
  color:#fbf5f1;
}
.intro-link.primary:hover{
  background:#364a58;
  box-shadow:0 14px 28px rgba(45,54,70,.16);
}
.page-intro-aside{
  display:grid;
  gap:18px;
}
.intro-note{
  padding:24px;
  border-radius:26px;
  background:
    radial-gradient(circle at top right, rgba(236,220,188,.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.4));
  border:1px solid rgba(255,255,255,.74);
}
.intro-note strong{
  display:block;
  margin:14px 0 10px;
  font-family:var(--font-display);
  font-size:30px;
  font-weight:500;
  line-height:1.08;
  color:var(--ink);
}
.intro-note p{
  max-width:none;
  font-size:14px;
  color:var(--ink-muted);
}
.gallery-metrics{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.metric-card{
  padding:22px 18px;
  min-height:160px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-radius:24px;
}
.metric-card small{
  display:block;
  font-family:var(--font-display);
  font-size:38px;
  line-height:1;
  color:var(--ink);
}
.metric-card span{
  display:block;
  font-size:13px;
  color:var(--ink-muted);
  line-height:1.8;
}

.compare-section,.gallery-section{
  max-width:1320px;
  margin:0 auto;
  padding:0 32px;
  scroll-margin-top:120px;
}
.compare-section{padding-top:8px;}
.section-shell{padding:32px;}
.section-heading{
  max-width:760px;
  margin:0 auto 28px;
  text-align:center;
}
.section-heading.centered{margin-bottom:26px;}
.section-kicker{margin-bottom:14px;}
.section-heading h2{
  margin-top:14px;
  margin-bottom:14px;
  font-family:var(--font-display);
  font-size:clamp(2rem, 4vw, 3.4rem);
  font-weight:500;
  line-height:1.05;
  color:var(--ink);
}
.section-heading p{
  font-size:15px;
  color:var(--ink-soft);
}

.tab-row{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:26px;
}
.tab-btn{
  min-height:46px;
  padding:0 24px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.76);
  background:rgba(255,255,255,.46);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:none;
  color:var(--ink-muted);
  transition:transform .28s ease,background .28s ease,color .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.tab-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.7);
  color:var(--ink);
}
.tab-btn.active{
  background:linear-gradient(135deg, rgba(45,54,70,.96), rgba(62,73,92,.9));
  color:#fff9f3;
  border-color:transparent;
  box-shadow:0 16px 28px rgba(45,54,70,.18);
}

.compare-wrap{
  display:none;
  max-width:980px;
  margin:0 auto;
}
.compare-wrap.active{display:block;}
.compare{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.76);
  background:linear-gradient(145deg, rgba(255,255,255,.64), rgba(255,255,255,.2));
  box-shadow:0 18px 42px rgba(96,81,111,.12);
  --pos:50%;
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
}
.compare::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 22%, transparent 70%, rgba(35,40,52,.12)),
    radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 32%);
  z-index:1;
  pointer-events:none;
}
.compare img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.compare .layer-before{
  clip-path:inset(0 calc(100% - var(--pos)) 0 0);
  z-index:2;
}
.compare .layer-after{z-index:0;}
.compare .tag{
  position:absolute;
  bottom:22px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.56);
  background:rgba(255,255,255,.34);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:none;
  color:var(--ink);
}
.compare .tag.before{left:22px;}
.compare .tag.after{right:22px;}
.compare .handle{
  position:absolute;
  top:0;
  bottom:0;
  left:calc(var(--pos) - 1px);
  width:2px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), var(--gold));
  z-index:4;
  cursor:ew-resize;
}
.compare .handle:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px;}
.handle-grip{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border-radius:50%;
  background:linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,247,232,.62));
  border:1px solid rgba(255,255,255,.84);
  box-shadow:0 18px 32px rgba(202,164,95,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:var(--gold);
}
.handle-grip svg{width:14px;height:14px;}
.compare-caption{
  max-width:740px;
  margin:18px auto 0;
  text-align:center;
  font-size:12px;
  color:var(--ink-muted);
  line-height:1.8;
}

.gallery-section{padding-top:34px;padding-bottom:110px;}
.gallery-highlight{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  padding:24px 26px;
  margin-bottom:28px;
}
.gallery-highlight-copy strong{
  display:block;
  margin:12px 0 10px;
  font-family:var(--font-display);
  font-size:32px;
  font-weight:500;
  line-height:1.08;
  color:var(--ink);
}
.gallery-highlight-copy p{
  font-size:14px;
  color:var(--ink-muted);
}
.gallery-highlight-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.gallery-highlight-tags span{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.52);
  border:1px solid rgba(255,255,255,.78);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:none;
  color:var(--ink-soft);
}

.filter-row{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:34px;
}
.chip{
  min-height:42px;
  padding:0 20px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.78);
  background:rgba(255,255,255,.42);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:none;
  color:var(--ink-muted);
  transition:transform .28s ease,background .28s ease,color .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.chip:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.72);
  color:var(--ink);
}
.chip.active{
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,244,230,.76));
  border-color:rgba(202,164,95,.3);
  color:var(--ink);
  box-shadow:0 16px 28px rgba(202,164,95,.12);
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  grid-auto-rows:34px;
  gap:18px;
}
.gallery-tile{
  position:relative;
  grid-column:span 3;
  grid-row:span 8;
  min-height:272px;
  overflow:hidden;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.74);
  background-color:var(--surface-2);
  background-size:cover;
  background-position:center;
  box-shadow:var(--glass-shadow);
  transition:transform .36s ease,box-shadow .36s ease,border-color .36s ease,filter .36s ease;
}
.gallery-tile:nth-child(1){grid-column:span 5;grid-row:span 12;}
.gallery-tile:nth-child(2){grid-column:span 4;grid-row:span 9;}
.gallery-tile:nth-child(3){grid-column:span 3;grid-row:span 9;}
.gallery-tile:nth-child(4){grid-column:span 3;grid-row:span 10;}
.gallery-tile:nth-child(5){grid-column:span 4;grid-row:span 11;}
.gallery-tile:nth-child(6){grid-column:span 5;grid-row:span 10;}
.gallery-tile:nth-child(7){grid-column:span 4;grid-row:span 9;}
.gallery-tile:nth-child(8){grid-column:span 3;grid-row:span 8;}
.gallery-tile:nth-child(9){grid-column:span 5;grid-row:span 10;}
.gallery-tile:nth-child(10){grid-column:span 4;grid-row:span 10;}
.gallery-tile::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 24%, transparent 58%, rgba(16,24,40,.54)),
    radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 28%);
  transition:opacity .36s ease;
}
.gallery-tile::after{
  content:"مشاهده نمونه";
  position:absolute;
  top:18px;
  right:18px;
  z-index:2;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  background:rgba(255,255,255,.34);
  border:1px solid rgba(255,255,255,.48);
  color:#fff;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:none;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .3s ease,transform .3s ease;
}
.gallery-tile:hover{
  transform:translateY(-6px);
  box-shadow:var(--glass-shadow-hover);
  border-color:rgba(202,164,95,.32);
  filter:saturate(1.04);
}
.gallery-tile:hover::after{
  opacity:1;
  transform:translateY(0);
}
.gallery-tile:focus-visible{
  outline:2px solid var(--gold-light);
  outline-offset:3px;
}
.gallery-tile.hidden{display:none;}
.tile-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  gap:10px;
  padding:22px;
  text-align:left;
}
.tile-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,247,232,.54));
  border:1px solid rgba(255,255,255,.76);
  color:var(--gold);
  box-shadow:0 12px 24px rgba(45,54,70,.14);
}
.tile-icon svg{width:20px;height:20px;}
.tile-label{
  display:inline-block;
  max-width:14ch;
  font-family:var(--font-display);
  font-size:clamp(1.35rem, 2vw, 2rem);
  font-weight:500;
  line-height:1.05;
  letter-spacing:.04em;
  color:#fff;
  text-shadow:0 10px 30px rgba(0,0,0,.3);
}

.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(229,186,196,.16), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(210,220,242,.18), transparent 18%),
    rgba(244,236,232,.72);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  overscroll-behavior:contain;
}
.lightbox.open{display:flex;}
.lightbox-card{
  width:min(980px, 100%);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.55fr);
  overflow:hidden;
  border-radius:32px;
}
.lightbox-img{
  position:relative;
  min-height:min(72vh, 620px);
  background-size:cover;
  background-position:center;
}
.lightbox-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 25%, rgba(20,29,44,.14) 100%),
    radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 26%);
}
.lightbox-info{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:12px;
  padding:28px;
  background:
    radial-gradient(circle at top right, rgba(236,220,188,.18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.52));
}
.lightbox-info h3{
  font-family:var(--font-display);
  font-size:clamp(2rem, 4vw, 3rem);
  font-weight:500;
  line-height:1;
  color:var(--ink);
}
.lightbox-info p{
  font-size:14px;
  color:var(--ink-soft);
  line-height:1.9;
}
.lightbox-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:6px;
}
.lightbox-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 24px;
  border-radius:999px;
  background:var(--moss-dark);
  border:1px solid transparent;
  color:#fbf5f1;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:none;
  transition:transform .28s ease,background .28s ease,box-shadow .28s ease;
}
.lightbox-cta:hover{
  transform:translateY(-2px);
  background:#364a58;
  box-shadow:0 16px 28px rgba(45,54,70,.16);
}
.lightbox-cta:focus-visible,
.lightbox-close:focus-visible{
  outline:2px solid var(--gold-light);
  outline-offset:4px;
}
.lightbox-close{
  position:absolute;
  top:28px;
  right:28px;
  z-index:2;
  width:48px;
  height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.56);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 12px 24px rgba(95,81,111,.12);
  transition:transform .28s ease,background .28s ease,border-color .28s ease;
}
.lightbox-close:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.82);
  border-color:rgba(202,164,95,.32);
}
.lightbox-close svg{width:18px;height:18px;color:var(--ink);}

.reveal{opacity:0;transform:translateY(34px);}
.stagger-item{opacity:0;transform:translateY(28px);}

@media (max-width:1180px){
  .page-intro-shell{grid-template-columns:1fr;}
  .gallery-metrics{grid-template-columns:repeat(3, minmax(0,1fr));}
  .gallery-highlight{grid-template-columns:1fr;}
  .gallery-highlight-tags{justify-content:flex-start;}
  .gallery-grid{grid-template-columns:repeat(6, minmax(0,1fr));}
  .gallery-tile{grid-column:span 3;grid-row:span 8;min-height:240px;}
  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(5),
  .gallery-tile:nth-child(6),
  .gallery-tile:nth-child(9){grid-column:span 6;}
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(7),
  .gallery-tile:nth-child(8),
  .gallery-tile:nth-child(10){grid-column:span 3;}
  .lightbox-card{grid-template-columns:1fr;}
  .lightbox-img{min-height:420px;}
}

@media (max-width:980px){
  
  .page-intro,.compare-section,.gallery-section{padding-left:20px;padding-right:20px;}
  .page-intro{padding-top:148px;}
  .page-intro-shell,.section-shell{padding:24px;}
  .page-intro h1{max-width:none;}
  .gallery-metrics{grid-template-columns:1fr;}
  .gallery-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    grid-auto-rows:auto;
  }
  .gallery-tile,
  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(5),
  .gallery-tile:nth-child(6),
  .gallery-tile:nth-child(7),
  .gallery-tile:nth-child(8),
  .gallery-tile:nth-child(9),
  .gallery-tile:nth-child(10){
    grid-column:span 1;
    grid-row:auto;
    min-height:240px;
    aspect-ratio:.9;
  }
}

@media (max-width:640px){
  
  .page-intro-shell,.section-shell{border-radius:24px;}
  .page-intro h1{font-size:clamp(2.4rem, 16vw, 4rem);}
  .intro-actions{flex-direction:column;align-items:stretch;}
  .intro-link,.tab-btn,.chip{width:100%;}
  .tab-row{flex-direction:column;}
  .compare .tag{bottom:16px;padding:0 12px;min-height:30px;}
  .compare .tag.before{left:16px;}
  .compare .tag.after{right:16px;}
  .handle-grip{width:52px;height:52px;}
  .gallery-highlight-copy strong{font-size:28px;}
  .gallery-grid{grid-template-columns:1fr;}
  .gallery-tile,
  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(5),
  .gallery-tile:nth-child(6),
  .gallery-tile:nth-child(7),
  .gallery-tile:nth-child(8),
  .gallery-tile:nth-child(9),
  .gallery-tile:nth-child(10){grid-column:span 1;aspect-ratio:1;}
  .tile-overlay{padding:18px;}
  .tile-label{font-size:1.6rem;}
  .lightbox{padding:16px;}
  .lightbox-close{top:18px;right:18px;}
  .lightbox-info{padding:22px;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal,.stagger-item{opacity:1 !important;transform:none !important;}
  .star{animation:none;opacity:.28;}
  .gallery-tile,.intro-link,.tab-btn,.chip,.lightbox-close,
}

/* Gallery 2026 — editorial luxury redesign. */
body.page-gallery,
body:has(.luna-widget-gallery-intro){
  --gallery-accent:var(--luna-theme-cta-bg, #2d3646);
  --gallery-accent-text:var(--luna-theme-cta-text, #f6f0ea);
  --gallery-paper:rgba(255,252,249,.88);
  --gallery-line:color-mix(in srgb, var(--gallery-accent) 14%, transparent);
  background:
    radial-gradient(circle at 90% 7%, color-mix(in srgb, var(--gallery-accent) 8%, transparent), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(218,188,174,.22), transparent 28rem),
    var(--void);
}

.luna-widget-gallery-intro.page-intro{
  padding-top:150px;
  padding-bottom:24px;
}
.luna-widget-gallery-intro .page-intro-shell{
  position:relative;
  isolation:isolate;
  grid-template-columns:minmax(0,1.16fr) minmax(330px,.84fr);
  gap:0;
  min-height:620px;
  padding:0;
  overflow:hidden;
  border-radius:42px;
  border:1px solid rgba(255,255,255,.84);
  background:var(--gallery-paper);
  box-shadow:0 34px 90px rgba(66,50,57,.11);
}
.luna-widget-gallery-intro .page-intro-shell::after{
  content:"";
  position:absolute;
  width:460px;
  height:460px;
  left:-150px;
  bottom:-250px;
  z-index:-1;
  border-radius:50%;
  border:90px solid color-mix(in srgb, var(--gallery-accent) 6%, transparent);
}
.luna-widget-gallery-intro .page-intro-copy{
  padding:68px clamp(36px,5vw,78px);
  align-items:flex-start;
}
.luna-widget-gallery-intro .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:28px;
  padding:8px 14px;
  border:1px solid var(--gallery-line);
  border-radius:999px;
  background:color-mix(in srgb, var(--gallery-accent) 5%, white);
  color:var(--gallery-accent);
  letter-spacing:0;
}
.luna-widget-gallery-intro .eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gallery-accent);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--gallery-accent) 10%, transparent);
}
.luna-widget-gallery-intro h1{
  max-width:8ch;
  margin:0 0 24px;
  font-family:inherit;
  font-size:clamp(3.6rem,6.7vw,6.8rem);
  font-weight:850;
  line-height:.92;
  letter-spacing:-.065em;
  color:var(--ink);
}
.luna-widget-gallery-intro .page-intro-copy>p{
  max-width:630px;
  font-size:16px;
  line-height:2;
}
.luna-widget-gallery-intro .intro-actions{margin-top:34px;gap:14px;}
.luna-widget-gallery-intro .intro-link{
  min-height:54px;
  padding:0 26px;
  border-color:var(--gallery-line);
  background:#fff;
  color:var(--gallery-accent);
  letter-spacing:0;
  box-shadow:0 10px 25px rgba(48,42,45,.06);
}
.luna-widget-gallery-intro .intro-link::after{content:"←";margin-right:12px;font-size:17px;transition:transform .25s ease;}
.luna-widget-gallery-intro .intro-link:hover::after{transform:translateX(-4px);}
.luna-widget-gallery-intro .intro-link.primary,
.luna-widget-gallery-intro .intro-link.primary:hover{
  border-color:var(--gallery-accent);
  background:var(--gallery-accent);
  color:var(--gallery-accent-text);
  box-shadow:0 18px 34px color-mix(in srgb, var(--gallery-accent) 22%, transparent);
}
.luna-widget-gallery-intro .page-intro-aside{
  position:relative;
  align-content:end;
  gap:0;
  padding:42px;
  overflow:hidden;
  color:var(--gallery-accent-text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gallery-accent) 82%, transparent), var(--gallery-accent)),
    var(--gallery-accent);
}
.luna-widget-gallery-intro .page-intro-aside::before{
  content:"GALLERY";
  position:absolute;
  top:22px;
  left:-14px;
  writing-mode:vertical-rl;
  font-size:74px;
  font-weight:900;
  line-height:1;
  letter-spacing:.08em;
  color:color-mix(in srgb, var(--gallery-accent-text) 7%, transparent);
}
.luna-widget-gallery-intro .intro-note{
  padding:30px;
  border-color:color-mix(in srgb, var(--gallery-accent-text) 14%, transparent);
  background:color-mix(in srgb, var(--gallery-accent-text) 9%, transparent);
  backdrop-filter:blur(18px);
}
.luna-widget-gallery-intro .intro-note-kicker{color:color-mix(in srgb, var(--gallery-accent-text) 72%, transparent);letter-spacing:0;}
.luna-widget-gallery-intro .intro-note strong{font-family:inherit;font-size:29px;font-weight:800;color:var(--gallery-accent-text);}
.luna-widget-gallery-intro .intro-note p{color:color-mix(in srgb, var(--gallery-accent-text) 68%, transparent);}
.luna-widget-gallery-intro .gallery-metrics{grid-template-columns:1fr;margin-top:14px;gap:10px;}
.luna-widget-gallery-intro .metric-card{
  min-height:0;
  padding:16px 18px;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  border:1px solid color-mix(in srgb, var(--gallery-accent-text) 12%, transparent);
  background:color-mix(in srgb, var(--gallery-accent-text) 6%, transparent);
  box-shadow:none;
}
.luna-widget-gallery-intro .metric-card small{min-width:40px;font-family:inherit;font-size:27px;font-weight:850;color:var(--gallery-accent-text);}
.luna-widget-gallery-intro .metric-card span{color:color-mix(in srgb, var(--gallery-accent-text) 66%, transparent);font-size:11px;}

.compare-section{padding-top:34px;}
.compare-section .section-shell{
  padding:clamp(30px,5vw,64px);
  border-radius:42px;
  background:#1f2229;
  color:#fff;
  box-shadow:0 30px 80px rgba(31,34,41,.16);
}
.compare-section .section-heading{max-width:820px;margin-bottom:34px;}
.compare-section .section-kicker{color:color-mix(in srgb, var(--gallery-accent-text) 78%, transparent);letter-spacing:0;}
.compare-section .section-heading h2{font-family:inherit;font-weight:800;color:#fff;letter-spacing:-.035em;}
.compare-section .section-heading p{color:rgba(255,255,255,.6);}
.compare-section .tab-btn{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.66);
  letter-spacing:0;
}
.compare-section .tab-btn.active,
.compare-section .tab-btn.active:hover{
  border-color:var(--gallery-accent);
  background:var(--gallery-accent);
  color:var(--gallery-accent-text);
  box-shadow:0 14px 32px color-mix(in srgb, var(--gallery-accent) 28%, transparent);
}
.compare-section .compare{border-radius:32px;border-color:rgba(255,255,255,.14);box-shadow:0 28px 68px rgba(0,0,0,.3);}
.compare-section .compare .handle{background:var(--gallery-accent-text);}
.compare-section .handle-grip{background:var(--gallery-accent);border-color:color-mix(in srgb, var(--gallery-accent-text) 24%, transparent);color:var(--gallery-accent-text);box-shadow:0 14px 38px rgba(0,0,0,.3);}
.compare-section .compare-caption{color:rgba(255,255,255,.52);}

.luna-widget-gallery-collection.gallery-section{padding-top:84px;}
.luna-widget-gallery-collection .section-heading{max-width:800px;margin-bottom:38px;}
.luna-widget-gallery-collection .section-kicker{padding:7px 13px;border-radius:999px;background:color-mix(in srgb, var(--gallery-accent) 8%, white);color:var(--gallery-accent);letter-spacing:0;}
.luna-widget-gallery-collection .section-heading h2{font-family:inherit;font-weight:850;letter-spacing:-.045em;}
.luna-widget-gallery-collection .gallery-highlight{
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  padding:34px 38px;
  border-radius:30px;
  border:0;
  background:var(--gallery-accent);
  color:var(--gallery-accent-text);
  box-shadow:0 24px 55px color-mix(in srgb, var(--gallery-accent) 18%, transparent);
}
.luna-widget-gallery-collection .gallery-highlight::before{display:none;}
.luna-widget-gallery-collection .gallery-highlight-kicker{color:color-mix(in srgb, var(--gallery-accent-text) 70%, transparent);letter-spacing:0;}
.luna-widget-gallery-collection .gallery-highlight-copy strong{font-family:inherit;font-weight:800;color:var(--gallery-accent-text);}
.luna-widget-gallery-collection .gallery-highlight-copy p{color:color-mix(in srgb, var(--gallery-accent-text) 68%, transparent);}
.luna-widget-gallery-collection .gallery-highlight-tags span{
  min-height:40px;
  border-color:color-mix(in srgb, var(--gallery-accent-text) 18%, transparent);
  background:color-mix(in srgb, var(--gallery-accent-text) 9%, transparent);
  color:var(--gallery-accent-text);
  letter-spacing:0;
}
.luna-widget-gallery-collection .filter-row{
  position:sticky;
  top:94px;
  z-index:8;
  width:max-content;
  max-width:calc(100% - 24px);
  margin:30px auto 38px;
  padding:8px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:999px;
  background:rgba(255,252,249,.78);
  box-shadow:0 15px 40px rgba(62,50,56,.1);
  backdrop-filter:blur(18px) saturate(150%);
}
.luna-widget-gallery-collection .chip{
  min-width:80px;
  min-height:44px;
  border:0;
  background:transparent;
  color:var(--ink-soft);
  letter-spacing:0;
}
.luna-widget-gallery-collection .chip.active,
.luna-widget-gallery-collection .chip.active:hover{
  background:var(--gallery-accent);
  color:var(--gallery-accent-text);
  box-shadow:0 10px 24px color-mix(in srgb, var(--gallery-accent) 24%, transparent);
}
.luna-widget-gallery-collection .gallery-grid{grid-auto-rows:42px;gap:16px;}
.luna-widget-gallery-collection .gallery-tile{
  border:0;
  border-radius:24px;
  box-shadow:0 16px 38px rgba(45,38,42,.09);
}
.luna-widget-gallery-collection .gallery-tile:nth-child(1){grid-column:span 7;grid-row:span 13;}
.luna-widget-gallery-collection .gallery-tile:nth-child(2){grid-column:span 5;grid-row:span 8;}
.luna-widget-gallery-collection .gallery-tile:nth-child(3){grid-column:span 5;grid-row:span 9;}
.luna-widget-gallery-collection .gallery-tile:nth-child(4){grid-column:span 4;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile:nth-child(5){grid-column:span 4;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile:nth-child(6){grid-column:span 4;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile:nth-child(7){grid-column:span 5;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile:nth-child(8){grid-column:span 7;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile:nth-child(9){grid-column:span 6;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile:nth-child(10){grid-column:span 6;grid-row:span 10;}
.luna-widget-gallery-collection .gallery-tile::before{background:linear-gradient(180deg,transparent 35%,rgba(18,20,25,.82) 100%);}
.luna-widget-gallery-collection .gallery-tile::after{
  content:"مشاهده  ↗";
  top:16px;
  right:auto;
  left:16px;
  background:var(--gallery-accent);
  border-color:var(--gallery-accent);
  color:var(--gallery-accent-text);
  letter-spacing:0;
  height: 35px;
}
.luna-widget-gallery-collection .gallery-tile:hover{transform:translateY(-5px) scale(.995);box-shadow:0 28px 54px rgba(45,38,42,.16);}
.luna-widget-gallery-collection .tile-overlay{align-items:flex-start;text-align:right;padding:26px;}
.luna-widget-gallery-collection .tile-icon{background:var(--gallery-accent);border-color:var(--gallery-accent);color:var(--gallery-accent-text);}
.luna-widget-gallery-collection .tile-label{font-family:inherit;font-weight:800;letter-spacing:-.025em;}

.luna-widget-gallery-collection .lightbox{background:rgba(19,20,24,.76);}
.luna-widget-gallery-collection .lightbox-card{border:1px solid rgba(255,255,255,.16);background:#fff;box-shadow:0 40px 100px rgba(0,0,0,.36);}
.luna-widget-gallery-collection .lightbox-info h3{font-family:inherit;font-weight:850;letter-spacing:-.04em;}
.luna-widget-gallery-collection .lightbox-cta,
.luna-widget-gallery-collection .lightbox-cta:hover{
  background:var(--gallery-accent);
  border-color:var(--gallery-accent);
  color:var(--gallery-accent-text);
  box-shadow:0 14px 30px color-mix(in srgb, var(--gallery-accent) 22%, transparent);
}
.luna-widget-gallery-collection .lightbox-close{background:var(--gallery-accent);border-color:var(--gallery-accent);color:var(--gallery-accent-text);}

@media (max-width:1180px){
  .luna-widget-gallery-intro .page-intro-shell{grid-template-columns:1fr;}
  .luna-widget-gallery-intro .page-intro-aside{grid-template-columns:1fr 1fr;align-items:end;gap:16px;}
  .luna-widget-gallery-intro .gallery-metrics{margin:0;}
  .luna-widget-gallery-collection .gallery-highlight{grid-template-columns:1fr;}
  .luna-widget-gallery-collection .gallery-highlight-tags{justify-content:flex-start;}
  .luna-widget-gallery-collection .gallery-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:40px;}
  .luna-widget-gallery-collection .gallery-tile:nth-child(n){grid-column:span 3;grid-row:span 9;}
  .luna-widget-gallery-collection .gallery-tile:nth-child(1),
  .luna-widget-gallery-collection .gallery-tile:nth-child(8){grid-column:span 6;grid-row:span 11;}
}
@media (max-width:700px){
  .luna-widget-gallery-intro.page-intro{padding-top:126px;padding-left:14px;padding-right:14px;}
  .luna-widget-gallery-intro .page-intro-shell{min-height:0;border-radius:28px;}
  .luna-widget-gallery-intro .page-intro-copy{padding:38px 24px;}
  .luna-widget-gallery-intro h1{max-width:9ch;font-size:clamp(3rem,18vw,4.7rem);}
  .luna-widget-gallery-intro .page-intro-aside{grid-template-columns:1fr;padding:24px;}
  .luna-widget-gallery-intro .intro-note strong{font-size:24px;}
  .compare-section,.luna-widget-gallery-collection.gallery-section{padding-left:14px;padding-right:14px;}
  .compare-section .section-shell{padding:28px 16px;border-radius:28px;}
  .luna-widget-gallery-collection.gallery-section{padding-top:58px;}
  .luna-widget-gallery-collection .gallery-highlight{padding:26px 22px;border-radius:24px;}
  .luna-widget-gallery-collection .filter-row{top:78px;width:100%;max-width:100%;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;border-radius:18px;scrollbar-width:none;}
  .luna-widget-gallery-collection .filter-row::-webkit-scrollbar{display:none;}
  .luna-widget-gallery-collection .chip{width:auto;min-width:76px;flex:0 0 auto;}
  .luna-widget-gallery-collection .gallery-grid{grid-template-columns:1fr;grid-auto-rows:auto;gap:14px;}
  .luna-widget-gallery-collection .gallery-tile:nth-child(n){grid-column:1;grid-row:auto;min-height:330px;aspect-ratio:.92;}
  .luna-widget-gallery-collection .gallery-tile:nth-child(3n+1){aspect-ratio:.78;}
}
