/*캄디자인 수정*/
.calm-wrap {
	width: 100%;
	height: 100%;
	position: relative;
}
.dark-mode {
	background-color: black;
	color: white;
}
.footer-button {
	padding: 0 20px;
	box-sizing: border-box;
	position: fixed;
	bottom: 20px;
	font-size: 0.92 rem;
	z-index: 9996;
	right: 0;
}

/*상단 4개 큰 버튼*/
:root {
	--background-dark: #2d3548;
	--text-light: rgba(255,255,255,0.6);
	--text-lighter: rgba(255,255,255,0.9);
	--spacing-s: 8px;
	--spacing-m: 16px;
	--spacing-l: 24px;
	--spacing-xl: 32px;
	--spacing-xxl: 64px;
	--width-container: 1200px;
}

.hero-section {
	align-items: flex-start;
	display: flex;
	min-height: 100%;
	justify-content: center;
	padding: var(--spacing-xxl) var(--spacing-l);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-column-gap: var(--spacing-l);
	grid-row-gap: var(--spacing-l);
	max-width: var(--width-container);
	width: 100%;
}

@media (min-width: 820px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
}
@media (max-width: 819px) {
	.hero-section {
		/*display: none;*/
	}
	.card__content {
    left: 0;
    padding: 10px 0px !important;
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
	}
	.card__heading {
    color: var(--text-lighter);
    font-size: 1em;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
    line-height: inherit !important;
    word-spacing: 0;
    margin: 0;
	}
}

.card {
	list-style: none;
	position: relative;
}

.card:before {
	content: '';
	display: block;
	padding-bottom: 100%;
	width: 100%;
}

.card__background {
	background-size: cover;
	background-position: center;
	border-radius: var(--spacing-l);
	bottom: 0;
	filter: brightness(0.75) saturate(1.2) contrast(0.85);
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transform-origin: center;
	trsnsform: scale(1) translateZ(0);
	transition: filter 200ms linear, transform 200ms linear;
}

.card:hover .card__background {
	transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .card:not(:hover)
.card__background {
	filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card__content {
	left: 0;
	padding: var(--spacing-l);
	position: absolute;
	top: 0;
}

.card__category {
	color: var(--text-light);
	font-size: 0.9 rem;
	margin-bottom: var(--spacing-s);
	text-transform: uppercase;
}

.card__heading {
	color: var(--text-lighter);
	font-size: 1.9 rem;
	text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
	line-height: 1.4;
	word-spacing: 100vw;
}
/* dark theme color palette. */
.theme-dark {
	--color-gray1: #fff;
	--color-gray2: #e9e4e7;
	--color-gray3: #d4c9cf;
	--color-gray4: #584852;
	--color-gray5: #67545f;
	--color-gray6: #121212;
	--color-point: #c47d7d;
	--color-header: #947989;
}
/* light theme color palette */
.theme-light {
	--color-gray1: #1d181b;
	--color-gray2: #67545f;
	--color-gray3: #584852;
	--color-gray4: #d4c9cf;
	--color-gray5: #e9e4e7;
	--color-gray6: #fff;
	--color-point: #c47d7d;
	--color-header: #fff;
}

/* 다크모드 토글 버튼 스타일 */
.switch {
	display: flex;
	position: relative;
	margin-left: 14px;
	top: 0;
	right: 0;
	padding: 12px;
	background: #333;
	border: none;
	border-radius: 50%;
	color: #ddd;
	border: 1px solid #525252;
	outline: none;
	cursor: pointer;
}
.scroll_top {
	display: inline-block;
	width: 3.1em;
	height: 3.1em;
	border: 1px solid #515151;
	border-radius: 50%;
	margin-left: 14px;
	margin-bottom: 10px;
	background: #333;
}

.scroll_top:after {
	content: '';
	display: inline-block;
	margin-top: 1.2em;
	margin-left: 0.95em;
	width: 1em;
	height: 1em;
	border-top: 4px solid #fafafa;
	border-right: 4px solid #fafafa;
	-moz-transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

/* 다크모드 버튼 내 svg 스타일 */
svg {
	width: 0;
	height: 24px;
	transition: all 0.3s ease-in;
	transform-origin: center;
}

/* theme에 따른 toggle버튼 스타일 지정 */

.moon {
	opacity: 0;
	width: 0;
}
.sun {
	width: 24px;
	bottom: 20px !important;
	left: 20px;
	stroke: #fff;
}

.light .moon {
	opacity: 1;
	width: 24px;
	bottom: 20px !important;
	left: 20px;
	stroke: #fff;
}
.light .sun {
	opacity: 0;
	width: 0;
}

.theme-dark .util .search input {
	border-bottom: 2px solid #ddd;
}
.theme-dark .area-aside .box-profile, .theme-light .area-aside .box-profile {
	border: none;
}
.theme-dark .area-aside .box-category .tt_category .link_tit, .area-aside .box-category .tt_category .category_list .link_item {
	color: #999;
}
.theme-light .area-aside .box-category .tt_category .link_tit:hover, .area-aside .box-category .tt_category .category_list .link_item:hover {
	color: #333;
}
.theme-dark .area-aside .box-category .tt_category .link_tit:hover, .area-aside .box-category .tt_category .category_list .link_item:hover {
	color: var(--color-gray1) !important;
}

.theme-dark .area-aside .box-recent .list-recent .box-recent {
	color: #999;
}
.theme-dark .article-type-common .title {
	color: #999;
}
.theme-dark .article-type-common .title:hover {
	text-decoration: none;
	color: #fff;
}
.theme-dark .article-type-common .link-category {
	color: #ffc31a;
}
.theme-dark .header {
}
.theme-dark .header .link_logo {
	color: #fff;
	text-transform: uppercase;
}
.theme-dark #footer {
	border-bottom: 1px solid #333;
	border-top: 1px solid #333;
}
.theme-dark .area-paging .selected {
	background: #fff;
	color: #000 !important;
}
.theme-dark .area-paging .link_num span {
	color: #999;
}
.theme-dark .area-paging .link_page {
	color: #999;
}
.theme-dark .box-calendar .cal_click {
	color: #ffc31a;
}
.theme-dark .area-aside .box-visit .text-total, .theme-dark .area-aside .title-sidebar {
	color: #999;
}
.theme-dark .area-aside-on {
	background: #121212;
}
.theme-dark .cloud {
	background-image: linear-gradient(360deg, #121212 0%, #050506 60%);
}
.theme-dark .button-menu path {
	fill: #fff;
}
.theme-dark .article-view p {
	color: #999;
}
.theme-dark blockquote[data-ke-style='box'], #tt-body-page blockquote[data-ke-style='box'], blockquote[data-ke-style='style3'], #tt-body-page blockquote[data-ke-style='style3'] {
	background: #000000;
	color: #fff;
}
.theme-dark #tt-body-tag:not(.wrap-drawer) .header, #tt-body-page:not(.wrap-drawer) .header, #tt-body-category:not(.wrap-drawer) .header, #tt-body-search:not(.wrap-drawer) .header, #tt-body-archive:not(.wrap-drawer)
.header {
	border-bottom: none;
}
.theme-dark .title-search.title-border {
	color: var(--color-gray1);
}
.theme-dark .calm_category .tt_category .category_list .link_item {
    color: #ffc31a;
}
.theme-light .calm_category .tt_category .category_list .link_item {
    color: #ff9900;
}
/*mobile button*/
