.lightbox{
	> figure{
		cursor: pointer;
		img{
			transform: scale(1);
			transition: all 0.3s ease-in-out;
		}
		&:hover{
			img{
				transform: scale(1.025);
			}
		}
	}
}
.pp_lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pp_lightbox img {
  max-height: 80vh;
  max-width: 80vw;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  transition: transform 0.3s ease;
}



.pp_lightbox img:hover {
/*   transform: scale(1.02); */
}

body:has(.pp_lightbox) {
  overflow: hidden;
}

.pp_lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pp_lightbox img {
  max-height: 80vh;
  max-width: 80vw;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-block: 0px;
    padding-inline: 0;
  &:hover{
	  background: rgba(255,255,255,0.2);
  }
}

.lightbox-nav.prev {
  left: 5%;
}

.lightbox-nav.next {
  right: 5%;
}

body:has(.pp_lightbox) {
  overflow: hidden;
}


.lightbox-thumbs {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  max-width: 90vw;
  overflow-x: auto;
}

.lightbox-thumbs .thumb {
  height: 60px;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lightbox-thumbs .thumb:hover {
  opacity: 1;
}

.lightbox-thumbs .thumb.active {
  opacity: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 6px #fff;
}