/* 🌐 기본 설정 */
body {
    font-family: 'Nanum Gothic', sans-serif;
    margin: 0;
    padding: 0;
    background-color:  #F3F3F3;
}

/* 🌐 공통 레이아웃 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* 🟦 헤더 스타일 */
.header {
    background-color: white;
    border-bottom: 1px solid #eee;
    height: 80px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px;
}

.logo img {
    position: relative;
    top: 6px;
}

.nav {
    position: relative;
    top: 4px;
}

.nav a {
    margin-left: 20px;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

/* 🟦 배너 슬라이드 */
.banner-full {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #ccc;
}

.main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 50%;
    opacity: 0;
    transition: opacity 2s ease;
}

/* 🟦 회색 구분 영역 */
.light-gray-top {
    background-color: #F3F3F3;
    height: 60px;
    padding: 10px 0;
    text-align: center;
}

.light-gray-middle {
    background-color: #F3F3F3;
    padding: 30px 0;
    height: 60px;
    text-align: left;
}
.light-gray-middle h6 {
  font-family: sans-serif; 
  font-size: 36px;
  font-weight: 700;
  color: #fffff;
  margin: 0;
}
.light-gray-bottom {
    background-color: #F3F3F3;
    padding: 60px 0;
    text-align: center;
}

/* 🟦 인테리어, 간판 구역 */
.split-section {
    padding: 0px 0;
    background-color: #F3F3F3;
}

.split-section .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.description {
    flex: 1.2;
    font-size: 15px;
    padding: 0 40px;
}

.description h3,
.description h4,
.description h5 {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    margin-top: 0px;
}

.description h2 {
    font-family: sans-serif;  
    font-size: 70px;
    color: #fffff;
    font-weight: 500;
    margin-top: 0px;
}

.description h6 {
    font-size: 60px;
    color: #555;
    font-weight: 500;
    margin-top: 0px;
}

.slider {  
    flex: 0.8;
    position: relative;
    text-align: center;
    margin-left: 40px;
    height: 500px;
    background-color: #f0f0f0;
    overflow: hidden; 
}

.slider img {
    width: 100%;
    max-width: 500px;
    height: 550px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0%;
    transform: translateX(0%);
    opacity: 0;
    transition: opacity 2s ease;
}

/* 🟦 푸터 스타일 */
footer {
    background-color: white;
}

footer .container {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .container p {
    font-size: 13px;
    color: #555;
    text-align: center;
}

/* 🟦 반응형 */
@media (max-width: 768px) {
    .split-section .container {
        flex-direction: column;
        padding: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .description h2 {
        font-size: 22px;
    }

    .viewmore {
        width: 100px;
    }

    .three-grid {
        flex-direction: column;
        gap: 20px;
    }

    .column-item {
        text-align: center;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav a {
        font-size: 14px;
        margin: 5px;
    }
}

/* 🟦배너 오버레이 설정 */
.banner-overlay {
  position: absolute;
  top: 0px;
  right: 0;
  width: 416px;
  opacity: 0.7;
  z-index: 10;
}

/* 🟦삼단 설계 */
.three-column {
    background-color: #F3F3F3;
    padding: 80px 0;
    text-align: center;
}

.three-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.column-item {
    flex: 1;
    background-color: #F3F3F3;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.column-item h5 {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.column-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #003366;
}

.column-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.slider-sign {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 10px;
}

/* ✅ interior.html - 썸네일 목록용 */
.portfolio-grid.interior {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 30px;
}

.portfolio-grid.interior a {
    display: block;
}

.portfolio-grid.interior img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ✅ project.html - 상세 이미지용 */
.portfolio-grid.project {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ✅ 태블릿 대응 */
@media (max-width: 1024px) {
    .portfolio-grid.interior,
    .portfolio-grid.project {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ✅ 모바일 대응 */
@media (max-width: 600px) {
    .portfolio-grid.interior,
    .portfolio-grid.project {
        grid-template-columns: repeat(1, 1fr);
    }

    .image-modal img {
        max-width: 90vw;
        max-height: 80vh;
    }

    .image-modal .arrow {
        font-size: 30px;
        padding: 8px;
    }

    .image-modal .arrow.left {
        left: -30px;
    }

    .image-modal .arrow.right {
        right: -30px;
    }
}

/* ✅ 이미지 모달 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal .modal-content-wrapper {
    position: relative;
    display: inline-block;
}

.image-modal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
    display: block;
}

/* 모달 숨김 */
.image-modal.hidden {
    display: none;
}

/* 닫기 버튼 - 이미지 우상단 */
.image-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    z-index: 10;
}

/* 좌우 화살표 */
.image-modal .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
}

.image-modal .arrow.left {
    left: -50px;
}

.image-modal .arrow.right {
    right: -50px;
}