html::-webkit-scrollbar{
    display: none;
}

.subpages-header {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.subpages-header > .main__logo {
    float: left;
    margin: 0 auto;
    height: 3rem;
}

.subpages-header > .main__logo h1 a img{
    position: fixed;
    top: 2rem;
    left: 3rem;
    height: 1.2rem;
    z-index: 25;
}

.container > .subpages-bottom > .subpage_text {
    position: fixed;
    text-align: left;
    left: 3rem;
    bottom: 2rem;
    z-index: 14;
    color: white;
}

.container > .subpages-bottom > .subpage_text p {
    font-size: 0.75rem;
    font-family: "GmarketSansLight";
    color: #FFF;
}

.container {
    min-height: 100vh;
    width: 100%;
}

.container > .subpages-container {
    width: 80%;
    height: 100%;
    margin: 20vh auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container > .subpages-container > .text-area {
    position: relative;
    height: 15rem;
    width: 80%;
    text-align: center;
}

/* 애니메이션 키프레임 시작 */

@keyframes move-from-up {
    0% {
        transform: translateY(-10vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes move-from-down {
    0% {
        transform: translateY(20vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes move-from-left {
    0% {
        transform: translateX(-10vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes move-from-Right {
    0% {
        transform: translateX(10vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 애니메이션 키프레임 종료 */


.container > .subpages-container > .text-area > .text-main {
    font-family: "GmarketSansBold";
    font-size: 3rem;
    line-height: 4rem;
    margin: 0 0 1rem 0;
    animation: move-from-up 1s ease-in-out forwards;
}

.container > .subpages-container > .text-area > .text-main span {
    font-family: "GmarketSansBold";
    color: #1a2ae7;
}

.container > .subpages-container > .text-area > .text-sub {
    font-size: 1rem;
    animation: move-from-down 1s ease-out 0s 1 normal forwards;
}

.container > .subpages-container > .text-area > .text-sub > .hide-br {
    display: none;
}


.container > .subpages-container > .work-space {
    width: 80%;
    min-height: 100vh;
}

.container > .subpages-container > .work-space > .work-grid {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(7, 1fr);
    grid-gap: 0;
    padding: 0;
    align-items: center;
    margin: 3rem auto 0;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 14;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item:hover .item-text {
    opacity: 1;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item > .item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    margin: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item:hover::before {
    opacity: 1;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item > .item-text h3 {
    font-size: 1.25rem;
    margin: 0 auto;
}

.container > .subpages-container > .work-space > .work-grid > .grid-item > .item-text p {
    font-size: 1rem;
    margin: 0.25rem 0 0 0;
}

@media screen and (max-width: 766px) {
    html{
        font-size: 12px;
    }

    body{
        margin: 0 auto;
        overflow-x: hidden;
    }

    .container > .subpages-container {
        width: 100%;
    }

    .container > .subpages-container > .text-area {
        position: relative;
        width: 100%;
    }

    .container > .subpages-container > .text-area > .text-main {
        font-family: "GmarketSansBold";
        font-size: 1.5rem;
        line-height: 2.5rem;
        margin: 0 0 1rem 0;
    }
    
    .container > .subpages-container > .text-area > .text-sub {
        font-size: 1rem;
    }

    .container > .subpages-container > .text-area > .text-sub > .hide-br {
        display: block;
    }

    .container > .subpages-container > .work-space {
        width: 100%;
        min-height: 100vh;
        position: absolute;
        top: 25rem;
    }

    .container > .subpages-container > .work-space > .work-grid > .grid-item > .item-text h3 {
        font-size: 1rem;
        margin: 0 0 0 0;
    }
    
    .container > .subpages-container > .work-space > .work-grid > .grid-item > .item-text p {
        font-size: 0.75rem;
        margin: 0 0 0 0;
    }

    .container > .subpages-container > .work-space > .work-grid > .grid-item > .item-text {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        color: #fff;
        margin: 0.5rem;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

}
@media screen and (min-width: 767px) and (max-width: 1438px) {
    html {
    font-size: 16px;
    }

    .container > .subpages-container {
        width: 80%;
        height: 100%;
        margin: 10vh auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .container > .subpages-container > .text-area > .text-main {
        font-family: "GmarketSansBold";
        font-size: 2rem;
        line-height: 3.5rem;
        margin: 0 0 1rem 0;
    }
    
    .container > .subpages-container > .text-area > .text-sub {
        font-size: 1rem;
    }

    .container > .subpages-container > .work-space {
        width: 100%;
        min-height: 100vh;
    }

}

@media screen and (min-width: 1439px) and (max-width: 1978px) {
    html {
    font-size: 18px;
    }

    .container > .subpages-container > .text-area > .text-main {
        font-family: "GmarketSansBold";
        font-size: 2rem;
        line-height: 3.5rem;
        margin: 0 0 1rem 0;
    }
}

@media screen and (min-width: 1979px) and (max-width: 2046px) {
    html {
        font-size: 20px;
    }
}

@media screen and (min-width: 2047px) {
    html {
        font-size: 22px;
    }
}
