.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; padding-top: 20px; }
.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; background-color: #232323;}
.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; color: #fff; transition: all 0.3s ease; white-space: normal; }
.portfolio-info a { position: absolute; right: 20px; top: 20px; display: block; width: 24px; height: 24px; background: url('../images/portfolio/btn-share-w.png') no-repeat; opacity: 0.5; transition: all 0.3s ease; }
.portfolio-card:hover .portfolio-info a { background: url('../images/portfolio/btn-share-w.png') no-repeat; z-index: 290; }
.portfolio-card:hover .portfolio-info h4 { color: #fff; z-index: 290; }

.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: 30px; top: 54px; }
.search-box input { font-size: 13px; padding: 0 10px; line-height: 28px; 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: 0 12px; font-size: 13px; cursor: pointer; background-color: #000; color: #fff; line-height: 28px; border: 1px solid #c0c0c0; border-left: none; }


.portfolio-recommend-wrap {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 12px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px dashed #bcbcbc;
  border-bottom: 1px dashed #bcbcbc;
  background: #f5f5f5;
}

.portfolio-recommend-title {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
}

.portfolio-recommend-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.portfolio-recommend-item {
  display: inline-block;
  font-size: 12px;
  line-height: 20px;
  padding: 2px 7px;
  border: none;
  background: transparent;
  color: #b4b4b4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-recommend-item:hover,
.portfolio-recommend-item:focus-visible,
.portfolio-recommend-item.is-current {
  color: #111;
  box-shadow: inset 0 -1px 0 #111;
  outline: none;
}
@media (max-width: 1450px){
.portfolio-contents { justify-content: center; }
}

@media (max-width: 480px){
.overlay-label { display: block; }

.portfolio-list { padding-top: 260px; }
.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: static; left: auto; top: auto; transform: none; width: max-content; margin: 8px auto 0; }
.portfolio-tabs { position: fixed; top: 70px; padding-bottom: 40px; }

.portfolio-recommend-wrap { margin-top: 16px; padding: 8px 10px; gap: 10px; }
.portfolio-recommend-list { gap: 6px; }
.portfolio-tabs.fixed { top: 70px; }
.tab-menu > li a { width: max-content; }
}