@charset "utf-8";

/* 갤러리 상단 여백 */
#bo_gall.pb-mung-gallery {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1020px;
  margin: -20px auto 64px;
  color: #191919;
  box-sizing: border-box;
}

#bo_gall.pb-mung-gallery *,
#bo_gall.pb-mung-gallery *::before,
#bo_gall.pb-mung-gallery *::after {
  box-sizing: border-box;
}

#bo_gall.pb-mung-gallery a {
  color: inherit;
  text-decoration: none;
}

#bo_gall.pb-mung-gallery ul,
#bo_gall.pb-mung-gallery ol,
#bo_gall.pb-mung-gallery dl,
#bo_gall.pb-mung-gallery p {
  margin: 0;
  padding: 0;
}

/* 분류 메뉴 */
#bo_gall.pb-mung-gallery .pb-mung-category {
  margin: 0 0 24px;
  overflow-x: auto;
}

#bo_gall.pb-mung-gallery .pb-mung-category ul {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  list-style: none;
}

#bo_gall.pb-mung-gallery .pb-mung-category li {
  margin: 0;
  padding: 0;
}

#bo_gall.pb-mung-gallery .pb-mung-category a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #e2e5eb;
  border-radius: 999px;
  background: #fff;
  color: #6d7482;
  font-size: 13px;
  white-space: nowrap;
}

#bo_gall.pb-mung-gallery .pb-mung-category a:hover,
#bo_gall.pb-mung-gallery .pb-mung-category a:focus-visible,
#bo_gall.pb-mung-gallery .pb-mung-category #bo_cate_on {
  border-color: #9b24f2;
  background: #9b24f2;
  color: #fff;
}

/* 목록 상단 */
#bo_gall.pb-mung-gallery .pb-mung-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 10px;
  margin: 0 0 10px;
  padding: 0 0 25px;
  border-bottom: 1px solid #e8ebf0;
}

#bo_gall.pb-mung-gallery .pb-mung-board-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #202532;
  font-family: "font-B", Pretendard, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bo_gall.pb-mung-gallery .pb-mung-summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

#bo_gall.pb-mung-gallery .pb-mung-total {
  color: #9aa2b0;
  font-size: 12px;
  line-height: 1.4;
}

/* 포인트 정책 */
#bo_gall.pb-mung-gallery .pb-mung-point {
  position: relative;
  display: inline-flex;
}

#bo_gall.pb-mung-gallery .pb-mung-point-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #d8dde8;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

#bo_gall.pb-mung-gallery .pb-mung-point-button:hover,
#bo_gall.pb-mung-gallery .pb-mung-point-button:focus-visible,
#bo_gall.pb-mung-gallery .pb-mung-point-button[aria-expanded="true"] {
  border-color: #d4a8f7;
  color: #821bd0;
}

#bo_gall.pb-mung-gallery .pb-mung-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f2d4f;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

#bo_gall.pb-mung-gallery .pb-mung-point-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1300;
  width: 286px;
  padding: 18px;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

#bo_gall.pb-mung-gallery .pb-mung-point-panel[hidden] {
  display: none;
}

#bo_gall.pb-mung-gallery .pb-mung-point-panel strong {
  display: block;
  margin-bottom: 12px;
  color: #151b2b;
  font-family: "font-B", Pretendard, sans-serif;
  font-size: 13px;
}

#bo_gall.pb-mung-gallery .pb-mung-point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 7px;
  background: #e8ebf0;
}

#bo_gall.pb-mung-gallery .pb-mung-point-grid dl {
  padding: 12px 8px;
  background: #f7f8fa;
  text-align: center;
}

#bo_gall.pb-mung-gallery .pb-mung-point-grid dt {
  margin-bottom: 4px;
  color: #7d8594;
  font-size: 11px;
}

#bo_gall.pb-mung-gallery .pb-mung-point-grid dd {
  color: #1b2231;
  font-family: "font-B", Pretendard, sans-serif;
  font-size: 13px;
}

/* 전체 선택 */
#bo_gall.pb-mung-gallery .pb-mung-all-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: #7d8594;
  font-size: 12px;
}

#bo_gall.pb-mung-gallery .pb-mung-all-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #9b24f2;
}

/* 카드 그리드 */
#bo_gall.pb-mung-gallery .pb-mung-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 20px;
}

#bo_gall.pb-mung-gallery .pb-mung-card {
  min-width: 0;
  background: transparent;
}

#bo_gall.pb-mung-gallery .pb-mung-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f2f5;
  box-shadow: 0 0 0 rgba(19, 24, 39, 0);
  transform: translateY(0);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#bo_gall.pb-mung-gallery .pb-mung-image-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#bo_gall.pb-mung-gallery .pb-mung-image-link::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 18, 27, 0.08), rgba(16, 18, 27, 0.58));
  opacity: 0;
  content: "";
  transition: opacity 0.25s ease;
}

#bo_gall.pb-mung-gallery .pb-mung-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

