.portfolio-detail-main .sub-wrapper {
	padding-top: 330px;
	min-height: auto;
}

.portfolio-detail-main .portfolio-detail-content {
	display: flex;
	gap: 58px;
	align-items: flex-start;
	justify-content: center;
}

.portfolio-detail-main .portfolio-detail-left {
	width: 40%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	/* ✅ 고정 높이 제거하고 비율 유지 */
	aspect-ratio: 11 / 9; /* 세로형 mockup 기준, 필요시 조정 */
}

/* 이미지와 swiper가 같은 크기 */
.portfolio-detail-main .portfolio-detail-left .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain; /* 또는 cover */
	z-index: 2;
	pointer-events: none;
}

/* ✅ swiper wrapper가 같은 공간 공유하도록 */
.portfolio-detail-main .portfolio-mockup {
	position: absolute;
	top: 2%;
	left: 50%;
	width: 95%;
	height: 71%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	transform: translateX(-50%);
}

.portfolio-detail-main .portfolio-mobile .portfolio-mockup {
	height: calc(99% - 8px);
	width: calc(39% - 10px);
	top: 1.5%;
}

.portfolio-detail-main .portfolio-detail-right {
	flex: 1 1 0;
	min-width: 320px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	border-top: 1px solid rgba(13, 17, 55, 0.2);
	padding-top: 32px;
	position: relative;
}

.portfolio-detail-main .portfolio-detail-right .portfolio-detail-navi {
	margin-bottom: 8px;
	padding: 2px 12px;
	background-color: rgba(13, 17, 55, 0.6);
	border-radius: 24px;
	line-height: 2.2rem;
	color: var(--color-white-100);
}

.portfolio-detail-main .portfolio-detail-title {
	margin-bottom: 16px;
}

.portfolio-detail-main .portfolio-detail-desc {
	color: rgba(13, 17, 55, 0.8);
	margin-bottom: 32px;
}

.portfolio-detail-main .portfolio-detail-meta {
	margin-bottom: 74px;
}

.portfolio-detail-main .meta-row {
	display: flex;
	align-items: baseline;
	margin-bottom: 6px;
	gap: 36px;
}

.portfolio-detail-main .meta-label {
	font-weight: 200;
	width: 117px;
	padding-left: 25px;
	box-sizing: border-box;
	flex-shrink: 0;
	word-break: keep-all;
}

.portfolio-detail-main .meta-label.end-date {
	background: url('../../images/egovframework/icon/end-date.png') no-repeat left center;
	background-size: 16px 16px;
}

.portfolio-detail-main .meta-label.spec {
	background: url('../../images/egovframework/icon/spec.png') no-repeat left center;
	background-size: 16px 8px;
}

.portfolio-detail-main .meta-value {
	line-height: 4rem;
}

.portfolio-detail-main .portfolio-detail-btns {
	display: flex;
	gap: 10px 8px;
	flex-wrap: wrap;
}

.portfolio-detail-main .btn.btn-click {
	font-size: 1.6rem;
	line-height: 1.6rem;
	padding: 16px 32px;
}

.portfolio-detail-main .btn.btn-click.btn-playstore {
	padding-left: 48px;
	background: url('../../images/egovframework/icon/playstore.png') no-repeat 32px center;
  	background-size: 12px 13px;
}

.portfolio-detail-main .btn.btn-click.btn-appstore {
	padding-left: 44px;
	background: url('../../images/egovframework/icon/appstore.png') no-repeat 32px center;
  	background-size: 11px 13px;
}

.portfolio-detail-main .portfolio-detail-list-btn {
	position: absolute;
	top: -68px;
	right: 0;
	color: rgba(13, 17, 55, 0.6);
	padding: 14px 34px 14px 54px;
	border-radius: 24px;
	font-size: 1.4rem;
	line-height: 2.2rem;
	cursor: pointer;
	background-image: url('../../images/egovframework/icon/portfolio-active.png');
	background-position: 32px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-color: #f8f8f9;
	font-weight: 300;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

.portfolio-detail-main .portfolio-detail-nav {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	/* position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%); */
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	margin-bottom: 88px;
}

.portfolio-detail-main .portfolio-detail-nav .nav-icon {
	display: none;
}

.portfolio-detail-main .portfolio-detail-prev, .portfolio-detail-next {
	padding: 31px 36px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--color-white-100);
}

.portfolio-detail-main .portfolio-detail-prev .nav-arrow {
	padding-left: 34px;
	background: url('../../images/egovframework/icon/sub-arrow-l-w.png') no-repeat left center;
	background-size: 20px 8px;
}

.portfolio-detail-main .portfolio-detail-next .nav-arrow {
	padding-right: 34px;
	background: url('../../images/egovframework/icon/sub-arrow-r-w.png') no-repeat right center;
	background-size: 20px 8px;
}

