body {
    background-color: white;
    margin: 0;
}

body.fade {
    opacity: 0; /* 초기 불투명도 */
    transition: opacity 0.8s ease-in-out; /* 천천히 나타나는 효과 */
}

body.fade.in {
    opacity: 1; /* 화면이 완전히 나타남 */
}

.frame {
    /* margin: 30px 150px; */
    display: flex;
    flex-direction: column;
}


/******** 1.Header 스타일 ********/
header {
    position: fixed; /* 화면에 고정 */
    top: 0;
    left: 0;
    width: 100%; /* 헤더를 화면 너비에 맞춤 */
    z-index: 400; /* 다른 요소 위에 표시 */
    background-color: white; /* 헤더 배경색 */
    padding: 0px 0; /* 위아래 여백 */
}

/* Navigator 스타일 */
.navigator {
    display: flex;
    justify-content: space-between; /* 좌우 요소 정렬 */
    align-items: center; /* 세로 가운데 정렬 */
    padding: 0 10%; /* 좌우 여백 */
}

/* h1 스타일 */
.site-name {
    text-decoration: none; /* 링크 밑줄 제거 */
    font-size: 45px;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    color: black;
    padding-right: 10%;
}

/* Navigation 메뉴 스타일 */
.nav-menu {
    list-style: none; /* 리스트 불릿 제거 */
    display: flex; /* 플렉스 정렬 */
    gap: 100px; /* 항목 간격 */
    margin: 0;
    padding-right: 15%;
}

.nav-menu li a {
    text-decoration: none; /* 링크 밑줄 제거 */
    color: black; /* 링크 색상 */
    font-size: 23px;
    font-weight: bold;
    transition: color 0.3s ease; /* 호버 전환 효과 */
}

.nav-menu li a:hover {
    color: blue;
}

/* SNS 아이콘 */
.work-footericon {
    width: 70px; /* 아이콘 크기 */
    height: 70px; /* 아이콘 크기 */
    margin: 0;
}

/* 아이콘 이미지 크기 */
.nav-menu li a img {
    width: 30px; /* 아이콘 크기 */
    height: 30px; /* 아이콘 크기 */
    margin-right: 8px; /* 텍스트와 아이콘 간 간격 */
}

/* 모바일 반응형 (아이폰12프로 화면에 맞게) */
@media screen and (max-width: 430px) {
    .navigator {
        flex-direction: column; /* 세로로 배치 */
        justify-content: center; /* 중앙 정렬 */
        padding: 0 5%; /* 좌우 여백 축소 */
    }

    .site-name {
        font-size: 40px; /* 글자 크기 축소 */
        padding-right: 0;
        text-align: center; /* 텍스트 중앙 정렬 */
        margin-bottom: 5px; /* 메뉴와 간격을 줘서 떨어뜨리기 */
    }
    
    .nav-menu {
        gap: 20px; /* 항목 간격 좁히기 */
        text-align: center; /* 메뉴 텍스트 중앙 정렬 */
    }

    .nav-menu li a {
        font-size: 15px; /* 글자 크기 축소 */
    }
}

/******** 1.Header 스타일 여기까지 ********/




/******** 2.MainImage ********/
.mainimage { 
padding-top: 2%;
padding-bottom: 1%;
width: 100%;
height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 100%; /* 최대 크기 제한 */
    height: auto;
    overflow: hidden;
    margin: auto;
}

.slider-images {
    width: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
    cursor: grab;
    padding-bottom: 5%;
}

.slider-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    user-select: none; /* 드래그 중 이미지 선택 방지 */
    pointer-events: none; /* 드래그 중 클릭 방지 */
    flex-shrink: 0; /* 이미지 줄어들지 않도록 고정하는것*/
}

.slider-images.dragging {
    transition: none; /* 드래그 중 부드러운 애니메이션 제거 */
    cursor: grabbing;
}

@media screen and (max-width: 430px) {
    .slider-images {
        padding-top: 20%;
        width: 100%; /* 이미지 크기를 화면에 맞게 100%로 설정 */
        height: 100%; /* 비율을 유지하여 크기 자동 조정 */
        object-fit: contain; /* 이미지가 잘리지 않도록 비율 유지 */
    }
}
/******** 2.MainImage 여기까지 ********/




/******** 3.미들 ********/
.frame {
    /* padding: 140px; */
    font-family: Arial, sans-serif;
}

/* recent-works를 Flexbox로 설정 */
.recent-works {
    display: flex; /* 가로로 배치 */
    align-items: center; /* 세로 정렬 */
    gap: 150px; /* 이미지와 텍스트 사이의 간격 */
    padding: 0 7%;
    font-size: 20px;
    text-decoration: none; /* 링크 밑줄 제거 */
}

/* 이미지 스타일 */
.recent-image {
    width: 45%; /* 이미지 크기 */   
    height: auto; /* 비율을 유지하여 크기 자동 조정 */
    object-fit: contain; /* 이미지가 잘리지 않도록 비율 유지 */
}


.image-container {
    display: flex;
    justify-content: center; /* 가로 가운데 정렬 */
    align-items: center; /* 세로 가운데 정렬 (선택 사항) */
}

