@charset "utf-8";

/* 색상 변수 */
:root {
    --text-black: #000000;
    --text-gray: #666666;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #e0e0e0;
}

.sch_word { color:var(--point-color); }

/* 공통 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
	border:1px solid #eee !important;
}

.btn_primary {
    background: var(--point-color);
    color: var(--text-black);
	border-color:var(--point-color) !important;
}

.btn_primary:hover {
    opacity: 0.9;
}

.btn_write {
    background: var(--point-color);
    color: var(--text-black);
	border-color: var(--point-color) !important;
 }

.btn_write:hover {
       opacity: 0.9;
}

.btn_secondary {
    background: var(--bg-white);
    color: var(--text-black);
    border: 1px solid var(--border-color);
}

.btn_secondary:hover {
    background: var(--bg-gray);
}

.btn_ghost {
    background: transparent;
    color: var(--text-gray);
    border: none;
}

.btn_ghost:hover {
    color: var(--text-black);
}

/* 체크박스 */
.chk_box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.chk_box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.chk_box label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-black);
}

/* 갤러리 메인 */
#bo_gall {
    margin: 0 auto;
}

/* 갤러리 헤더 */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

#bo_list_total {
    font-size: 18px;
    color: var(--text-black);
    font-weight: 600;
}

.btn_bo_user {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn_bo_user li {
    margin: 0;
}

/* 전체 선택 */
#gall_allchk {
    margin-bottom: 20px;
}

/* 그리드 레이아웃 */
#gall_ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gall_li {
    margin: 0;
}

.gall_box {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
	border-radius:0.75rem;
}

.gall_chk {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.gall_chk input[type='checkbox'] { width:20px; height:20px;}

.gall_img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gall_img a {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.gall_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	transform:scale(1.05);
    transition: transform 0.3s ease;
}

.gall_box:hover .gall_img img {
    transform: scale(1.1);
}

/* 제목 오버레이 */
.gall_title_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px 20px 20px 20px;
    transition: all 0.3s ease;
}

.gall_title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gall_box:hover .gall_title_overlay {
	padding: 30px 20px;
}

.gall_img .no_image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg-gray);
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
}

.gall_img .is_notice {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--point-color);
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 600;
}



.new_icon {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 빈 목록 */
.empty_list {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
    font-size: 16px;
}

/* 페이지네이션 */
.write_pages {
    text-align: center;
    margin: 40px 0;
}

.write_pages a,
.write_pages strong,
.write_pages span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    color: var(--text-black);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.write_pages a:hover {
    background: var(--point-color);
    color: var(--bg-white);
    border-color: var(--point-color);
}

.write_pages strong {
    background: var(--point-color);
    color: var(--bg-white);
    border-color: var(--point-color);
}

.write_pages .pg_prev,
.write_pages .pg_next {
    font-weight: 600;
}

.write_pages .pg_start,
.write_pages .pg_end {
    font-weight: 600;
}

/* 하단 버튼 */
.bo_bottom_buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 0px solid var(--border-color);
}

/* 검색 모달 */
.bo_sch_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bo_sch h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-black);
}

.bo_sch select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-white);
    margin-bottom: 15px;
}

.sch_bar {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.sch_input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 14px;
}

.sch_input:focus {
    outline: none;
}

.sch_btn {
    padding: 12px 20px;
    background: var(--point-color);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
}

.bo_sch_cls {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
}

.bo_sch_cls:hover {
    color: var(--text-black);
}

/* 더보기 옵션 */
.more_opt {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 120px;
    display: none;
    overflow: hidden;
}

.more_opt li {
    margin: 0;
    padding: 0;
}

.more_opt li a, .more_opt li button {
    display: block;
    padding: 12px 15px;
    color: var(--text-black);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.more_opt li:hover a, .more_opt li:hover button {
    background: var(--bg-gray);
}

/* 반응형 */
@media (max-width: 768px) {
    #bo_gall {
        padding: 15px;
    }
    
    #gall_ul {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    #bo_btn_top {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn_bo_user {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .gall_img {
        height: 240px;
    }
    
    .bo_bottom_buttons {
        transform:scale(0.9);
		width:105%;
        align-items: flex-end;
		margin-top:20px;
		margin-bottom:0;
		padding-bottom:0;
		gap:5px;
    }
}