#bo_gall.pb-mung-gallery .pb-mung-card:hover .pb-mung-image-link::before,
#bo_gall.pb-mung-gallery .pb-mung-card:focus-within .pb-mung-image-link::before {
  opacity: 1;
}

#bo_gall.pb-mung-gallery .pb-mung-card:hover .pb-mung-media,
#bo_gall.pb-mung-gallery .pb-mung-card:focus-within .pb-mung-media {
  box-shadow: 0 14px 30px rgba(20, 24, 38, 0.16);
  transform: translateY(-4px);
}

#bo_gall.pb-mung-gallery .pb-mung-card:hover .pb-mung-media img,
#bo_gall.pb-mung-gallery .pb-mung-card:focus-within .pb-mung-media img {
  filter: brightness(0.9) saturate(1.04);
  transform: none;
}

#bo_gall.pb-mung-gallery .pb-mung-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #a7adba;
  font-size: 11px;
  letter-spacing: 0.08em;
}

#bo_gall.pb-mung-gallery .pb-mung-no-image i {
  font-size: 28px;
}

#bo_gall.pb-mung-gallery .pb-mung-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

#bo_gall.pb-mung-gallery .pb-mung-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(22, 27, 42, 0.78);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(4px);
}

#bo_gall.pb-mung-gallery .pb-mung-badge.is-notice {
  background: #ee3d23;
}

#bo_gall.pb-mung-gallery .pb-mung-badge.is-pin {
  background: #6850e8;
}

#bo_gall.pb-mung-gallery .pb-mung-badge.is-bump {
  background: #f08a24;
}

#bo_gall.pb-mung-gallery .pb-mung-badge.is-new {
  background: #83d22d;
}

#bo_gall.pb-mung-gallery .pb-mung-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

#bo_gall.pb-mung-gallery .pb-mung-card-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #9b24f2;
  cursor: pointer;
}

/* 카드 정보 */
#bo_gall.pb-mung-gallery .pb-mung-card-body {
  padding: 16px 0 0;
}

#bo_gall.pb-mung-gallery .pb-mung-date {
  display: block;
  margin-bottom: 8px;
  color: #676d78;
  font-size: 12px;
  line-height: 1.4;
}

#bo_gall.pb-mung-gallery .pb-mung-title {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  overflow: hidden;
  color: #111;
  font-family: "font-B", Pretendard, sans-serif;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -0.035em;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#bo_gall.pb-mung-gallery .pb-mung-title a:hover,
#bo_gall.pb-mung-gallery .pb-mung-title a:focus-visible {
  color: #861bd3;
}

#bo_gall.pb-mung-gallery .pb-mung-comment {
  margin-left: 4px;
  color: #9b24f2;
  font-family: Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}

#bo_gall.pb-mung-gallery .pb-mung-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-top: 7px;
  color: #666d79;
  font-size: 12px;
  line-height: 1.4;
}

#bo_gall.pb-mung-gallery .pb-mung-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bo_gall.pb-mung-gallery .pb-mung-member-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 4px;
  background: #eef0f4;
}

#bo_gall.pb-mung-gallery .pb-mung-member-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

#bo_gall.pb-mung-gallery .pb-mung-author .profile_img {
  display: none;
}

#bo_gall.pb-mung-gallery .pb-mung-author .sv_wrap,
#bo_gall.pb-mung-gallery .pb-mung-author .sv_member,
#bo_gall.pb-mung-gallery .pb-mung-author .sv_guest {
  color: inherit;
  font-size: inherit;
}

#bo_gall.pb-mung-gallery .pb-mung-hit {
  flex: 0 0 auto;
  color: #4f5560;
}

/* 빈 목록 */
#bo_gall.pb-mung-gallery .pb-mung-empty {
  grid-column: 1 / -1;
  padding: 100px 20px;
  color: #9aa2af;
  text-align: center;
}

#bo_gall.pb-mung-gallery .pb-mung-empty i {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
}

/* 페이지 */
#bo_gall.pb-mung-gallery .pb-mung-pagination {
  margin-top: 54px;
  text-align: center;
}

#bo_gall.pb-mung-gallery .pg_wrap {
  float: none;
  display: inline-block;
}

/* 퀵 메뉴 */
#bo_gall.pb-mung-gallery .pb-mung-quick {
  position: fixed;
  top: 160px;
  left: calc(50% + 548px);
  z-index: 850;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#bo_gall.pb-mung-gallery .pb-mung-quick>li {
  position: relative;
  margin: 0;
  padding: 0;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  background: #fff;
  color: #0c1732;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button i {
  font-size: inherit;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button:hover,
#bo_gall.pb-mung-gallery .pb-mung-quick-button:focus-visible {
  border-color: #c9a0ed;
  color: #841bd0;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-write {
  border-color: #9b24f2;
  background: #9b24f2;
  color: #fff;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-write:hover,
