.gallery-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:clamp(74px,8vw,118px) 0;
  color:#fff;
  background:
    linear-gradient(115deg,rgba(38,14,58,.98),rgba(91,30,126,.94) 54%,rgba(190,38,131,.88)),
    radial-gradient(circle at 15% 20%,#b86cff,transparent 42%);
}
.gallery-hero::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  opacity:.22;
  background-image:
    linear-gradient(rgba(255,255,255,.075) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.075) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,#000,transparent 88%);
}
.gallery-hero-orb{position:absolute;z-index:-1;border-radius:50%;filter:blur(4px);opacity:.55}
.gallery-hero-orb-one{width:360px;height:360px;right:-80px;top:-120px;background:rgba(255,173,221,.38)}
.gallery-hero-orb-two{width:260px;height:260px;left:42%;bottom:-180px;background:rgba(208,170,255,.34)}
.gallery-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.62fr);gap:clamp(38px,7vw,100px);align-items:center}
.gallery-hero-copy{max-width:830px}
.gallery-kicker{display:inline-flex;align-items:center;gap:10px;margin-bottom:20px;font-size:.78rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#f4dfff}
.gallery-kicker::before{content:"";width:34px;height:2px;border-radius:99px;background:linear-gradient(90deg,#fff,#f7a8d4)}
.gallery-hero h1{max-width:850px;margin:0;font-size:clamp(3rem,6.5vw,6.2rem);line-height:.93;letter-spacing:-.055em;text-wrap:balance}
.gallery-hero-copy>p{max-width:700px;margin:24px 0 0;color:rgba(255,255,255,.82);font-size:clamp(1rem,1.4vw,1.22rem);line-height:1.7}
.gallery-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.gallery-hero-actions .btn.secondary{color:#fff;border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.12);backdrop-filter:blur(12px)}
.gallery-hero-card{position:relative;overflow:hidden;padding:clamp(28px,3vw,42px);border:1px solid rgba(255,255,255,.28);border-radius:34px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.08));box-shadow:0 30px 80px rgba(14,3,24,.3);backdrop-filter:blur(22px)}
.gallery-hero-card::after{content:"";position:absolute;width:170px;height:170px;right:-75px;bottom:-75px;border-radius:50%;background:rgba(247,37,133,.28)}
.gallery-hero-card-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:26px;border-radius:18px;background:rgba(255,255,255,.16);font-size:1.8rem}
.gallery-hero-card strong{display:block;font-family:Poppins,sans-serif;font-size:clamp(3.5rem,6vw,5.6rem);line-height:.9;letter-spacing:-.05em}
.gallery-hero-card span{display:block;margin-top:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;color:#f5dfff}
.gallery-hero-card p{position:relative;z-index:1;margin:22px 0 0;color:rgba(255,255,255,.78);line-height:1.65}
.gallery-section{padding:clamp(66px,8vw,108px) 0;background:linear-gradient(180deg,#fff,#fbf8fd)}
.gallery-section-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:34px}
.gallery-section-head>div:first-child{max-width:760px}
.gallery-section-head h2{margin-top:14px;margin-bottom:12px}
.gallery-section-head p{margin:0;color:#686274;font-size:1.02rem}
.gallery-result-count{display:flex;align-items:baseline;gap:8px;white-space:nowrap;padding:14px 18px;border:1px solid #eadcf8;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(43,45,66,.07)}
.gallery-result-count strong{font-family:Poppins,sans-serif;color:var(--p);font-size:1.55rem}
.gallery-result-count span{font-weight:800;color:#777084;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}
.gallery-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px;padding:10px;border:1px solid #eee4f6;border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(43,45,66,.07)}
.gallery-filter{display:inline-flex;align-items:center;gap:9px;border:0;border-radius:14px;background:transparent;color:#625a6c;padding:.72rem .95rem;font:inherit;font-weight:800;cursor:pointer;transition:.2s ease}
.gallery-filter span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#f1e8f8;color:var(--p);font-size:.75rem}
.gallery-filter:hover{background:#f9f3fd;color:var(--p)}
.gallery-filter.is-active{color:#fff;background:linear-gradient(135deg,var(--p),var(--a));box-shadow:0 10px 24px rgba(123,44,191,.22)}
.gallery-filter.is-active span{background:rgba(255,255,255,.2);color:#fff}
.gallery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px}
.gallery-item{grid-column:span 4;min-width:0}
.gallery-item.is-featured{grid-column:span 6}
.gallery-item[hidden]{display:none!important}
.gallery-card{display:block;width:100%;height:100%;padding:0;overflow:hidden;border:1px solid #eadff3;border-radius:28px;background:#fff;box-shadow:0 15px 42px rgba(43,45,66,.09);text-align:left;font:inherit;color:inherit;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.gallery-card:hover{transform:translateY(-7px);border-color:#d8b9ec;box-shadow:0 26px 60px rgba(62,31,82,.16)}
.gallery-card:focus-visible{outline:4px solid rgba(199,125,255,.42);outline-offset:4px}
.gallery-card-media{position:relative;display:block;overflow:hidden;aspect-ratio:4/3;background:#efe5f5}
.gallery-item.is-featured .gallery-card-media{aspect-ratio:16/10}
.gallery-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.gallery-card:hover img{transform:scale(1.055)}
.gallery-card-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(29,10,40,.38));opacity:.62}
.gallery-card-zoom{position:absolute;right:18px;bottom:18px;display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.48);border-radius:50%;background:rgba(26,10,38,.52);color:#fff;font-size:1.55rem;backdrop-filter:blur(10px);transition:.2s ease}
.gallery-card:hover .gallery-card-zoom{transform:rotate(90deg);background:var(--p)}
.gallery-featured-badge{position:absolute;top:18px;left:18px;padding:.42rem .7rem;border:1px solid rgba(255,255,255,.5);border-radius:999px;background:rgba(48,17,66,.64);color:#fff;font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;backdrop-filter:blur(10px)}
.gallery-card-body{display:block;padding:20px 21px 22px}
.gallery-card-meta{display:flex;justify-content:space-between;gap:14px;margin-bottom:10px;color:#8c8095;font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.gallery-card-meta>span{color:var(--p)}
.gallery-card-body>strong{display:block;font-family:Poppins,sans-serif;font-size:1.25rem;line-height:1.22;color:#302b38}
.gallery-card-description{display:-webkit-box;overflow:hidden;margin-top:10px;color:#69616f;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gallery-empty,.gallery-no-results{padding:58px 24px;border:1px dashed #d8c4e8;border-radius:30px;background:linear-gradient(135deg,#fbf7fe,#fff);text-align:center}
.gallery-empty-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 18px;border-radius:24px;background:linear-gradient(135deg,#ead6ff,#ffdbe9);color:var(--p);font-size:2rem}
.gallery-empty h3,.gallery-no-results h3{margin:0 0 12px}
.gallery-empty p,.gallery-no-results p{max-width:650px;margin:0 auto;color:#716a78}
.gallery-alert{padding:18px 20px;border:1px solid #ffd0d0;border-radius:18px;background:#fff4f4;color:#9b1c1c;font-weight:700}
.gallery-lightbox{position:fixed;z-index:150;inset:0;display:grid;place-items:center;padding:clamp(12px,3vw,34px)}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox-backdrop{position:absolute;inset:0;background:rgba(15,7,20,.9);backdrop-filter:blur(14px)}
.gallery-lightbox-panel{position:relative;z-index:1;width:min(1180px,100%);max-height:calc(100dvh - 34px);overflow:auto;border:1px solid rgba(255,255,255,.2);border-radius:30px;background:#201527;box-shadow:0 40px 120px rgba(0,0,0,.55);color:#fff}
.gallery-lightbox figure{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.55fr);margin:0;min-height:min(720px,calc(100dvh - 70px))}
.gallery-lightbox-image-wrap{display:grid;place-items:center;min-height:420px;background:#100b13}
.gallery-lightbox-image-wrap img{display:block;width:100%;height:100%;max-height:calc(100dvh - 70px);object-fit:contain}
.gallery-lightbox figcaption{align-self:end;padding:clamp(28px,4vw,52px)}
.gallery-lightbox-meta{display:flex;gap:12px;flex-wrap:wrap;color:#ddbbea;font-size:.73rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.gallery-lightbox h2{margin:16px 0 14px;font-size:clamp(1.8rem,3vw,3rem)}
.gallery-lightbox p{margin:0;color:rgba(255,255,255,.72);line-height:1.75}
.gallery-lightbox-close{position:absolute;z-index:4;top:16px;right:16px;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(20,8,28,.65);color:#fff;font-size:2rem;line-height:1;cursor:pointer;backdrop-filter:blur(10px)}
.gallery-lightbox-nav{position:absolute;z-index:3;top:50%;display:grid;place-items:center;width:50px;height:64px;border:1px solid rgba(255,255,255,.24);border-radius:18px;background:rgba(25,10,35,.58);color:#fff;font-size:2.4rem;cursor:pointer;transform:translateY(-50%);backdrop-filter:blur(10px)}
.gallery-lightbox-prev{left:16px}.gallery-lightbox-next{right:16px}
.gallery-lightbox-nav:disabled{opacity:.28;cursor:not-allowed}
body.gallery-lightbox-open{overflow:hidden}
@media(max-width:980px){
  .gallery-hero-grid{grid-template-columns:1fr}.gallery-hero-card{max-width:620px}
  .gallery-item,.gallery-item.is-featured{grid-column:span 6}
  .gallery-lightbox figure{grid-template-columns:1fr;min-height:0}.gallery-lightbox-image-wrap{min-height:52vh}.gallery-lightbox-image-wrap img{max-height:62vh}.gallery-lightbox figcaption{align-self:auto}
}
@media(max-width:680px){
  .gallery-hero{padding:62px 0}.gallery-hero h1{font-size:clamp(2.7rem,13vw,4.4rem)}
  .gallery-hero-actions{display:grid}.gallery-hero-actions .btn{width:100%}
  .gallery-section-head{display:block}.gallery-result-count{display:inline-flex;margin-top:20px}
  .gallery-toolbar{flex-wrap:nowrap;overflow-x:auto;padding:8px;border-radius:18px;scrollbar-width:thin}.gallery-filter{flex:0 0 auto}
  .gallery-grid{gap:16px}.gallery-item,.gallery-item.is-featured{grid-column:1/-1}.gallery-card,.gallery-hero-card{border-radius:24px}
  .gallery-card-meta{display:grid;gap:4px}.gallery-card-meta time{font-size:.68rem}
  .gallery-lightbox{padding:0}.gallery-lightbox-panel{max-height:100dvh;height:100dvh;border:0;border-radius:0}.gallery-lightbox-image-wrap{min-height:56vh}.gallery-lightbox figcaption{padding:24px 22px 32px}.gallery-lightbox-nav{top:43%;width:44px;height:56px}.gallery-lightbox-prev{left:8px}.gallery-lightbox-next{right:8px}
}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-card-media img,.gallery-card-zoom{transition:none!important}}
