/* 포트폴리오 리스트 */

.portfolio-container {
    box-sizing: border-box;
    padding: 120px 60px 100px 0;
    display: flex;
    gap: 60px;
    margin-top: 58px;
}

.filter-container {
    box-sizing: border-box;
    padding-left: 60px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 30%;
    position: sticky;
    top: 0;
}

.filter-title-wrap {
    display: flex;
    flex-direction: column;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-wrap>p {
    line-height: 130%;
}

.filter-div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    row-gap: 10px;
}

.filter {
    box-sizing: border-box;
    display: flex;
    padding: 6px 16px;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    border: 1px solid rgba(27, 28, 128, 0.60);
    background: #FFF;
    color: #1B1C80;
    font-size: 16px;
    line-height: 130%; /* 20.8px */
    letter-spacing: -0.4px;
    cursor: pointer;
}

.filter:hover {
    background: rgba(27, 28, 128, 0.05);
}

.filter.active {
    background: #1B1C80; 
    color: #FFF; 
}

.basic-filter:hover, .basic-filter.active {
    background: rgba(248, 224, 142, 0.50);
    border: 1px solid rgba(248, 224, 142, 0.50);
    color: #111;
}

.premium-filter:hover, .premium-filter.active {
    background: rgba(255, 170, 159, 0.50);
    border: 1px solid rgba(255, 170, 159, 0.50);
    color: #111;
}

.remodeling-filter:hover, .remodeling-filter.active {
    background: rgba(214, 210, 196, 0.50);
    border: 1px solid rgba(214, 210, 196, 0.50);
    color: #111;
}

.filter-btn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset {
    display: flex;
    box-sizing: border-box;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(27, 28, 128, 0.10);
    cursor: pointer;
}

.reset:hover {
    background: #1B1C80;
    color: #FFF;
    transition: 0.1s;
}

.reset:hover svg path {
    fill: #FFF;
}

.reset>p {
    line-height: 130%;
}

