.pp_lightbox .spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #444;
  border-radius: 50%;
  width: 40px !important;
  height: 40px !important;
  animation: spin 1s linear infinite;
  margin: 60px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.lightbox, .lightbox .swiper-wrapper{

	&[style*="cursor: grabbing;"]{
		> figure, .swiper-slide{
			cursor: grabbing !important;
		}
	}
	> figure, .swiper-slide{
		cursor: pointer;
		img{
			transform: scale(1);
			transition: all 0.3s ease-in-out;
		}
		&:hover{
			img{
				transform: scale(1.025);
			}
		}
	}
}


.wpcp-single-content,
.lightbox .wp-block-video,
.lightbox .wp-block-embed__wrapper{
		position: relative;
}
.wpcp-single-content,
.lightbox .wp-block-video,
.lightbox .wp-block-embed__wrapper,
.lightbox .wp-block-embed{
	&::before, &::after{
		content: "" !important;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border-radius: 12px;
		overflow: hidden;
	}
	&::before{
		z-index: 500;
		background: rgba(0,0,0,0.4);
	}
	&::after{
		z-index: 501;
		background-image: url(../../../themes/barth/styles/less/img/play-icon.svg);
		background-size: 18px 18px;
		background-repeat: no-repeat;
		background-position: center center;
	}
}

.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 {
	  display: none !important;
	  visibility: hidden;
	  z-index: -1000000 !important;
  }
}
.lightbox-content{
/* 	background: rgba(255, 255, 255, 0.8); */
	max-width: 100%;
	min-width: 150px;
	min-height: 150px;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 30px;
	overflow: hidden;
	> *{
		max-width: 100%;
		width: 100% !important;/* 1000px !important;*/
	}
	.brlbs-cmpnt-container, iframe, figure.wp-block-embed, > div{
		width: 100%;
		height: 100%;
		aspect-ratio: calc(500 / 281);
		background: transparent !important;
		p{
/* 			display: none; */
		}
	}
	img{
		width: 1000px;
	}
}
.pp_lightbox img,
.pp_lightbox .brlbs-cmpnt-container {
  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;
}