/* Photo Booth Block Styles */
.pbe-photo-booth-container {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

.pbe-camera-wrapper {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.pbe-video {
	width: 100%;
	height: auto;
	display: block;
}

.pbe-canvas {
	width: 100%;
	height: auto;
	display: block;
}

.pbe-frame-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	z-index: 10;
}

.pbe-controls {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.pbe-btn {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 600;
}

.pbe-btn-capture {
	background: #0073aa;
	color: #fff;
}

.pbe-btn-capture:hover {
	background: #005a87;
}

.pbe-btn-retake {
	background: #666;
	color: #fff;
}

.pbe-btn-retake:hover {
	background: #555;
}

.pbe-btn-upload {
	background: #46b450;
	color: #fff;
}

.pbe-btn-upload:hover {
	background: #3a9e42;
}

.pbe-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pbe-status {
	margin-top: 1rem;
	text-align: center;
	min-height: 1.5rem;
}

.pbe-status.error {
	color: #dc3232;
}

.pbe-status.success {
	color: #46b450;
}

.pbe-gallery-link {
	margin-top: 1rem;
	text-align: center;
}

.pbe-gallery-link a {
	color: #0073aa;
	text-decoration: none;
}

.pbe-gallery-link a:hover {
	text-decoration: underline;
}

/* Gallery Block Styles */
.pbe-gallery-container {
	width: 100%;
}

.pbe-gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--pbe-columns, 3), 1fr);
	gap: 1rem;
}

@media (max-width: 768px) {
	.pbe-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.pbe-gallery-grid {
		grid-template-columns: 1fr;
	}
}

.pbe-gallery-item {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	overflow: hidden;
	border-radius: 4px;
	background: #f0f0f0;
}

.pbe-gallery-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pbe-gallery-item:hover img {
	transform: scale(1.05);
}

.pbe-gallery-empty {
	text-align: center;
	padding: 2rem;
	color: #666;
}


