/* VP Outfit Gallery — 바닐라페이퍼 의상 갤러리 (2026-12) */

.vp-og {
	--vpog-ink: #1d1c1a;
	--vpog-mute: #8d8780;
	--vpog-line: #e7e2db;
	--vpog-soft: #f7f5f2;
	font-family: inherit;
	color: var(--vpog-ink);
	-webkit-font-smoothing: antialiased;
}

/* 탭 */
.vp-og-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 6px;
	margin: 0 0 6px;
}

.vp-og-tab {
	position: relative;
	appearance: none;
	background: none;
	border: 0;
	margin: 0;
	padding: 9px 15px 11px;
	font: inherit;
	font-size: 0.86rem;
	letter-spacing: 0.16em;
	color: var(--vpog-mute);
	cursor: pointer;
	transition: color 0.25s ease;
}

.vp-og-tab:hover {
	color: var(--vpog-ink);
}

.vp-og-tab[aria-selected="true"] {
	color: var(--vpog-ink);
}

.vp-og-tab::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 3px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.vp-og-tab[aria-selected="true"]::after {
	transform: scaleX(1);
}

/* 안내사항 버튼 */
.vp-og-notice {
	display: flex;
	justify-content: center;
	margin: 0 0 34px;
}

.vp-og-notice-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	appearance: none;
	background: #fcfbf9;
	border: 1px solid var(--vpog-line);
	border-radius: 999px;
	padding: 8px 17px 9px;
	font: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	color: #6d6760;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.vp-og-notice-btn:hover {
	color: var(--vpog-ink);
	border-color: #cfc7bc;
	background: #fff;
}

.vp-og-notice-btn svg {
	opacity: 0.55;
	transition: transform 0.25s ease;
}

.vp-og-notice-btn:hover svg {
	transform: translateX(2px);
}

/* 그리드 */
.vp-og-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 22px;
}

.vp-og-card {
	display: block;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.vp-og-card[hidden] {
	display: none;
}

.vp-og-thumb {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--vpog-soft);
}

.vp-og-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.vp-og-card:hover .vp-og-thumb img,
.vp-og-card:focus-visible .vp-og-thumb img {
	transform: scale(1.035);
}

.vp-og-photo-count {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	border-radius: 11px;
	background: rgba(24, 23, 21, 0.5);
	color: #fff;
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vp-og-card:hover .vp-og-photo-count,
.vp-og-card:focus-visible .vp-og-photo-count {
	opacity: 1;
}

.vp-og-name {
	display: block;
	margin: 11px 0 3px;
	font-size: 0.94rem;
	letter-spacing: 0.01em;
	line-height: 1.45;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.vp-og-tags {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.09em;
	color: var(--vpog-mute);
}

/* 카드 등장 */
.vp-og-card.vpog-fade {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.vp-og-card.vpog-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.vp-og-card.vpog-fade {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* 빈 상태 */
.vp-og-blank {
	text-align: center;
	padding: 46px 10px 58px;
	border-top: 1px solid var(--vpog-line);
	border-bottom: 1px solid var(--vpog-line);
}

.vp-og-blank-title {
	margin: 0 0 8px;
	font-size: 0.98rem;
	letter-spacing: 0.08em;
}

.vp-og-blank-text {
	margin: 0;
	font-size: 0.82rem;
	letter-spacing: 0.03em;
	color: var(--vpog-mute);
}

.vp-og-empty {
	margin: 26px 0 0;
	padding: 40px 0;
	text-align: center;
	font-size: 0.86rem;
	letter-spacing: 0.04em;
	color: var(--vpog-mute);
}

.vp-og-empty[hidden] {
	display: none;
}

/* ---------------------------------------------------------------
 * 모달
 * ------------------------------------------------------------- */
.vp-og-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.vp-og-modal.is-open {
	display: flex;
}

.vp-og-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 21, 19, 0.78);
	animation: vpog-fade 0.28s ease both;
}

@keyframes vpog-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.vp-og-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	max-height: calc(100vh - 48px);
	background: #fff;
	animation: vpog-rise 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

@keyframes vpog-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.vp-og-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.82);
	color: #2a2926;
	cursor: pointer;
	transition: background 0.2s ease;
}