/* 게시판 상세보기, 작성 등 기본 스타일 유지 */
#bo_v {
    margin: 0 auto;
    padding: 0 20px;
    background: var(--bg-white);
    line-height: 1.7;
}

/* 상단/하단 액션 버튼 */
.bo_v_top_actions,
.bo_v_bottom_actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    justify-content: flex-end;
}

.bo_v_bottom_actions {
    border-bottom: none;
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    margin-bottom: 0;
    margin-top: 40px;
}

/* 드롭다운 */
.dropdown {
    position: relative;
}

.dropdown_menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    list-style: none;
    margin: 0;
}

.dropdown_menu li {
    margin: 0;
}

.dropdown_menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-black);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.dropdown_menu a:hover {
    background: var(--bg-gray);
}

/* 헤더 */
.bo_v_header {
	display:none;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.bo_v_category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--point-color);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.bo_v_title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-black);
    line-height: 1.3;
    margin: 0;
    word-break: keep-all;
}

/* 작성자 정보 */
.bo_v_author_info {
    display: flex;
	display:none;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    margin-bottom: 40px;
}

.author_profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author_avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border-color);
}

.author_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author_details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author_name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
}

.author_date {
    font-size: 14px;
    color: var(--text-gray);
}

.post_meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-gray);
}

.meta_item svg {
    opacity: 0.7;
}

/* 본문 영역 */
.bo_v_content {
    margin-bottom: 40px;
}

.bo_v_images {
    margin-bottom: 30px;
	text-align:center;
}
.bo_v_images img {max-width:100%; height:auto !important; }

.bo_v_text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-black);
    word-break: break-word;
}

.bo_v_text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.bo_v_text p {
    margin-bottom: 16px;
}

.bo_v_signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
}

/* 첨부파일 & 관련링크 */
.bo_v_files,
.bo_v_links {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.bo_v_files h3,
.bo_v_links h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 20px;
    text-align: center;
}

.bo_v_files ul,
.bo_v_links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bo_v_files li,
.bo_v_links li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file_info,
.link_info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file_info svg,
.link_info svg {
    color: var(--point-color);
    flex-shrink: 0;
}

.file_name,
.link_name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 4px;
}

.file_desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.file_meta,
.link_meta {
    font-size: 12px;
    color: var(--text-gray);
}

.file_download {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

/* 추천/비추천 */
.bo_v_rating {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.bo_v_rating h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 12px;
}

.bo_v_rating p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.rating_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rating_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.rating_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rating_btn.good:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.rating_btn.bad:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.rating_btn svg {
    color: var(--text-gray);
}

.rating_btn.good:hover svg {
    color: #10b981;
}

.rating_btn.bad:hover svg {
    color: #ef4444;
}

.rating_btn div {
    text-align: center;
}

.rating_btn span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 4px;
}

.rating_btn strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--point-color);
}

/* 이전/다음글 네비게이션 */
.bo_v_navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px 0;
}

.nav_item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-items: center;
}

.nav_item:hover {
    border-color: var(--point-color);
}

.nav_item.prev {
    flex-direction: row;
}

.nav_item.next {
    flex-direction: row-reverse;
    text-align: right;
}

.nav_image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-gray);
    flex-shrink: 0;
}

.nav_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no_thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.nav_content {
    flex: 1;
    min-width: 0;
}

.nav_label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nav_item.next .nav_label {
    justify-content: flex-end;
}

.nav_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav_date {
    font-size: 12px;
    color: var(--text-gray);
}

