/* Страница галереи (page-gall.php) — только классы .reyl-gallery-* */

.reyl-gallery-page {
	font-family: "Montserrat", serif;
}

.reyl-gallery-head {
	margin-bottom: 28px;
}

.reyl-gallery-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 16px;
}

.reyl-gallery-intro {
	font-size: 16px;
	line-height: 1.6;
	color: #444;
	max-width: 52rem;
}

.reyl-gallery-intro > *:last-child {
	margin-bottom: 0;
}

.reyl-gallery-empty {
	font-size: 18px;
	color: #666;
	text-align: center;
	padding: 48px 16px;
}

.reyl-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	width: 100%;
}

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

.reyl-gallery-card {
	display: block;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	text-decoration: none;
	color: inherit;
}

.reyl-gallery-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.reyl-gallery-card:focus-visible {
	outline: 2px solid #cd853f;
	outline-offset: 2px;
}

.reyl-gallery-card__inner {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.reyl-gallery-card__inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.reyl-gallery-actions {
	margin-top: 28px;
	text-align: center;
}

.reyl-gallery-load-more {
	min-width: 220px;
	padding: 14px 28px;
	font-family: "Montserrat", serif;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	background: #cd853f;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.reyl-gallery-load-more:hover:not(:disabled) {
	background: #b87333;
}

.reyl-gallery-load-more:disabled,
.reyl-gallery-load-more.is-loading {
	opacity: 0.65;
	cursor: wait;
}
