/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* ------------------------------------------------------------------
 * 맨 위로 버튼
 *
 * 테마가 아이콘 폰트(icomoon)로 화살표를 그리는데 폰트가 로드되지 않으면
 * 글리프가 깨져 화면 하단에 '^^' 로 보인다. 폰트 의존을 끊고
 * 인라인 SVG 로 그린다.
 * ------------------------------------------------------------------ */

a#to-top,
a#to-top.mobile-disabled {
	position: fixed;
	right: 24px;
	bottom: 24px;
	left: auto;
	z-index: 9995;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;
	min-width: 0;
	padding: 0;

	background: #15181d;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(21, 24, 29, .22);

	font-size: 0;
	line-height: 0;
	text-indent: 0;
	overflow: hidden;

	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

a#to-top.visible-button,
a#to-top:focus-visible {
	opacity: 1;
	visibility: visible;
}

a#to-top:hover {
	transform: translateY(-2px);
}

/* 깨진 아이콘 폰트 글리프를 숨긴다 */
a#to-top i,
a#to-top .fa,
a#to-top .top-icon {
	display: none !important;
}

/* 1.5px 라인 셰브론 */
a#to-top::after {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' \
stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='18 15 12 9 6 15'/></svg>");
}

@media (max-width: 560px) {
	a#to-top,
	a#to-top.mobile-disabled {
		right: 16px;
		bottom: 16px;
		width: 40px;
		height: 40px;
	}
}
