.pg-photobook {
	background: var(--pg-page-bg, #ede5dc);
	padding: 2rem 1.25rem 3rem;
	position: relative;
}

.pg-photobook::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.04;
	background-image: radial-gradient(#4a3728 0.5px, transparent 0.5px);
	background-size: 4px 4px;
	pointer-events: none;
}

.pg-photobook__header {
	text-align: center;
	margin-bottom: 2rem;
	position: relative;
	z-index: 1;
}

.pg-photobook__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #3d2b1f;
	margin: 0;
}

.pg-photobook__grid {
	display: grid;
	gap: 1.5rem;
	position: relative;
	z-index: 1;
}

.pg-photobook--cols-1 .pg-photobook__grid {
	grid-template-columns: 1fr;
	max-width: 720px;
	margin: 0 auto;
}

.pg-photobook--cols-2 .pg-photobook__grid {
	grid-template-columns: repeat(2, 1fr);
}

.pg-photobook--cols-3 .pg-photobook__grid {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
	.pg-photobook--cols-2 .pg-photobook__grid,
	.pg-photobook--cols-3 .pg-photobook__grid {
		grid-template-columns: 1fr;
	}
}

.pg-photobook__tile {
	text-decoration: none;
	color: inherit;
	display: block;
}

.pg-photobook__frame {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	box-shadow: 0 8px 24px rgba(45, 28, 18, 0.18);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	background: #222;
}

.pg-photobook__frame::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 28px 28px 0;
	border-color: transparent rgba(255, 255, 255, 0.35) transparent transparent;
	pointer-events: none;
}

.pg-photobook__tile:hover .pg-photobook__frame,
.pg-photobook__tile:focus-visible .pg-photobook__frame {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 14px 32px rgba(45, 28, 18, 0.28);
}

.pg-photobook__cover {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
}

.pg-photobook__cover--empty {
	min-height: 280px;
	background: linear-gradient(135deg, #5c4033, #2a1810);
}

.pg-photobook__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.85rem 1rem;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.pg-photobook__name {
	font-family: Georgia, serif;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
}

.pg-photobook__count {
	font-size: 0.85rem;
	opacity: 0.9;
	color: var(--pg-accent, #c9a227);
}

.pg-photobook__empty {
	text-align: center;
	color: #555;
}
