
.nav {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    z-index: 999;
    display: flex;
    color: #fff;
    background: #000;
    justify-content: space-between;
}

.nav-links {
    display: flex;
}

.slides-wrapper {
    padding-top: 120px;
}

.image {
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-top: 2.5rem;
}

.image-land {
    width: 90%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-top: 2.5rem;
}

.section {
    width: 100%;
    height: calc(100vh - 64px);
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;

    .section-content{
        display: block;
    }

    .section-inner {
        padding-top: 20vh;
        padding-bottom: 20vh;
    }
}

h1, h3, p {
    word-break: keep-all;
}

p {
    max-width: 40ch;
    padding: 2rem;
    font-weight: 400;
}

.section-inner {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;

    padding: 0 1rem;
}

.gallery-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-self: flex-start;
    will-change: transform;
    position: relative;

    width: 100%;
    padding-left: 50vw; /* 화면 너비의 30%만큼 오른쪽에서 시작 */
    padding-right: 10vw; /* 끝부분 여백 */
    margin-right: 0;
    margin-left: 0;

    .image-wrapper {
        padding: 2rem;
        box-sizing: content-box;

        img {
            width: auto;
            height: 600px;

            /* 이미지가 찌그러지지 않도록 */
            object-fit: cover;

            /* 최대 너비 제한 해제 */
            max-width: none;
        }
    }
}

.section-1 {
    color: black;

    .section-inner {
        height: auto;
        width: 100vw;
    }

    h1 {
        font-size: max(4rem, min(12vw + 1rem, 16rem));
        color: #e50815;
    }
    p {
        margin-bottom: 0;
    }
}

.section-2 {
    background: #000;
    color: white;

    .section-inner {
        height: auto;

        h1 {
            color: #fff;
        }
    }
}

.height {
    border: dashed 2px grey;
    padding: 1rem;
    padding-bottom: 5rem;
}

.section h1 {
    font-weight: 700;
    margin: 0 auto;
}

img {
    border-radius: 8px;
}

.post-section {
    .section-inner {
        height: auto;
    }
}

.post-section:last-child {
    height: auto;
}


@media (max-width: 800px) {
    .section {
        p {
            font-size: 0.75em;
        }
    }

    .gallery-wrapper {
        padding-left: 10px; /* 화면 너비의 30%만큼 오른쪽에서 시작 */
        .image-wrapper {
            padding: 1rem;
            img {
                height: 400px;
            }
        }
    }

    .post-section {
        .image {
            width: 100%;
        }
    }
}