.vp-og-close:hover {
	background: #fff;
}

.vp-og-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f2ef;
	overflow: hidden;
}

.vp-og-figure {
	margin: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 64px;
}

.vp-og-img {
	display: block;
	max-width: 100%;
	max-height: min(64vh, 720px);
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 0.25s ease;
}

.vp-og-img.is-loading {
	opacity: 0;
}

.vp-og-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(28, 27, 25, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.86);
	color: #232220;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.vp-og-nav:hover {
	background: #fff;
}

.vp-og-prev {
	left: 12px;
}

.vp-og-next {
	right: 12px;
}

.vp-og-nav[disabled] {
	opacity: 0.28;
	cursor: default;
}

.vp-og-dots {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 2;
}

.vp-og-dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(28, 27, 25, 0.25);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.vp-og-dot[aria-current="true"] {
	background: rgba(28, 27, 25, 0.7);
	transform: scale(1.25);
}

.vp-og-count {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 2;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	color: #6d6760;
	background: rgba(255, 255, 255, 0.75);
	padding: 3px 9px;
	border-radius: 10px;
}

.vp-og-info {
	flex: 0 0 auto;
	padding: 20px 34px 24px;
	border-top: 1px solid var(--vpog-line);
	background: #fff;
	overflow-y: auto;
}

.vp-og-info-name {
	margin: 0 0 6px;
	font-size: 1.06rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.vp-og-info-size {
	margin: 0 0 8px;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: var(--vpog-mute);
}

.vp-og-info-intro {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.75;
	letter-spacing: 0.02em;
	color: #4b4843;
	white-space: pre-line;
	word-break: keep-all;
}

body.vpog-locked {
	overflow: hidden;
}

/* 안내사항 모달 */
.vp-og-notice-dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	padding: 34px 34px 36px;
	animation: vpog-rise 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.vp-og-notice-title {
	margin: 0 0 18px;
	padding-right: 30px;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.vp-og-notice-body {
	font-size: 0.86rem;
	line-height: 1.9;
	letter-spacing: 0.01em;
	color: #45423d;
}

.vp-og-notice-body p {
	margin: 0 0 10px;
}

.vp-og-notice-body ul,
.vp-og-notice-body ol {
	margin: 0 0 10px;
	padding-left: 18px;
}

.vp-og-notice-body li {
	margin: 0 0 4px;
}

.vp-og-modal--notice .vp-og-close {
	background: rgba(255, 255, 255, 0.9);
}

/* 모바일 */
@media (max-width: 782px) {
	.vp-og-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 13px;
	}

	.vp-og-tabs {
		gap: 0 2px;
	}

	.vp-og-tab {
		padding: 8px 8px 10px;
		font-size: 0.78rem;
		letter-spacing: 0.06em;
		white-space: nowrap;
	}

	.vp-og-tab::after {
		left: 8px;
		right: 8px;
	}

	.vp-og-photo-count {
		opacity: 1;
	}

	.vp-og-notice {
		margin-bottom: 26px;
	}

	.vp-og-notice-btn {
		font-size: 0.74rem;
		padding: 7px 14px 8px;
	}

	.vp-og-name {
		margin-top: 9px;
		font-size: 0.86rem;
	}

	.vp-og-tags {
		font-size: 0.68rem;
	}

	.vp-og-modal {
		padding: 0;
		align-items: flex-end;
	}

	.vp-og-dialog {
		width: 100%;
		max-height: 94vh;
		height: 94vh;
	}

	.vp-og-figure {
		padding: 52px 42px 34px;
	}

	.vp-og-img {
		max-height: 54vh;
	}

	.vp-og-info {
		padding: 16px 20px 20px;
	}

	.vp-og-info-name {
		font-size: 1rem;
	}

	.vp-og-nav {
		width: 36px;
		height: 36px;
	}

	.vp-og-prev { left: 6px; }
	.vp-og-next { right: 6px; }

	.vp-og-close {
		top: 8px;
		right: 8px;
	}

	.vp-og-notice-dialog {
		width: 100%;
		max-height: 80vh;
		padding: 28px 22px 30px;
	}
}
