/**
 * DW Board — Gallery (image grid) layout, DW Board design.
 * Clean white cards: image on top, caption (title + meta) below. Scoped under
 * .dw-board-gallery. No outer board border (the wrapper is transparent).
 */
.dw-board-gallery {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 18px;
	font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.dw-board-gallery .dw-gal-item {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.dw-board-gallery .dw-gal-item:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba( 16, 24, 40, 0.08 ); }
.dw-board-gallery .dw-gal-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
}
.dw-board-gallery .dw-gal-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 800;
	color: #9ca3af;
	background: linear-gradient( 135deg, #e2e8f0, #f1f5f9 );
}
.dw-board-gallery .dw-gal-cap {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 13px 15px 15px;
}
.dw-board-gallery .dw-gal-title {
	color: #16181d;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.4;
	word-break: keep-all;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dw-board-gallery .dw-gal-meta { color: #7b8397; font-size: 12.5px; }

@media screen and ( max-width: 600px ) {
	.dw-board-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
}
