.board-table td {
    text-align: center;
    vertical-align: middle;
}

.board-table tr td:nth-of-type(2) {
    text-align: left;
}

.board-table tr td:nth-of-type(2) a {
    color: inherit;
    text-decoration: none;

    /* 한 줄 자르기 */
    overflow: hidden;
    text-overflow: ellipsis;

    /* 여러 줄 자르기 추가 스타일 */
    white-space: normal;
    line-height: 1.5;
    height: auto;
    text-align: left;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.board-table tr td:nth-of-type(2) a i {
    color: var(--main-color);
}

.board-table tr td:nth-of-type(2) a:hover {
    color: var(--main-color);
}

.board-table tr:hover td {
    background-color: #f9f9f9;
}

/* pagination */
.pagination-area {
    text-align: center;
}

.pagination-ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-li {
    height: 2rem;
    width: 2rem;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #F2F2F2;
    margin: 0 5px;
}

.pagination-li a {
    text-decoration: none;
    color: var(--main-grey);
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}


.pagination-li.active, .pagination-li:hover {
    background-color: var(--main-color);
}

.pagination-li.active a, .pagination-li:hover a {
    color: #fff;
}

/* gallery */
.gallery-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 350px), 1fr));
    gap: 30px;

    margin-bottom: 30px;
}

.gallery-area a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.gallery-area a img {
    width: 100%;
    aspect-ratio: 4/3;

    object-fit: cover;
    margin-bottom: 10px;

    border: 1px solid #ddd;
    transition: box-shadow,scale 0.3s ease;
}

.gallery-area a img.no-image {
    object-fit: contain;
    padding: 20px;
    background-color: #f9f9f9;
}

.gallery-area a:hover img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    scale: 1.04;
}

.gallery-info-div {
    width: 100%;
    text-align: center;
}

.gallery-info-div span {
    display: block;
    font-size: 1rem;
    color: var(--main-grey);
}

 /* update/write */
.form-group {
    margin-bottom: 30px;
}

.form-group h4 span {
    color: red;
}

.help-block {
    font-size: 1rem;
    color: var(--main-grey) !important;
    font-weight: 400;
}

.file-input, .uploaded-file-div {
    display: flex;
    gap: 10px;

    margin-bottom: 10px;
}

.file-input input[type="file"] {
    flex: 1;
    margin: 0;
}

.file-input .btn-file,
.uploaded-file-div .btn-file {
    background-color: var(--main-color);
    color: white;

    display: block;
    width: 40px;

    padding: 0;
    border: none;
    border-radius: 4px;

    cursor: pointer;
}

.uploaded-file-div a {
    align-self: center;
    flex: 1;

    text-decoration: none;
    color: var(--main-black);
}

.uploaded-file-div .btn-file {
    background-color: #dc3545;
    height: 40px;
}

.uploaded-file-div a:hover,
.uploaded-file-div a i {
    color: var(--main-color);
}

.thumbnail {
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
/* article */
.content .container > .article-h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.content .container > .article-h2:before {
    display: none;
}

.article-info-div {
    color: var(--main-grey);
}

.article-content img {
    max-width: 100%;
    height: auto;
}


/* 첨부파일 START */
.file-div {
    margin: 10px 0;
}

.file-div a {
    display: block;
    text-decoration: none;
    color: var(--main-black);
    font-size: 1.2rem;
}

.file-div a i {
    margin-right: 4px;
    color: var(--main-color);
}

.file-div a:hover {
    color: var(--main-color);
}

/* 첨부파일 END */
/* notice */
.notice-tr td {
    background-color: #ffe5e5;
}

.notice-tr td:first-of-type {
    color: #D94925;
}

.notice-tr td a  {
    color: #D94925;
}