.close-filter {
    display: flex;
    width: 100px;
    height: 45px;
    box-sizing: border-box;
    padding: 14px 18px 13px 11px;
    align-items: center;
    gap: 4px;
    border-radius: 100px;
    border: 1px solid rgba(27, 28, 128, 0.50);
    background: #FFF;
    box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.close-filter>span, .open-filter>span {
    line-height: 130%;
    color: #1B1C80;
    white-space: nowrap;
}


.close-filter:hover {
    background: rgba(6, 3, 141, 0.1);
}

.portfolio-list-container {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-list-container .filter-title-wrap {
    display: none;
    margin-bottom: 20px;
}

.order-wrap {
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: #EFEFEF;
    overflow: hidden;
    width: fit-content;
    cursor: pointer;
}

.order {
    color: rgba(80, 80, 80, 0.70);
    font-size: 16px;
    line-height: 130%; 
    border-radius: 8px;
    display: flex;
    box-sizing: border-box;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    letter-spacing: -0.4px;
}

.order.click {
    border: 1px solid rgba(27, 28, 128, 0.60);
    background: #FFF;
    box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.10);
    color: #1B1C80;
    transition: 0.1s;
}

.portfolio-box-container {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    position: relative;
}

.portfolio-box {
    border-radius: 8px;
    background: #FFF;
    box-shadow: 6px 12px 32px 0px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-box .keyword-div {
    display: none;
}

.portfolio-box .keyword {
    border: 1px solid rgba(27, 28, 128, 0.60);
}

.portfolio-img-div {
    flex-shrink: 0;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    position: relative;
}

.portfolio-img-div>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-img-div:hover>img {
    transform: scale(1.1);
}

.portfolio-content-div {
    display: flex;
    box-sizing: border-box;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.portfolio-box:hover .portfolio-content-div {
    background: rgba(6, 3, 141, 0.05);
    transition: 0.3s !important;
}

.h-name {
    overflow: hidden;
    color: rgba(0, 0, 0, 0.50);
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.35px;
}

.list-btn-download {
    position: absolute;
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    right: 10px;
    bottom: 10px;
    z-index: 5;
}

.list-btn-download:hover {
    background: #FFF;
}

/* .portfolio-content-div:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    z-index: -1; 
    background-color: #F4F6FD;
    background-image: linear-gradient(315deg, #F4F6FD 0%, #dce4f9 74%);
    transition: all 0.3s ease;
}

.basic .portfolio-content-div:after {
    background-color: rgba(248, 224, 142, 0.50); 
    background-image: linear-gradient(315deg, rgba(248, 224, 142, 0.50) 0%, #F8E08E 74%);
} 

.premium .portfolio-content-div:after {
    background-color: rgba(255, 170, 159, 0.50); 
    background-image: linear-gradient(315deg, rgba(255, 170, 159, 0.50) 0%, #FFAA9F 74%);
}

.remodeling .portfolio-content-div:after {
    background-color: rgba(214, 210, 196, 0.50); 
    background-image: linear-gradient(315deg, rgba(214, 210, 196, 0.50) 0%, #D6D2C4 74%);
}

.portfolio-box:hover .portfolio-content-div:after, .portfolio-video-box:hover .portfolio-content-div:after {
    top: 0;
    height: 100%;
}

.portfolio-box > *, .portfolio-video-box > * {
    position: relative;
    z-index: 2; 
} */

.portfolio-tit-div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portfolio-tit-div>p, .portfolio-tit-div>div {
    display: -webkit-box;          
    overflow: hidden;              
    text-overflow: ellipsis;       
    -webkit-line-clamp: 2;        
    -webkit-box-orient: vertical;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 130%; /* 26px */
    letter-spacing: -0.45px;
    min-height: 50px;
}

.portfolio-content {
    overflow: hidden;
    color: #505050;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 150%; /* 24px */
    letter-spacing: -0.35px;
}

.portfolio-content p, .portfolio-content span, .portfolio-content h1, .portfolio-content h2, .portfolio-content h3, .portfolio-content h4, .portfolio-content h5, .portfolio-content b  {
    font-family: Pretendard !important;
    text-align: left !important;
    font-weight: 300 !important;
}

.keyword {
    line-height: 150%;
}

.no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 200px;
}

.portfolio-list-container.expanded {
    width: 100%; 
}

.filter-container.hidden {
    display: none; 
}

.portfolio-box-container.expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.open-filter {
    position: sticky;
    top: 50%;
    display: none; 
    height: fit-content;
    box-sizing: border-box;
    padding: 14px 11px 13px 14px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 0px 100px 100px 0px;
    border: 1px solid rgba(27, 28, 128, 0.50);
    border-left: none;
    background: #FFF;
    box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    cursor: pointer;
}

.filter-container.hidden + .open-filter {
    display: flex; 
}

.hidden {
    display: none;
}

.mo-filter-open {
    width: 100%;
    border-bottom: 1px solid rgba(27, 28, 128, 0.50);
    background: #FFF;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
    display: none;
    gap: 4px;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
}

.mo-close-filter {
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px 0px;
    border-radius: 0;
    border-right: none;
    border-left: none;
    border-bottom: none;
    border-top: 1px solid rgba(27, 28, 128, 0.50);
    background: #FFF;
    box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, 0.08);
    gap: 4px;
}

.portfolio-big-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

/* 포트폴리오 상세 */


.portfolio-detail-container {
    box-sizing: border-box;
    display: flex;
    padding: 120px;
    justify-content: center;
    flex-direction: column;
    gap: 60px;
    margin-top: 58px;
}

.portfolio-detail-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-detail-title .keyword-div .keyword {
    padding: 8px 16px;
}

.detail-tit-div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-tit-div>.p24 {
    line-height: 26px;
}

.detail-tit-div>.p18 {
    color: #767676;
}

.portfolio-detail-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.portfolio-detail-table {
    width: 100%;
    border: 1px solid #EEE;
    margin-top: 20px;
}

.portfolio-detail-table th, .portfolio-detail-table td {
    color: #505050;
    text-align: center;
    font-size: 16px;
    line-height: 24px; /* 150% */
    letter-spacing: -0.4px;
    border-bottom: 1px solid #EEE;
}

.portfolio-detail-table th {
    background: #F2F2F2;
    font-weight: 600;
    width: 20%;
}

.portfolio-detail-table td {
    box-sizing: border-box;
    padding: 12px 10px;
    width: 30%;
}

.full-w {
    display: none;
}

.portfolio-detail-content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.detail-tab-container {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    row-gap: 8px;
}

.img-tab {
    border-radius: 50px;
    border: 1px solid rgba(27, 28, 128, 0.10);
    display: flex;
    box-sizing: border-box;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    color: rgba(17, 17, 17, 0.50);
    font-size: 16px;
    line-height: 130%; /* 20.8px */
    letter-spacing: -0.4px;
    cursor: pointer;
}

.img-tab.active {
    background: #1B1C80;
    border: 1px solid #1B1C80;
    color: #FFF;
}

.portfolio-detail-content-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.detail-img-big-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-height: 200px;
    display: none; 
}

.detail-img-big-container .detail-img-container {
    min-height: 200px;
}

.detail-img-container,
.detail-more-img-container {
    width: 100%;
    grid-gap: 8px;
    position: relative;
}

.detail-img-container {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto; 
    grid-template-areas: 
        "large small1 small2"
        "large small3 small4";
    position: relative;
}

