/* ----------------------------------------------------------
   BUTTON
---------------------------------------------------------- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    height: 60px;
    padding: 0 15px;
    border-radius: 10px;
    border: 2px solid #eee;
    background: #fff;
    color: #444;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}
.btn:hover {
    border: 2px solid #111;
    color: #111;
}
.btn.btn-dark {
    border: 2px solid #111;
    background: #111;
    color: #fff;
}
.btn.btn-dark:hover {
    border: 2px solid #777;
    background: #777;
}
.btn.delete-confirm {
    background: #9E1218;
    border: 2px solid #9E1218;
}
.btn.delete-confirm:hover {
    border: 2px solid #eee;
    background: #eee;
    color: #9E1218;
}


/* ----------------------------------------------------------
   BOARD LIST WRAPPER
---------------------------------------------------------- */
.bbs-list {
    padding: 0 0 18rem 0;
}


/* ----------------------------------------------------------
   LIST HEADER
---------------------------------------------------------- */
.bbs-list-header {
    text-align: center;
    padding: 0 0 4rem 0;
    border-bottom: 2px solid #111;
}
.bbs-list-header .total {
    color: #111;
    font-size: 1.8rem;
}

.bbs-list-header .total .bold {
    color: #006e36;
}


/* ----------------------------------------------------------
   GALLERY LIST BODY
---------------------------------------------------------- */
.bbs-list-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 8rem;
    padding: 6rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.bbs-list-body .gallery-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bbs-list-body .gallery-img {
    position: relative;
    aspect-ratio: 420 / 320;
    /* height: 320px; */
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.bbs-list-body .gallery-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-repeat: inherit;
    background-position: inherit;
    background-size: inherit;
    transition: transform 0.4s ease-in-out;
    transform-origin: center center;
}
.bbs-list-body .gallery-item:hover .gallery-img::after {
    transform: scale(1.12);
}

.bbs-list-body img {
    max-width: 100%;
    height: auto;
}

.bbs-list-footer .board-btn {
    text-align: right;
}


/* ----------------------------------------------------------
   GALLERY INFO
---------------------------------------------------------- */
.gallery-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
}
.gallery-info .title a {
    overflow: hidden;
    position: relative;
    display: -webkit-box;
    max-height: calc(1.3em * 2);
    color: #111;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
}
.gallery-info .date {
    margin-top: 1rem;
    color: #006e36;
    font-size: 1.8rem;
    font-weight: 300;
}


/* ----------------------------------------------------------
   PAGINATION
---------------------------------------------------------- */
.pagination .page-link {
    width: 30px;
    height: 30px;
}

.pagination .page-item.active .page-link {
    background: #006e36;
    color: #fff;
}

.pagination .page-item.first,
.pagination .page-item.previous,
.pagination .page-item.next,
.pagination .page-item.last {
    display: none;
}


/* ────────────────────── 반응형 ────────────────────── */
/* Tablet */
@media only screen and (max-width: 1023px) {
    .bbs-list {
        padding-bottom: 10rem;
    }
    .bbs-list-header {
        padding-bottom: 2rem;
    }
    .bbs-list-body {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 6rem;
        padding: 4rem 0;
    }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .btn {
        min-width: 120px;
        height: 50px;
    }
    .bbs-list-header {
        padding-bottom: 1rem;
    }
    .bbs-list-body {
        grid-template-columns: repeat(1, 1fr);
        gap: 4rem;
    }
    .bbs-list-body .gallery-img {
        aspect-ratio: auto;
        height: 320px;
    }
    .gallery-info {
        justify-content: flex-start;
    }
    .bbs-list-footer .board-btn {
        margin-top: 4rem;
    }

}
@media only screen and (max-width: 480px) {
    .bbs-list-body {
        margin-bottom: 4rem;
        padding: 2rem 0;
    }
    .bbs-list-body .gallery-img {
        height: 240px;
    }
}