body {
    background-size: cover;
    background-color: #ffffff;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    /* 표준 구문 */
}

.gallery {
    padding: 45px;
    text-align: center;
    font-size: 0;
    /* max-width: 1800px; */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 10px; 
}

.image-container {
    margin: 0;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 6px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.pagination-container {
    display: flex;
    justify-content: center;
    width: 60%;
    margin: 0 auto;
}

.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 14px 16px;
}

.page-setting {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.search-form {
    display: flex;
    align-items: center;
    margin: 0 2rem;
    position: relative;
}

.tag-filter {
    display: flex;
    justify-content: left;
    margin: 10px 0;
    margin: 0 calc(2rem + 16px);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    /* padding-bottom: 20px; */
    cursor: grab;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    /* 표준 구문 */
}

.tag-filter:active {
    cursor: grabbing;
}

.tag-filter::-webkit-scrollbar {
    display: none;
}

/* 스크롤 트랙 (밑에 깔리는 회색 바) */
.tag-filter::after {
    display: none;
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

/* 스크롤 인디케이터 (움직이는 진한 바) */
.scroll-indicator {
    display: none;
    position: absolute;
    /* bottom: 8px; */
    left: 0;
    height: 3px;
    background-color: #2d465f;
    border-radius: 2px;
    z-index: 1;
    transition: width 0.1s ease, transform 0.1s ease;
}

.easysearch {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    margin: 10px 0;
    margin-left: 2rem;
    padding: 0px 16px;
}

.media-container {
    margin-bottom: 26px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.popup {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.window-frame {
    width: 90%;
    max-width: 800px;
    background-color: #f1f3f4;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: popup-appear 0.5s ease-out;
}

@keyframes popup-appear {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.window-header {
    background-color: #e0e0e0;
    height: 34px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    justify-content: flex-start;
}


@media only screen and (max-width: 1500px) {
    .image-container {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
        padding: 2px;
    }

    .gallery {
        gap: 10px 5px;
    }

    .gallery img {
        height: 340px;
        min-height: 340px;
        max-height: 340px;
    }

    .image-container b {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .download-button,
    .instagram-button,
    .share-button,
    .image-select-checkbox {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 900px) {
    .image-container {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .gallery img {
        height: 260px;
        min-height: 260px;
        max-height: 260px;
    }
}

@media only screen and (max-width: 800px) {
    .image-container {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    .gallery {
        gap: 10px 2px;
    }

    .gallery img {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }

    .image-name {
        font-size: 0.8rem;
    }

    .image-container b {
        top: 12px;
        right: 12px;
        gap: 5px;
    }

    .download-button,
    .instagram-button,
    .share-button,
    .image-select-checkbox {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* @media only screen and (max-width: 720px) {
    .image-container {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .gallery img {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }

    .image-name {
        font-size: 0.7rem;
    }

    .image-container b {
        top: 10px;
        right: 10px;
        gap: 4px;
    }

    .download-button,
    .instagram-button,
    .share-button,
    .image-select-checkbox {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
} */