.recent-textH {
    font-size: 40px; /* 글자 크기 축소 */
    padding-right: 0%;
    text-align: center; /* 텍스트 중앙 정렬 */
    margin-bottom: 15px; /* 메뉴와 간격을 줘서 떨어뜨리기 */
}

.recent-text1 {
    text-decoration: none; /* 링크 밑줄 제거 */
    text-align: center; /* 텍스트 중앙 정렬 */
    font-size: 25px;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    color: black;
    padding-right: 5%;
}

.button-container {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    padding-right: 15%;
    
}

/*커스텀 버튼*/ 
.custom-button {
    background-color: white; 
    color: black; 
    border: 2px solid transparent; 
    padding: 10px 20px; 
    width: 40%;
    font-size: 50px; 
    font-weight: bold; 
    border-radius: 15px; 
    border-color: black;
    transition: background-color 0.3s ease; 
}

/* 버튼 호버 스타일 */
.custom-button:hover {
    background-color: black; 
    color: white; 
    border-color: white; 
}

/* 버튼 클릭 시 스타일 */
.custom-button:active {
    background-color: purple; /* 클릭 상태 색상 */
}

/* 모바일 반응형 */
@media screen and (max-width: 430px) {
    /* 최근 작업(이미지와 텍스트) 세로로 배치 */
    .recent-works {
        flex-direction: column; /* 세로로 배치 */
        align-items: center; /* 가운데 정렬 */
        gap: 20px; /* 항목 간격 줄이기 */
    }

    .recent-image {
        width: 100%; /* 이미지 크기를 화면에 맞게 100%로 설정 */
        height: auto; /* 비율을 유지하여 크기 자동 조정 */
        object-fit: contain; /* 이미지가 잘리지 않도록 비율 유지 */
    }

    .recent-textH {
        font-size: 30px; /* 글자 크기 축소 */
        padding-left: 0%;
        text-align: center; /* 텍스트 중앙 정렬 */
        margin-bottom: 15px; /* 메뉴와 간격을 줘서 떨어뜨리기 */
    }

    .recent-text1 {
        font-size: 14px; /* 글자 크기 축소 */
        padding-right: 0; /* 텍스트 오른쪽 패딩 제거 */
        text-align: center; /* 텍스트 중앙 정렬 */
    }

    .custom-button {
        width: 40%; /* 버튼 크기 조정 */
        font-size: 14px; /* 버튼 글자 크기 축소 */
        align-items: center; /* 가운데 정렬 */
        margin: 0 auto; /* 버튼을 부모 안에서 수평 중앙 정렬 */
        justify-content: center; /* 버튼 내부 텍스트 중앙 정렬 */
    }

    /* 버튼 호버 스타일 */
    .custom-button:hover {
        background-color: black; 
        color: white; 
        border-color: white; 
    }
}
/******** 3.미들 여기까지 ********/



/******** 4.하단 그리드 ********/

.recent-image-container {
    display: grid; /* Grid 레이아웃 활성화 */
    grid-template-columns: repeat(3, 1fr); /* 3열 고정 */
    gap: 15px; /* 아이템 간 간격 */
    justify-content: center; /* 그리드 자체를 가로로 중앙 정렬 */
    padding-bottom: 10%;
    padding: 0 7%;
}

/* 이미지와 텍스트 그룹 스타일 */
.recent-image-item {
    display: flex; /* Flexbox 활성화 */
    flex-direction: column; /* 세로 정렬 */
    align-items: flex-start; /* 왼쪽 정렬 */
    text-align: left; /* 텍스트 정렬 */
}

/* 이미지 스타일 */
.recent-image2 {
    width: 100%; /* 그리드 셀에 꽉 차게 */
    height: 100%; /* 모든 이미지 높이를 동일하게 고정 */
    object-fit: cover; /* 박스 안에 이미지 맞춤 */
    border-radius: 0; /* 네모난 모양 */
    margin-bottom: 10px; /* 텍스트와의 간격 */
    transition: filter 0.3s ease; /* 부드러운 전환 효과 */
}

.recent-p {
    padding: 0 7%;
    color: black;
}

.recent-h1 {
    padding: 0 7%;
    color: black;
    font-size: 40px;
}


.button-container {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    padding-right: 0;
}

/*커스텀 버튼*/ 
.custom-button {
    background-color: white; 
    color: black; 
    border: 2px solid transparent; 
    padding: 10px 20px; 
    width: 40%;
    font-size: 16px; 
    font-weight: bold; 
    border-radius: 15px; 
    border-color: black;
    transition: background-color 0.3s ease; 
}

/* 버튼 호버 스타일 */
.custom-button:hover {
    background-color: black; 
    color: white; 
    border-color: white; 
}

/* 버튼 클릭 시 스타일 */
.custom-button:active {
    background-color: purple; /* 클릭 상태 색상 */
}


