/*
.gallery-container
grid (gallery, zine)
grid-item
gallery-item
thumbnail / item-info
cnt / info
*/
:root {
    --light-color: #eeeeee;
    --dark-color: #444444;
}

.gallery-container {
    width: 100%;
    height: 100%;
}

.gallery-container .grid-item .thumbnail {
    position: relative;
    overflow: hidden;
}

.gallery-container .grid-item .thumbnail .manager-box {
    position: absolute;
    bottom: 0;
    right: .5rem;
}
.gallery-container .grid-item .thumbnail .manager-box input{
    position: relative;
    z-index: 2;
}
.gallery-container .grid-item .thumbnail img {
    width: 100%;
    display: block;
    vertical-align: top;
    /*object-fit: cover;
    aspect-ratio: 5 / 4;*/
    transition: transform 0.3s ease;
}


.gallery-container .grid {
    width: 100%;
    min-height: 100px;
}

.gallery-container .grid .grid-item {
    padding: 10px;
    box-sizing: border-box;
    width: 100%; /* 기본 1열 */
    break-inside: avoid;
}

/* 반응형 설정 */
@media (min-width: 576px) {
    .gallery-container .grid .grid-item {
        width: 50%; /* 2열 */
    }
}
@media (min-width: 768px) {
    .gallery-container .grid .grid-item {
        width: 33.333%; /* 3열 */
    }
}
@media (min-width: 1200px) {
    .gallery-container .grid .grid-item {
        width: 25%;
    }
}


.gallery-container .grid .thumbnail {
    width: 100%;
}
.gallery-container .grid .thumbnail .btn-circle {
    position: absolute;
    top: .5rem;
    right: .5rem;
    transition: all .3s ease;
    opacity: 0;
    z-index: 3;
}
.gallery-container .grid .thumbnail:hover .btn-circle {
    opacity: 1;
}

.gallery-container .grid .thumbnail .title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gallery-container .item-info .info {
    font-size: .875rem;
    color: #888;
}
.gallery-container .item-info .info > span {
    margin-right: .5rem;
}


.board .btn-more {
    color: #fff;
    background-color: #111;
}
.board .btn-more:hover {
    color: #fff;
    background-color: rgb(var(--main-rgb));
}

.link-board-btn a {
    display: block;
}
.link-board-btn a > div {
    padding: 1rem 1rem 1rem 1.5rem;
    min-width: 180px;
    font-weight: bold;
    color: #fff;
    background-color: #000;
    border-radius: .25rem;
}
.link-board-btn .bt-text {
    display: flex;
    align-items: center;
    justify-content: center;
}
.link-board-btn .bt-img {
    height: 50px;
    text-align: right;
    background-repeat: no-repeat;
    background-position: center;
}
.link-board-btn .bt-img > i {
    transform-origin: top;
} 
.link-board-btn .bt-text > i {
    transform-origin: center;
}    
.link-board-btn .bt-ani > i {
    margin-right: -10px;
    transition: all .3s ease;
}
.link-board-btn .bt-ani:hover i {
    transform: rotate(45deg) translate(0, -7px);
}

/*

board_zine

*/
.board_zine .gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board_zine .gallery-item:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.board_zine .item-info {
    padding: 15px;
    font-size: 14px;
}

.board_zine .item-info .title {
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.board_zine .item-info .title a {
    color: #333;
    text-decoration: none;
}

.board_zine .item-info .title a:hover {
    color: #000;
}

.board_zine .item-info .content {
    font-size: 15px;
    color: #888;
}

.board_zine .item-info .info > span {
    margin-right: 5px;
}

.board_zine .thumbnail:hover img {
    transform: scale(1.05);
}

.board_zine .scrap-btn.active {
    background-color: #007bff;
    color: white;
}
.board_zine .scrap-btn.active i {
    color: #ffc107;
}





/*

board_gallery

*/
.board_gallery .gallery-item {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board_gallery .gallery-item .thumbnail:hover img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.board_gallery .thumbnail {
    border-radius: 8px;
}
.board_gallery .thumbnail a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .2);
    transition: all .3s ease;
    z-index: 1;
}
.board_gallery .thumbnail:hover a:before {
    background-color: rgba(0, 0, 0, 0);
}
.board_gallery .thumbnail img {
    transition: all .3s ease;
    transform: scale(1.0);
}
.board_gallery .thumbnail:hover img {
    transform: scale(1.1);
}
.board_gallery .thumb-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: #fff;
}


.board_gallery .title {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    padding: 2rem 1rem 1.5rem 1rem;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    opacity: 0;
    moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;    
}
.board_gallery .title a {
    color: #333;
    text-decoration: none;
}
.board_gallery .thumbnail .extra-wrap {
    moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    opacity: 0;
}
.board_gallery .thumbnail:hover .extra-wrap,
.board_gallery .thumbnail:hover .title {
    opacity: 1;
}
.board_gallery .item-info .title a:hover {
    color: #007bff;
}
.board_gallery .item-info .subject {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


/* FAQ accordion*/
.accordion .accordion-item.notice .edit {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    white-space: nowrap;
    transform: translateY(-50%);
    z-index: 2;
}
.accordion .accordion-item.notice .accordion-button:not(.collapsed)::after, 
.accordion .accordion-item.notice .accordion-button::after {
    display: none;
}
.accordion .accordion-item,
.accordion .accordion-button {
    color: #555;
    border: 0;
}
.accordion-button:focus,
.accordion-button:not(.collapsed) {
    background: none;
    box-shadow: none;
}
.accordion-collapse.collapse {
    background-color: #f9f9f9;
}
.accordion-button:not(.collapsed)::after,
.accordion-button::after {
    content: '\F64D';
    font-family: 'Bootstrap-Icons';
    background-image: none;

}
.accordion-button:not(.collapsed)::after {
    content: '\F63B';
    transform: rotate(0deg);
}
.accordion-button,
.accordion-body {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.accordion-button .num {
    font-size: 1.25rem;
    font-weight: bold;
}
.accordion-item {
    color: #777;
}



.board_read .extra-default th {
    background-color: #ebebeb;
}

/*media*/
@media (min-width: 992px) {
    .board_read .extra-default th {
        width: 200px;
    }
    .bd_rd_next,
    .bd_rd_prev,
    .bd_prev_next a.bd_rd_prev,
    .bd_prev_next a.bd_rd_next {
        border: 0 !important;
    }
}
@media (min-width: 1200px) {

}

@media (max-width: 1199px) {
    .cTab {
        display: flex;
        padding-bottom: 1rem;
        width: 100%;
        flex-wrap: inherit;
        overflow: hidden;
        white-space: nowrap;
        overflow-x: scroll;
/*        scrollbar-width: thin;*/
    }
    .cTab::-webkit-scrollbar {
        height: 5px;
    }
    .cTab::-webkit-scrollbar-track {
        background-color: #eee;
    }
    .cTab::-webkit-scrollbar-thumb {
        background-color: #111;
    }

}

@media (max-width: 991px) {
/*    .bd_prev_next a.bd_rd_prev {
        border-top: 1px solid #ddd;
    }
    .bd_prev_next a.bd_rd_next {
        border-bottom: 1px solid #ddd;
    }*/
}
@media (max-width: 767px) {
    .board .search-end .iText,
    .search-width,
    .search-form {
        width: 100%;
    }
}

@media (max-width: 420px) {
    /*write*/
    .exForm table td input[type="file"] {
        max-width: 250px;
    } 
}
@media (max-width: 340px) {
    /*write*/
    .exForm table td input[type="file"] {
        max-width: 180px;
    } 
}