.wrap {
  max-width: 90%;
  margin: 20px auto;
  padding: 18px
}
p.lead {
  color: var(--muted);
  margin: .2rem 0 1rem
}

/* Masonry (css columns) */
.masonry {
  column-gap: 20px;
  /* columns ke beech gap */
  column-fill: balance;
}

@media (min-width: 480px) {
  .masonry {
    column-count: 2;
  }

  /* chhoti screen pe 2 columns */
}

@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }

  /* medium screen pe 3 columns */
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 4;
  }

  /* badi screen pe 4 columns */
}

.card {
  break-inside: avoid;
  margin: 0px 0 24px 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.30);
}

.card button.thumb {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in
}

.card img {
  display: block;
  width: 100%;
  height: auto
}

.card .meta {
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
  display: none;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(2, 6, 12, .75);
  backdrop-filter: blur(4px)
}

.lightbox.open {
  display: grid
}

.lightbox__shell {
  margin: auto;
  width: min(1200px, 96vw);
  height: min(92vh, 860px);
  background: #0d1117;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  overflow: hidden;
}

/* responsive stacking */
@media (max-width:860px) {
  .lightbox__shell {
    grid-template-columns: 1fr;
    grid-template-rows: 65% 35%;
    height: 92vh;
    width: 96vw
  }
}

.lightbox__media {
  position: relative;
  background: #0a0f16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.lightbox__aside {
  background: #fff;
  border-left: 0;
  display: flex;
  flex-direction: column;
}

/* stage and image */
#stage {
  width: 100%;
  /*height:100%;*/
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  touch-action: none
    /* prevent pinch zoom on many browsers */
}

#stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none
}

/* overlays & controls (ensure higher z-index than stage) */
.topbar {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 12;
  pointer-events: none;
  flex-wrap: wrap
}

.chip {
  pointer-events: auto;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px
}

.nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 11;
  pointer-events: none
}

.nav button {
  pointer-events: auto;
  border: 0;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 8px;
  font-size: 18px
}

.closeBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 13;
  pointer-events: auto;
  background: rgba(0, 0, 0, .45);
  border: 0;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center
}

/* aside content */
.aside__inner {
  padding: 40px;
  overflow: auto;
  flex: 1
}

.title {
  margin: 10px 0 4px 0;
  font-size: 18px;
  font-weight: 600;
}

.subtitle {
  color: #a9a9a9;
  margin: 0;
  font-size: 14px;
  width: 100%;
}

.desc {
  color: #2f2f2f;
  line-height: 26px;
  font-size: 16px;
  width: 100%;
  clear: both;
  margin: 20px 0 0 0;
  padding: 0;
}

.controls {
  padding: 8px;
  border-top: 1px solid #1b212c;
  background: #0c1118;
  display: none;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

/*.btn {
  border: 1px solid #283140;
  background: #111827;
  color: #dce6f3;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px
}*/

.grow {
  flex: 1
}

/* accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0
}

/* Hover Overlay Button */
.overlayBtn {
  position: absolute;
  bottom: 0;
  right: -50px;
  transform: translate(-50%, -50%);
  background: rgb(255 255 255 / 80%);
  color: #000;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.card:hover .overlayBtn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1.05);
}

.kmy-photo-btn {
  margin: 80px 0;
  padding: 0;
}

.kmy-photo-btn li {
  padding: 0;
  list-style: none;
  margin: 0 24px 0 0;
  float: left;
}

.kmy-photo-btn li a {
  margin: 0;
  padding: 16px 30px;
  /*float: left;*/
  border: 2px solid #ebebeb;
  border-radius: 50px;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  text-transform: none;
}

.active-this-btn {
  background: #000;
  border: 0 !important;
  color: #fff !important;
}

.logoIcon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  float: left;
  margin: 0 10px 0 0px;
  padding: 0;
}


.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.pg-three-btn {
  text-align: left;
  margin: 0px 0 30px 0;
}

.pg-three-btn ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: left;
  gap: 15px;
}

.pg-three-btn li {
  display: inline-block;
}

.pg-three-btn a {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #e9e9e9;
}

.pg-three-btn a:hover {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}


.pg-three-btn a.activebtnn {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}


/* Responsive (mobile screens) */
@media (max-width: 768px) {
  .pg-three-btn ul {
    flex-direction: column;
    gap: 10px;
  }

  .pg-three-btn li {
    width: 100%;
  }

  .pg-three-btn a {
    width: 100%;
    border-radius: 10px;
    text-align: center;
  }

}


@media (max-width: 480px) {
  .masonry {
    column-count: 2;
    /* mobile pe 2 images ek row me */
  }


  .card {
    margin: 0px 0 10px 0;
  }


}


.videoIcon {
  position: absolute;
  top: 45%;
  left: 45%;
  background: rgba(0, 0, 0, 0.8);
  padding: 12px;
  border-radius: 50%;
  pointer-events: none;
}


/*BUTTON ARROW POSSITION WINDOW CORNER DEVENDRA */
/* Arrows ko poore window ke corners par fix karo */
.lightbox .nav {
  position: fixed;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 10000;
}

.lightbox #prevBtn,
.lightbox #nextBtn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
}

.lightbox #prevBtn {
  left: 12px;
}

.lightbox #nextBtn {
  right: 12px;
}

.lightbox #prevBtn:hover,
.lightbox #nextBtn:hover,
.lightbox #prevBtn:focus,
.lightbox #nextBtn:focus {
  background: #fff;
  outline: none;
}

@media (max-width: 600px) {

  .lightbox #prevBtn,
  .lightbox #nextBtn {
    width: 40px;
    height: 40px;
  }

  .lightbox #prevBtn {
    left: 8px;
  }

  .lightbox #nextBtn {
    right: 8px;
  }
}

/*END END BUTTON ARROW POSSITION WINDOW CORNER DEVENDRA */


@media only screen and (min-width: 297px) and (max-width: 497px) {
  .title {
    font-size: 14px;
  }

  .desc {
    line-height: 24px;
    font-size: 14px;
    margin: 8px 0 0 0;
  }


  .overlayBtn {
    right: -40px;
    padding: 4px 8px;
    font-size: 10px;
  }


}