/*
.gallery-container
grid (gallery, zine)
grid-item
gallery-item
thumbnail / item-info
cnt / info
*/


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

.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%;
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
}

.gallery-container .grid .thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 5 / 4;
    transition: transform 0.3s ease;
}
.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;
}

.gallery-container .item-info .info .manager-box {
    position: absolute;
    bottom: 0;
    right: 0;
}
.board .btn-more {
    color: #fff;
    background-color: #111;
}
.board .btn-more:hover {
    color: #fff;
    background-color: rgb(var(--main-rgb));
}

/*

board_zine

*/
.board_zine .gallery-item {
    background: #fff;
    border: 1px solid #eee;
    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: #007bff;
}

.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 .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 6rem 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 a.gradient:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, rgba(18, 18, 18, 0) 50%, rgba(0, 0, 0, 1) 85%);
    background-size: 100% 180%;
    background-position: 0 55%;
    opacity: 0;
    moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}
.board_gallery .thumbnail:hover a.gradient:before {
    opacity: 1;    
}
.board_gallery .thumbnail .extra-wrap {
    display: flex;
    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>div {
    height: 24px;
}
.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;
}





/*media*/
@media (min-width: 992px) {
    
}
@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: 767px) {
    .board .search-end .iText,
    .search-width,
    .search-form {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .gallery-container .grid .thumbnail .title {
        padding-right: 7rem;
    }
    /*write*/
    .exForm table td input[type="file"] {
        max-width: 250px;
    } 
}
@media (max-width: 340px) {
    /*write*/
    .exForm table td input[type="file"] {
        max-width: 180px;
    } 
}