@charset "utf-8";

/* ==========================================
   웹진 상세 페이지 CSS
   /usr/skin/board/photothumb_webzine/css/view.css
   ========================================== */

/* CSS Variables */
:root {
  --main-dark-gray: #262b32;
  --main-gray: #6b7278;
  --main-light-gray: #adb6bd;
  --main-red: #e54837;
}
#hero {
  display: none;
}
/* ==========================================
   Banner Section
   ========================================== */
#banner {
  position: relative;
  z-index: 1;
  height: 1018px;
  overflow: hidden;
  /* 배경색은 JSP에서 인라인 스타일로 적용 */
}
#banner .banner_wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 798px 1122px;
  height: 100%;
}
/* 배너 이미지 - 오른쪽 배치 */
/* .banner_img {
  height: 100%;
  position: absolute;
  width: 1122px;
  right: calc(50% - min(970px, calc(50vw - -7px)));
} */

.banner_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner_img .pc {
  display: block;
}

.banner_img .mo {
  display: none;
}

/* Banner Text Overlay - 그라디언트 제거됨 */
.txt_pose {
  position: absolute;
  left: calc(50% - min(42%, 806.4px));
  top: 274px;
  z-index: 2;
}

/* 카테고리 뱃지 - 배경색과 동일 (JSP에서 인라인 스타일로 적용) */
.badge {
  display: inline-block;
  /* background는 JSP에서 배경색과 동일하게 설정 */
  background-color: #fff;
  color: #1a5c6b;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  line-height: 1.5;
  text-transform: uppercase;
}

.banner_tit {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 20px;
  color: #fff;
}

.banner_name h2 {
  font-size: 20px;
  color: #fff;
  margin-top: 309px;
  font-weight: 400;
}

/* ==========================================
   Mobile Share Menu
   ========================================== */
.mo_share_menu {
  display: none;
  padding: 14px 16px;
  justify-content: space-between;
  align-items: center;
}

.mo_share_menu .mo_menu {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--main-dark-gray);
}

.mo_share_menu .mo_menu .icon {
  width: 24px;
  height: 24px;
}

.mo_share_menu .mo_menu .hitcount {
  font-weight: 800;
}

/* ==========================================
   Contents Section
   ========================================== */
#contents {
  position: relative;
  width: 1274px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  padding: 140px 0;
  align-items: flex-start;
}

#contents article {
  width: 950px;
  flex-shrink: 0;
}

/* 본문 텍스트 기본 스타일 */
#contents article p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 120px;
  white-space: pre-line;
  text-align: center;
}

/* 제목 (p.title) */
#contents article p.title,
#contents article .webzine-title {
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 80px;
  text-align: center;
}

/* 소제목 (p.subtitle) */
#contents article p.subtitle,
#contents article .webzine-subtitle {
  font-weight: 800;
  font-size: 20px;
  color: var(--main-dark-gray);
  line-height: 1.5;
  margin-bottom: 8px;
  text-align: center;
}

/* 본문 텍스트 */
#contents article .webzine-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 120px;
  white-space: pre-line;
  text-align: center;
}

/* 출처 */
#contents article p.end {
  margin-top: 200px;
  line-height: 1.8;
  text-align: center;
}

/* 이미지 */
#contents article p.img,
#contents article .webzine-image {
  line-height: 0;
  margin-bottom: 120px;
}

#contents article .webzine-image img {
  max-width: 100%;
  height: auto;
}

/* 이미지 캡션 */
#contents article .caption,
#contents article .webzine-image .caption {
  display: inline-block;
  color: #adb6bd;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.04em;
  margin-top: 20px;
  margin-bottom: 0;
}

/* 구분선 */
.separator,
.webzine-separator {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--main-dark-gray);
  margin: 160px auto;
}

/* ==========================================
   In This Article Navigation
   ========================================== */
#inArticle {
  width: 284px;
  height: fit-content;
  flex-shrink: 0;
  margin-left: auto;
}

#inArticle h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark-gray);
  margin-bottom: 14px;
  text-align: center;
}

#inArticle ul li {
  border-left: 1px solid #e9ebef;
  background: #fff;
  transition: 0.5s all;
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
}

#inArticle ul li.active {
  background: rgba(229, 72, 55, 0.05);
}

#inArticle ul li.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--main-red);
}

#inArticle ul li p {
  color: var(--main-gray);
  font-size: 14px;
  margin-bottom: 0;
  text-align: center;
}

#inArticle ul li.active p {
  color: var(--main-dark-gray);
  font-weight: 800;
}

/* ==========================================
   Related Articles Section
   ========================================== */
#relatedList {
  max-width: 1274px;
  margin: 0 auto;
  padding: 40px 0 100px;
}

#relatedList h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--main-dark-gray);
  margin-bottom: 20px;
}

#webzineBoard {
  display: flex;
  flex-wrap: wrap;
  gap: 160px 20px;
}

#webzineBoard .board_cont .cont {
  display: block;
  position: relative;
  text-decoration: none;
}

#webzineBoard .board_cont .cont .badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  text-transform: uppercase;
  margin-left: 0;
}

