/* Bunny Gallery — gallery.css */

.bunny-gallery {
	display: grid;
	grid-template-columns: repeat(var(--bg-cols, 3), 1fr);
	gap: 12px;
	margin: 1.5em 0;
}

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

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

.bunny-gallery__item {
	overflow: hidden;
	border-radius: 4px;
	background: #f0f0f0;
}

/* Link para lightbox */
.bunny-gallery__link {
	display: block;
	width: 100%;
	line-height: 0;
	overflow: hidden;
}

.bunny-gallery__link img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.2s ease;

	-webkit-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

.bunny-gallery__link:hover img {
	transform: scale(1.03);
}

/* Wrapper de proteção (modo sem lightbox) */
.bunny-gallery__protect {
	position: relative;
	display: block;
	width: 100%;
	line-height: 0;
}

.bunny-gallery__protect img {
	width: 100%;
	height: auto;
	display: block;

	-webkit-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

.bunny-gallery__overlay {
	position: absolute;
	inset: 0;
	background: transparent;
	cursor: default;
	z-index: 1;
	pointer-events: all;
}

/* Mensagens de erro/vazio do shortcode */
.bunny-gallery-error,
.bunny-gallery-empty {
	padding: 1em;
	border-left: 4px solid #ccc;
	color: #555;
	font-style: italic;
}

.bunny-gallery-error {
	border-color: #d63638;
	color: #d63638;
}
