#works {
    display: flex;
    flex-direction: column;
    padding: 60px 0;
    background-color: #F5F5F5;
}

.works-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    gap: 20px;
}

.main-title {
    margin-bottom: 16px;
    font-size: 20px;
    color: #0e0e0e;
    font-weight: 700;
    line-height: 20px;
}

.title-box1 {
    display: flex;
    flex-direction: column;
    width: 50%;
    color: #0E0E0E;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

.title-box2 {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 20px;
}

.title-box2 > p:nth-of-type(1) {
    color: #000;    
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.title-box2 > p:nth-of-type(2) {
    color: #000;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px; 
}

.works-img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.works-box {
    width: calc(100% / 3 - 15px);
    /* flex-grow: 1; */
    overflow: hidden;
    position: relative; /* ::after 요소의 위치 기준 */
  }
  
  .works-box img {
    width: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transition: transform 0.5s ease;
  }
  
  .works-box:hover img {
    transform: scale(1.05); /* 이미지 확대 */
  }
  
  .line {
    width: 100%;
    height: 1px;
    background: #D9D9D9;
    margin: 40px 0;
  }

  .title-box-contents {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .title-box-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  .title-box3 {
    width: 50%;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px; 
  }
  
  .title-box4 {
    width: 50%;
    color: #000;
    font-size: 13px;
    font-weight: 300;
    line-height: 18px;
    text-align: right;
  }

  .title-box4.left {
    text-align: left;
  }

  .img-box {
    width: 50%;
  }

  .img-box img {
    width: 100%;
  }

  .point {
    font-weight: 500;
    line-height: 30px;
  }

  .space {
    margin-top: 40px;
  }

  .img-list {
    display: flex;
    margin-bottom: 40px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    overflow: scroll;
  }
  
  /* .works-box:hover::after {
    content: '+';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.4em;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  } */

.works-box > p {
    padding: 10px 0px;
    color: #000;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    line-height: 20px;
    padding-left: 3px !important;
}


.works-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.works-btns a {
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #3A3A3A;
    background: #F5F5F5;
    color: #3A3A3A;
    width: 24%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.works-btns a.active, .works-btns a:hover{
    background: #3A3A3A;
    color: #fff;
}

#detail {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1800px;
    margin:0 auto;
}

@media (max-width: 500px) {
    #works {
        padding: 30px 15px;
    }

    .main-title {
        text-align: center;
    }

    #works > p {
        font-size: 14px;
    }

    .works-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-bottom: 30px;
    }

    .title-box1 {
        display: inline-flex;
        flex-direction: column;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .title-box2 {
        width: 100%;
    }

    .title-box2 > p:nth-of-type(1) {
        font-size: 13px;
        line-height: 20px;
        text-align: center;
    }

    .br {
        display: block;
    }

    .title-box2 > p:nth-of-type(2) {
        font-size: 12px;
        line-height: 15px;
        text-align: center;
    }

    .works-img-container {
        gap: 15px;
    }

    .works-box {
        width: calc(100% / 2 - 8px);
    }

    .works-box > p {
        padding: 10px 0px;
        font-size: 12px;
        line-height: 14px;
    }

    .works-btns {
        flex-wrap: wrap;
        gap: 5px 0;
        margin-bottom: 20px;
    }

    .works-btns a {
        width: 48%;
        height: 35px;
        font-size: 12px;
    }

    .line {
        margin: 20px 0;
    }

    .title-box3 {
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .title-box4 {
        width: 100%;
        font-size: 12px;
        text-align: center !important;
    }

    .title-box-wrap {
        flex-direction: column;
        gap: 15px;
    }

    .title-box-wrap.reverse {
        flex-direction: column-reverse;
    }

    .img-box {
        width: 100%;
    }

    .space {
        margin-top: 20px;
    }
}