#webzineBoard .board_cont.verticalSmall {
  width: 303px;
}

#webzineBoard .board_cont.horizonSmall {
  width: 303px;
}

#webzineBoard .thumnail {
  overflow: hidden;
}

#webzineBoard .thumnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.5s all;
}

#webzineBoard .board_cont .cont:hover .thumnail img {
  transform: scale(1.05);
}

/* 세로형 */
#webzineBoard .board_cont.verticalSmall .thumnail {
  width: 303px;
  height: 465px;
}

/* 가로형 */
#webzineBoard .board_cont.horizonSmall .thumnail {
  width: 303px;
  height: 303px;
}

#webzineBoard .infoarea .info_tit {
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--main-dark-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#webzineBoard .infoarea .cata {
  font-size: 16px;
  line-height: 1.5;
  color: var(--main-red);
  font-weight: 700;
}

#webzineBoard .infoarea .hits {
  display: flex;
  justify-content: center;
  gap: 2px;
  line-height: 1.5;
}

#webzineBoard .heart {
  width: 24px;
  height: 24px;
}

#webzineBoard .hitcount {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark-gray);
}

#webzineBoard .infoarea .info_desc h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark-gray);
  margin-top: 8px;
  word-break: keep-all;
}

#webzineBoard .infoarea .info_desc p {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-light-gray);
  margin-bottom: 0;
}

#webzineBoard .infoarea .info_desc p br {
  display: none;
}

/* ==========================================
   View Navigation
   ========================================== */
.view_nav {
  max-width: 1274px;
  margin: 0 auto;
  padding: 40px 0 100px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.view_nav a {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.view_nav .btn_list {
  background: var(--main-dark-gray);
  color: #fff;
}

.view_nav .btn_list:hover {
  background: #1a1a1a;
}

.view_nav .btn_edit {
  background: var(--main-red);
  color: #fff;
}

.view_nav .btn_edit:hover {
  background: #c93d2e;
}

.view_nav .btn_delete {
  background: #fff;
  color: var(--main-gray);
  border: 1px solid #e9ebef;
}

.view_nav .btn_delete:hover {
  background: #f5f6f8;
}
@media screen and (min-width: 1920px) {
  .banner_img {
    height: 100%;
    position: absolute;
    width: 1122px;
    right: calc(50% - min(970px, calc(50vw - -7px)));
  }
}
/* ==========================================
   Responsive - 1440px
   ========================================== */
@media screen and (max-width: 1440px) {
  #relatedList {
    max-width: 95%;
  }

  #webzineBoard {
    gap: 40px 20px;
  }

  #webzineBoard .board_cont {
    width: calc(50% - 10px) !important;
  }

  #webzineBoard .board_cont .thumnail {
    width: 100% !important;
    height: auto !important;
  }

  #webzineBoard .board_cont.verticalSmall .thumnail {
    aspect-ratio: 1 / 1.329;
  }

  #webzineBoard .board_cont.horizonSmall .thumnail {
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================
   Responsive - 1080px (Tablet/Mobile)
   ========================================== */
@media screen and (max-width: 1080px) {
  #banner {
    height: auto;
  }

  #banner::before {
    display: none;
  }
  #banner .banner_wrapper {
    display: flex;
    flex-direction: column-reverse;
  }
  .txt_pose {
    position: static;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 60px 0;
  }

  .banner_tit {
    font-size: 48px;
  }

  .banner_name h2 {
    margin-top: 173px;
    font-size: 18px;
  }

  .badge {
    background: #fff;
  }

  .banner_img .pc {
    display: none;
  }

  .banner_img .mo {
    display: block;
  }

  .banner_img {
    aspect-ratio: 1 / 0.965;
  }

  #inArticle {
    display: none !important;
  }

  #contents {
    width: 100%;
    display: block;
    padding: 100px 0;
  }

  #contents article {
    width: 100%;
  }

  #contents article p,
  #contents article .webzine-text {
    margin-bottom: 80px;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-break: keep-all;
  }

  #contents article p.title,
  #contents article .webzine-title {
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  #contents article p.subtitle,
  #contents article .webzine-subtitle {
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  #contents article .webzine-image {
    margin-bottom: 80px;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .view_nav {
    padding: 40px 16px;
  }
}

/* ==========================================
   Responsive - 768px
   ========================================== */
@media screen and (max-width: 768px) {
  .txt_pose {
    padding: 37px 0 40px;
  }

  .banner_tit {
    font-size: 30px;
  }

  .banner_name h2 {
    margin-top: 32px;
    font-size: 12px;
  }

  #contents article p.title,
  #contents article .webzine-title {
    font-size: 24px;
    margin-bottom: 80px;
  }

  #contents article p.subtitle,
  #contents article .webzine-subtitle {
    font-size: 20px;
  }

  .view_nav a {
    padding: 10px 20px;
    font-size: 13px;
  }
  #contents article .caption,
  #contents article .webzine-image .caption {
    margin-top: 10px;
  }
}

/* ==========================================
   Responsive - 500px
   ========================================== */
