/* Neon Portfolio Widget (Elementor) */

.npw-wrap { width: 100%; }

/* Filters */
.npw-filters-wrap{
  display:flex;
  width:100%;
}

.npw-filters{
  margin: 0;
  display:inline-flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.npw-filters--fit{
  width: fit-content !important;
  max-width: 100%;
  display: inline-flex;
}

.npw-filter{
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.npw-filter:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
}
.npw-filter.is-active{
  background: #ff6a00;
  border-color: #ff6a00;
  color:#111;
}

/* Grid base */
.npw-grid{
  display:grid;
  gap: 18px;
}

/* Style 2 grid */
.npw-style-2 .npw-grid{
  grid-template-columns: repeat(var(--npw-cols-d, 3), minmax(0, 1fr));
}
@media (max-width: 1024px){
  .npw-style-2 .npw-grid{ grid-template-columns: repeat(var(--npw-cols-t, 2), minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .npw-style-2 .npw-grid{ grid-template-columns: repeat(var(--npw-cols-m, 1), minmax(0, 1fr)); }
}

/* Card base */
.npw-card{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius: 14px;
  text-decoration:none;
  transform: translateZ(0);
}

/* Default aspect ratio for style2 only */
.npw-style-2 .npw-card{ aspect-ratio: 16/9; }

.npw-media{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  filter: grayscale(100%);
  transition: transform .35s ease, filter .35s ease;
}

.npw-card:hover .npw-media{
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* Title bottom */
.npw-title{
  position:absolute;
  left:18px; bottom:18px;
  right:18px;
  color:#fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-shadow: 0 8px 22px rgba(0,0,0,.55);
}

/* Category pill top-left (hover only) */
.npw-pill{
  position:absolute;
  top:14px; left:14px;
  background:#ff6a00;
  color:#111;
  font-weight:700;
  font-size: 12px;
  letter-spacing:.6px;
  padding: 6px 10px;
  border-radius: 8px;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.npw-card:hover .npw-pill{
  opacity: 1;
  transform: translateY(0);
}

/* Icon top-right (circle + arrow like reference) */
.npw-arrow{
  position:absolute;
  top:14px; right:14px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.npw-arrow svg{ display:block; }
.npw-arrow svg path{ fill: #111; }
.npw-card:hover .npw-arrow{
  opacity: 1;
  transform: translateY(0);
}

/* Animated filtering */
.npw-card.npw-hiding{
  opacity: 0;
  transform: scale(.98);
  pointer-events: none;
}
.npw-card.npw-showing{
  opacity: 1;
  transform: scale(1);
}
.npw-wrap.npw-animate .npw-card{
  transition: opacity .22s ease, transform .22s ease;
}
.npw-card.is-hidden{
  display:none !important;
}


/* Active tab should not get hover effects */
.npw-filter.is-active:hover{
  transform: none;
  border-color: inherit;
}


/* Variable-driven filter theme (supports external container) */
.npw-filters{
  --npw-filter-text: var(--npw-filter-text, #fff);
}
.npw-filters .npw-filter{ color: var(--npw-filter-text, #fff); border-color: var(--npw-filter-border, rgba(255,255,255,.25)); padding: var(--npw-filter-pad, 10px 16px); }
.npw-filters .npw-filter:hover{ background: var(--npw-filter-hover-bg, transparent); color: var(--npw-filter-hover-text, inherit); border-color: var(--npw-filter-hover-border, currentColor); }
.npw-filters .npw-filter.is-active{ background: var(--npw-filter-active-bg, #ff6a00); color: var(--npw-filter-active-text, #111); border-color: var(--npw-filter-active-border, transparent); }
.npw-filters .npw-filter.is-active:hover{ background: var(--npw-filter-active-bg, #ff6a00); color: var(--npw-filter-active-text, #111); border-color: var(--npw-filter-active-border, transparent); transform:none; }

.npw-external-filters-host{ width: 100%; }

/* Neon Media Showcase */

.npw-showcase{
  --npw-media-w: 55%;
  --npw-list-w: 1fr;
  --npw-media-h: 520px;
  --npw-list-maxh: var(--npw-media-h);
  --npw-sticky-top: 0px;
  --npw-hover-shift: 6px;
  display: grid;
  grid-template-columns: var(--npw-media-w) var(--npw-list-w);
  gap: 24px;
  align-items: start;
}
.npw-showcase-media{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: var(--npw-media-h);
  min-height: var(--npw-media-h);
  background: rgba(255,255,255,0.03);
}
.npw-showcase-img{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  opacity: 1;
  transition: transform .5s ease, opacity .25s ease;
}
.npw-showcase-media.is-fading .npw-showcase-img{
  opacity: 0;
  transform: scale(1.02);
}
.npw-showcase-label{
  position:absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.55);
  border-left: 3px solid rgba(255,255,255,0.9);
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1;
}
.npw-showcase-list{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.npw-showcase[data-scroll="1"] .npw-showcase-list{
  max-height: var(--npw-list-maxh);
  overflow-y: auto;
  overscroll-behavior: auto;
  padding-right: 6px;
}

.npw-showcase[data-scroll="1"] .npw-showcase-list{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
}
.npw-showcase[data-scroll="1"] .npw-showcase-list::-webkit-scrollbar{ width: 8px; }
.npw-showcase[data-scroll="1"] .npw-showcase-list::-webkit-scrollbar-track{ background: rgba(255,255,255,0.08); border-radius: 8px; }
.npw-showcase[data-scroll="1"] .npw-showcase-list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.35); border-radius: 8px; }
.npw-showcase[data-scroll="1"] .npw-showcase-list::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.55); }

.npw-showcase[data-scroll="1"] .npw-showcase-media{
  position: sticky;
  top: var(--npw-sticky-top);
}
.npw-showcase-heading{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.npw-showcase-item{
  width: 100%;
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.npw-showcase-item:hover{
  transform: translateX(var(--npw-hover-shift));
}
.npw-showcase-item.is-active{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}
.npw-showcase-text{
  flex: 1 1 auto;
  min-width: 0;
}
.npw-showcase-title{
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.npw-showcase-desc{
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.45;
}
.npw-showcase-num{
  flex: 0 0 auto;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
  margin-left: 10px;
  padding-top: 2px;
}
@media (max-width: 767px){
  .npw-showcase[data-stack="1"]{
    grid-template-columns: 1fr;
  }
  .npw-showcase[data-stack="1"] .npw-showcase-media{
    height: 240px;
    min-height: 240px;
    position: relative;
    top: auto;
  }
  .npw-showcase[data-stack="1"][data-scroll="1"] .npw-showcase-list{
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}


/* Neon Horizontal Gallery */

.npw-hg{ width:100%; }
.npw-hg-track{
  display:flex;
  align-items:stretch;
  gap:18px;
  overflow-x: scroll; /* force scrollbar track */
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--npw-sb-thumb, rgba(255,106,0,.85)) var(--npw-sb-track, rgba(255,255,255,.12));
}
.npw-hg-track::-webkit-scrollbar{ height: var(--npw-sb-h, 10px); }
.npw-hg-track::-webkit-scrollbar-track{
  background: var(--npw-sb-track, rgba(255,255,255,.12));
  border-radius: 999px;
}
.npw-hg-track::-webkit-scrollbar-button{ width:0; height:0; display:none; background:transparent; }
.npw-hg-track::-webkit-scrollbar-button:horizontal:decrement{ display:none; }
.npw-hg-track::-webkit-scrollbar-button:horizontal:increment{ display:none; }
.npw-hg-track::-webkit-scrollbar-corner{ background:transparent; }
.npw-hg-track::-webkit-scrollbar-thumb{
  background: var(--npw-sb-thumb, rgba(255,106,0,.85));
  border-radius: 999px;
}
.npw-hg-track::-webkit-scrollbar-button{ display:none; width:0; height:0; }
.npw-hg-track::-webkit-scrollbar-thumb:hover{
  background: var(--npw-sb-thumb, rgba(255,106,0,.95));
}
.npw-hg-item{
  flex: 0 0 auto;
  width: 420px;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}
.npw-hg-link{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  border-radius: inherit;
  line-height:0;
}
.npw-hg-link:focus{ outline:none; }
.npw-hg-link::-moz-focus-inner{ border:0; padding:0; }
.npw-hg-link img{ display:block; }
.npw-hg-item img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* no stretching, crops to fit */
  transform: scale(1);
  transition: transform .35s ease;
  display:block;
}
.npw-hg-item:hover img{
  transform: scale(1.06);
}


/* Neon Image Card */

.npw-imgcard{
  position: relative;
  display:block;
  width:100%;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  overflow:hidden;
  text-decoration:none !important;
  color: inherit;
}
.npw-imgcard-img{
  z-index:1;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .45s ease;
}
.npw-imgcard-ov{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}
.npw-imgcard-ov::before,
.npw-imgcard-ov::after{
  content:'';
  position:absolute;
  inset:0;
  transition: opacity .45s ease;
}
.npw-imgcard-ov::before{
  background: linear-gradient(to top, var(--npw-ov, rgba(0,0,0,.75)) 0%, rgba(0,0,0,0) var(--npw-ovp, 70%));
  opacity: 1;
}
.npw-imgcard-ov::after{
  background: linear-gradient(to top, var(--npw-ovh, rgba(0,0,0,.55)) 0%, rgba(0,0,0,0) var(--npw-ovp, 70%));
  opacity: 0;
}
.npw-imgcard:hover .npw-imgcard-ov::after{
  opacity: 1;
}
.npw-imgcard-content{
  position:absolute;
  left:26px;
  right:26px;
  bottom:22px;
  z-index:2;
}
.npw-imgcard-title{
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 34px;
}
.npw-imgcard-sub{
  display:flex;
  flex-wrap:wrap;
  gap: var(--npw-sep-gap, 10px);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-items:center;
}
.npw-imgcard-sub span{
  color: rgba(180,200,255,.95);
  position: relative;
}
.npw-imgcard-sub span:not(:last-child)::after{
  content: '•';
  display:inline-block;
  margin-left: var(--npw-sep-gap, 10px);
  color: rgba(180,200,255,.65);
  transform: translateY(-1px);
}
.npw-imgcard-ico{
  position:absolute;
  right: 20px;
  bottom: 20px;
  width:46px;
  height:46px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  z-index:3;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.npw-imgcard:hover .npw-imgcard-ico{
  transform: translateX(2px);
}
.npw-imgcard-ico svg{
  width:18px;
  height:18px;
}


/* Neon Post Navigation */
.npw-post-nav{
  display:flex;
  gap: 28px;
  width: 100%;
}
.npw-post-nav__item{
  flex: 1 1 0;
  display:block;
  text-decoration:none;
  padding: 36px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  min-height: 132px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.npw-post-nav__item:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.30);
  transform: translateY(-2px);
}
.npw-post-nav__subtitle{
  color: #ff6a00;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 16px;
}
.npw-post-nav__title{
  color:#fff;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  max-width: 28ch;
}
.npw-post-nav__placeholder{ opacity: .55; }
@media (max-width: 1024px){
  .npw-post-nav{ flex-direction: column; }
  .npw-post-nav__title{ font-size: 28px; }
}

/* Neon Back Button */
.npw-back-button{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
  border: 1px solid transparent;
}
.npw-back-button:hover{
  transform: translateY(-1px);
}
.npw-back-button-text{
  display: inline-block;
}
.npw-back-button-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.npw-back-button-icon i,
.npw-back-button-icon svg{
  width: 1em;
  height: 1em;
  display: inline-block;
}
.npw-back-button-icon svg{
  fill: currentColor;
}
.npw-back-button-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Style 2 mobile/legacy fallback: ensure cards have height even if aspect-ratio isn't supported */
@supports not (aspect-ratio: 1 / 1){
  .npw-style-2 .npw-card::before{
    content:'';
    display:block;
    padding-top:56.25%; /* 16:9 */
    pointer-events:none;
  }
}

/* Horizontal Gallery arrows */
.npw-hg{ position: relative; }
.npw-hg-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
  opacity: .9;
  backdrop-filter: blur(10px);
}
.npw-hg-arrow:hover{ opacity: 1; border-color: rgba(255,255,255,.30); }
.npw-hg-arrow:active{ transform: translateY(-50%) scale(.98); }
.npw-hg-arrow.is-prev{ left: 10px; }
.npw-hg-arrow.is-next{ right: 10px; }
@media (max-width: 640px){
  .npw-hg-arrow.is-prev{ left: 6px; }
  .npw-hg-arrow.is-next{ right: 6px; }
}


/* NPW Lightbox */
.npw-lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.npw-lightbox.is-open{ display:flex; }
.npw-lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.82);
}
.npw-lightbox__content{
  position: relative;
  z-index: 2;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
}
.npw-lightbox__img{
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  background: rgba(255,255,255,.04);
}
.npw-lightbox__btn{
  position: absolute;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
  opacity: .92;
  backdrop-filter: blur(10px);
  font-size: 26px;
  line-height: 1;
}
.npw-lightbox__btn:hover{ opacity: 1; border-color: rgba(255,255,255,.30); }
.npw-lightbox__btn:active{ transform: scale(.98); }
.npw-lightbox__close{
  top: 16px;
  right: 16px;
  font-size: 28px;
}
.npw-lightbox__prev{ left: 16px; top: 50%; transform: translateY(-50%); }
.npw-lightbox__next{ right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px){
  .npw-lightbox{ padding: 16px; }
  .npw-lightbox__prev{ left: 10px; }
  .npw-lightbox__next{ right: 10px; }
  .npw-lightbox__btn{ width: 42px; height: 42px; }
}


/* Neon Portfolio Navigation */
.npw-portnav{
  display:block;
  width:100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  text-decoration:none;
  color: inherit;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
}
.npw-portnav__inner{
  width:100%;
  height:100%;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap: 16px;
}
.npw-portnav__subtitle{
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
}
.npw-portnav__title{
  font-size: 72px;
  line-height: .88;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  transition: transform .25s ease, text-align .25s ease;
}
.npw-portnav__btn{
  display:flex;
  align-items:center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
  margin-top: 10px;
}
.npw-portnav.has-btn:hover .npw-portnav__btn{ opacity: 1; transform: translateY(0); }
.npw-portnav:hover .npw-portnav__title{
  transform: translateY(4px);
}
.npw-portnav:hover .npw-portnav__subtitle{
  transform: translateY(-2px);
}
.npw-portnav__icon{
  display:inline-flex;
  color: #ff6a00; /* default neon orange */
}
.npw-portnav__icon svg{ display:block; }
@media (max-width: 767px){
  .npw-portnav__title{ font-size: 46px; }
  .npw-portnav__inner{ gap: 12px; }
}

/* Portfolio Nav alignment modifiers */
.npw-portnav.npw-align-idle-left .npw-portnav__inner{ align-items:flex-start; text-align:left; }
.npw-portnav.npw-align-idle-center .npw-portnav__inner{ align-items:center; text-align:center; }
.npw-portnav.npw-align-idle-right .npw-portnav__inner{ align-items:flex-end; text-align:right; }

.npw-portnav.npw-align-hover-left:hover .npw-portnav__inner{ align-items:flex-start; text-align:left; }
.npw-portnav.npw-align-hover-center:hover .npw-portnav__inner{ align-items:center; text-align:center; }
.npw-portnav.npw-align-hover-right:hover .npw-portnav__inner{ align-items:flex-end; text-align:right; }
