/* =========================
   Board
========================= */

.board-section {
    padding: 140px 0;
}

.section-head {
    margin-bottom: 72px;
    text-align: center;
}

.section-head span {
    display: inline-block;
    margin-bottom: 12px;
    color: #B98940;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.section-head h2 {
    font-family: 'Nanum Myeongjo';
    font-size: 56px;
    font-weight: 700;
    color: #000;
}

.section-head p {
    margin-top: 18px;
    color: #666;
    line-height: 1.8;
}

/* top */

.board-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.board-count {
    color: #666;
    font-size: 16px;
}

.board-count strong {
    color: #000;
    font-weight: 700;
}

.board-search {
    display: flex;
    gap: 10px;
}

.board-search select,
.board-search input {
    height: 52px;
    padding: 0 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 15px;
}

.board-search select {
    width: 140px;
}

.board-search input {
    width: 280px;
}

.board-search button {
    height: 52px;
    padding: 0 28px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.board-search button:hover {
    background: #333;
}

/* header */

.board-head {
    display: flex;
    align-items: center;
    height: 64px;
    border-top: 2px solid #000;
    border-bottom: 1px solid #ddd;
}

.board-head span {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* list */

.board-item {
    display: flex;
    align-items: center;
    min-height: 86px;
    border-bottom: 1px solid #ececec;
    color: #000;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.board-item:hover {
    background: #f6f2eb;
}

/* columns */

.board-head .num,
.board-item .num {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
}

.board-head .title,
.board-item .title {
    flex: 1;
}

.board-head .file,
.board-item .file {
    width: 90px;
    flex-shrink: 0;
    text-align: center;
}

.board-item .file img {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0 auto;
    object-fit: contain;
}

.board-head .view,
.board-item .view {
    width: 110px;
    flex-shrink: 0;
    text-align: center;
}

.board-head .date,
.board-item .date {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

/* content */

.board-item .num {
    color: #666;
    font-size: 15px;
}

.board-item .title {
    padding-right: 24px;
    font-size: 17px;
    font-weight: 500;
}

.board-item .file {
    color: #B98940;
    font-size: 15px;
}

.board-item .view,
.board-item .date {
    color: #666;
    font-size: 15px;
}

/* pagination */

.board-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.board-pagination a {
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.board-pagination a:hover {
    background: #f6f2eb;
}

.board-pagination a.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* =========================
   Pagination Arrow
========================= */

.board-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.board-pagination a {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.board-pagination a:hover {
    background: #f6f2eb;
}

.board-pagination a.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* arrow */

.board-pagination .arrow:before {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 1.5px solid #111;
    border-right: 1.5px solid #111;
}

/* << */

.board-pagination .first:before,
.board-pagination .first:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 1.5px solid #111;
    border-right: 1.5px solid #111;
    transform: rotate(-135deg);
}

.board-pagination .first:before {
    left: 14px;
}

.board-pagination .first:after {
    left: 20px;
}

/* < */

.board-pagination .prev:before {
    left: 17px;
    transform: rotate(-135deg);
}

/* > */

.board-pagination .next:before {
    left: 13px;
    transform: rotate(45deg);
}

/* >> */

.board-pagination .last:before,
.board-pagination .last:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 1.5px solid #111;
    border-right: 1.5px solid #111;
    transform: rotate(45deg);
}

.board-pagination .last:before {
    left: 10px;
}

.board-pagination .last:after {
    left: 16px;
}

/* =========================
   Gallery Board
========================= */

.gallery-board-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 42px;
    border-top: 2px solid #111;
    padding-top: 40px;
}

.gallery-board-item {
    display: block;
    color: #000;
    text-decoration: none;
        width: 100%;
    display: block;
    color: #111;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 16px 16px 30px;
}

.gallery-board-item .thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 0.85;
    background: #f3f0ea;
    width: 100%;
    height: unset;
}

.gallery-board-item .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.4s ease-in-out;
}

.gallery-board-item .category {
    display: inline-block;
    margin-bottom: 12px;
    color: #B98940;
    font-size: 14px;
    font-weight: 600;
}

.gallery-board-item h3 {
    font-size: 20px;
    font-weight: 600;
    word-break: keep-all;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    line-height: 1.5;
    min-height: calc(1.5em * 2);
    
}

