﻿body {
    margin: 0;
    font-family: Arial;
}

.header {
    height: 60px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.container {
    padding: 20px;
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
/*    height: 520px;*/
}

    .item img {
        display: block;
        margin: 0 auto 15px;
        width: 100%;
        height: 400px;
        /*height: auto;*/ /* 🔥 안 잘림 */
    }

        .item img:hover {
            transform: scale(1.05);
        }

.item-overlay {
    width: 100%;
}

    .item-overlay table {
        width: 100%;
    }

.item-overlay table tr td .btn {
    width: 80px;
}

/*.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}*/


/**/
/*.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    position: fixed; 유지
}*/
.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

/*.image-modal {
    position: fixed;
}*/

/*.modal-content {
    display: flex;
    flex-direction: column; 세로 배치
    align-items: center;
}*/
    /*.image-modal .modal-content {
        position: relative;*/ /* 👉 기준 */
    /*}*/

/*.modal-img {
    max-width: 90%;
    max-height: 80vh;
}*/
.modal-img {
    max-width: 80%;
    max-height: 80%;
    margin-top: 80px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}



/*.modal-img {
    animation: fadeIn 0.3s ease;
}*/
/*    pointer-events: none;*/

/*.print-btn {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    width: 120px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}*/
/*.print-btn {
    position: absolute;
    top: 20px;
    right: 80px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}*/

    /*.print-btn:hover {
        background: #f0f0f0;
    }*/
/*    .print-btn:hover {
        background: #f5f5f5;
    }*/

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*@media print {
    body {
        margin: 0;
    }
}*/
/**/

.title {
    margin-top: 8px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

/**/
/* 전체 오른쪽 정렬 */
.search-bar {
    display: flex;
    justify-content: flex-end; /* 🔥 오른쪽 끝 */
    margin: 0px;
}

/* 제목 + 입력 묶음 */
.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 제목 */
.search-title {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* 검색박스 */
.search-box {
    position: relative;
}

    /* 입력창 */
    .search-box input {
        width: 260px;
        padding: 5px 40px 5px 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        outline: none;
/*        font-family: 'Pretendard', 'Noto Sans KR', sans-serif;*/
        font-family: 'Pretendard', sans-serif;
        font-size: 15px;
    }

        .search-box input:focus {
            border-color: #333;
        }

/* SVG 아이콘 */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #999; /* 🔥 색상 */
    stroke-width: 2;
    fill: none;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

/* hover 시 진하게 */
.search-box:hover .search-icon {
    stroke: #333;
    transform: translateY(-50%) scale(1.2);
}

.search-box input:hover {
    border-color: #666;
}

/* 입력 시 강조 */
.search-box input:focus + .search-icon {
    stroke: #2c3e50;
}

@media (max-width: 768px) {
    .search-bar {
        justify-content: center;
    }
}

/*@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-box input {
        width: 100%;
    }
}*/
/**/

/**/
/* 전체 영역 */
#noResult {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
    /*display: none;
    width: 100%;
    height: 300px;
    justify-content: center;
    align-items: center;*/
    pointer-events: none;
}

/* 박스 */
.no-result-box {
    text-align: center;
    color: #999;
    animation: fadeIn 0.3s ease;
}

    /* 아이콘 */
    .no-result-box .icon {
        font-size: 40px;
        margin-bottom: 10px;
        opacity: 0.6;
    }

    /* 텍스트 */
    .no-result-box .text {
        font-size: 16px;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/**/

/**/
#popup {
    padding: 10px;
    margin-left: -480px;
    top: 80px;
    width: 350px;
    left: 50%;
    position: fixed;
    z-index: 10;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0px 3px 6px 3px rgba(0,0,0,0.15);
}

.popup-wrap {
    position: relative;
}

.popup-img {
    height: 330px;
}

    .popup-img img {
        width: 100%;
        height: 100%;
        display: block;
    }

.popup-check {
    margin: 15px 0 4px;
    font-size: 0;
}

    .popup-check input {
        display: none;
    }

    .popup-check label {
        font-size: 16px;
        line-height: 25px;
        letter-spacing: -0.05em;
        font-weight: 400;
        color: #555;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
    }

        .popup-check label i {
            width: 25px;
            height: 25px;
            margin-right: 10px;
            background: url(../img/admin/popup-check-off.png) center center no-repeat;
            background-size: cover;
            display: inline-block;
            vertical-align: top;
            font-style: normal;
        }

    .popup-check input:checked + label i {
        background: url(../img/admin/popup-check-on.png) center center no-repeat;
        background-size: cover;
    }

.pop-close {
    width: 17px;
    height: 17px;
    display: block;
    bottom: 4px;
    right: 0;
    position: absolute;
    z-index: 1;
}

    .pop-close img {
        width: 100%;
        display: block;
    }

/* 검사결과확인 팝업 */
/* 다운로드 팝업 */
#down_popup {
    padding: 10px;
    margin-left: -110px;
    top: 80px;
    width: 350px;
    left: 50%;
    position: fixed;
    z-index: 10;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0px 3px 6px 3px rgba(0,0,0,0.15);
}

.popup-wrap {
    position: relative;
}

.down-img {
    padding: 40px 10px 0;
    height: 380px;
    background: url(../img/admin/down-bg.jpg) center center no-repeat;
    background-size: cover;
    text-align: center;
    box-sizing: border-box;
}

    .down-img p {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -0.05em;
        font-weight: 500;
        color: #fff;
    }

    .down-img .down-btn {
        position: absolute;
        bottom: 30px;
        left: 0;
        font-size: 0;
        text-align: center;
        width: 100%;
    }

        .down-img .down-btn a {
            padding: 0 10px 0 20px;
            margin-bottom: 10px;
            width: 260px;
            height: 50px;
            font-size: 16px;
            line-height: 50px;
            border-radius: 25px;
            letter-spacing: -0.05em;
            font-weight: 400;
            color: #333;
            background: #fff;
            text-align: left;
            display: inline-block;
            vertical-align: top;
            box-sizing: border-box;
            box-shadow: 0px 3px 6px 3px rgba(0,0,0,0.3);
        }

            .down-img .down-btn a:last-of-type {
                margin-bottom: 0;
            }

            .down-img .down-btn a img {
                width: 26px;
                height: 26px;
                margin: 13px 7px 0 0;
                display: inline-block;
                vertical-align: top;
            }

.popup-check {
    margin: 15px 0 4px;
    font-size: 0;
}

    .popup-check input {
        display: none;
    }

    .popup-check label {
        font-size: 16px;
        line-height: 25px;
        letter-spacing: -0.05em;
        font-weight: 400;
        color: #555;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
    }

        .popup-check label i {
            width: 25px;
            height: 25px;
            margin-right: 10px;
            background: url(../img/admin/popup-check-off.png) center center no-repeat;
            background-size: cover;
            display: inline-block;
            vertical-align: top;
            font-style: normal;
        }

    .popup-check input:checked + label i {
        background: url(../img/admin/popup-check-on.png) center center no-repeat;
        background-size: cover;
    }

.down-close {
    width: 17px;
    height: 17px;
    display: block;
    bottom: 4px;
    right: 0;
    position: absolute;
    z-index: 1;
}

    .down-close img {
        width: 100%;
        display: block;
    }
/**/
