@charset "UTF-8"; 
@font-face {
    font-family: 'DosMyungjo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_eight@1.0/DOSMyungjo.woff') format('woff');
    font-weight: normal;
    font-display: swap;

	font-family: 'Galmuri11';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/Galmuri11-Bold.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}


/* 기본 색상 */
:root {
	--main-color: #6e888e;
	--accent-color: #9d8aae; /* (구)포인트 컬러 */
	--dark-main-color: #292929; /* 다크모드 설정 시 백그라운드 컬러 */
	--text-bright-color: #fff; /* 다크모드 설정 시 텍스트 컬러 */
	--point-color: #a94144; 
	--icon-color: #fff; 
	--icon-bk-color: #ddd;
	--gray-color: #ddd;
	--large-width: 1000px; /* 양쪽 여백을 남기고 가운데 컨텐츠가 보여지는 영역 */
	--middle-width: 800px;
}


/* 기본 설정: 폰트 크기 */
@media (max-width: 599px) { /* width값이 (최대)599까지 */
	:root {
		font-size: 14px;
	}
}

@media (min-width: 600px) and (max-width: 799px) { /* width값이 600~799까지의 본문 폰트 사이즈 설정 */
	:root {
		font-size: 16px;
	}
}

@media (min-width: 800px) { /* width값이 800까지의 폰트 사이즈 설정 */
	:root {
		font-size: 18px;
	}
}

body {
	font-size: 16px; 
}



/* 기본 설정: 페이지 전체 */
body {
	margin: 0;
	font-family: '맑은 고딕',
		'Apple SD Gothic Neo','sans-serif'; 
}


/* ------------------------------------------------------------------------------------------------------------------- */


/* header 헤더 */
header {
	position: fixed;
	/* position: absolute; 상단에 헤더 고정. absolute: 고정적으로, relative: 상대적으로 */
	top: 0;
	left: 0;
	z-index: 100; /* 헤더를 중첩하는 순서. 숫자가 높을 수록 가장 위에 보이게 함. z 좌표 기준(xy 상하 아님). 정확한 특정 값이 아니기에 단위 생략 */
	width: 100%;
	/* background-color: rgba(255, 255, 255, 0.9); */
}

.nohero header {
	position: static;
	border-bottom: solid 1px #ddd;
	border-bottom: solid 1px var(--gray-color);
}


/* headA: 사이트 이름 */
.headA {
	display: inline-block;
	line-height: 70px;
	padding-left: 20px;
	padding-right: 20px;
	color: var(--dark-main-color);
	font-family: 'DosMyungjo', sans-serif;
    font-style: normal;
	font-size: 20px;
	text-decoration: none;
}


/* headB: 네비게이션 메뉴 */
.headB ul {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--dark-main-color);
}

.headB a {
	display: block;
	padding: 15px;
	color: inherit;
	font-size: 12px;
	text-decoration: none;
}

.headB a:hover {
	color: #e0585d;
	/* background-color: rgba(0, 0, 0, 0.3); */
}

@media (min-width: 768px) {
	header .container {
		display: flex;
		align-items: center; /* 세로 방향으로 중앙 정렬 */
		justify-content: space-between; /* 왼쪽 오른쪽 사이 끝 방향 위치 - 양쪽 정렬 */
		max-width: 1450px;
		margin-left: auto;
		margin-right: auto;
	}

	.headB ul {
		display: flex;
	}
}


/* headC: 토글 버튼 */
@media (max-width: 767px) {
	/* M 전용 설정 */
	header .container-small {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.headC {
		margin-right: 15px;
		padding: 0;
		border: none;
		outline: none;
		background: none;
		font-size: 24px;
		opacity: 0.1;
		cursor: pointer;
		color: var(--dark-main-color);
	}

	.headC:hover {
		opacity: 0.3;
	}

	.headB {
		display: none;
		text-align: right;
		margin-right: 10px;
		margin-bottom: 15px;
	}
}


@media (min-width: 768px) {
	/* PC 전용 설정 */
	.headC {
		display: none;
	}

	.headB {
		display: block !important;
	}
}


/* ------------------------------------------------------------------------------------------------------------------- */


/* M-artwork 소개 */
.listA .container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-auto-rows: 250px;
	gap: 15px;
	grid-auto-flow: dense;
	max-width: 1400px;
	margin: 0 auto;
}

.listA article {
	display: block;
    position: relative; /* 자식 요소인 overlay의 기준점 설정 */
    overflow: hidden;
}

/* .listA a {
	margin: 0;
	display: block;
	/* border: solid 1px #ddd;
	border: solid 1px var(--gray-color); 
	color: inherit;
	text-decoration: none;
	height: 100%;
} */

.listA article.tall {
    grid-row: span 2; 
}

/*
.listA a:hover {
	opacity: 0.8;
}
*/
	

.listA .photo {
	height: 100%;
	/* min-height: 250px; */
	background-position: center;
	background-size: cover;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; 
}

/* 오버레이 스타일 (처음에는 투명, 숨겨져 있음) */
.listA .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.1); */

    /* to bottom: 위에서 아래로 그라데이션 적용 */
    /* rgba(255, 255, 255, 0) : 맨 위는 투명한 흰색 */
    /* rgba(255, 255, 255, 0.8) : 맨 아래는 80% 불투명한 흰색 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);

    color: var(--text-bright-color);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    
    /* 처음에는 보이지 않도록 */
    opacity: 0; 
    transition: opacity 0.4s ease-out;
    z-index: 10; /* 이미지 위에 */
}