.detail-more-img-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; 
    grid-template-areas: 
        "medium medium medium"
}

.detail-more-img-container.show {
    display: grid !important;
}

.detail-img-container img,
.detail-more-img-container img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block !important;
    cursor: pointer;
}

.single-image {
    width: 100%; 
    grid-template-columns: 1fr !important; 
    grid-gap: 0; 
}

.double-image {
    grid-template-columns: repeat(2, 1fr) !important; 
}

.double-image .image-large img{
    height: auto !important;
}

.single-image img {
    aspect-ratio: auto !important;
}

.detail-all-img-container {
    width: 100%;
    flex-direction: column;
    gap: 32px;
    display: none;
}

.detail-all-img-container.contain-active {
    display: flex !important;
}

.detail-img-container img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.image-large {
    grid-area: large;
}

.image-large img {
    height: 100%;
}

.image-small:nth-child(2) {
    grid-area: small1; 
}

.image-small:nth-child(3) {
    grid-area: small2; 
}

.image-small:nth-child(4) {
    grid-area: small3;
}

.image-small:nth-child(5) {
    grid-area: small4; 
    cursor: pointer;
    position: relative;
}

.image-small:nth-child(5)::after {
    content: "+";
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 4rem;
    border-radius: 8px;
    z-index: 4; 
    font-weight: 100;
    pointer-events: none; /* 클릭 이벤트를 무시하도록 설정 */
}

.hide-after::after {
    display: none !important; 
}

.contact-btn {
    margin: 0 !important;
}

.portfolio-swiper-container {
    width: 90%;
    overflow: hidden;
    margin: 0 auto;
    padding: 10px 0 32px;
}

.portfolio-swiper-container .swiper-slide{
    width: auto !important;
}

.recommend-container .portfolio-box {
    width: 300px;
}

.portfolio-detail-content {
    width: 100%;
}

.portfolio-detail-content a {
    display: inline-block;
    cursor: pointer;
}

.portfolio-detail-inner-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    box-sizing: border-box;
    padding: 0 10px;
}

.portfolio-btn-div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-download {
    display: flex;
    width: 200px;
    height: 70px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #E9EFFF;
    color: #1B1C80;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px; /* 133.333% */
    letter-spacing: -0.45px;
}

.btn-download:hover {
    background: #DDE3F2;
}

.fixed-download {
    position: fixed;
    bottom: 214px;
    right: 20px;
    display: flex;
    width: 80px;
    height: 80px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    border-radius: 100px;
    background: #E9EFFF;
    color: #1B1C80;
    font-size: 14px;
    font-weight: 500;
    line-height: 130%; /* 18.2px */
    letter-spacing: -0.35px;
    z-index: 30;
}

.fixed-download:hover {
    background: #DDE3F2;
}


@media(max-width: 1350px) {
    .portfolio-detail-container {
        padding: 120px 60px;
    }
    .portfolio-container {
        gap: 40px;
    }
    .portfolio-content-div {
        padding: 16px;
    }
}