@media screen and (max-width: 500px) {
  #webzineBoard {
    gap: 40px 16px;
  }

  #webzineBoard .infoarea .info_desc p br {
    display: block;
  }

  .view_nav {
    flex-wrap: wrap;
  }

  .view_nav a {
    flex: 1;
    text-align: center;
    min-width: 80px;
  }
}

/* ==========================================
   Responsive - 350px
   ========================================== */
@media screen and (max-width: 350px) {
  #webzineBoard .infoarea .info_desc h3 {
    font-size: 14px;
  }

  #webzineBoard .infoarea .cata {
    font-size: 14px;
  }
}

/* ==========================================
   Related Articles (관련기사)
   ========================================== */
.related_articles {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.related_articles .listtit {
  font-size: 24px;
  font-weight: 700;
  color: var(--main-dark-gray);
  margin-bottom: 24px;
}

.related_list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related_item {
  width: calc(25% - 15px);
}

.related_item a {
  display: block;
  text-decoration: none;
}

.related_thumb {
  width: 303px;
  height: 303px;
  /* aspect-ratio: 1 / 1.2; */
  overflow: hidden;
  background: #f5f5f5;
}

.related_thumb.verticalLarge {
  width: 303px;
  height: 465px;
}

.related_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.related_item a:hover .related_thumb img {
  transform: scale(1.05);
}

.related_cate {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--main-red);
  line-height: 1.5;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--main-dark-gray);
}

.related_title {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark-gray);
  line-height: 1.5;
  margin-top: 8px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related_date {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--main-light-gray);
}

.related_period {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--main-light-gray);
}

.related_list .no_data {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: var(--main-gray);
  font-size: 14px;
}

@media screen and (max-width: 1440px) {
  .related_thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
  }

  .related_thumb.verticalLarge {
    aspect-ratio: 1 / 1.329;
  }
}
/* Related Articles Responsive */
@media screen and (max-width: 1080px) {
  .related_item {
    width: calc(50% - 10px);
  }
}

@media screen and (max-width: 500px) {
  .related_articles {
    margin-top: 40px;
  }

  .related_articles .listtit {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .related_list {
    gap: 16px;
  }

  .related_item {
    width: calc(50% - 8px);
  }

  .related_title {
    font-size: 14px;
  }

  .related_cate {
    font-size: 12px;
  }

  .related_date {
    font-size: 12px;
  }

  .related_period {
    font-size: 12px;
  }
}

/* ==========================================
   전시정보 섹션
   ========================================== */
.exhibition_section {
  max-width: 100%;
  width: 100%;
  margin: 60px auto;
  padding: 0 20px;
}

.exhibition_wrapper {
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #e9ebef 100%);
  min-height: 448px;
  padding: 60px 70px;
  gap: 60px;
}

.exhibition_text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  word-break: break-all;
  overflow-wrap: break-word;
}

.exhibition_header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exhibition_label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #6b7278;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.exhibition_title {
  font-size: 20px;
  font-weight: 800;
  color: var(--main-dark-gray);
  line-height: 1.4;
  margin: 0;
  word-break: keep-all;
}

.exhibition_items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exhibition_items li {
  font-size: 16px;
  font-weight: 700;
  color: #262b32;
  line-height: 1.5;
  word-break: break-all;
  overflow-wrap: break-word;
}

.exhibition_items .item_key {
  font-weight: 700;
  color: #6b7278;
}

.exhibition_items a {
  color: #262b32;
  text-decoration: none;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exhibition_items a:hover {
  color: var(--main-red);
}

.exhibition_items a svg {
  flex-shrink: 0;
}

.exhibition_items a .link_text {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 링크 전용 항목 (머리말 없음) */
.exhibition_items li.link_only {
  margin-top: 8px;
}

.exhibition_image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibition_image img {
  max-width: 100%;
  max-height: 369px;
  object-fit: contain;
}

/* Exhibition Section Responsive */
@media screen and (max-width: 768px) {
  .exhibition_section {
    margin: 40px auto;
  }

  .exhibition_wrapper {
    flex-direction: column;
    min-height: auto;
    padding: 40px;
    gap: 24px;
  }

  /* display: contents로 자식 요소들을 직접 flex 아이템으로 만듦 */
  .exhibition_text {
    display: contents;
  }

  /* 순서: header(1) → image(2) → items(3) */
  .exhibition_header {
    order: 1;
  }

  .exhibition_image {
    flex: none;
    max-width: 100%;
    order: 2;
    margin-left: 0;
  }

  .exhibition_image img {
    max-height: 280px;
  }

  .exhibition_items {
    order: 3;
  }

  .exhibition_title {
    font-size: 18px;
  }

  .exhibition_items .item_key {
    display: block;
  }
}

@media screen and (max-width: 500px) {
  .exhibition_wrapper {
    padding: 40px;
    gap: 20px;
  }

  .exhibition_title {
    font-size: 16px;
  }

  .exhibition_items {
    gap: 8px;
  }

  .exhibition_image img {
    max-height: 240px;
  }
}
