@charset "utf-8";

/* TimePoint Theme - Gallery Skin CSS */
/* Tailwind CSS 기반 - 최소한의 추가 CSS만 사용 */

/* ===== 카테고리 링크 스타일 ===== */
#bo_cate ul li a {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#bo_cate ul li a:hover,
#bo_cate ul li.on a {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3), 0 2px 4px -1px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* ===== 페이지네이션 스타일 (Realprice 스타일 적용) ===== */
#bo_gall .pg_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
    width: 100%;
}

#bo_gall .pg_page,
#bo_gall .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#bo_gall .pg_page:hover {
    background-color: #faf5ff;
    border-color: #8b5cf6;
    color: #7c3aed;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

#bo_gall .pg_current {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #7c3aed;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3), 0 2px 4px -1px rgba(139, 92, 246, 0.2);
}

/* 이전/다음 버튼 스타일 */
#bo_gall .pg_start,
#bo_gall .pg_prev,
#bo_gall .pg_next,
#bo_gall .pg_end {
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
}

#bo_gall .pg_start:after,
#bo_gall .pg_prev:after,
#bo_gall .pg_next:after,
#bo_gall .pg_end:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid #6b7280;
    border-right: 2px solid #6b7280;
    text-indent: 0;
}

#bo_gall .pg_prev:after {
    transform: translate(-30%, -50%) rotate(-135deg);
}

#bo_gall .pg_next:after {
    transform: translate(-70%, -50%) rotate(45deg);
}

#bo_gall .pg_start:after {
    border: none;
    content: '<<';
    font-size: 12px;
    color: #6b7280;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
}

#bo_gall .pg_end:after {
    border: none;
    content: '>>';
    font-size: 12px;
    color: #6b7280;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
}

/* ===== line-clamp 유틸리티 (브라우저 호환성) ===== */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ===== 이미지 호버 효과 ===== */
#bo_gall .group:hover img {
    transform: scale(1.1);
}

/* ===== 갤러리 카드 호버 효과 ===== */
#bo_gall .group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#bo_gall .group:hover {
    transform: translateY(-4px);
}

/* ===== 검색 모달 애니메이션 ===== */
.bo_sch_wrap {
    animation: fadeIn 0.2s ease;
}

.bo_sch_wrap.hidden {
    animation: fadeOut 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ===== 모바일 반응형 최적화 ===== */
@media (max-width: 640px) {
    #bo_gall {
        font-size: 0.875rem;
    }

    #bo_gall .pagination {
        gap: 0.375rem;
        margin: 2rem 0;
    }

    #bo_gall .pagination a,
    #bo_gall .pagination strong,
    #bo_gall .pagination span {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }

    #bo_cate ul li a {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ===== 접근성: 스크린 리더 전용 ===== */
.sr-only,
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== 인쇄 스타일 ===== */
@media print {

    .btn_bo_user,
    .bo_fx,
    .pagination,
    .btn_more_opt,
    input[type="checkbox"],
    .bo_sch_wrap {
        display: none !important;
    }

    #bo_gall {
        max-width: 100% !important;
    }

    #bo_gall li {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== 이미지 로딩 애니메이션 ===== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#bo_gall img {
    animation: fadeIn 0.3s ease;
}

/* ===== 갤러리 그리드 갭 조정 (IE 호환성) ===== */
@supports not (gap: 1.5rem) {
    #bo_gall ul>li {
        margin: 0 0.75rem 1.5rem;
    }
}

/* ===== 페이지네이션 포커스 스타일 (접근성) ===== */
#bo_gall .pagination a:focus,
#bo_gall .pagination strong:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}