@layer reset, var, header, footer, contents-header;

@import url('config.css');
@import url('article.css') layer(contents-header);

.page-wrapper {
  overflow: hidden;  
} /* end of .page-wrapper */

.index {
  width: 100%;
  height: 18.75rem;
  background-image: url('../css/img/board.jpg');
  background-position: center;
  background-size: cover;
  padding-top: 17.275rem;
} /* end of .index */

.index .spotNav {
  width: 17rem;
  background-color: #000;
  padding: 0 10px;
} /* end of .index .spotNav */

.index .spotNav span {
  color: var(--bg-color5);
  font-weight: 600;
  font-size: var(--font-size5);
} /* end of .index .spotNav span */

/*========== 게시판 본문 영역 ==========*/
.board_view {
  padding-top: 3.75rem;
  margin-bottom: 10rem;
} /* end of .terms */

.board_view .container .board_wrap {
  width: 100%;
  border-top: 2px solid #000;
} /* end of .board .board_wrap */

.board_view .container .board_wrap .title {
  font-weight: 600;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
} /* end of .boar */ 

:is(.board_view .container .board_wrap) :is(.title, .info, .files, .content, .shareSNS) {
  padding: 1rem 2rem;
} /* end of :is(.board_view .container .board_wrap) :is(.title, .info, .files, .content) */ 

.board_view .container .board_wrap .info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #000;
} /* end of  .board_view .container .board_wrap .info */ 

.board_view .container .board_wrap .info > div {
  display: grid;
  grid-template-columns: 30% 70%;
  font-size: 1.2rem;
} /* end of  .board_view .container .board_wrap .info > div */ 

.board_view .container .board_wrap .info .front {
  font-weight: 600;
} /* end of .board_view .container .board_wrap .info .front */ 

.board_view .container .board_wrap .files {
  font-size: 1.2rem;
  border-bottom: 1px solid #000;
  display: flex;
  flex-direction: column;
} /* end of .board_view .container .board_wrap .files */ 

.board_view .container .board_wrap .files div {
  display: inline-block;
} /* end of .board_view .container .board_wrap .files div */ 

.board_view .container .board_wrap .files div .text {
  margin-left: 2rem;
} /* end of .board_view .container .board_wrap .files div .text */ 

.board_view .container .board_wrap .content {
  width: 100%;
  border-bottom: 1px solid #000;
  font-size: 1.2rem;
} /* end of .board_view .container .board_wrap .content */ 

.board_view .container .board_wrap .shareSNS {
  border-bottom: 1px solid #000;
} /* end of .board_view .container .board_wrap .shareSNS */

.board_view .container .board_wrap .shareSNS a {
  display: inline-block;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
} /* end of .board_view .container .board_wrap .shareSNS */

.board_viw .container .board_wrap .shareSNS a > img {
  width: 2rem;
  height: 2rem;
} /* end of .board_viw .container .board_wrap .shareSNS a img */

.board_view .container .board_wrap .content img {
  width: 100% !important;
} /* end of .board_view .container .board_wrap .content img */ 

.board_view .container .board_wrap .listBtn {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
} /* end of main .board_view .listBtn */

.board_view .container .board_wrap .listBtn div {
  display: flex;
} /* end of main .board_view .listBtn div */

.board_view .container .board_wrap .listBtn div button {
  padding: 0.7rem 5rem;
  color: #fff;
  font-weight: 600;
  transition: all .3s ease-in-out;
  font-size: 1.2em;
} /* end of main .board_view .listBtn div button */

.board_view .container .board_wrap .listBtn div .list_btn {
  background-color: var(--font-color2);
  border: 0.19rem solid var(--font-color2);
} /* end of main .board_view .listBtn div .list_btn */

.board_view .container .board_wrap .listBtn div .list_btn:hover {
  background-color: #fff;
  color: var(--font-color2);
} /* end of main .board_view .listBtn div .list_btn */

.board_view .container .board_wrap .listBtn div .edit_btn {
  background-color: var(--bg-color6);
  border: 0.19rem solid var(--bg-color6);
} /* end of main .board_view .listBtn div .edit_btn */
 
.board_view .container .board_wrap .listBtn div .edit_btn:hover {
  background-color: #fff;
  color: var(--bg-color6);
} /* end of main .board_view .listBtn div .edit_btn:hover */

.board_view .container .board_wrap .listBtn div #del_btn {
  background-color: var(--color-primary);
  border: 0.19rem solid var(--color-primary);
} /* end of .board_view .container .board_wrap .listBtn div #del_Btn */ 

.board_view .container .board_wrap .listBtn div #del_btn:hover {
  background-color: #fff;
  color: var(--color-primary);
} /* end of .board_view .container .board_wrap .listBtn div #del_btn:hover */ 

/*========== 댓글 영역 ==========*/ 
.board_view .container .board_wrap .comment .cmt_write {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #000;
} /* end of .board_view .container .board_wrap .comment .cmt_write */

.board_view .container .board_wrap .comment .cmt_write .cmt_title {
  font-weight: 600;
  margin-bottom: 1rem;
} /* end of .board_view .contaier .board_wrap .comment .cmt_write .cmt_title */

.board_view .container .board_wrap .comment .cmt_write .cmt_textarea {
  display: grid;
  grid-template-columns: 90% 10%;
  gap: 0.3rem;
} /* end of .board_view .container .board_wrap .comment .cmt_write .cmt_textarea  */

