.contents_bg {
	background: #fff;
}
.contents-wrap {
	max-width: 75%;
	margin: 0 auto;
	padding: 200px 20px 60px 20px;
}
.contents-title {
	text-align: center;
	margin-bottom: 60px;
	font-size: 48px;
	font-family: 'BespokeSerif-ExtraBold';
}
.contents-desc {
    text-align: center;
    font-size: 24px;
    color: #222;
    line-height: 1.4;
    margin-bottom: 60px;
}
.contents-desc strong {
	font-size: 28px;
}
.contents-section {
	margin-bottom: 56px;
}
.contents-section .section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	margin-top: 40px;
}
.section-title-linewrap {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 20px;
}
.contents-section .section-title {
	font-size: 35px;
	font-family: 'RiaSans-ExtraBold';
	font-weight: 700;
	white-space: nowrap;
}
.section-title-line {
	flex: 1;
	height: 1px;
	background-color: #ddd;
	margin-right: 20px;
}
.contents-section .section-arrow {
	display: flex;
	gap: 8px;
}
.contents-section .section-arrow button {
	background: none;
	border: none;
	font-size: 27px;
	cursor: pointer;
	color: #888;
	padding: 2px 8px;
	transition: color .18s;
}
.contents-section .section-arrow button:hover {
	color: #000;
}
.contents-cards {
	display: flex;
	gap: 32px;
	justify-content: flex-start;
	margin-bottom: 12px;
}
.contents-card {
	background: #fff;
	overflow: hidden;
	width: 23%;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	border-bottom: 2px solid #eee;
	position: relative;
}
.contents-card img {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: cover;
}
.contents-card .card-img-wrap {
	width: 100%;
	aspect-ratio: 5 / 3.5;
	overflow: hidden;
	background: #f4f4f4;
	position: relative;
	display: block;
}
.contents-card .card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	position: absolute;
	top: 0; left: 0;
}
.card-type {
	position: absolute;
	left: 12px; top: 12px;
	background: #205CFF;
	color: #fff;
	font-size: 15px;
	padding: 2px 10px;
	border-radius: 5px;
	font-family: 'Pretendard', sans-serif;
	z-index: 2;
	letter-spacing: 0.2px;
}
.card-link {
	display: block;
	padding: 12px 10px 16px 0px;
	font-size: 17px;
	color: #205CFF;
	text-decoration: none;
	border-bottom: 1px solid #eaeaea;
	position: relative;
}
.card-link::before {
	content: '↗';
	margin-right: 7px;
	font-size: 1.1em;
	vertical-align: middle;
}
.contents-view-btn {
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: 7px;
}
.contents-view-btn a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 21px 34px;
	font-size: 16px;
	color: #222;
	border: 1.5px solid #000;
	border-radius: 50px;
	background: #fff;
	text-decoration: none;
	transition: background .15s, color .15s;
	margin-top:20px;
	box-shadow: 0 1px 0 #eee;
}
.contents-view-btn .check-icon {
	color: #C2181B;   /* 체크만 빨강 */
	transition: stroke .15s;
}
.contents-section .section-arrow button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.contents-section .section-arrow button:disabled {
	opacity: 0.3;
}
.contents-section .section-arrow button:hover svg polyline {
	stroke: #1251c5;
}
.contents-section .section-arrow button:focus svg polyline {
	stroke: #1251c5;
}
@media (max-width: 1024px) {
	.contents-cards {
		gap: 18px;
	}
	.contents-card {
		width: 31%;
		min-width: 160px;
	}
	.contents-section .section-header {
		margin-top: 26px;
	}
}
@media (max-width: 767px) {
    .contents-wrap {
		max-width:100%;
        padding: 120px 3% 60px 3%;
    }
	.contents-title {
		font-size: 22px;
		margin-bottom:20px;
	}
	.contents-section {
		margin-bottom: 60px;
	}
	.contents-section .section-title {
		font-size: 17px;
	}
	.contents-desc {
		font-size: 16px;
		margin-bottom:20px;
	}
	.contents-desc strong {
		font-size: 20px;
	}
	.contents-cards {
		flex-wrap: wrap;
		gap: 10px;
	}
	.contents-card {
		width: 48%;
		min-width: 130px;
	}
	.card-link {
		font-size: 16px;
		padding: 8px 7px 8px 10px;
	}
	.contents-view-btn a {
		padding: 5px 11px;
		font-size: 15px;
	}
}


