/*!
 * Awesome Logo Gleam — front-end styles
 * (주)어썸 · v1.0.0
 *
 * 로고 위로 사선 빛(광택)이 지나가는 모션.
 * - .alg-logo-gleam-active : 효과가 걸린 요소(스크립트가 붙입니다)
 * - .alg-logo-gleam-mask   : 로고 모양(알파값)대로 빛을 잘라냄 (투명 PNG/SVG)
 * - .alg-logo-gleam-box    : 로고 박스 전체에 빛이 지나감 (불투명 JPG 등)
 * - .alg-blend-screen / -normal : 로고 밝기에 따른 혼합 방식
 */

.alg-logo-gleam-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	max-width: 100%;
	line-height: 0;
	vertical-align: middle;
}

.alg-logo-gleam-wrap > img {
	max-width: 100%;
}

/* 효과가 걸린 요소는 자기 자신을 기준으로 ::after 를 얹습니다. */
.alg-logo-gleam-active {
	position: relative;
	isolation: isolate;
	--alg-delay: 0s;
}

.alg-logo-gleam-active::after {
	content: "";
	position: absolute;
	inset: 0;
	display: block;
	z-index: 2;
	pointer-events: none;
	background-image: linear-gradient(
		108deg,
		rgba(255, 255, 255, 0) 45%,
		var(--alg-glow, rgba(243, 224, 176, 0.26)) 46.4%,
		var(--alg-core, rgba(243, 224, 176, 0.85)) 48.6%,
		var(--alg-hi, rgba(255, 253, 248, 0.85)) 50%,
		var(--alg-core, rgba(243, 224, 176, 0.85)) 51.4%,
		var(--alg-glow, rgba(243, 224, 176, 0.26)) 53.6%,
		rgba(255, 255, 255, 0) 55%
	);
	background-repeat: no-repeat;
	background-size: 300% 100%;
	background-position: 85% 0;
	animation-name: alg-sweep;
	animation-duration: var(--alg-cycle, 4s);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-delay: var(--alg-delay);
	animation-fill-mode: both;
	will-change: background-position;
}

/* 로고 실루엣대로 빛을 자릅니다 (투명 PNG / SVG). */
.alg-logo-gleam-mask::after {
	-webkit-mask-image: var(--alg-mask);
	mask-image: var(--alg-mask);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: 50% 50%;
	mask-position: 50% 50%;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* 불투명한 로고는 박스 전체를 훑고 지나갑니다. */
.alg-logo-gleam-box::after {
	-webkit-mask-image: none;
	mask-image: none;
	opacity: 0.7;
}

.alg-blend-screen::after {
	mix-blend-mode: screen;
}

.alg-blend-normal::after {
	mix-blend-mode: normal;
	filter: drop-shadow(0 0 5px rgba(255, 248, 226, 0.55));
}

.alg-blend-overlay::after {
	mix-blend-mode: overlay;
}

.alg-blend-soft-light::after {
	mix-blend-mode: soft-light;
}

/* 마우스를 올렸을 때만 동작 */
body.alg-hover-mode .alg-logo-gleam-active::after {
	animation-play-state: paused;
	opacity: 0;
}

body.alg-hover-mode .alg-logo-gleam-active:hover::after {
	animation-play-state: running;
	opacity: 1;
}

/* 쇼트코드 / 클래스로 감싼 경우 */
.alg-shortcode {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	vertical-align: middle;
	max-width: 100%;
}

.alg-shortcode > img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* 엘리멘터 이미지 위젯: figure / a 래퍼 안에서도 폭이 무너지지 않게 */
.elementor-widget-image .alg-logo-gleam-wrap,
.elementor-widget-theme-site-logo .alg-logo-gleam-wrap,
.elementor-image .alg-logo-gleam-wrap {
	width: auto;
	max-width: 100%;
}

.elementor-widget-image .alg-logo-gleam-wrap > img,
.elementor-widget-theme-site-logo .alg-logo-gleam-wrap > img,
.elementor-image .alg-logo-gleam-wrap > img {
	max-width: 100%;
}