.portfolio-detail-main .portfolio-detail-nav a {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 33px 36px;
	text-decoration: none;
	overflow: hidden;
	color: white;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.portfolio-detail-main .portfolio-detail-nav a::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(13, 17, 55, 0.7);
	z-index: 0;
}

.portfolio-detail-main .portfolio-detail-nav a::after {
	content: '';
	position: absolute;
	top: 0;
	height: 100%;
	z-index: 1;
	transition: width 0.4s ease;
}

.portfolio-detail-main .portfolio-detail-next::after {
	left: 0;
	width: 0%;
	background: linear-gradient(to right, #00c6ff, #0072ff);
}

.portfolio-detail-main .portfolio-detail-next:hover::after {
	width: 100%;
}

.portfolio-detail-main .portfolio-detail-prev::after {
	right: 0;
	width: 0%;
	background: linear-gradient(to left, #00c6ff, #0072ff);
}

.portfolio-detail-main .portfolio-detail-prev:hover::after {
	width: 100%;
	left: auto;
	right: 0;
}

.portfolio-detail-main .portfolio-detail-nav a span {
	position: relative;
	z-index: 2;
}

/* swiper - main */
.portfolio-detail-main .portfolio-mockup .swiper {
	width: 100%;
	height: 100%;
}

.portfolio-detail-main .portfolio-mobile .portfolio-mockup .swiper {
	border-radius: 12px;
}

/* .portfolio-detail-main .portfolio-mockup .swiper .swiper-slide {
	background: url('../../images/egovframework/sub/no-image-bg.png') no-repeat center center;
	background-size: cover;	
} */

.portfolio-detail-main .portfolio-mockup .swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	cursor: pointer;
}

.portfolio-detail-main .portfolio-mockup .swiper .swiper-slide img.no-image {
	margin: 0 auto;
	background: url('../../images/egovframework/sub/no-image-bg.png') no-repeat center center;
	background-size: cover;
	padding: 0 20%;
	box-sizing: border-box;
	object-fit: contain;
	object-position: center;
}

.portfolio-detail-main .portfolio-mobile .portfolio-mockup .swiper .swiper-slide img {
	object-fit: cover;
	object-position: top;
}

.portfolio-detail-main .portfolio-mobile .portfolio-mockup .swiper .swiper-slide img.no-image {
	object-fit: contain;
	object-position: center;
}

.portfolio-detail-main .swiper-horizontal>.swiper-pagination-bullets,
.portfolio-detail-main .swiper-pagination-bullets.swiper-pagination-horizontal,
.portfolio-detail-main .swiper-pagination-custom,
.portfolio-detail-main .swiper-pagination-fraction {
	bottom: -50% !important;
}

.portfolio-detail-main .portfolio-mobile .swiper-horizontal>.swiper-pagination-bullets,
.portfolio-detail-main .portfolio-mobile .swiper-pagination-bullets.swiper-pagination-horizontal,
.portfolio-detail-main .portfolio-mobile .swiper-pagination-custom,
.portfolio-detail-main .portfolio-mobile .swiper-pagination-fraction {
	bottom: -10% !important;
}

.portfolio-detail-main .swiper-pagination-bullet {
	width: 12px !important;
	height: 12px !important;
	background-color: #D9D9D9 !important;
	opacity: 1 !important;
}

.portfolio-detail-main .swiper-pagination-bullet-active {
	background-color: #0D1137 !important;
}

/* swiper - popup */
.portfolio-detail-main .modal {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10001;
}

.portfolio-detail-main .modal-content {
	position: relative;
	width: 90%;
	max-width: 800px;
	height: 70%;
	background-color: var(--color-white-100);
}

.portfolio-detail-main .modal-content img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-size: cover;
    box-sizing: border-box;
}

.portfolio-detail-main .modal-content img.no-image {
	background: url('../../images/egovframework/sub/no-image-bg.png') no-repeat center center;
	background-size: cover;
	padding: 0 20%;
}

.portfolio-detail-main #popupModal .close {
	 position: absolute;
	 top: -40px;
	 right: 0;
	 width: 26px;
	 height: 26px;
	 background: url('/images/egovframework/icon/menu-close.png') no-repeat center center;
	 background-size: 26px 26px;
	 cursor: pointer;
	 text-indent: -9999px;
}

.portfolio-detail-main .popupSwiper .swiper-button-next,
.portfolio-detail-main .popupSwiper .swiper-button-prev {
  	color: var(--color-white-100);
}

.portfolio-detail-main .swiper-button-next {
	right: -60px !important;
}

.portfolio-detail-main .swiper-button-prev {
	left: -60px !important;
}

.portfolio-detail-main .swiper-button-next,
.swiper-button-prev {
	color: var(--color-white-100);
}

