/*
|--------------------------------------------------------------------------
| Upload Preview
|--------------------------------------------------------------------------
*/

.petdoost-review-image-help {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	opacity: 0.7;
}


.petdoost-review-image-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}


.petdoost-review-image-preview img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| Review Gallery
|--------------------------------------------------------------------------
*/

.petdoost-review-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
}


.petdoost-review-gallery-item {
	display: block;
	width: 100px;
	height: 100px;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
}


.petdoost-review-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}


.petdoost-review-gallery-item:hover img {
	opacity: 0.8;
}


/*
|--------------------------------------------------------------------------
| Lightbox
|--------------------------------------------------------------------------
*/

.petdoost-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;

	display: none;

	align-items: center;
	justify-content: center;

	padding: 30px;

	background: rgba(0, 0, 0, 0.9);
}


.petdoost-lightbox.active {
	display: flex;
}


.petdoost-lightbox img {
	display: block;

	max-width: 90vw;
	max-height: 85vh;

	width: auto;
	height: auto;

	object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| Lightbox Buttons
|--------------------------------------------------------------------------
*/

.petdoost-lightbox-close,
.petdoost-lightbox-prev,
.petdoost-lightbox-next {

	position: absolute;

	width: 45px;
	height: 45px;

	border: 0;
	border-radius: 50%;

	background: rgba(255, 255, 255, 0.15);

	color: #fff;

	cursor: pointer;

	font-size: 25px;
	line-height: 45px;

	text-align: center;

}


.petdoost-lightbox-close {
	top: 20px;
	right: 20px;
}


.petdoost-lightbox-prev {
	left: 20px;
	top: 50%;

	transform: translateY(-50%);
}


.petdoost-lightbox-next {
	right: 20px;
	top: 50%;

	transform: translateY(-50%);
}


.petdoost-lightbox-close:hover,
.petdoost-lightbox-prev:hover,
.petdoost-lightbox-next:hover {

	background: rgba(255, 255, 255, 0.3);

}