@charset "utf-8";

/****************************************************
	GALLERY skin  (3 x 3 thumbnails)
*****************************************************/

.gl-head {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 4px 4px 12px; margin-bottom: 12px;
	border-bottom: 1px dashed var(--wl-line);
}
.gl-head h2 { margin: 0; font: 400 30px/1.1 var(--wl-pixel); letter-spacing: 3px; color: var(--wl-deep); }
.gl-head .gl-side { margin-left: auto; text-align: right; }
.gl-head .sub { margin: 0 0 8px; font-family: var(--wl-script); font-size: 22px; color: var(--wl-sub); }
.gl-tabs { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.gl-tabs a {
	display: block; min-width: 78px; height: 26px; line-height: 24px; padding: 0 12px; text-align: center;
	background: var(--wl-pale); border: 1px solid var(--wl-line); color: var(--wl-deep);
	font: 400 12px var(--wl-pixel); letter-spacing: 1px;
}
.gl-tabs a:hover { background: var(--wl-soft); }
.gl-tabs a.on { background: var(--wl-blue); border-color: var(--wl-deep); color: #fff; }

.gl-bar { text-align: right; margin-bottom: 10px; }
a.gl-write { display: inline-block; height: 30px; line-height: 30px; padding: 0 16px; background: var(--wl-blue); border: 1px solid var(--wl-deep); color: #fff !important; font: 400 13px var(--wl-pixel); letter-spacing: 1px; }
a.gl-write:hover { background: var(--wl-deep); }

.gl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gl-card {
	position: relative; padding: 8px 8px 10px;
	background: var(--wl-paper); border: 1px solid var(--wl-line);
	box-shadow: 0 1px 4px rgba(47,99,184,.08);
	transition: border-color .15s, transform .15s;
}
.gl-card:hover { border-color: var(--wl-mid); transform: translateY(-2px); }
.gl-card .pic {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 3 / 2; background: var(--wl-soft) center / cover no-repeat;
}
.gl-card .pic .ph { font-size: 34px; opacity: .8; }
.gl-card .info { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font: 400 11px var(--wl-pixel); color: var(--wl-sub); }
.gl-card .like { color: var(--wl-blue); }
.gl-card h3 { margin: 2px 0 0; font-size: 14px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gl-card h3 a { color: var(--wl-deep); }
.gl-card h3 a:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; } /* 카드 전체 클릭 */
.gl-empty { padding: 50px 0; text-align: center; color: var(--wl-sub); background: var(--wl-paper); border: 1px dashed var(--wl-line); }

/* 글읽기 좋아요 버튼 */
.gl-like { margin: 14px 0; text-align: center; }
.gl-like a { display: inline-block; min-width: 90px; height: 32px; line-height: 30px; padding: 0 16px; background: var(--wl-pale); border: 1px solid var(--wl-line); color: var(--wl-deep); font: 400 13px var(--wl-pixel); }
.gl-like a:hover { background: var(--wl-soft); }
#bo_v_act_good { display: none; margin-top: 6px; font-size: 12px; color: var(--wl-sub); }

@media all and (max-width: 760px) {
	.gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gl-head .gl-side { margin-left: 0; text-align: left; }
	.gl-tabs { justify-content: flex-start; }
}

/* 버튼 글자 정중앙 정렬 + 링크색(#wl-content a)보다 우선 적용 */
.gl-tabs a, a.gl-write { display: flex; align-items: center; justify-content: center; line-height: 1; padding-top: 1px; box-sizing: border-box; }
.gl-tabs a { height: 26px; }
a.gl-write { display: inline-flex; height: 30px; }
#wl-content .gl-tabs a.on { color: #fff; }

/* 좋아요 버튼 (눌린 상태) */
.gl-like a { cursor: pointer; }
#wl-content .gl-like a.on { background: var(--wl-blue); border-color: var(--wl-deep); color: #fff; }