@media screen and (max-width: 430px) {
    /* 최근 작업(이미지와 텍스트) 세로로 배치 */
    .recent-image-container {
        display: grid; /* Grid 레이아웃 활성화 */
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* 최소 200px, 최대 1fr */
        gap: 15px; /* 아이템 간 간격 */
        justify-content: center; /* 그리드 자체를 가로로 중앙 정렬 */
        padding-bottom: 10%;
        padding: 0 7%;
    }
}

/******** 4.하단 그리드  여기까지 ********/


/* 5.하단 문구 */
.bottomframe {
    display: flex; /* Flexbox 활성화 */
    flex-direction: column; /* 세로 방향 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    justify-content: center; /* 세로 중앙 정렬 */
    padding: 0 7%; /* 양쪽 여백 */
    height: 100%; /* 높이를 부모에 맞게 설정 */
}

.bottom-p {
    color: black;
    text-align: center; /* 텍스트 가로 중앙 정렬 */
    font-size: 25px;
}

.bottom-h1 {
    color: black;
    font-size: 40px;
    text-align: center; /* 텍스트 가로 중앙 정렬 */
}

.buttomcustom-container {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    padding-bottom: 5%;
}

/*커스텀 버튼*/ 
.buttomcustom-button {
    background-color: white; 
    color: black; 
    border: 2px solid transparent; 
    padding: 10px 100px; 
    width: 100%;
    font-size: 16px; 
    font-weight: bold; 
    border-radius: 15px; 
    border-color: black;
    transition: background-color 0.3s ease; 
}

/* 버튼 호버 스타일 */
.buttomcustom-button:hover {
    background-color: black; 
    color: white; 
    border-color: white; 
}


/* 버튼 클릭 시 스타일 */
.buttomcustom-button:active {
    background-color: purple; /* 클릭 상태 색상 */
}

@media screen and (max-width: 430px) {
    /* 최근 작업(이미지와 텍스트) 세로로 배치 */
    .buttomcustom-button {
        background-color: white; 
        color: black; 
        border: 2px solid transparent; 
        padding: 10px 40px; 
        width: 100%;
        font-size: 16px; 
        font-weight: bold; 
        border-radius: 15px; 
        border-color: black;
        transition: background-color 0.3s ease; 
    }

    /* 버튼 호버 스타일 */
    .buttomcustom-button:hover {
        background-color: black; 
        color: white; 
        border-color: white; 
    }

    .bottom-p {
        color: black;
        text-align: center; /* 텍스트 가로 중앙 정렬 */
        font-size: 13px;
    }
}


/* 5.하단 문구 여기까지 */



/* 푸터 */
.work-footer {
    display: flex;
    flex-direction: column; /* 세로 배치 */
    justify-content: flex-start; /* 상단 정렬 */
    text-align: left;
    background-color: #e4e4e4;
    padding: 3px 0; /* 위아래, 양옆 여백 추가 */
    gap: 20px;
    width: 100%;
}

.work-footer-title {
    margin: 0;
    font-size: 25px;
    color: gray;
}

/* 내용 컨테이너 */
.content-wrapper {
    display: flex;
    justify-content: space-between; /* 왼쪽과 오른쪽 끝으로 배치 */
    align-items: flex-start; /* 세로로 상단 정렬 */
    padding: 2% 5%;
}

/* 왼쪽 내용 */
.left-content {
    display: flex;
    flex-direction: column; /* 텍스트 세로 배치 */
}

/* 텍스트 스타일 */
.work-footer p {
    margin: 0;
    font-size: 12px;
    color: gray;
}


.work-footer h1 {
    margin: 0;
    font-size: 25px;
    color: gray;
}


/* 오른족 내용 */
.right-content {
    display: flex;
    flex-direction: row; /* 텍스트 세로 배치 */
    padding: 0 30%;
    
}

.work-rightfooter p {
    margin: 0;
    font-size: 30px;
    color: gray;
}



/* iPhone 12 Pro 크기에 맞춘 미디어 쿼리 */
/* iPhone 12 Pro 크기에 맞춘 미디어 쿼리 */
/* iPhone 12 Pro 크기에 맞춘 미디어 쿼리 */
@media screen and (max-width: 430px) {
    .work-footer {
        display: flex;
        flex-direction: column; /* 세로 배치 */
        justify-content: flex-start; /* 상단 정렬 */
        text-align: left;
        background-color: #e4e4e4;
        padding: 3px 0%; /* 위아래, 양옆 여백 추가 */
        gap: 20px;
        width: 100%;
    }
    
    .work-footer-title {
        margin: 0;
        font-size: 25px;
        color: gray;
    }
    
    /* 내용 컨테이너 */
    .content-wrapper {
        display: flex;
        justify-content: space-between; /* 왼쪽과 오른쪽 끝으로 배치 */
        align-items: flex-start; /* 세로로 상단 정렬 */
        padding: 2% 5%;
    }
    
    /* 왼쪽 내용 */
    .left-content {
        display: flex;
        flex-direction: column; /* 텍스트 세로 배치 */
    }
    
    /* 텍스트 스타일 */
    .work-footer p {
        margin: 0;
        font-size: 15px;
        color: gray;
    }
    
    .work-footer h1 {
        margin: 0;
        font-size: 25px;
        color: gray;
    }
}