/* banner */
section.banner .inner .banner-wrap {
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 0;
    border-radius: 12px;
    position: relative;
    margin: 32px 0px 16px 0px;
}

@media (min-width: 768px) {
    section.banner .inner .banner-wrap {
        padding: 40px;
        margin: 64px 0px 32px 0px;
    }
}

section.banner .inner .banner-wrap .txt-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}

@media (min-width: 768px) {
    section.banner .inner .banner-wrap .txt-wrap {
        gap: 12px;
    }
}

section.banner .inner .banner-wrap .txt-wrap .banner-title {
    color: var(--White);
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.22px;
}

section.banner .inner .banner-wrap .txt-wrap .banner-description {
    color: var(--White);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

@media (min-width: 768px) {
    section.banner .inner .banner-wrap .txt-wrap .banner-title {
        font-size: 28px;
        font-style: normal;
        font-weight: 700;
        line-height: 38px;
        letter-spacing: -0.56px;
    }

    section.banner .inner .banner-wrap .txt-wrap .banner-description {
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px;
        letter-spacing: -0.2px;
    }
}

section.banner .inner .banner-wrap .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

section.banner .inner .banner-wrap .img-wrap::after {
    border-radius: 12px;
    content: "";
    position: absolute;
    inset: 0;
    /* top, right, bottom, left 모두 0 */
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.40) 0%,
            rgba(0, 0, 0, 0.40) 100%);
    pointer-events: none;
    /* 클릭 막지 않음 */
}

/* portfolio */
section.portfolio .menu-list {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

section.portfolio .menu-list .menu-item {
    position: relative;
    color: var(--Gray-2);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    flex: 0 0 auto;
    padding: 12px 0;
    white-space: nowrap;
    cursor: pointer;
    margin-bottom: 16px;
}

section.portfolio .menu-list .menu-item a {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

section.portfolio .menu-list .menu-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 0%;
    height: 2px;
    background: var(--Black);
}

@media (min-width: 1200px) {
    section.portfolio .menu-list .menu-item a::after {
        transition: width 0.3s ease;
    }
}

section.portfolio .menu-list .menu-item:hover {
    color: var(--Black);
    font-weight: 700;
}

section.portfolio .menu-list .menu-item:hover a::after {
    width: 100%;
}

section.portfolio .menu-list .menu-item.selected a::after {
    width: 100%;
}

section.portfolio .menu-list .menu-item.selected {
    color: var(--Black);
    font-weight: 700;
}

section.portfolio .total-count {
    color: var(--Black);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.21px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    section.portfolio .total-count {
        margin-bottom: 16px;
    }
}

section.portfolio .portfolio-list {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(1, 1fr);
}


@media (min-width: 768px) {
    section.portfolio .portfolio-list {
        grid-auto-flow: row;
        overflow-x: visible;
        gap: 64px 24px;
        grid-template-columns: repeat(2, 1fr);
    }
}

section.portfolio .portfolio-list .portfolio-container {
    position: relative;
}

section.portfolio .portfolio-list .portfolio-container .background-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    aspect-ratio: 343.00/223.70;
    border-radius: 12px;
    border: 1px solid var(--Gray-3);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

section.portfolio .portfolio-list .portfolio-container .background-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

section.portfolio .portfolio-list .portfolio-container:hover .background-img img {
    transform: scale(1.1);
}


section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap {
    display: none;
}

section.portfolio .portfolio-list .portfolio-container:hover .background-img .summary-wrap {
    position: absolute;
    background-color: #00000070;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-align: center;
}

section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap .contents {
    margin: auto;
    width: 100%;
    padding: 25px;
}

section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap .contents .title,
section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap .contents .description {
    color: var(--White);
    font-size: 20px;
    font-style: normal;
    line-height: 28px;
}

section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap .contents .line {
    border-top: 1px solid #ccc;
    width: 100%;
    margin: 13px 0;
}

section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap .contents .btn {
    color: var(--White);
    border: 1px solid var(--White);
    border-radius: 20px / 20px;
    width: fit-content;
    padding: 5px 20px;
    margin: auto;
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
}

section.portfolio .portfolio-list .portfolio-container .background-img .summary-wrap .contents .btn:hover {
    color: var(--Gray);
    background-color: var(--White);
}


section.portfolio .portfolio-list .portfolio-container .detail-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

section.portfolio .portfolio-list .portfolio-container .detail-wrap .tag {
    color: var(--Primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.21px;
}

section.portfolio .portfolio-list .portfolio-container .detail-wrap .location {
    overflow: hidden;
    color: var(--Black);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

@media (min-width: 768px) {
    section.portfolio .portfolio-list .portfolio-container .detail-wrap .location {
        font-size: 18px;
        ;
        line-height: 26px;
    }
}

section.portfolio .portfolio-list .portfolio-container .detail-wrap .year {
    color: var(--Gray-2);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.21px;
}

section.portfolio .pagination {
    display: flex;
    gap: 4px;
    padding: 8px 0px;
    margin: 48px auto 64px auto;
    width: fit-content;
}

@media (min-width: 768px) {
    section.portfolio .pagination {
        margin: 64px auto;
    }
}

section.portfolio .pagination .img-wrap.prev .description,
section.portfolio .pagination .img-wrap.next .description {
    color: var(--Black);
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

section.portfolio .pagination .img-wrap.prev,
section.portfolio .pagination .img-wrap.next {
    display: flex;
    gap: 4px;
    align-items: center;
}

section.portfolio .pagination .img-wrap.prev img,
section.portfolio .pagination .img-wrap.next img {
    width: 16px;
    height: 16px;
    aspect-ratio: 1/1;
    margin: auto;
}

section.portfolio .pagination .number {
    color: var(--Gray-2);
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    display: block;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    align-content: center;
}

section.portfolio .pagination .number.selected {
    display: flex;
    padding: 4px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Gray-3);
}