/* 반응형 */
@media (max-width: 768px) {
    .bo_v_title {
        font-size: 28px;
    }
    
    .bo_v_author_info {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .post_meta {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .rating_buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bo_v_navigation {
        grid-template-columns: 1fr;
    }
    
    .nav_item.next {
        flex-direction: row;
        text-align: left;
    }
    
    .nav_item.next .nav_label {
        justify-content: flex-start;
    }
    
    .bo_v_files li,
    .bo_v_links li {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .file_download {
        align-self: stretch;
        text-align: center;
    }
}

/* 게시물 작성 폼 */
#bo_w {
    margin: 0 auto;
    max-width: 1000px;
}

.frm_input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: var(--bg-white);
}

.frm_input:focus {
    outline: none;
    border-color: var(--point-color);
}

.frm_input select {
    height: 48px;
}

.write_div {
    margin-bottom: 20px;
}

.write_form_container .write_div:last-child {margin-bottom:0;}

.btn_confirm {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* write.skin.php 스타일 */
.write_header {
    text-align: center;
    margin-bottom: 30px;
}

.write_header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.write_form_container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.write_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.write_label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.write_fieldset {
    margin: 0;
}

.write_legend {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    padding: 0 8px;
}

/* 파일 업로드 */
.bo_w_flie {
    margin-bottom: 20px;
    position: relative;
}

.file_wr {
    
}

.file_upload_label {
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.file_upload_info {
    color: #718096;
    font-size: 14px;
    font-weight: 400;
}

.file_existing {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file_existing_content {
    flex: 1;
}

.file_existing_name {
    font-weight: 600;
    color: #1a202c;
}

.file_existing_size {
    font-size: 14px;
    color: #718096;
}

.file_delete_label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
    cursor: pointer;
}

/* 공지 체크박스 개선 */
.bo_v_option {
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
}

.bo_v_option .chk_box {
    margin: 0;
    padding: 0;
    border: none;
}

.bo_v_option .chk_box input[type="checkbox"] {
    border: none;
    box-shadow: none;
}

.bo_v_option .chk_box label {
    margin: 0;
    padding: 0;
    border: none;
}

/* 버튼 개선 */
.btn_submit2 {
    background: var(--point-color);
    color: var(--text-black);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    min-width: 120px;
	line-height:initial;
	height:initial;
}

.btn_submit2:hover {
    background: #333;
    color: white;
}

.btn_cancel2 {
    color: var(--text-black);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500 !important;
    min-width: 120px;
	height:initial;
	line-height:initial;
	height:47px !important;
	background:#f7f7f7;
}

.cke_sc {display:none !important;}

/* 전체화면 레이어 팝업 */
.gallery_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery_modal.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
}

.gallery_modal_content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
	height:100vh;
	max-height:initial;
    background: var(--bg-white);
    border-radius: 12px;
	border-radius:0;
    overflow: hidden;
    margin: 0;
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery_modal.active .gallery_modal_content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.gallery_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.gallery_modal_title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-black);
    margin: 0;
}

.gallery_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.gallery_modal_close:hover {
    background: var(--bg-gray);
    color: var(--text-black);
}

.gallery_modal_body {
    padding: 30px;
    max-height: calc(90vh - 140px);
	max-height:calc(100% - 85px);
    overflow-y: auto;
}

.gallery_modal_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-black);
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery_modal_nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery_modal_prev {
    left: 20px;
}

.gallery_modal_next {
    right: 20px;
}

.gallery_modal_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-gray);
}

.gallery_modal_loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.list_count {margin-bottom:20px;}

/* 모바일 대응 */
@media (max-width: 768px) {
    .gallery_modal_content {
        width: 95%;
        max-height: 95vh;
    }
    
    .gallery_modal_header {
        padding: 15px 20px;
    }
    
    .gallery_modal_title {
        font-size: 18px;
    }
    
    .gallery_modal_body {
        padding: 20px;
        max-height: calc(95vh - 120px);
    }
    
    .gallery_modal_nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
		border:1px solid #ddd;
    }
	.gallery_modal_prev {left:0;}
	.gallery_modal_next {right:0;}
}