/* Main */
.vxd-pg{
  --vxd-pg-fg:#111111;
  --vxd-pg-muted:#8B8FA1;
  --vxd-pg-border:#dddddd;
  color:var(--vxd-pg-fg);
  width:100%;
  font-family:"Manrope", sans-serif;
}

/* Filters */
.vxd-pg-filters{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:28px;
  margin:0 0 42px;
  padding-bottom:16px;
  border-bottom:1px solid var(--vxd-pg-border);
  position:relative;
  z-index:20;
}

.vxd-pg-filter{
  all:unset;
  cursor:pointer;
  position:relative;
  display:inline-flex;
  align-items:center;
  color:var(--vxd-pg-muted) !important;
  font-family:"Manrope", sans-serif !important;
  font-size:18px;
  font-weight:500 !important;
  line-height:1.5em !important;
  letter-spacing:-0.5px !important;
  background:transparent !important;
  white-space:nowrap !important;
}

.vxd-pg-filter:hover,
.vxd-pg-filter.is-active{
  color:#111111 !important;
}

.vxd-pg-filter::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-17px;
  width:0;
  height:2px;
  background:#111111;
  transition:width .25s ease;
}

.vxd-pg-filter:hover::after,
.vxd-pg-filter.is-active::after{
  width:100%;
}

/* Cards */
.vxd-pg-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.vxd-pg-card,
.vxd-pg-card-trigger,
.vxd-pg-media{
  border-radius:0 !important;
  overflow:hidden !important;
  background:transparent !important;
}

.vxd-pg-card{
  display:block;
}

.vxd-pg-card.is-hidden{
  display:none !important;
}

.vxd-pg-card-trigger{
  all:unset;
  position:relative;
  display:block;
  width:100%;
  cursor:pointer;
}

.vxd-pg-media{
  position:relative;
  width:100%;
  aspect-ratio:1920 / 1400;
  height:auto !important;
}

.vxd-pg-img,
.vxd-pg-video{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:top center !important;
  display:block !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  transition:opacity .35s ease, transform .4s ease;
}

.vxd-pg-video{
  opacity:0;
  pointer-events:none;
}

.vxd-pg-card.is-playing .vxd-pg-video{
  opacity:1;
}

.vxd-pg-card.is-playing .vxd-pg-img{
  opacity:0;
}

.vxd-pg-card:hover .vxd-pg-img,
.vxd-pg-card:hover .vxd-pg-video{
  transform:scale(1.02);
}

/* Overlay */
.vxd-pg-card-trigger::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
  background:linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 38%, rgba(0,0,0,0) 78%);
  opacity:0;
  transition:opacity .28s ease;
  pointer-events:none;
}

.vxd-pg-card:hover .vxd-pg-card-trigger::after{
  opacity:1;
}

.vxd-pg-card-info{
  position:absolute;
  left:24px;
  right:24px;
  bottom:24px;
  z-index:10;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .28s ease, transform .28s ease;
  pointer-events:none;
}

.vxd-pg-card:hover .vxd-pg-card-info{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.vxd-pg-title{
  display:block;
  max-width:100%;
  margin:0;
  padding:0 !important;
  background:transparent !important;
  color:#ffffff !important;
  font-size:24px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-0.04em;
  text-shadow:0 8px 28px rgba(0,0,0,.45);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.vxd-pg-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:100%;
}

.vxd-pg-card-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.32);
  background:rgba(255,255,255,.12);
  color:#ffffff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.vxd-pg-card-tag:hover{
  background:#ffffff;
  color:#111111;
  transform:translateY(-1px);
}

/* Modal */
.vxd-pg-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  font-family:"Manrope", sans-serif;
}

.vxd-pg-modal.is-open{
  display:flex;
}

.vxd-pg-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
}

.vxd-pg-modal-panel{
  position:relative;
  z-index:1;
  width:min(1180px,94vw);
  max-height:90vh;
  overflow:auto;
  background:#ffffff;
  color:#111111;
  border-radius:20px;
  box-shadow:0 35px 100px rgba(0,0,0,.42);
}

.vxd-pg .vxd-pg-modal-close{
  position:absolute !important;
  right:8px !important;
  top:4px !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  color:#2d2d2d !important;
  font-family:"Times New Roman", serif !important;
  font-weight:100 !important;
  font-size:32px !important;
  line-height:28px !important;
  border:0 !important;
  box-shadow:none !important;
  background:#ffffff !important;
  z-index:10;
}

.vxd-pg-modal-body{
  padding:42px 36px 72px;
  background:#ffffff;
}

.vxd-pg-modal-title-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 24px;
}

.vxd-pg-modal-title{
  margin:0 !important;
  font-family:"Manrope", sans-serif !important;
  font-size:26px !important;
  font-weight:600 !important;
  line-height:34px !important;
  letter-spacing:-0.05em !important;
  color:#0D1427 !important;
}

.vxd-pg-modal-title-link{
  width:38px;
  height:38px;
  min-width:38px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#111111;
  color:#ffffff !important;
  text-decoration:none !important;
}

.vxd-pg-modal-title-link svg{
  width:17px;
  height:17px;
}

.vxd-pg-modal-tech{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.vxd-pg-chip{
  font-size:13px;
  font-weight:700;
  padding:9px 14px;
  border-radius:999px;
  background:#f2f2f2;
  color:#333333;
}

/* Modal gallery - no partial images */
.vxd-pg-modal-gallery-wrap{
  margin-top:24px;
  padding-bottom:36px;
}

.vxd-pg-modal-gallery{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:start !important;
}

.vxd-pg-modal-gallery-item{
  width:100% !important;
  background:#ffffff !important;
  border-radius:0 !important;
  overflow:visible !important;
  margin:0 !important;
  padding:0 !important;
}

.vxd-pg-modal-gallery-item img{
  position:relative !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:top center !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
}

body.vxd-pg-lock{
  overflow:hidden;
}

/* Responsive */
@media(max-width:1024px){
  .vxd-pg-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vxd-pg-modal-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
  }
}

@media(max-width:768px){
  .vxd-pg-modal{
    padding:14px;
    align-items:flex-end;
  }

  .vxd-pg-modal-panel{
    width:100%;
    max-height:92vh;
    border-radius:22px 22px 0 0;
  }

  .vxd-pg-modal-body{
    padding:34px 20px 72px;
  }

  .vxd-pg-modal-gallery{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }
}

@media(max-width:600px){
  .vxd-pg-grid{
    grid-template-columns:1fr;
  }

  .vxd-pg-filters{
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:22px !important;
    white-space:nowrap !important;
    -webkit-overflow-scrolling:touch;
  }

  .vxd-pg-filter{
    flex:0 0 auto !important;
  }

  .vxd-pg-card-info{
    left:16px;
    right:16px;
    bottom:16px;
    gap:8px;
  }

  .vxd-pg-title{
    font-size:19px;
  }

  .vxd-pg-card-tag{
    font-size:10px;
    padding:6px 9px;
  }

  .vxd-pg-modal-body{
    padding:30px 16px 56px;
  }

  .vxd-pg-modal-gallery{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
}