/* Nordic gallery — ported from the signed-off live /gallery/ prototype.
   Dark showpiece page: hero slideshow, sticky filter bar, mosaic/single grid,
   lightbox viewer and custom cursor (viewer + cursor are built by nordic-gallery.js). */

body.n-page-dark { background: #13152A; }
body.n-page-dark ::selection { background: #E7D3B6; color: #13152A; }
.n-gal { color: #FFFFFF; overflow-x: clip; }
.n-gal em { font-style: italic; }

/* ---------- hero ---------- */
.n-gal__hero { position: relative; min-height: 100vh; padding: clamp(120px,14vh,150px) 0 clamp(40px,6vh,64px); background: #13152A; overflow: hidden; }
.n-gal__glow { position: absolute; left: -20%; bottom: -40%; width: 90vw; height: 90vw; max-width: 1200px; max-height: 1200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212,176,136,.16), rgba(212,176,136,0)); pointer-events: none; }
.n-gal__herowrap { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px,4vw,56px); display: flex; flex-wrap: wrap; gap: 48px clamp(40px,6vw,104px); align-items: stretch; }
.n-gal__herocol { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; min-width: 0; }
.n-gal__herocol--media { flex: 1.1 1 520px; justify-content: flex-start; gap: 18px; }
.n-gal__herotop { display: flex; flex-direction: column; gap: 30px; }
.n-gal__eyebrow { color: #D4B088; }
.n-gal__h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(56px,7.2vw,124px); line-height: .92; letter-spacing: -.015em; }
.n-gal__mask { display: block; overflow: hidden; padding-bottom: .1em; }
.n-gal__mask > * { display: block; }
.n-gal__h1 em { color: #E7D3B6; }
.n-gal__lead { margin: 0; max-width: 480px; font-size: clamp(16px,1.25vw,19px); line-height: 1.6; font-weight: 300; color: #D9D7E3; text-wrap: pretty; }
.n-gal__herobtns { display: flex; flex-wrap: wrap; gap: 12px; }
.n-gal__explore { display: inline-flex; align-items: center; gap: 12px; }
.n-btn--ghostlight { display: inline-flex; align-items: center; justify-content: center; padding: 20px 30px; background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.45); font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.n-btn--ghostlight:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }
.n-gal__herofoot { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.n-gal__footlabel { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #9A9CB0; }
.n-gal__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.n-gal__logos img { width: auto; filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .75; }

.n-gal__slideframe { position: relative; width: 100%; aspect-ratio: 4/5; max-height: 76vh; min-height: 420px; overflow: hidden; background: #1E2140; }
.n-gal__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.8s cubic-bezier(.4,0,.2,1); }
.n-gal__slideshade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, rgba(19,21,42,0), rgba(19,21,42,.82)); pointer-events: none; }
.n-gal__slideopen { position: absolute; inset: 0; background: transparent; border: 0; cursor: zoom-in; }
.n-gal__slidecap { position: absolute; left: clamp(20px,2.4vw,32px); right: clamp(20px,2.4vw,32px); bottom: clamp(20px,2.4vw,30px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; }
.n-gal__slideeyebrow { display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #D4B088; margin-bottom: 8px; }
.n-gal__slidename { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,2.6vw,38px); line-height: 1; }
.n-gal__slidetype { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #D9D7E3; text-align: right; }
.n-gal__bars { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.n-gal__bar { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; background: none; border: 0; cursor: pointer; text-align: left; color: #9A9CB0; transition: color .4s; }
.n-gal__bar.is-active { color: #FFFFFF; }
.n-gal__bartrack { position: relative; display: block; width: 100%; height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.n-gal__barfill { position: absolute; inset: 0; background: #E7D3B6; transform: scaleX(0); transform-origin: left center; }
.n-gal__barnum { font-size: 11px; font-weight: 500; letter-spacing: .16em; }

/* ---------- collection ---------- */
.n-gal__collection { position: relative; background: #13152A; padding: 0 0 clamp(80px,10vw,144px); }
.n-gal__barwrap { position: sticky; top: 84px; z-index: 40; background: rgba(19,21,42,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
body.admin-bar .n-gal__barwrap { top: 116px; }
@media (max-width: 782px) { body.admin-bar .n-gal__barwrap { top: 84px; } }
.n-gal__barin { max-width: 1440px; margin: 0 auto; padding: 14px clamp(20px,4vw,56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.n-gal__filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.n-gal__filters::-webkit-scrollbar { display: none; }
.n-gal__filter { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 18px; background: transparent; color: #D9D7E3; border: 1px solid rgba(255,255,255,.2); font: 400 14px/1 'Jost', sans-serif; cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.n-gal__filter.is-active { background: #F5F2ED; color: #13152A; border-color: #F5F2ED; }
.n-gal__count { font-size: 11px; letter-spacing: .06em; opacity: .7; }
.n-gal__barright { display: flex; align-items: center; gap: 24px; }
.n-gal__total { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9A9CB0; white-space: nowrap; }
.n-gal__views { display: flex; gap: 18px; }
.n-gal__view { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid transparent; color: #9A9CB0; font: 500 12px/1 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .3s, border-color .3s; }
.n-gal__view.is-active { color: #FFFFFF; border-bottom-color: #E7D3B6; }

.n-gal__gridwrap { max-width: 1440px; margin: 0 auto; padding: clamp(40px,5vw,72px) clamp(20px,4vw,56px) 0; }
.n-gal__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 16px; row-gap: clamp(36px,4vw,56px); align-items: start; }
.n-gal__cell { margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.n-gal__cell[hidden] { display: none !important; }
.n-gal__tile { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #1E2140; cursor: zoom-in; aspect-ratio: 4/5; }
.n-gal.is-fine .n-gal__tile { cursor: none; }
.n-gal__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.n-gal__tile:hover img { transform: scale(1.045); }
.n-gal__cell figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.n-gal__capleft { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.n-gal__num { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: #D4B088; }
.n-gal__name { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px,2vw,30px); line-height: 1.1; }
.n-gal__type { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #B8BACB; }

.n-gal__ctacard { align-self: stretch; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: clamp(28px,3.4vw,52px); background: #F5F2ED; color: #13152A; }
.n-gal__ctacard[hidden] { display: none !important; }
.n-gal__ctaeyebrow { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #8A5E36; }
.n-gal__ctabody { display: flex; flex-direction: column; gap: 18px; }
.n-gal__ctatitle { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(36px,3.4vw,56px); line-height: 1; letter-spacing: -.01em; }
.n-gal__ctatitle em { color: #2D3263; }
.n-gal__ctatext { max-width: 380px; font-size: 16px; line-height: 1.6; color: #4E5064; }
.n-gal__ctabtns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.n-gal__ctabtn { padding: 18px 26px; background: #2D3263; color: #FFFFFF; border: 1px solid #2D3263; font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s; }
.n-gal__ctabtn:hover { background: #1F2350; }
.n-gal__ctatel { font-size: 15px; color: #2D3263; }

.n-gal__more { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: clamp(56px,7vw,96px); }
.n-gal__more[hidden] { display: none !important; }
.n-gal__morelabel { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9A9CB0; }
.n-gal__morebtn { display: inline-flex; align-items: center; gap: 14px; padding: 20px 34px; background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.4); font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.n-gal__morebtn:hover { background: #F5F2ED; color: #13152A; }

/* ---------- closing CTA ---------- */
.n-gal__end { background: #F5F2ED; color: #13152A; padding: clamp(80px,10vw,144px) 0; }
.n-gal__endwrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px,4vw,56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 48px 64px; }
.n-gal__endmain { flex: 1 1 520px; max-width: 720px; display: flex; flex-direction: column; gap: 28px; }
.n-gal__end .n-eyebrow { color: #8A5E36; }
.n-gal__endh2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(48px,5.6vw,96px); line-height: .96; letter-spacing: -.01em; }
.n-gal__endh2 em { color: #2D3263; }
.n-gal__endtext { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: #4E5064; text-wrap: pretty; }
.n-gal__endbtns { display: flex; flex-wrap: wrap; gap: 12px; }
.n-gal__endbtn { padding: 20px 30px; background: #2D3263; color: #FFFFFF; border: 1px solid #2D3263; font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s; }
.n-gal__endbtn:hover { background: #1F2350; }
.n-gal__endghost { display: inline-flex; align-items: center; padding: 20px 30px; border: 1px solid rgba(19,21,42,.3); color: #13152A; font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; transition: background .3s, color .3s; }
.n-gal__endghost:hover { background: #13152A; color: #FFFFFF; }
.n-gal__endpaths { flex: 0 1 440px; display: flex; flex-direction: column; gap: 14px; }
.n-gal__pathlabel { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #5B5D70; }
.n-gal__pathbtn { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; background: transparent; color: #13152A; border: 1px solid rgba(19,21,42,.22); cursor: pointer; text-align: left; font-family: 'Jost', sans-serif; transition: background .3s, border-color .3s; }
.n-gal__pathbtn:hover { background: #FBF9F6; border-color: #2D3263; }
.n-gal__pathbtn > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.n-gal__patht { font-family: 'Cormorant Garamond', serif; font-size: 24px; line-height: 1; }
.n-gal__paths { font-size: 13px; color: #5B5D70; }
.n-gal__endtel { margin-top: 6px; font-size: 15px; color: #2D3263; }

/* ---------- custom cursor ---------- */
.n-gal-cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 104px; height: 104px; border-radius: 50%; background: #F5F2ED; color: #13152A; display: none; align-items: center; justify-content: center; font: 500 11px/1 'Jost', sans-serif; letter-spacing: .22em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: scale(.3); }
.n-gal.is-fine .n-gal-cursor { display: flex; }

/* ---------- lightbox viewer (built by JS) ---------- */
.n-lb { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: rgba(9,10,22,.97); color: #FFFFFF; }
.n-lb__top { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px clamp(16px,3vw,40px); }
.n-lb__counter { display: flex; align-items: baseline; gap: 10px; font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: 1; }
.n-lb__counter small { font-size: 16px; color: #9A9CB0; }
.n-lb__ctx { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #9A9CB0; }
.n-lb__close { display: flex; align-items: center; gap: 12px; padding: 12px 0 12px 12px; background: none; border: 0; color: #FFFFFF; font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.n-lb__close span { font: 300 26px/1 'Jost', sans-serif; letter-spacing: 0; }
.n-lb__stage { flex: 1 1 auto; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(16px,7vw,128px); }
.n-lb__img { display: block; max-width: 100%; max-height: calc(100dvh - 250px); width: auto; height: auto; object-fit: contain; box-shadow: 0 60px 120px -60px rgba(0,0,0,.8); }
@media (max-width: 600px) { .n-lb__img { max-height: calc(100dvh - 210px); } }
.n-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(19,21,42,.4); border: 1px solid rgba(255,255,255,.22); color: #FFFFFF; font: 300 22px/1 'Jost', sans-serif; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.n-lb__nav:hover { background: #F5F2ED; color: #13152A; border-color: #F5F2ED; }
.n-lb__prev { left: clamp(4px,1.6vw,28px); }
.n-lb__next { right: clamp(4px,1.6vw,28px); }
.n-lb__bottom { flex: none; display: flex; flex-direction: column; gap: 18px; padding: 20px clamp(16px,3vw,40px) 22px; }
.n-lb__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.n-lb__captype { display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #D4B088; margin-bottom: 8px; }
.n-lb__capname { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,3vw,42px); line-height: 1; }
.n-lb__capctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.n-lb__phone { font-size: 14px; color: #E7D3B6; }
.n-lb__phone:hover { color: #FFFFFF; }
.n-lb__cta { padding: 17px 24px; background: #F5F2ED; color: #13152A; border: 0; font: 500 12px/1 'Jost', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s; }
.n-lb__cta:hover { background: #FFFFFF; }
.n-lb__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.n-lb__thumbs::-webkit-scrollbar { display: none; }
.n-lb__thumb { flex: none; width: 76px; height: 56px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: #1E2140; cursor: pointer; opacity: .42; transition: opacity .4s, border-color .4s; }
.n-lb__thumb.is-active { opacity: 1; border-bottom-color: #E7D3B6; }
.n-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* dark-page floating CTA stands out */
body.n-page-dark .n-float { background: #F5F2ED; color: #13152A; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
	.n-gal__slide, .n-gal__tile img { transition: none; }
	.n-gal-cursor { display: none !important; }
}
