.gnb-list > li:nth-child(2) { font-weight: 900; }

.tab-menu { display: flex; justify-content: center; column-gap: 10px; }
.tab-menu > li a { display: block; padding: 0 10px; line-height: 28px; font-size: 13px; border: 1px solid #c0c0c0; }
.tab-menu > li.active a { background-color: #000; color: #fff; }

.portfolio-list { width: 100%; padding-top: 200px; }

.portfolio-contents { display: flex; justify-content: flex-start; align-items: center; column-gap: 60px; row-gap: 100px; flex-wrap: wrap; flex-direction: row; width: 100%; max-width: 1440px; margin: 0 auto; }
.portfolio-card.vertical > .portfolio-img { width: 240px; height: 310px; overflow: hidden; }
.portfolio-card.horizontal > .portfolio-img { width: 440px; height: 310px; overflow: hidden; }
.portfolio-card.vertical img, .portfolio-card.horizontal img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-tabs { position: absolute; top: 160px; width: 100%; padding: 20px 0; background-color: #fff; z-index: 999; }
.portfolio-tabs.fixed { position: fixed; top: 80px; z-index: 300; }
.portfolio-tabs button.active { font-weight: bold; background: #000; color: #fff; }

.portfolio-img { width: 100%;}
.portfolio-info { position: relative; display: table; width: 100%; height: 60px;}
.portfolio-info h4 { position: relative; display: table-cell; vertical-align: middle; padding: 0 0 0 25px; transition: all 0.3s ease; font-weight: 400; font-size: 17px; }
.portfolio-info a { position: absolute; right: 20px; top: 20px; display: block; width: 24px; height: 24px; background: url('../images/portfolio/btn-share.png') no-repeat; transition: all 0.3s ease; }
.portfolio-card:hover .portfolio-info a { background: url('../images/portfolio/btn-share-w.png') no-repeat; z-index: 999; }
.portfolio-card:hover .portfolio-info h4 { color: #fff; z-index: 999; }

.portfolio-card { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; z-index: 5; text-align: center; padding: 20px; cursor: zoom-in; }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover .portfolio-info { background-color: #000; }
.overlay-label { display: none; color: #fff; font-size: 18px; font-weight: bold; margin-bottom: 10px; text-shadow: 0 0 5px rgba(0,0,0,0.8); }
.overlay-label > a:hover { text-decoration: underline; }
.overlay-tag { color: #fff; font-size: 14px; line-height: 1.4; text-shadow: 0 0 5px rgba(0,0,0,0.8); }

.share-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { background: #fff; padding: 40px 40px; border-radius: 10px; position: relative; display: flex; align-items: center; gap: 20px; }
.modal-close { position: absolute; top: 0px; right: 10px; cursor: pointer; font-size: 34px; }
#qrcode { width: 100px; height: 100px; }
.share-url { background: #eee; padding: 5px 10px; display: flex; align-items: center; border-radius: 6px; }
#shareLinkInput { border: none; background: transparent; width: 250px; font-size: 14px; white-space: normal; word-break: break-all; line-height: 1.4; }
#copyBtn { margin-left: 10px; background: none; border: none; cursor: pointer; }

.search-box { display: flex; align-items: center; position: absolute; right: 0; top: 0; }
.search-box input { height: 28px; font-size: 13px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 0; }
.suggest { position: absolute; top: 32px; left: 0; z-index: 10; background: #fff; border: 1px solid #ccc; list-style: none; padding: 5px 0; margin: 0; width: 100%; display: none; }
.suggest li { font-size: 13px; text-align: left; }
.suggest li:hover { background-color: #f0f0f0; }
.searchbtn { padding: 6px 12px; font-size: 14px; cursor: pointer; background-color: #000; color: #fff; }


@media (max-width: 1450px){
.portfolio-contents { justify-content: center; }
}

@media (max-width: 480px){
.overlay-label { display: block; }

.portfolio-list { padding-top: 200px; }
.portfolio-contents { justify-content: center; row-gap: 40px; }
.portfolio-card.vertical > .portfolio-img { width: 200px; height: 250px; }
.portfolio-card.horizontal > .portfolio-img { width: 200px; height: 180px; }
.portfolio-info h4 { font-size: 14px; }

.tab-menu { width: max-content; }
.tabsect { width: 100%; height: 40px; overflow-x: auto;}

.search-box { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: max-content; }
.portfolio-tabs { position: fixed; top: 70px; padding-bottom: 40px; }
.portfolio-tabs.fixed { top: 70px; }
.tab-menu > li a { width: max-content; }
}