.board_view .container .board_wrap .comment .cmt_write .cmt_textarea > div {
  height: 5rem;
} /* end of .board_view .container .board_wrap .comment .cmt_write .cmt_textarea */

.board_view .container .board_wrap .comment .cmt_write .cmt_textarea .cmt_txt #cmt_cnt {
  width: 100%;
  height: 100%;
  resize: none;
  border: 1px solid #000;
  padding: 0.5rem;
  font-size: 1rem;
} /* end of .board_view .container .board_wrap .comment .cmt_write .cmt_textarea .cmt_txt #cmt_cnt */

.board_view .container .board_wrap .comment .cmt_write .cmt_textarea .cmt_btn #cmt_btn {
  width: 83%;
  height: 100%;
  font-weight: 600;
  color: #fff;
  background-color: var(--bg-color6);
  border: 0.19rem solid var(--bg-color6);
  transition: all .3s ease-in-out;
} /* end of .board_view .container .board_wrap .comment .cmt_write .cmt_textarea .cmt_btn #cmt_btn */

.board_view .container .board_wrap .comment .cmt_write .cmt_textarea .cmt_btn #cmt_btn:hover {
  background-color: #fff;
  color: var(--bg-color6);
} /* end of .board_view .container .board_wrap .comment .cmt_write .cmt_textarea .cmt_btn #cmt_btn:hover */

.board_view .container .board_wrap .comment .cmt_list {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #000;
} /* end of .board_view .container .board_wrap .comment .cmt_list */

.board_view .container .board_wrap .comment .cmt_list .cmt_top{
  font-weight: 600;
  border-bottom: 1px solid #000;
  padding: 1rem 0;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_top */

.board_view .container .board_wrap .comment .cmt_list .cmt_top .cmtCnt {
  background-color: var(--font-color2);
  color: #fff;
  padding: 0 2rem;
  margin-left: 2rem;
  border-radius: 1rem;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_top .cmtCnt */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents {
  border-bottom: 1px solid #ddd;
  text-wrap: balance;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents:last-child {
  border-bottom: none;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents:last-child */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info {
  display: grid;
  grid-template-columns: 55% 25% 10% 10%;
  padding: 1rem 0;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .userCMT {
  margin-top: 1rem;
  margin-bottom: 1rem;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .userCMT */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .Btn button {
  width: 80%;
  font-weight: 600;
  color: #fff;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .Btn button */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .editBtn {
  background-color: var(--bg-color6);
  border: 0.1rem solid var(--bg-color6);
  transition: all .3s ease-in-out;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .Btn #editBtn */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .editBtn:hover {
  background-color: #fff;
  color: var(--bg-color6);
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .Btn #editBtn:hover */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .delBtn {
  background-color: var(--color-primary);
  border: 0.1rem solid var(--color-primary);
  transition: all .3s ease-in-out;
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .Btn #editBtn */

.board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .delBtn:hover {
  background-color: #fff;
  color: var(--color-primary);
} /* end of .board_view .container .board_wrap .comment .cmt_list .cmt_contents .cmt_info .Btn #editBtn:hover */

/*========== 페이지네이션 ==========*/ 
.board_view .container .board_wrap .comment .downSide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
} /* end of .board .container .board_wrap .downSide */ 

.board_view .container .board_wrap .comment .downSide .pagenation {
  margin: 3rem auto; 
} /* end of main .pagenation */

.board_view .container .board_wrap .comment .downSide .pagenation a{
  display: inline-block; 
  text-decoration: none;
  color: var(--bg-color6);
  padding: 0.5rem 0.8rem;
  border: thin solid #d4d4d4;
  transition: all 0.3s;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0.1rem;
}
 
.board_view .container .board_wrap .comment .downSide .pagenation a.active{
  background-color: var(--bg-color6);
  color: #fff;
}

.board_view .container .board_wrap .comment .downSide .page-numbers{
  display: inline-block; 
}

.board_view .container .board_wrap .comment .downSide .page-numbers a{
  margin: 0 0.1rem; 
} /* end of main .page-numbers */


/* ========== Responsive ========== */
/* 테블릿 가로 */
@media (max-width: 992px) {
  .container {
    padding: 0 0.9375rem;
  } /* end of .container */
}

/* 모바일 */ 
@media (max-width: 575px){
  :is(.board_view .container .board_wrap) :is(.title, .info, .files, .content) {
  padding: 0.5rem 0;
} /* end of :is(.board_view .container .board_wrap) :is(.title, .info, .files, .content) */ 

  .board_view .container .board_wrap .info {
    grid-template-columns: 50% 50%;
  } /* end of .board_view .container .board_wrap .info */

  .board_view .container .board_wrap .info > div {
    grid-template-columns: 1fr;
  } /* end of .board_view .container .board_wrap .info > div */

  .board_view .container .board_wrap .info .hit {
    display: none;
  } /* end of .board_view .container .board_wrap .info .hit */

  :is(.board_view .container .board_wrap) :is(.info) :is(div) :is(.front) {
    display: none;
  } /* end of :is(.board_view .container .board_wrap) :is(.info) :is(div) :is(.front)*/

  .board_view .container .board_wrap .comment .cmt_write {
    padding: 0.5rem 0;
  } /* end of .board_view .container .board_wrap .comment .cmt_write */

  .board_view .container .board_wrap .listBtn div button {
    padding: 0.7rem 2rem;
  } /* end of .board_view .contaier .board_wrap .listBtn div button */
}