.gallery-board-item .meta {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    color: #777;
    font-size: 14px;
}

.gallery-board-item .meta span + span {
    position: relative;
    padding-left: 16px;
}

.gallery-board-item .meta span + span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    background: #ddd;
    transform: translateY(-50%);
}

/* =========================
   Responsive
========================= */

@media screen and (max-width: 1024px) {
    .gallery-board-section {
        padding: 100px 0;
    }

    .gallery-board-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }

    .gallery-board-item h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-board-section {
        padding: 80px 0;
    }

    .gallery-board-list {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 28px;
    }

    .gallery-board-item .info {
        padding-top: 18px;
    }

    .gallery-board-item h3 {
        font-size: 17px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-board-section {
        padding: 64px 0;
    }

    .gallery-board-item .meta {
        display: block;
    }

    .gallery-board-item .meta span {
        display: inline-block;
    }
}

/* mobile */

@media screen and (max-width:768px) {

    .board-pagination {
        gap: 6px;
        margin-top: 48px;
    }

}

@media screen and (max-width:480px) {

    .board-pagination {
        gap: 4px;
    }

    .board-pagination .first,
    .board-pagination .last {
        display: none;
    }
}

/* =========================
   Board Detail
========================= */

.board-detail {
    border-top: 2px solid #000;
}

.board-detail__head {
    padding: 42px 48px;
    border-bottom: 1px solid #ddd;
}

.board-detail__head h3 {
    color: #000;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.45;
}

.board-detail__meta {
    display: flex;
    gap: 28px;
    margin-top: 22px;
}

.board-detail__meta span {
    color: #777;
    font-size: 15px;
}

.board-detail__meta em {
    margin-left: 8px;
    color: #000;
    font-style: normal;
    font-weight: 500;
}

.board-detail__file {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 48px;
    border-bottom: 1px solid #e8e8e8;
}

.board-detail__file strong {
    width: 120px;
    flex-shrink: 0;
    color: #000;
    font-size: 15px;
    font-weight: 600;
}

.board-detail__file a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.board-detail__file a:hover {
    color: #B98940;
}

.board-detail__file img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.board-detail__content {
    min-height: 360px;
    padding: 56px 48px 72px;
    border-bottom: 1px solid #ddd;
    color: #444;
    font-size: 17px;
    line-height: 1.9;
}

.board-detail__content p + p {
    margin-top: 24px;
}

.board-detail__content img {
    width: 100%;
    height: 100%
}

/* prev next */

.board-detail-nav {
    margin-top: 36px;
    border-top: 1px solid #ddd;
}

.board-detail-nav a {
    display: flex;
    align-items: center;
    min-height: 72px;
    border-bottom: 1px solid #ddd;
    color: #000;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.board-detail-nav a:hover {
    background: #f6f2eb;
}

.board-detail-nav strong {
    width: 140px;
    flex-shrink: 0;
    padding-left: 28px;
    color: #B98940;
    font-size: 15px;
    font-weight: 600;
}

.board-detail-nav span {
    flex: 1;
    padding-right: 28px;
    color: #555;
    font-size: 16px;
}

/* button */

