/* MobileN Board - 갤러리 스타일 */

.mbb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.mbb-gallery-item {
	border: 1px solid var(--mbb-border);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.mbb-gallery-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mbb-gallery-item a {
	text-decoration: none;
	color: var(--mbb-text);
}

.mbb-gallery-thumb {
	position: relative;
	width: 100%;
	padding-top: 100%;
	background: var(--mbb-surface-alt);
	overflow: hidden;
}

.mbb-gallery-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbb-gallery-thumb .mbb-no-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--mbb-text-faint);
	font-size: 13px;
}

.mbb-gallery-info {
	padding: 10px;
}

.mbb-gallery-title {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mbb-gallery-meta {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--mbb-text-faint);
}

/* 라이트박스 */
.mbb-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.mbb-lightbox-overlay img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	cursor: default;
}

.mbb-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
}

/* 반응형 */
@media (max-width: 768px) {
	.mbb-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

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