/* =========================================================
   디자인통 포트폴리오
   색·간격은 숏코드 옵션(color, gap) 또는 아래 변수로 조정
   ========================================================= */
.dtp-portfolio, .dtp-hero, .dtp-lb {
	--dtp-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.dtp-portfolio {
	--dtp-accent: #00b19e;
	--dtp-text: #222;
	--dtp-muted: #8a8a8a;
	--dtp-line: #e6e6e6;
	--dtp-gap: 30px;
	color: var(--dtp-text);
	font-family: var(--dtp-font);
	word-break: keep-all;
}
.dtp-portfolio *, .dtp-hero *, .dtp-lb * { box-sizing: border-box; }

/* ---------- 제목 + 필터 ---------- */
.dtp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin: 0 0 40px; }
.dtp-heading { margin: 0 0 12px; font-family: var(--dtp-font); font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: -.01em; line-height: 1.25; color: #222; }
.dtp-intro { margin: 0; font-size: 16px; line-height: 1.7; color: #777; max-width: 520px; }
.dtp-head__text:empty { display: none; }

.dtp-filter { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.dtp-filter button {
	appearance: none; position: relative; border: 0; background: none; padding: 4px 0; margin: 0;
	font: inherit; font-size: 16px; color: #999; cursor: pointer; transition: color .25s;
}
.dtp-filter button::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.dtp-filter button:hover, .dtp-filter button.is-active { color: #222; }
.dtp-filter button.is-active::after { transform: scaleX(1); }
.dtp-filter button:focus-visible { outline: 2px solid var(--dtp-accent); outline-offset: 4px; }

/* ---------- 그리드 (JS가 없으면 일반 격자로 표시) ---------- */
.dtp-grid { display: grid; grid-template-columns: repeat(var(--dtp-cols, 3), minmax(0, 1fr)); gap: var(--dtp-gap); }
@media (max-width: 1024px) { .dtp-grid { grid-template-columns: repeat(min(var(--dtp-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px)  { .dtp-grid { grid-template-columns: minmax(0, 1fr); } .dtp-portfolio { --dtp-gap: 20px; } }

/* 벽돌형(masonry): JS가 위치 계산 */
.dtp-layout-masonry .dtp-grid.is-masonry { display: block; position: relative; transition: height .5s ease; }
.dtp-layout-masonry .dtp-grid.is-masonry .dtp-card {
	position: absolute; top: 0; left: 0;
	transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.dtp-card[hidden] { display: none !important; }
.dtp-card.is-entering { opacity: 0; }

/* ---------- 사진 영역 ---------- */
.dtp-media {
	appearance: none; display: block; position: relative; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0;
	overflow: hidden; background: #f1f1f1; cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.dtp-layout-masonry .dtp-media { aspect-ratio: var(--r, 4/3); }
.dtp-layout-grid .dtp-media { aspect-ratio: var(--dtp-ratio, 4/3); }
.dtp-media:focus-visible { outline: 2px solid var(--dtp-accent); outline-offset: 4px; }

.dtp-slides, .dtp-slide { position: absolute; inset: 0; }
.dtp-slide { opacity: 0; transition: opacity 1.1s ease; }
.dtp-slide.is-active { opacity: 1; }
.dtp-slide img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.dtp-media:hover .dtp-slide img, .dtp-media:focus-visible .dtp-slide img { transform: scale(1.05); }

.dtp-badge {
	position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 9px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; line-height: 1; border-radius: 2px;
	transition: opacity .3s;
}
.dtp-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 5px; transition: opacity .3s; }
.dtp-dot { display: block; width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .4s, background .4s; }
.dtp-dot.is-active { width: 16px; background: #fff; }

/* ---------- 마우스를 올리면 나타나는 색 오버레이 ---------- */
.dtp-overlay { position: absolute; inset: 15px; z-index: 3; pointer-events: none; }
.dtp-overlay__in {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
	padding: 26px 28px; color: #fff; background: var(--dtp-accent);
	background: color-mix(in srgb, var(--dtp-accent) 90%, transparent);
	opacity: 0; transform: scale(.94); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.dtp-overlay__zoom { align-self: flex-end; opacity: .9; transform: translate(-6px, 6px); transition: transform .45s ease .05s; }
.dtp-overlay__text { display: flex; flex-direction: column; gap: 6px; transform: translateY(14px); transition: transform .5s cubic-bezier(.2,.7,.2,1) .05s; min-width: 0; }
.dtp-overlay .dtp-title { font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.dtp-overlay .dtp-cat { font-size: 14px; opacity: .85; }
.dtp-overlay .dtp-desc {
	margin-top: 8px; font-size: 14px; line-height: 1.6; opacity: .92;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dtp-meta-inline { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dtp-media:hover .dtp-overlay__in, .dtp-media:focus-visible .dtp-overlay__in { opacity: 1; transform: none; }
.dtp-media:hover .dtp-overlay__text, .dtp-media:focus-visible .dtp-overlay__text,
.dtp-media:hover .dtp-overlay__zoom, .dtp-media:focus-visible .dtp-overlay__zoom { transform: none; }
.dtp-layout-masonry .dtp-media:hover .dtp-badge, .dtp-layout-masonry .dtp-media:hover .dtp-dots { opacity: 0; }

/* 밝은 덮개(흰색 등)일 때 글자색 */
.dtp-overlay-light .dtp-overlay__in { color: #222; }
.dtp-overlay-light .dtp-overlay .dtp-cat, .dtp-overlay-light .dtp-meta-inline { color: #777; opacity: 1; }

/* 작은 칸에서는 설명 숨김 */
@container (max-width: 300px) { .dtp-overlay .dtp-desc, .dtp-meta-inline { display: none; } }
.dtp-card { container-type: inline-size; }

/* 터치 기기: 오버레이 대신 사진 아래 그라데이션 + 제목 */
@media (hover: none) {
	.dtp-overlay { inset: 0; }
	.dtp-overlay__in { opacity: 1; transform: none; justify-content: flex-end; background: linear-gradient(transparent 45%, rgba(0,0,0,.6)); padding: 18px 20px 30px; }
	.dtp-overlay__text { transform: none; }
	.dtp-overlay__zoom, .dtp-overlay .dtp-desc, .dtp-meta-inline { display: none; }
	.dtp-overlay .dtp-title { font-size: 18px; }
	.dtp-overlay-light .dtp-overlay__in { color: #fff; }
	.dtp-overlay-light .dtp-overlay .dtp-cat { color: rgba(255,255,255,.85); }
	.dtp-layout-masonry .dtp-badge { top: 12px; right: 12px; }
	.dtp-layout-masonry .dtp-dots { bottom: 12px; }
}

/* ---------- grid 모양: 사진 아래 글 ---------- */
.dtp-body { padding: 18px 0 0; }
.dtp-cat-line { margin: 0 0 6px; font-size: 14px; color: var(--dtp-muted); }
.dtp-body .dtp-title { margin: 0 0 8px; font-family: var(--dtp-font); font-size: 20px; line-height: 1.35; font-weight: 500; color: #222; }
.dtp-body .dtp-desc { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #555; }
.dtp-meta { margin: 0; padding-top: 12px; border-top: 1px solid var(--dtp-line); display: grid; gap: 6px; font-size: 14px; }
.dtp-meta div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.dtp-meta dt { color: var(--dtp-muted); margin: 0; }
.dtp-meta dd { margin: 0; }

/* =========================================================
   전체 화면 팝업
   ========================================================= */
.dtp-lb {
	position: fixed; inset: 0; z-index: 999999; background: #0c0c0d;
	display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s;
	-webkit-user-select: none; user-select: none; touch-action: pan-y; font-family: var(--dtp-font);
}
.dtp-lb[hidden] { display: none; }
.dtp-lb.is-open { opacity: 1; }
.dtp-lb-stage { position: absolute; inset: 64px 96px; display: flex; align-items: center; justify-content: center; }
.dtp-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .5s ease, transform .6s ease; }
.dtp-lb-img.is-shown { opacity: 1; transform: none; }
.dtp-lb button {
	appearance: none; position: absolute; border: 0; padding: 0; background: none; color: #fff;
	width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer; opacity: .7; transition: opacity .2s, transform .2s;
}
.dtp-lb button:hover { opacity: 1; }
.dtp-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
.dtp-lb-close { top: 12px; right: 16px; }
.dtp-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.dtp-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.dtp-lb-prev:hover { transform: translate(-4px, -50%); }
.dtp-lb-next:hover { transform: translate(4px, -50%); }
.dtp-lb-bar { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 14px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dtp-lb-bar .dtp-lb-play { position: static; width: 36px; height: 36px; }
.dtp-lb-progress { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: rgba(255,255,255,.6); }
.dtp-lb-progress.is-running { transition-property: width; transition-timing-function: linear; width: 100%; }
.dtp-lb.is-single .dtp-lb-prev, .dtp-lb.is-single .dtp-lb-next, .dtp-lb.is-single .dtp-lb-bar, .dtp-lb.is-single .dtp-lb-progress { display: none; }
html.dtp-lock, html.dtp-lock body { overflow: hidden; }

/* 팝업 속 작품 정보 패널 */
.dtp-lb-infobtn { top: 12px; right: 74px; display: none !important; }
.dtp-lb-close, .dtp-lb-infobtn { z-index: 3; }
.dtp-lb-info { z-index: 2; }
.dtp-lb.has-info .dtp-lb-infobtn { display: grid !important; }
.dtp-lb.is-info .dtp-lb-infobtn { opacity: 1; }
.dtp-lb-info {
	position: absolute; top: 0; right: 0; bottom: 0; width: 360px; padding: 84px 36px 40px; overflow-y: auto;
	background: #fff; color: #1c1f24; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
	word-break: keep-all; -webkit-user-select: text; user-select: text;
}
.dtp-lb.is-info .dtp-lb-info { transform: none; }
.dtp-lb.is-info .dtp-lb-stage { right: 456px; }
.dtp-lb.is-info .dtp-lb-next { right: 380px; }
.dtp-lb.is-info .dtp-lb-bar { right: 360px; }
.dtp-lb.is-info .dtp-lb-close, .dtp-lb.is-info .dtp-lb-infobtn { color: #1c1f24; }
.dtp-lb-stage, .dtp-lb-next, .dtp-lb-bar { transition: right .45s cubic-bezier(.2,.7,.2,1), opacity .2s, transform .2s; }
.dtp-lb-info__cat { margin: 0 0 8px; font-size: 13px; color: #8a8f98; letter-spacing: .02em; }
.dtp-lb-info__title { margin: 0 0 16px; font-family: inherit; font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: #1c1f24; }
.dtp-lb-info__sum { margin: 0 0 30px; font-size: 15px; line-height: 1.75; color: #4a4f57; }
.dtp-lb-info__rows { margin: 0; border-top: 1px solid #e6e7ea; }
.dtp-lb-info__rows div { padding: 14px 0; border-bottom: 1px solid #e6e7ea; }
.dtp-lb-info__rows dt { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #8a8f98; }
.dtp-lb-info__rows dd { margin: 0; font-size: 15px; line-height: 1.6; color: #1c1f24; }
@media (max-width: 1024px) {
	.dtp-lb-info { top: auto; left: 0; width: auto; max-height: 62vh; padding: 28px 24px 36px; transform: translateY(100%); border-radius: 14px 14px 0 0; }
	.dtp-lb.is-info .dtp-lb-info { transform: none; }
	.dtp-lb.is-info .dtp-lb-stage, .dtp-lb.is-info .dtp-lb-next, .dtp-lb.is-info .dtp-lb-bar { right: auto; }
	.dtp-lb.is-info .dtp-lb-next { right: 6px; }
	.dtp-lb.is-info .dtp-lb-close, .dtp-lb.is-info .dtp-lb-infobtn { color: #fff; }
}

@media (max-width: 640px) {
	.dtp-lb-stage { inset: 64px 0; }
	.dtp-lb-prev, .dtp-lb-next { width: 44px; height: 44px; background: rgba(0,0,0,.3); }
	.dtp-lb-prev { left: 6px; } .dtp-lb-next { right: 6px; }
}

/* =========================================================
   메인 슬라이드 [dt_hero]
   ========================================================= */
.dtp-hero {
	position: relative; overflow: hidden; color: #fff; font-family: var(--dtp-font); word-break: keep-all;
	height: var(--dtp-hero-h, 100vh); min-height: 420px;
	width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: #222;
}
.dtp-hero__slides, .dtp-hero__slide, .dtp-hero__shade { position: absolute; inset: 0; }
.dtp-hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.dtp-hero__slide.is-active { opacity: 1; z-index: 1; }
.dtp-hero__slide img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; transform: scale(1.08); }
.dtp-hero__slide.is-active img { animation: dtp-kenburns 12s ease-out forwards; }
@keyframes dtp-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.dtp-hero__shade { z-index: 2; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35)); }

.dtp-hero__content {
	position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(900px, calc(100% - 48px)); text-align: center;
}
.dtp-hero__title { margin: 0 0 18px; font-family: var(--dtp-font); font-size: clamp(32px, 5.2vw, 64px); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.15); }
.dtp-hero__sub { margin: 0 auto; max-width: 640px; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.7; font-weight: 300; opacity: .92; white-space: pre-line; transition: opacity .5s ease; }
.dtp-hero__sub.is-swapping { opacity: 0 !important; }

/* 타이핑 문구 */
.dtp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dtp-type { display: block; white-space: pre-line; transition: opacity .5s ease; }
.dtp-type.is-swapping { opacity: 0; }
.dtp-hero__title.is-typing .dtp-type::after {
	content: ""; display: inline-block; width: 2px; height: .95em; margin-left: .08em; vertical-align: -.1em;
	background: currentColor; animation: dtp-caret 1s steps(1) infinite;
}
.dtp-hero__title.is-busy .dtp-type::after { animation: none; }
@keyframes dtp-caret { 50% { opacity: 0; } }
.dtp-hero__btn {
	display: inline-block; margin-top: 34px; padding: 14px 34px; border: 1px solid rgba(255,255,255,.8); color: #fff !important;
	text-decoration: none !important; font-size: 15px; letter-spacing: .04em; transition: background .3s, color .3s;
}
.dtp-hero__btn:hover { background: #fff; color: #222 !important; }
.dtp-hero__content > * { opacity: 0; transform: translateY(20px); animation: dtp-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.dtp-hero__content > :nth-child(2) { animation-delay: .15s; }
.dtp-hero__content > :nth-child(3) { animation-delay: .3s; }
@keyframes dtp-rise { to { opacity: 1; transform: none; } }

.dtp-hero button {
	appearance: none; position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 12px;
	color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s, transform .3s;
}
.dtp-hero button:hover { opacity: 1; }
.dtp-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dtp-hero__prev { left: 28px; } .dtp-hero__prev:hover { transform: translate(-5px, -50%); }
.dtp-hero__next { right: 28px; } .dtp-hero__next:hover { transform: translate(5px, -50%); }
.dtp-hero__count { position: absolute; z-index: 4; right: 40px; bottom: 36px; display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.dtp-hero__count i { display: block; width: 40px; height: 1px; background: rgba(255,255,255,.6); }
.dtp-hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 30px; width: 1px; height: 54px; background: rgba(255,255,255,.35); overflow: hidden; }
.dtp-hero__scroll::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: dtp-scroll 2s ease-in-out infinite; }
@keyframes dtp-scroll { to { top: 100%; } }

@media (max-width: 640px) {
	.dtp-hero__prev, .dtp-hero__next { display: none; }
	.dtp-hero__count { right: 20px; bottom: 24px; }
	.dtp-hero__scroll { display: none; }
}

.dtp-empty { padding: 16px; background: #fff8e5; border-left: 4px solid #dba617; }

@media (prefers-reduced-motion: reduce) {
	.dtp-slide, .dtp-lb-img, .dtp-slide img, .dtp-card, .dtp-overlay__in, .dtp-overlay__text, .dtp-hero__slide { transition: none !important; }
	.dtp-hero__slide.is-active img, .dtp-hero__content > *, .dtp-hero__scroll::after { animation: none !important; opacity: 1; transform: none; }
}