.board-detail-btn {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.board-detail-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 52px;
    padding: 0 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.board-detail-btn a:hover {
    background: #333;
}

/* =========================
   Responsive
========================= */

@media screen and (max-width: 1024px) {
    .board-detail-section {
        padding: 100px 0;
    }

    .board-detail__head {
        padding: 36px 32px;
    }

    .board-detail__head h3 {
        font-size: 24px;
    }

    .board-detail__file {
        padding: 20px 32px;
    }

    .board-detail__content {
        padding: 48px 32px 64px;
    }
}

@media screen and (max-width: 768px) {
    .board-detail-section {
        padding: 80px 0;
    }

    .board-detail__head {
        padding: 18px 10px;
    }

    .board-detail__head h3 {
        font-size: 21px;
    }

    .board-detail__meta {
        flex-wrap: wrap;
        gap: 10px 20px;
        margin-top: 18px;
    }

    .board-detail__file {
        display: block;
        padding: 18px 10px
    }

    .board-detail__file strong {
        display: block;
        width: auto;
        margin-bottom: 10px;
    }

	.board-detail__file a {
	    display: inline-block;
	    max-width: 100%;
	
	    color: #555;
	    font-size: 15px;
	    text-decoration: none;
	
	    overflow: hidden;
	    white-space: nowrap;
	    text-overflow: ellipsis;
	
	    vertical-align: middle;
	}
	
	.board-detail__file img {
		margin-bottom: -2px
	}

    .board-detail__content {
        min-height: 280px;
        padding: 26px 10px 38px;
        font-size: 16px;
    }
    
    .board-detail__content img{
    	width: 100%!important;
    	height: 100%!important
    }

    .board-detail-nav strong {
        width: 100px;
        padding-left: 18px;
    }

    .board-detail-nav span {
        padding-right: 18px;
        font-size: 15px;
    }

    .board-detail-btn {
        margin-top: 44px;
    }
}

@media screen and (max-width: 480px) {
    .board-detail__head h3 {
        font-size: 19px;
    }

    .board-detail-nav a {
        display: block;
        padding: 18px 0;
    }

    .board-detail-nav strong {
        display: block;
        width: auto;
        padding: 0 18px;
        margin-bottom: 6px;
    }

    .board-detail-nav span {
        display: block;
        padding: 0 18px;
    }

    .board-detail-btn a {
        width: 100%;
    }
}

/* =========================
   Tablet
========================= */

@media screen and (max-width:1024px) {

    .board-section {
        padding: 100px 0;
    }

    .section-head h2 {
        font-size: 46px;
    }

    .board-head .num,
    .board-item .num {
        width: 80px;
    }

    .board-head .file,
    .board-item .file {
        width: 70px;
    }

    .board-head .view,
    .board-item .view {
        width: 90px;
    }

    .board-head .date,
    .board-item .date {
        width: 120px;
    }
}

.table-guide {
    display: none;
}

@media (max-width: 768px) {
    .table-guide {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin: 0 0 10px;

        font-size: 13px;
        color: #777;
        font-weight: 500;
    }

    .table-guide i {
        position: relative;
        width: 24px;
        height: 12px;
    }

    .table-guide i::before,
    .table-guide i::after,
    .table-guide i {
        background-repeat: no-repeat;
    }

    .table-guide i::before,
    .table-guide i::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 7px;
        height: 7px;
        border-top: 1.5px solid #777;
        border-right: 1.5px solid #777;
        transform: translateY(-50%) rotate(45deg);
        animation: swipeArrow 1.6s ease-in-out infinite;
    }

    .table-guide i::before {
        left: 0;
        animation-delay: 0s;
    }

    .table-guide i::after {
        left: 8px;
        animation-delay: .2s;
    }

    .table-guide i span {
        display: none;
    }

    .table-guide i {
        color: transparent;
    }

    .table-guide i::after {
        box-shadow: 8px -8px 0 -6.5px #777;
    }

    @keyframes swipeArrow {
        0% {
            opacity: 0;
            transform: translate(-4px, -50%) rotate(45deg);
        }
        35% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: translate(6px, -50%) rotate(45deg);
        }
    }
}

/* =========================
   Mobile
========================= */

@media screen and (max-width:768px) {

    .board-section {
        padding: 80px 0;
    }

    .section-head {
        text-align: left;
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 36px;
    }

    .board-top {
        display: block;
    }

    .board-count {
        margin-bottom: 16px;
    }

    .board-search {
        width: 100%;
    }

    .board-search select {
        width: 110px;
    }

    .board-search input {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    /* table header hide */

    .board-head {
        display: none;
    }

    .board-item {
        display: block;
        padding: 20px 0;
        min-height: auto;
    }

    .board-item .num {
        width: auto;
        margin-bottom: 8px;
        text-align: left;
        color: #B98940;
        font-weight: 600;
    }

    .board-item .title {
        padding-right: 0;
        font-size: 17px;
        line-height: 1.6;
    }

    .board-item .file,
    .board-item .view,
    .board-item .date {
        display: inline-block;
        width: auto;
        margin-top: 12px;
        text-align: left;
        font-size: 14px;
    }

    .board-item .view,.board-item .file {
        display: none
    }

    .board-pagination {
        margin-top: 40px;
    }
}

@media screen and (max-width:480px) {

    .section-head h2 {
        font-size: 32px;
    }

    .board-search {
        flex-wrap: wrap;
    }

    .board-search select {
        width: 100%;
    }

    .board-search input,
    .board-search button {
        width: 100%;
    }
}