.photo3s-picker-grid img:hover { opacity: 0.8; }

/* Single photo front-end figure and caption styling */
/* The saved markup assigns the class directly on the <figure>, so target the figure itself */
.wp-block-photo3s-photo-picker {
	display: block;
	width: -moz-fit-content;
	width: fit-content;
	margin: 1em auto;
	text-align: center;
}
.wp-block-photo3s-photo-picker img {
	display: block;
	margin: 0 auto;
}
.wp-block-photo3s-photo-picker figcaption {
	font-style: italic;
	margin-top: 0.1em;
	font-size: 0.75em;
	display: block;
	text-align: center;
	padding: 0.2em 0.2em;
	max-width: 100%;
	line-height: 1.4;
	opacity: 0.9;
	font-weight: 300;
}

/* Gallery block editor styles */
.photo3s-gallery-container {
	border: 2px dashed;
	padding: 20px;
	margin: 10px 0;
	border-radius: 4px;
}

.photo3s-gallery-grid {
	margin-bottom: 15px;
}

.photo3s-gallery-item.editing {
	box-shadow: 0 0 0 2px #007cba;
}

.photo3s-gallery-modal .components-modal__content {
	max-width: 800px;
	min-height: 500px;
}

/* Gallery front-end styles */
.wp-block-photo3s-gallery {
	margin: 1em 0;
}

.wp-block-photo3s-gallery .photo3s-gallery-wide-caption {
	text-align: center;
	font-style: italic;
	opacity: 0.9;
	font-size: 0.8em;
	margin: 0 0 0.75em 0;
}

/* Lightbox overlay base (structure injected by JS) */
.photo3s-lightbox-overlay button:focus { outline: 2px solid #4da3ff; }

.wp-block-photo3s-gallery figure {
	margin: 0;
	text-align: center;
}

.wp-block-photo3s-gallery figcaption {
	font-style: italic;
	margin-top: 0.1em;
	font-size: 0.65em;
	opacity: 0.8;
	font-weight: 300;
	line-height: 1.3;
}

.wp-block-photo3s-gallery img {
	border-radius: 4px;
	transition: transform 0.2s ease;
}

.wp-block-photo3s-gallery img:hover {
	transform: scale(1.02);
}

/* Bound image so full-size originals don't overflow layout */
.wp-block-photo3s-photo-picker img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Size-specific hook classes (added via JS) available for themes:
	.wp-block-photo3s-photo-picker img.is-size-thumbnail|medium|large|full */