/* ============================================================
   게시판(gBoard2025) · 영상 목록을 TAP 디자인에 맞추는 스타일
   - tap.sarang.org 의 게시판 소스를 .board-slot 안에 붙여 넣으면 적용됩니다.
   - gBoard.css 뒤에 불러와도 이기도록 모두 .board-slot 으로 범위를 좁혔습니다.
   ============================================================ */

/* gBoard.css 가 :root 의 --primary 를 보라색으로 바꾸는 것을 막습니다 */
html:root {
  --primary: #1b78bd;
  --accent: #135d94;
}

.board-slot {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.board-slot a {
  color: inherit;
  text-decoration: none;
}
.board-slot .row {
  display: block;
  margin: 0;
}

/* ---------- 검색 ---------- */
.board-slot .search_wrap {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 14px;
  overflow: visible;
}
.board-slot .search_wrap fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.board-slot .search_wrap .search_area {
  float: none;
  display: flex;
  gap: 8px;
  align-items: center;
}
.board-slot .select_st1 {
  width: auto;
  height: 42px;
  line-height: normal;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.board-slot .search_wrap .search_area .m_input_wrap {
  display: flex;
  width: auto;
  vertical-align: middle;
}
.board-slot .search_wrap .search_area .txt_area {
  display: block;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
}
.board-slot .search_wrap .search_area .txt_area .shc {
  border: 0;
}
.board-slot .search_wrap .search_area .txt_area input[type=text] {
  width: 200px;
  height: 39px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.board-slot .search_wrap .search_area input[type=button] {
  position: static;
  width: auto;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.board-slot .search_wrap .search_area input[type=button]:hover {
  background: var(--primary-d);
}
.board-slot .gbLayer {
  float: none;
  width: auto;
  margin: 0;
}
.board-slot .gbCnt {
  float: none;
  width: auto;
  padding: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- 목록(공지사항) ---------- */
.board-slot .gbTab {
  width: 100%;
  border-top: 2px solid var(--ink);
  border-collapse: collapse;
}
.board-slot .gbTab thead {
  background: none;
  border-top: 0;
  color: var(--ink);
}
.board-slot .gbTab th {
  padding: 14px 8px;
  font-weight: 700;
  font-size: 14.5px;
}
.board-slot .gbTab tr {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.board-slot .gbTab td {
  padding: 16px 8px;
  line-height: 1.45;
  color: var(--ink-3);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.board-slot .gbTab td.gbTA_L {
  color: var(--ink);
  display: flex;
}
.board-slot .gbTab td.gbTA_L a {
  font-weight: 500;
  font-size: 15.5px;
}
.board-slot .gbTab td.gbTA_L a:hover {
  color: var(--primary-d);
  text-decoration: underline;
}
.board-slot .gbTxtHid {
  display: inline;
  height: auto;
  max-width: none;
  margin: 0;
  background: none;
  padding: 0;
}
.board-slot .gbB {
  background: #f5f9fd;
  color: var(--ink);
  font-weight: 700;
  font-size: inherit;
}
.board-slot .gbTab td.gbB:first-child {
  font-size: 0;
}
.board-slot .gbTab td.gbB:first-child::before {
  content: "공지";
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-d);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.board-slot .gbHanCnt {
  margin-left: 4px;
  color: var(--pink);
  font-weight: 700;
  font-size: 13px;
}
.board-slot .gbFileIcon {
  display: inline;
  vertical-align: -2px;
  opacity: .7;
}
.board-slot .gbReIcon {
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---------- 버튼 ---------- */
.board-slot .gbBtn {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.board-slot .gbBtn span {
  padding: 0;
}
.board-slot .gbBtn span a {
  display: inline-block;
  min-width: 0;
  padding: 0 22px;
  line-height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink) !important;
  transition: background .15s, border-color .15s;
}
.board-slot .gbBtn span a:hover {
  background: var(--mist) !important;
  border-color: var(--ink-3);
}
.board-slot .gbBtn .gbWrite {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}
.board-slot .gbBtn .gbWrite:hover {
  background: var(--primary-d) !important;
  border-color: var(--primary-d);
}

/* ---------- 페이지 번호 ---------- */
.board-slot .pagination {
  padding-top: 28px;
}
.board-slot .pagination .page a {
  min-width: 38px;
  height: 38px;
  margin: 0 3px;
  padding: 0 6px;
  line-height: 35px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.board-slot .pagination .page a:hover {
  background: var(--mist);
}
.board-slot .pagination .page a.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- 글 보기 ---------- */
.board-slot .gbViewTable {
  width: 100%;
  border: 0;
  border-top: 2px solid var(--ink);
}
.board-slot .gbViewTable thead {
  border-bottom: 0;
}
.board-slot .gbViewTable thead th {
  padding: 24px 4px 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
}
.board-slot .gbViewTable thead td {
  padding: 0 4px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13.5px;
  color: var(--ink-3);
}
.board-slot .gbViewTable>tbody>tr>td {
  padding: 20px 4px;
}
.board-slot .gbViewTable .gbAttFileDown {
  padding: 12px 4px 0 !important;
  text-align: left;
}
.board-slot .gbViewTable .gbAttFileDown:empty {
  display: none;
}
.board-slot .gbViewTable #contentsView {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}
.board-slot .gbViewTable #contentsView img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}
.board-slot .gbPrevNextArea {
  float: none;
  width: auto;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.board-slot .gbPrevNextArea li {
  height: auto;
  padding: 14px 4px;
}
.board-slot .gbPrevNextArea li+li {
  border-top: 1px solid var(--line);
}
.board-slot .gbPrevNextArea dl {
  display: flex;
  gap: 16px;
  float: none;
  width: auto;
}
.board-slot .gbPrevNextArea dl dt {
  float: none;
  flex: 1;
  min-width: 0;
  padding-left: 0;
  background: none;
}
.board-slot .gbPrevNextArea dl dt p {
  float: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.board-slot .gbPrevNextArea dl dt::before {
  float: left;
  margin-right: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
}
.board-slot .gbPrevNextArea .content_prev::before {
  content: "이전글";
}
.board-slot .gbPrevNextArea .content_next::before {
  content: "다음글";
}
.board-slot .gbPrevNextArea dl dd {
  float: none;
  color: var(--ink-3);
  font-size: 13.5px;
}
.board-slot .gbPrevNextArea a:hover {
  color: var(--primary-d);
}
.board-slot .gbHanmadi_body {
  background: var(--mist);
  border-radius: 14px;
  padding: 12px;
}

/* ---------- 사진(앨범) ---------- */
.board-slot .gbAlbumArea {
  clear: both;
  padding: 0;
  margin: 0 -8px;
}
.board-slot .album_container .boxLayer {
  margin: 8px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mist);
}
.board-slot .album_container .imgLayer {
  border-radius: 16px;
  overflow: hidden;
}
.board-slot .album_container .article {
  margin: 0;
}
.board-slot .album_container .article img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s;
}
.board-slot .album_container li:hover .article img {
  transform: scale(1.05);
}
.board-slot .album_container li:hover .over-mask {
  background: var(--navy) !important;
  opacity: .55 !important;
}
.board-slot .album_container li dl dt a {
  font-family: var(--display);
  font-weight: 400 !important;
}

/* ---------- 영상 목록(카드) ---------- */
.board-slot .row.gy-4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.board-slot .row.gy-4>[class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}
.board-slot .row.gy-4>[class*="col-"]>a {
  text-decoration: none;
  display: block;
}
.board-slot .tour-card {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.board-slot .tour-image {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
}
.board-slot .tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.board-slot .tour-image::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 40px;
  margin: -20px 0 0 -29px;
  border-radius: 12px;
  background: #e8322b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") center/18px no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.board-slot a:hover .tour-image img {
  transform: scale(1.04);
}
.board-slot a:hover .tour-image::after {
  transform: scale(1.08);
}
.board-slot .tour-content {
  padding: 12px 2px 0;
}
.board-slot .tour-content h4 {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.board-slot a:hover .tour-content h4 {
  color: var(--primary-d);
}
.board-slot .tour-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.board-slot .tour-meta i {
  display: none;
}

/* ---------- 휴대폰 ---------- */
@media (max-width:980px) {
  .board-slot .row.gy-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:767px) {
  .board-slot .search_wrap {
    justify-content: stretch;
  }
  .board-slot .search_wrap form,
  .board-slot .search_wrap .search_area {
    width: 100%;
  }
  .board-slot .search_wrap .search_area .m_input_wrap {
    flex: 1;
  }
  .board-slot .search_wrap .search_area .txt_area {
    flex: 1;
  }
  .board-slot .search_wrap .search_area .txt_area input[type=text] {
    width: 100%;
  }
  .board-slot .gbTab td,
  .board-slot .gbTab th {
    padding: 13px 6px;
  }
  .board-slot .gbTab td.gbTA_L a {
    font-size: 15px;
  }
  .board-slot .gbBtn {
    justify-content: center;
  }
  .board-slot .album_container .box {
    width: 50% !important;
  }
  .board-slot .album_container .boxLayer {
    margin: 6px;
    border-radius: 12px;
  }
}
@media (max-width:520px) {
  .board-slot .row.gy-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