#bo_gall.pb-mung-gallery .pb-mung-quick-write:focus-visible {
  border-color: #861bd3;
  background: #861bd3;
  color: #fff;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button::before,
#bo_gall.pb-mung-gallery .pb-mung-quick-button::after {
  position: absolute;
  top: 50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button::before {
  right: calc(100% + 10px);
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(27, 31, 43, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  content: attr(data-tooltip);
  transform: translate(5px, -50%);
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button::after {
  right: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: rgba(27, 31, 43, 0.96);
  content: "";
  transform: translate(5px, -50%) rotate(45deg);
}

#bo_gall.pb-mung-gallery .pb-mung-quick-button:hover::before,
#bo_gall.pb-mung-gallery .pb-mung-quick-button:hover::after,
#bo_gall.pb-mung-gallery .pb-mung-quick-button:focus-visible::before,
#bo_gall.pb-mung-gallery .pb-mung-quick-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

/* 관리 메뉴 */
#bo_gall.pb-mung-gallery .pb-mung-manage-menu {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  z-index: 20;
  width: 130px;
  padding: 7px;
  border: 1px solid #e3e6ec;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  list-style: none;
}

#bo_gall.pb-mung-gallery .pb-mung-manage-menu[hidden] {
  display: none;
}

#bo_gall.pb-mung-gallery .pb-mung-manage-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #555d6b;
  font: inherit;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

#bo_gall.pb-mung-gallery .pb-mung-manage-menu button:hover {
  background: #f5effa;
  color: #7e18c7;
}

#bo_gall.pb-mung-gallery .pb-mung-manage-menu i {
  width: 14px;
  text-align: center;
}

/* 검색 레이어 */
#bo_gall.pb-mung-gallery .pb-mung-search {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

#bo_gall.pb-mung-gallery .pb-mung-search[hidden] {
  display: none;
}

#bo_gall.pb-mung-gallery .pb-mung-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 39, 0.46);
}

#bo_gall.pb-mung-gallery .pb-mung-search-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 480px;
  margin: 0;
  padding: 42px 28px 28px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -50%);
}

#bo_gall.pb-mung-gallery .pb-mung-search-panel legend {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e8ebef;
  color: #202532;
  font-family: "font-B", Pretendard, sans-serif;
  font-size: 21px;
}

#bo_gall.pb-mung-gallery .pb-mung-search-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

#bo_gall.pb-mung-gallery .pb-mung-search-row select,
#bo_gall.pb-mung-gallery .pb-mung-search-input-wrap {
  height: 44px;
  border: 1px solid #dce1e9;
  border-radius: 10px;
  background: #fff;
}

#bo_gall.pb-mung-gallery .pb-mung-search-row select {
  width: 100%;
  padding: 0 14px;
  color: #4f5664;
  font: inherit;
  font-size: 13px;
}

#bo_gall.pb-mung-gallery .pb-mung-search-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
}

#bo_gall.pb-mung-gallery .pb-mung-search-input-wrap input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: #303643;
  font: inherit;
  font-size: 13px;
}

#bo_gall.pb-mung-gallery .pb-mung-search-input-wrap button {
  flex: 0 0 auto;
  width: 40px;
  height: 38px;
  margin-right: 3px;
  border: 0;
  border-radius: 8px;
  background: #9b24f2;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

#bo_gall.pb-mung-gallery .pb-mung-search-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f1f2f5;
  color: #687181;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#bo_gall.pb-mung-gallery .pb-mung-search-close i {
  font-size: inherit;
}

#bo_gall.pb-mung-gallery .pb-mung-search-close:hover,
#bo_gall.pb-mung-gallery .pb-mung-search-close:focus-visible {
  background: #e9ebef;
  color: #303746;
  outline: 0;
}

/* 태블릿 */
@media (max-width: 1180px) {
  #bo_gall.pb-mung-gallery .pb-mung-quick {
    right: 18px;
    left: auto;
  }
}

@media (max-width: 900px) {
  #bo_gall.pb-mung-gallery {
    width: calc(100% - 30px);
  }

  #bo_gall.pb-mung-gallery .pb-mung-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 모바일 */
@media (max-width: 680px) {
  #bo_gall.pb-mung-gallery {
    width: calc(100% - 24px);
    margin-bottom: 42px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-head {
    align-items: flex-start;
    gap: 12px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-summary {
    gap: 5px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-total {
    font-size: 11px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-point-button {
    padding: 0 6px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-title {
    min-height: 0;
    font-size: 18px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-quick {
    top: auto;
    right: 14px;
    bottom: 78px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-quick-button::before,
  #bo_gall.pb-mung-gallery .pb-mung-quick-button::after {
    display: none;
  }

  #bo_gall.pb-mung-gallery .pb-mung-search-panel {
    padding: 38px 20px 22px;
    border-radius: 15px;
  }

  #bo_gall.pb-mung-gallery .pb-mung-search-row {
    grid-template-columns: 1fr;
  }
}