﻿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 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 100px;
}

.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);
        }

/**/
/*.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-bottom: 20px;
}

/* 제목 + 입력 묶음 */
.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);
    }
}
/**/
