@charset "utf-8";

/* 1. 전체 컨테이너 및 기본 초기화 */
.awards_main_wrap {
    padding: 100px 0 !important;
    background: #fff !important;
    border: none !important;
}

.awards_main_wrap .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. 타이틀 중앙 정렬 및 폰트 */
.awards_main_wrap .title {
    text-align: center !important;
    margin-bottom: 60px !important;
}

.awards_main_wrap .title h3 a {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-decoration: none !important;
    display: block;
}

.awards_main_wrap .ghost {
    font-size: 18px !important;
    color: #666 !important;
    margin-top: 20px !important;
    line-height: 1.6 !important;
}

/* 3. 리스트 스타일 (카드 레이아웃 정돈) */
.awards_ul {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 0 !important;   /* 기본 패딩 제거 */
    margin: 0 !important;    /* 기본 마진 제거 */
    list-style: none !important; /* 점 제거 */
}

.awards_ul li {
    width: calc(33.333% - 20px);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 0; /* 불필요한 마진 제거 */
}

/* 4. 이미지 박스 (여기서 크기를 잡아줘야 깔끔해!) */
.awards_main_wrap .lt_img {
    display: block;
    position: relative;
    width: 100%;
    height: 450px; /* 카드 높이를 고정 (포트폴리오와 맞춤) */
    overflow: hidden;
    background: #eee;
}

.awards_main_wrap .lt_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* 이미지가 찌그러지지 않고 꽉 차게 */
    display: block;
    transition: transform 0.5s ease;
}

.awards_main_wrap .gallery_li:hover img {
    transform: scale(1.1);
}

/* 5. 호버 텍스트 (이미지 위 제목) */
.hover_text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box; /* 패딩이 넓이를 넘지 않게 */
}

.awards_main_wrap .gallery_li:hover .hover_text {
    opacity: 1;
}

.hover_text p.white {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

/* 6. 게시물 없을 때 빈 박스 */
.awards_main_wrap .empty_li {
    width: 100% !important;
    height: 300px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #f2f2f2 !important;
    color: #999;
    border-radius: 20px;
    border: 1px dashed #ccc;
    list-style: none !important;
}


/* 7. 모바일 대응 */
@media screen and (max-width: 768px) {
    /* 가로로 1개씩 배치해서 이미지를 크게 보여줍니다. */
    .awards_ul li {
        width: 100% !important;   /* 50% -> 100%로 변경 */
        margin-bottom: 30px;      /* 이미지들 사이 하단 여백 */
        float: none;              /* 혹시 플로팅 되어 있다면 해제 */
    }

    /* 100% 비율에 맞춰 이미지 높이를 적절히 조절합니다. */
    .awards_main_wrap .lt_img {
        height: 400px !important; /* 300에서 400 정도로 늘려서 크게 보이게 */
        background: #fff;        /* 빈 공간이 생겨도 어색하지 않게 흰색으로 */
    }

    /* 타이틀 크기 조절 */
    .awards_main_wrap .title h3 a {
        font-size: 26px !important;
        line-height: 1.2;
    }

    /* 모바일에서 텍스트 정렬 및 여백 조절 */
    .awards_main_wrap .hover_text {
        padding: 20px !important; /* 모바일은 좁으니까 패딩 줄임 */
    }

    .awards_main_wrap .hover_text p.white {
        font-size: 16px !important; /* 글자 크기 적절히 조절 */
    }
}
}