.portfolio-detail-main .highlight-keyword {
	background-color: var(--color-point);
	color: var(--color-white-100);
	padding: 7px;
	border-radius: 10px;
}

/* 반응형 */
@media (max-width: 1024px) {
	.portfolio-detail-main .sub-wrapper {
		padding-top: 120px;
		padding-bottom: 0;
	}

	.portfolio-detail-main .portfolio-detail-content {
		flex-direction: column;
	}

	/* ✅ 고정 height 제거 & 비율 유지 (예: 9:16) */
	.portfolio-detail-main .portfolio-detail-left {
		width: 100%;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		aspect-ratio: 11 / 9;
	}

	/* ✅ overlay와 swiper가 같은 공간을 공유하게 */
	.portfolio-detail-main .portfolio-detail-left .overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: contain;
		z-index: 2;
		pointer-events: none;
	}

	/* ✅ swiper wrapper도 같은 크기로 맞춤 */
	.portfolio-detail-main .portfolio-mockup {
		position: absolute;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.portfolio-detail-main .portfolio-mockup .swiper {
		position: absolute;
		top: 0;
	}

	.portfolio-detail-main .portfolio-detail-right {
		min-width: unset;
		width: 100%;
		border: none;
	}

	.portfolio-detail-main .portfolio-detail-meta {
		margin-bottom: 36px;
	}

	.portfolio-detail-main .portfolio-detail-btns {
		margin-bottom: 90px;
	}

	.portfolio-detail-main .portfolio-detail-nav {
		margin-bottom: 52px;
	}
	
	.portfolio-detail-main .portfolio-detail-list-btn {
		left: 50%;
		right: auto;
		padding: 10px 22px 10px 42px;
		line-height: 2rem;
		background-position: 20px center;
		transform: translateX(-50%);
	}
	
	.portfolio-detail-main .modal-content {
		width: 70%;
	}
	
	.portfolio-detail-main .swiper-button-next {
		right: -40px !important;
	}
	
	.portfolio-detail-main .swiper-button-prev {
		left: -40px !important;
	}
	
	.portfolio-detail-main .portfolio-mobile .portfolio-mockup .swiper {
		border-radius: 5%;
	}
	
	.portfolio-detail-main .portfolio-mobile .portfolio-mockup {
		height: calc(99% - 12px);
		width: calc(39% - 12px);
		top: 1.5%;
	}
}

@media (max-width: 768px) {
	.portfolio-detail-main .portfolio-detail-title {
		font-size: 1.8rem;
		line-height: 2.6rem;
		margin-bottom: 10px;
	}

	.portfolio-detail-main .portfolio-detail-desc {
		font-size: 1.4rem;
		line-height: 2rem;
		margin-bottom: 24px;
	}
	
	.portfolio-detail-main .portfolio-detail-content {
		gap: 30px;
	}

	.portfolio-detail-main .meta-row {
		font-size: 1.4rem;
		line-height: 2rem;
		margin-bottom: 8px;
	}

	.portfolio-detail-main .btn.btn-click {
		font-size: 1.4rem;
		line-height: 1.4rem;
		padding: 12px 24px;
	}

	.portfolio-detail-main .btn.btn-link {
		padding-right: 51px;
		background-position: 83px center;
	}

	.portfolio-detail-main .portfolio-detail-nav {
		flex-direction: column;
	}

	.portfolio-detail-main .portfolio-detail-nav a {
		padding: 21px 20px;
		box-sizing: border-box;
		flex-direction: column;
		gap: 8px;
		position: relative;
	}

	.portfolio-detail-main .portfolio-detail-nav a.portfolio-detail-next {
		flex-direction: column-reverse;
	}

	.portfolio-detail-main .portfolio-detail-nav a span {
		font-size: 1.6rem;
		line-height: 1.6rem;
	}

	.portfolio-detail-main .portfolio-detail-prev .nav-arrow {
		background: none;
		padding-left: 0;
	}

	.portfolio-detail-main .portfolio-detail-next .nav-arrow {
		background: none;
		padding-right: 0;
	}

	.portfolio-detail-main .portfolio-detail-nav .nav-icon {
		display: block;
		width: 20px;
		height: 8px;
		text-indent: -9999px;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.portfolio-detail-main .portfolio-detail-nav a.portfolio-detail-prev .nav-icon {
		background: url(../../images/egovframework/icon/sub-arrow-l-w.png) no-repeat center center;
		background-size: 20px 8px;
		left: 20px;
	}

	.portfolio-detail-main .portfolio-detail-nav a.portfolio-detail-next .nav-icon {
		background: url(../../images/egovframework/icon/sub-arrow-r-w.png) no-repeat center center;
		background-size: 20px 8px;
		right: 20px;
	}
}