@media(max-width: 1250px) {
    .filter-container {
        width: 35%;
    }
    .portfolio-list-container {
        width: 65%;
    }
    .portfolio-box-container {
        grid-template-columns: repeat(2, 1fr); 
    }
    .portfolio-box-container.expanded {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media(max-width: 1024px) {
    .portfolio-detail-container {
        padding: 80px 60px;
    }
    .detail-tit-div {
        gap: 0;
    }
    .p24 {
        font-size: 20px;
        letter-spacing: -0.5px;
    }
    .p18 {
        font-size: 16px;
        letter-spacing: -0.4px;
    }
    .portfolio-detail-table th, .portfolio-detail-table td, .img-tab, .no-img {
        font-size: 14px;
        letter-spacing: -0.35px;
    }
    .portfolio-detail-table td {
        padding: 10px 8px;
    }
    .detail-tab-container {
        width: 100%;
    }
    .contact-btn {
        width: 335px;
    }
    .portfolio-container {
        flex-direction: column;
        padding: 0 0 80px;
    }
    .filter-container, .portfolio-list-container {
        width: 100%;
        padding: 0;
    }
    .portfolio-list-container {
        padding: 0 60px;
    }
    .filter-container {
        background: #FFF;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        position: fixed;
        padding: 80px 0 0;
        display: none;
        z-index: 100;
        justify-content: space-between;
    }
    .filter-wrapper {
        padding: 0 60px;
    }
    .filter {
        font-size: 14px;
        letter-spacing: -0.35px;
    }
    .filter-title-wrap {
        display: none;
    }
    .portfolio-list-container .filter-title-wrap {
        display: flex;
    }
    .open-filter {
        display: none;
    }
    .filter-container.hidden {
        display: flex;
    }
    .close-filter {
        display: none;
    }
    .mo-filter-open, .mo-close-filter {
        display: flex;
    }
    .portfolio-btn-div {
        gap: 15px;
    }
    .btn-download {
        font-size: 16px;
        letter-spacing: -0.4px;
    }
}

@media(max-width: 900px) {
    .portfolio-detail-table {
        margin: 0;
    }
    .portfolio-detail-inner {
        gap: 60px;
    }
    .contact-btn {
        margin-top: 20px;
    }
}

@media(max-width: 768px) {
    .portfolio-detail-container {
        padding: 80px 40px;
    }
    .share-btn {
        width: 20px;
        height: 20px;
    }
    .portfolio-list-container, .filter-wrapper {
        padding: 0 40px;
    }
}

@media(max-width: 600px) {
    .portfolio-detail-container {
        padding: 40px 20px 80px;
        gap: 40px;
    }
    .portfolio-detail-inner {
        gap: 40px;
    }
    .p18 {
        font-size: 16px;
        letter-spacing: -0.4px;
    }
    .portfolio-detail-table th, .portfolio-detail-table td, .img-tab {
        font-size: 12px;
        letter-spacing: -0.3px;
    }
    .no-img {
        font-size: 14px;
        letter-spacing: -0.35px;
        padding: 50px 0;
    }
    .portfolio-detail-table td {
        padding: 6px 10px;
    }
    .portfolio-detail-content-container {
        gap: 20px;
    }
    .contact-btn {
        margin: 0 auto;
    }
    .portfolio-detail-content-container iframe{
        border-radius: 4px;
    }
    .none {
        display: none;
    }
    .full-w {
        display: table-row;
    }
    .detail-all-img-container {
        gap: 12px;
    }
    .portfolio-detail-content {
        margin-top: 4px;
    }
    .popup-swiper-container img {
        height: auto;
    }
    .portfolio-content {
        font-size: 14px;
        letter-spacing: -0.35px;
    }
    .portfolio-title {
        font-size: 18px;
        letter-spacing: -0.45px;
        min-height: 47px;
    }
    .portfolio-tit-div {
        gap: 10px;
    }
    .portfolio-box-container .portfolio-box .keyword-div .keyword:nth-child(n+3) {
        display: none !important;
    }
    .portfolio-list-container, .filter-wrapper {
        padding: 0 20px;
    }
    .portfolio-list-container {
        gap: 12px;
    }
    .portfolio-list-container .filter-title-wrap {
        margin-bottom: 28px;
    }
    .order {
        font-size: 14px;
        letter-spacing: -0.35px;
    }
    .filter-container {
        padding: 40px 0 0;
        overflow-y: scroll;
    }
    .portfolio-box-container {
        gap: 12px;
    }
    .recommend-container .portfolio-box {
        width: 270px;
    }
    .recommend-container .portfolio-box .keyword-div .keyword:nth-child(n+4) {
        display: none !important;
    }
    .portfolio-detail-inner-container {
        gap: 40px;
    }
    .p24 {
        font-size: 18px;   
        letter-spacing: -0.45px;
    }
    table tbody tr:first-child {
        display: none;
    }
    .portfolio-btn-div {
        gap: 10px;
    }
    .btn-download {
        width: 60px;
        height: 60px;
    }
    .btn-download span {
        display: none;
    }
    .fixed-download {
        width: 60px;
        height: 60px;
        color: #1B1C80;
        font-size: 11px;
        letter-spacing: -0.275px;
        right: 10px;
        bottom: 166px;
    }
    .fixed-download svg {
        width: 26px;
        height: 26px;
        gap: 2px;
    }
}

@media(max-width: 480px) {
    .portfolio-box, .portfolio-video-box {
        width: 100%;
    }
    .contact-btn {
        width: calc(100% - 70px);
    }
    .recommend-container .portfolio-box .keyword-div .keyword, .portfolio-box-container .portfolio-box .keyword-div .keyword {
        padding: 3px 8px !important;
    }
    .portfolio-box-container {
        display: flex;
        flex-direction: column;
    }
    .portfolio-box {
        width: 100%;
    }
    .p24 {
        font-size: 16px;   
        letter-spacing: -0.4px;
    }
    .p18 {
        font-size: 14px;
        letter-spacing: -0.35px;
        word-break: keep-all;
    }
}

@media(max-width: 420px) {
    .detail-img-big-container .detail-img-container {
        min-height: unset;
    }
    .detail-img-big-container {
        min-height: unset;
    }
}

@media(max-width: 370px) {
    .portfolio-content-div {
        padding: 12px;
    }
}