/* === Gallery Modal === */
.gallery-modal{
	position:fixed; inset:0; z-index:10000;
	display:none;
}
.gallery-modal.show{ display:block; }
.gallery-modal .gm-backdrop{
	position:absolute; inset:0;
	background:rgba(0,0,0,.55);
	backdrop-filter:saturate(120%) blur(2px);
}
.gallery-modal .gm-dialog{
    position: absolute;
    inset: 4vh 3vw;
    display: flex;
    flex-direction: column;
    background: #FFF;
    max-width: 1120px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.gm-header{
	display:flex; justify-content:flex-end; align-items:center;
	padding:8px 10px; background:rgba(255,255,255,.03);
}

.gm-header{ display:flex; align-items:center; gap:8px; }
.gm-title{
	flex:1; text-align:center;
	font-size:16px; font-weight:700; color:#222;
	white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.gm-close{
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    /* border-radius: 999px; */
    background: #000;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.gm-close:focus{ outline:2px solid #5aa0ff; }

/* 이미지가 버튼을 덮지 않게 층위 정리 */
.gm-main{
	position:relative;
	flex:1 1 auto;
	display:flex;
	align-items:flex-start;
	justify-content:center;
	background:#111;
	overflow:auto;
}
.gm-main img{
	display:block;
	position:absolute;
	width:100%;
	height:auto;
	top:50%;
	transform:translateY(-50%);
	object-fit:unset;
	pointer-events:none; /* 버튼 클릭 방해 방지 */
	z-index:1;
}

/* 화살표 버튼이 항상 위로 */
.gm-nav{
	position:absolute; top:50%; transform:translateY(-50%);
	width:44px; height:44px; border:0; border-radius:999px;
	background:rgba(255,255,255,.18); color:#fff; font-size:26px; cursor:pointer;
	z-index:2; /* 추가 */
}
.gm-prev{ left:10px; }
.gm-next{ right:10px; }

.gm-thumbs{
	flex:0 0 auto;
	display:flex; gap:10px; padding:10px; overflow:auto;
	background:#181818; border-top:1px solid rgba(255,255,255,.08);
	scrollbar-width:auto; /* Firefox */
}
.gm-thumbs::-webkit-scrollbar{ height:14px; } /* 두께 ↑ */
.gm-thumbs::-webkit-scrollbar-thumb{
	background:rgba(255,255,255,.28);
	border-radius:999px;
}

.gm-thumb{
	flex:0 0 auto; width:280px; aspect-ratio:16/9;
	overflow:hidden; cursor:pointer; position:relative;
	scroll-snap-align:start; background:#222;
	outline:2px solid transparent; outline-offset:2px;
}
.gm-thumb{
	flex:0 0 auto; width:280px; aspect-ratio:16/9;
	overflow:hidden; cursor:pointer; position:relative;
	scroll-snap-align:start; background:#222;
	outline:2px solid transparent; outline-offset:2px;
}
.gm-thumb img{
	width:100%; height:100%; object-fit:cover; display:block;
}
.gm-thumb.active{ outline-color:#2176ff; }

/* Responsive */
@media (max-width:1024px){
	.gallery-modal .gm-dialog{ inset:5vh 4vw; }
	.gm-thumb{ width:120px; }
}
@media (max-width:640px){
	.gallery-modal .gm-dialog{ inset: 0; border-radius: 0; max-width: none; max-height: 70vh; top: 50%; transform: translateY(-50%); width: 90%; }
	.gm-nav{ width:38px; height:38px; font-size:22px; }
	.gm-thumb{ width:100px; }
}


@media (max-width: 500px) {
    .contents-title {
        font-size: 25px;
    }
	.contents-desc {
        font-size: 14px;
    }
	.contents-desc strong {
        font-size: 16px;
    }
}