.listA .artwork-title {
    font-size: 10px;
    padding: 0 10px 30px 10px; 
    font-family: "Zalando Sans Expanded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* article에 마우스를 올렸을 때 */
.listA article:hover .photo {
    transform: scale(1.05); /* 이미지 1.1배 확대 */
    /* background-image: attr(data-hover-img); */
}

.listA article:hover .overlay {
    opacity: 1; /* 오버레이 투명도를 1로 변경하여 보이게 함 */
}


/* ------------------------------------------------------------------------------------------------------------------- */


/* M-artwork_2 소개 */
.listB {
    padding-top: 200px;
	padding-bottom: 250px; 
}

.listB-header {
    text-align: center; 
    max-width: 1000px;
    margin: 0 auto 200px auto;
}

.listB-header h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 70px; 
    color: var(--dark-main-color);
    font-family: '맑은 고딕', 'Apple SD Gothic Neo', 'sans-serif'; 
}

.listB-divider {
    width: 80px; 
    height: 1px; 
    background-color: #c6c6c6; 
    margin: 0 auto; 
}

.listB .container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 120px;
    max-width: 1000px;
    margin: 0 auto;
}

.listB article {
	margin-bottom: 0;
	text-align: center;
}

.listB .photo {
	width: 100%;
    height: 300px; /* 작품 높이 고정 */
    background-color: #eee;
    background-size: cover;
    background-position: center;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* 가로 세로 블러 반경 확산 반경 투명도 */
}

.listB .content {
    padding: 20px 0 0 0;
	text-align: center;
}

.listB .content p {
    /* border: 1px solid #b5b5b5; 
	background-color: var(--dark-main-color);
    padding: 5px 10px;
    line-height: 1.4;
	font-size: 0.9rem;
    opacity: 1; */
	display: inline-block;
	text-align: center;
	font-weight: normal;
}

.listB p {
	font-size: 12px;
	color: var(--dark-main-color);
	font-family: '맑은 고딕', 'Apple SD Gothic Neo', 'sans-serif';
}


.listB article:hover .photo {
    transform: scale(1.02); /* 이미지 1.1배 확대 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* 너비가 600px 이하의 미디어에서 
@media (max-width: 384px) {
	.listB .photo {
		flex: 1;
	}

	.listB p {
		display: none;
	}
}*/

@media (max-width: 767px) {
    .listA .container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        column-gap: 10px;
        row-gap: 10px; 
		padding: 0 15px;
		margin-top: 15px;
    }

	.listA article {
        height: 100%;
    }

	.listB-header h2 {
    font-size: 20px;
	margin-bottom: 70px
	}
	
	.listB-header {
        margin-bottom: 200px; 
    }

    .listB .container {
        grid-template-columns: 1fr; 
        gap: 90px; 
        padding: 0 15px;
    }

	.listB article {
        width: 220px;
        margin-left: auto; /* 중앙 정렬 */
        margin-right: auto; /* 중앙 정렬 */
    }
    
    .listB .photo {
        height: 250px; 
    }
    
    .listB .content p {
        padding: 10px; 
    }
}


/* ------------------------------------------------------------------------------------------------------------------- */


/* M footer 푸터 */
footer {
	color: var(--dark-main-color);
	background-color: var(--text-bright-color);
	border-top: solid 1px var(--gray-color);
}


footer .container {
	padding: 15px 20px;
}


/* 푸터C: 저작권 */
.footC {
	font-size: 12px;
	text-align: center;
	font-family: 'DosMyungjo', sans-serif;
    font-style: normal;
	width: 100%;
	color: var(--point-color);
	margin-top: 20px;
	
}


/* 푸터B: sns메뉴 */
.footB ul {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--dark-main-color);
	gap: 50px;
	display: flex; 
    justify-content: center;
}


.footB ul li:last-child {
        display: flex;
        align-items: center;
        justify-content: center;
}


.footB a {
	display: block;
	padding: 15px;
	color: inherit;
	font-size: 12px;
	text-decoration: none;
}


.footB ul li:last-child a {
    /* border: solid 1px var(--dark-main-color); */
	border-radius: 2px;
	padding: 2px 18px;
	display: inline-block;
	vertical-align: middle;
}

.footB a:hover {
	color: #e0585d;
}

@media (min-width: 768px) {
	footer .container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		max-width: 1450px;
		margin-left: auto;
		margin-right: auto;
	}

	.footB ul {
		display: flex;
	}

	.footB {
        flex-grow: 0; 
        flex-shrink: 0;
    }

	.footC {
        flex: 0 0 100%;
		/* border-top: solid 1px var(--gray-color); */
        padding-top: 30px; /* 구분선 위쪽 여백 */
        margin: 10px; /* footB와 footC 사이 여백 */
    }
}


@media (max-width: 768px) {
    .footB a {
        padding: 10px 5px;
        font-size: 8px; 
        white-space: nowrap;
    }
    
    .footB ul li:last-child a {
        padding: 2px 10px; 
    }
    
    .footB ul {
        gap: 20px; 
        padding: 0 5px;
    }

	.footC {
        margin-top: 40px; 
    }
}
