.portfolio-box,
.portfolio-box * {
    font-family: "Paperlogy", sans-serif !important;
}

/* 포트폴리오 박스 */
.portfolio-box {
    position: absolute;
    /* width: 400px; */
    /* aspect-ratio: 640/360; */
    /* height: 300px; */
    background-color: var(--White);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    will-change: transform;
}

.portfolio-box.list {
    position: relative;
    width: 100%;
    aspect-ratio: 640/360;
    z-index: 1;

    border: 1px solid #000;
}

.portfolio-box .dim {
    width: 100%;
    height: 100%;
    z-index: -1;
}

.portfolio-box .bg,
.portfolio-box .bg_hover {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;

    transition: var(--Portpolio-trasition);
}

.portfolio-box .data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    flex: 1;
    padding: 27px 40px 40px 27px;
}

.portfolio-box.list .data {
    position: absolute;
    height: 100%;
}

.portfolio-box .data .top {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;

    transition: var(--Portpolio-trasition);
}

.portfolio-box .data .top .title,
.portfolio-box .data .top button {
    position: absolute;
    top: 0;
    left: 0;

    transition: var(--Portpolio-trasition);
}

.portfolio-box .data .top .title {
    color: var(--Black, #282828);
    font-size: 50px;
    font-weight: 300;
    letter-spacing: -1.4px;

    width: 100%;

    display: -webkit-box;
    /* flexbox와는 다름, 텍스트 박스 처리용 */
    -webkit-box-orient: vertical;
    /* 세로 방향 박스 */
    -webkit-line-clamp: 1;
    /* 3줄까지만 보여주기 */
    overflow: hidden;
    /* 넘치는 텍스트 숨기기 */
    text-overflow: ellipsis;
    /* 말줄임표 표시 */
    white-space: nowrap;
    /* 줄바꿈 허용 */
}

.portfolio-box .data .top button {
    opacity: 0;
}


.portfolio-box .data .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    transition: var(--Portpolio-trasition);
}

.portfolio-box .data .bottom>p {
    color: var(--Black, #282828);
    font-size: 20px;
    letter-spacing: -0.49px;
}

.portfolio-box .data .tags {
    display: flex;
    align-items: center;
    gap: 9px;
}

.portfolio-box .data .tags>p {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 34px;
    border-radius: 50px;
    background: var(--Black);
    color: var(--White, #FFF);
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
}

.portfolio-box .data h2 {
    margin: 0;
    font-size: 24px;
}

.portfolio-box .bg_img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.portfolio-box .bg .dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);

    transition: var(--Portpolio-trasition);
}

.portfolio-box .bg_hover {
    opacity: 0;
}

.portfolio-box:hover .bg {
    opacity: 0;
}


.portfolio-box:hover .bg_hover {
    opacity: 1;
}

.portfolio-box:hover .data .top {
    top: calc(100% - 50px);
    left: calc(100% - 50px);
}

.portfolio-box:hover .data .top .title {
    opacity: 0;
    left: calc(-100% + 50px);
    top: -120px;
}

.portfolio-box:hover .data .top button {
    opacity: 1;
}

.portfolio-box:hover .data .bottom {
    opacity: 0;
}

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


/* 포트폴리오 리스트 아이템 */
.portpolio_list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 80vh;
    padding: calc(60vh + var(--header-height)) 50px 25vh 500px;

    transition: background-color .5s ease-in-out;
}

.portpolio_list .portpolio_one {
    /* border-bottom: 1px solid #000; */
    /* border-right: 1px solid #000; */

    /* width: calc((100% - 40px)/ 3); */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}
.portpolio_list .portpolio_one:nth-of-type(2n) {
    justify-content: flex-start;
}

.portpolio_one {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.portpolio_one .section {
    width: 70%;
    aspect-ratio: 640/360;
    z-index: 1;
    position: relative;
    will-change: transform;
    cursor: pointer;

    /* transform-style: preserve-3d; */
    /* transition: transform 0.3s ease; */

    /* padding-top: 62.5%; */
    /* border: 1px solid #000; */
}
.portpolio_one .section:hover {
    /* transform: scale(1.1); */
}

.portpolio_list .portpolio_one:nth-of-type(3n) .section {
    width: 55%;
}

.portpolio_one .dim {
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
}

.portpolio_one .dim::after {
    content: "";
    opacity: 0.1;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
    position: absolute;
    left: 0;
    right: 0;
    height: 25%;
    z-index: 3;
    bottom: 0;
}

.portpolio_one .dim .bg_img,
.portpolio_one .dim .bg_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: opacity .5s ease-in-out;
}

.portpolio_one .dim .bg_img {
    height: auto;
    aspect-ratio: 1/1;
    top: -50%;
}

.portpolio_one .dim .bg_hover {
    opacity: 0;
}

.portpolio_one .section:hover .bg_img {
    opacity: 0;
}

.portpolio_one .section:hover .bg_hover {
    opacity: 1;
}

.portpolio_one .data {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
    transform: translateY(calc(50% + 30px));
}

.portpolio_one .data .title {
    font-size: 70px;
    color: var(--White);
}

.portpolio_one .data .tags {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--White);
    font-size: 40px;
    font-weight: 300;
}


.portfolio-box-m {
    /* display: flex;
    align-items: center;
    justify-content: center; */
}
.portfolio-box-m .title {
    font-size: 40px;
    color: var(--Dark);
}