@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR&family=Noto+Sans+SC:wght@100;400&display=swap');

/**
 * Content
 */
.PJT {
     position: absolute;
     top: 0;
}

.PJTTXOUTER {
    text-align: center;
}

.PJTTXINNER,
.ATINNER {
  width: 100%;
  max-width: 820px;
  box-sizing: border-box;
  display: inline-block;
  text-align: justify;
}


body {
    overflow-y: scroll;
	background-color: #fff;
	color: #000;
}

.maintext a{
    border-bottom: 0em solid rgba(0, 0, 0, 0.75) !important;
}
.maintext a:hover{
    border-bottom: 0.075em solid rgba(0, 0, 0, 0.75) !important;
}



a:active {
	opacity: 0.7;
    border-bottom: 0.075em solid rgba(0, 0, 0, 0.75);
}


.page a.active {
	border-bottom: 0.075em solid rgba(0, 0, 0, 1);
    opacity: 1;
}

i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	position: relative;
	vertical-align: baseline;
}

sub {
	top: 0.3em;
}

sup {
	top: -0.4em;
}

s {
	text-decoration: line-through;
}

img {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0 0 0 1em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	background: rgba(0, 0, 0, 0.15);
	border: 0;
	height: 1px;
	display: block;
}

.content img {
	float: none;
	margin-bottom: .5em;
}

.gallery_image_caption {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
	font-weight: 300;
	color: rgba(0, 0, 0, 1);
	font-family: "D2coding","Monument Grotesk", Icons;
	font-style: normal;
	line-height: 1.3;	
}

::-moz-selection {
	background: #292929 ;
	color: #fff;
}

::selection {
	background: #292929 ;
	color: #fff;
}

/**
 * Loading Animation

 */

.loading[data-loading] {
	position: fixed;
	bottom: 8px; 
    left: 8px;
}


/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: min(1.3rem, 18px);   /* 본문·프로젝트 제목: 1.3rem이되 큰 화면에서는 21px까지만 (숫자만 바꿔 조절) */
	font-weight: 400;
	color: rgba(0, 0, 0, 0.75);
	font-family: "D2coding","Noto Sans KR","Noto Sans SC", Icons;
	font-style: normal;
	line-height: 1.6;
}

[data-predefined-style="true"] bodycopy a {
   	color: rgba(0, 0, 0, 0.75);
	padding-bottom: 0.1em;
	border-bottom: 0em solid rgba(0, 0, 0, 0.75);
	text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {
	border-bottom: 0.075em solid rgba(0, 0, 0, 0.75);

}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: "D2coding","Noto Sans KR","Noto Sans SC", Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 1.1rem;
	line-height: 0.9;
	color: rgba(0, 0, 0, 0.75);
	}

[data-predefined-style="true"] h1 a {
    border-bottom: 0em solid rgba(0, 0, 0, 0.75);
	color: rgba(0, 0, 0, 0.75);
}

[data-predefined-style="true"] h2 {
	font-family: "D2coding","Noto Sans KR","Noto Sans SC",Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: rgba(0, 0, 0, 0.85);
	font-size: 1rem;
	line-height: 1.5;
	}

[data-predefined-style="true"] h2 a {
    border-bottom: 0.075em solid rgba(0, 0, 0, 0.75);
	color: rgba(0, 0, 0);
}

[data-predefined-style="true"] h2 a:hover {
    border-bottom: 0.0em solid rgba(0, 0, 0, 0.8);
	color: rgba(0, 0, 0, 0.75);
}

[data-predefined-style="true"] small {
    display: inline-block;
	font-size: 0.9rem;
	line-height: 1.5;
	font-family: "D2coding", Icons;
	font-style: normal;
	font-weight: 400;
	color: rgb(0, 0, 0);
}

[data-predefined-style="true"] small a {
    border-bottom: 0em solid rgba(0, 0, 0, 0.75);
	color: rgba(0, 0, 0, 1);
}

[data-predefined-style="true"] smalla {
    display: inline-block;
	font-size: 0.9rem;
	line-height: 2.0;
	font-family: "D2coding", Icons;
	font-style: normal;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.75);
}

[data-predefined-style="true"] smalla a {
    border-bottom: 0.075em solid rgba(0, 0, 0, 0.75);
	color: rgba(0, 0, 0, 0.85);
}

[data-predefined-style="true"] smalla a:hover {
    border-bottom: 0.0em solid rgba(0, 0, 0, 0.75);
	color: rgba(0, 0, 0, 0.85);
}

.foot_title{
	-webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
}
/**
 * Breakpoints
 */


[data-css-preset] .page {
    background-color: initial /*!page_bgcolor*/;
   
}

[local-style="22509551"] {
          mix-blend-mode: normal;
}

.mobile .page,
[data-css-preset].mobile .page {
	position: relative;
	min-height: 10px;
	max-width: 100%;
	width: 100%;
	background-color: transparent /*!page_bgcolor*/;
   
}

[data-css-preset] .container {
	margin-left: auto /*!content_center*/;
	margin-right: auto /*!content_center*/;
	text-align: center /*!text_center*/;
}

[data-css-preset] body {
	background-color: transparent/*!body_bgcolor*/;
}

[data-css-preset] .container_width {
	
	width: 90%/*!content_center*/;
}

[data-css-preset] .content_padding {
	padding-top: 2rem /*!main_margin*/;
	padding-bottom: 2rem /*!main_margin*/;
	padding-left: 2rem /*!main_margin*/;
	padding-right: 2rem /*!main_margin*/;
    width: 100%;
}


[data-css-preset] text-limit {
	display: inline-block /*!text_width*/;
	max-width: 66rem/*!text_width*/;
}

/**
 * Thumbnails (Cargo 기본 규칙. 간격/제목은 아래 커스텀 영역에서 덮어씀)
 */

div[thumbnails] {
	justify-content: flex-start;
}

[data-css-preset] .thumbnails {
   	background-color: transparent/*!thumbnails_bgcolor*/;   
}

[data-css-preset] .thumbnails_width {
    width: 100%/*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
    padding: 2rem/*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
    margin: -4rem/*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
    padding: 0.5rem/*!responsive_thumbnails_padding*/; 
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
    margin: -1rem/*!responsive_thumbnails_padding*/; 
}

.thumbnails .tags {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.0rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.35);
	font-family: DINosaur, Icons;
	font-style: normal;
	line-height: 1.2;
    text-align: left;
}

.thumbnails .tags a {
	border-bottom: 0;
    color: rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.thumbnails .has_title .tags {
	margin-top: 0rem;
}


/**
 * Site Menu
 */

[data-css-preset] #site_menu_button {
    color: rgba(0, 0, 0, 0.75);
    line-height: 1;
    font-size: 28px /*!site_menu_button*/;
    padding: 6px;
    line-height: 1;
    background: rgba(33, 32, 46, 0);
    position: fixed;
	right: 3rem /*!site_menu_button*/;
	top: 3rem /*!site_menu_button*/;
}

body.mobile #site_menu_button {
	margin: -6px;
    font-size: 34px;
}

#site_menu_button.custom_icon {
	width: 40px;
    height: auto;
}

#site_menu_button.active {
	display: none;
}

/**
 * Site Menu
 */

#site_menu {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	background: rgba(20, 20, 20, 0.95);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	padding: 20px 30px 90px 30px;
	max-width: 400px;
	min-width: 300px;
	text-align: left;
	display: flex;
	justify-content: flex-start;
}

body.mobile #site_menu {
	width: 100%;
}

#site_menu .page-link a {
	color: rgba(255, 255, 255, 0.75);
}

#site_menu .set-link > a {
	color: rgba(255, 255, 255, 0.75);
	font-weight: bold;
}

#site_menu a:active {
	opacity: .7;
}

#site_menu a.active {
	opacity: .4;
}

#site_menu .close {
	display: none;
	color: rgba(255, 255, 255, 0.4);
	line-height: .85em;
	font-size: 45px;
}

body.mobile #site_menu .close {
	display: block;
	font-size: 50px;
	line-height: 1em;
}

#site_menu .break {
	height: 28px;
}

#site_menu .indent {
	margin-left: 28px;
}

/*
 * Shop Button
 */

[data-css-preset] #shop_button {
	color: rgba(0, 0, 0, 0.75);
    background: transparent;
	font-size: 40px;
    font-style: normal;
	font-weight: 400;
    line-height: 1;
    position: fixed;
	padding: 6px;
	bottom: 3rem /*!shop_button*/;
	left: 3rem /*!shop_button*/;
}

#shop_button.text {
    font-family: Quiosco, Icons;
	font-style: normal;
	font-weight: 400;
	font-size: 3rem;
    padding: 0;
    line-height: 1.2;
}

#shop_button.custom_icon {
	width: 40px;
    height: auto;
}

body.mobile #shop_button:not(.text) {
	margin: -6px;
    font-size: 46px;
}

/*
 * Shop Product Widget
 */

.shop_product {
    width: 100%;
	max-width: 22rem;
    position: relative;
    display: block;
}

.shop_product .price {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 1.7rem;
    font-weight: bold;
	line-height: 1;
	color: rgba(0, 0, 0, 0.75);
    display: block;
    margin-bottom: 1rem;
}

.shop_product .dropdown {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-size: 1.4rem;
    display: inline-block;
	width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    background:  white url(https://static.cargo.site/assets/images/select-arrows.svg) no-repeat right;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding: .7rem 1rem;
}

.shop_product .button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 1.4rem;
    background: rgba(0, 0, 0, 0.75);
    color: rgba(255,255,255,1);
    flex: 0 0 50%;
    text-align: left;
    display: inline-block;
	line-height: 1;
    padding: .8rem 1rem .9rem;
}



/*
 * Image Zoom
 */

.content img.image-zoom:active {
	opacity: .7;
}

/**
 * Quick View
 */

[data-css-preset] .quick-view {
    padding-top: 2rem /*!quick_view_padding*/;
    padding-bottom: 2rem /*!quick_view_padding*/;
    padding-left: 2rem /*!quick_view_padding*/;
    padding-right: 2rem /*!quick_view_padding*/;
    height: 60% /*!quick_view_height*/;
    width: 80% /*!quick_view_width*/;
}

body.mobile .quick-view {
    width: 100%;
    height: 100%;
    margin: 0;
}


[data-css-preset] .quick-view-background {
	background: rgba(255, 255, 255, 1) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
    transition: 100ms opacity ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.8rem;
}

.quick-view-caption span {
    padding: 0.5rem 1rem;
    display: inline-block;
    background: rgba(0,0,0,0.4);
    color: white;
}


/**
 * Quick View Navigation 
 */

.quick-view-navigation .left-arrow {
    left: 10px;
}

.quick-view-navigation .right-arrow {
    right: 10px;
}

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}

.quick-view-navigation .close-button {  
    top: 10px;
    right: 10px;
    /* Change height/width together to scale */
    width: 36px;
    height: 36px;
}

.quick-view-navigation .close-button .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.quick-view-navigation .close-button .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}

/** 
 * Image Gallery Navigation Arrows 
 */
 
.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}

/**
 * Wallpaper Backdrop Navigation Arrows 
 */

.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
   /* Change height/width together to scale */
   width: 36px;
   height: 36px;
}

.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
   stroke: #fff;
    stroke-width: 1.5px;
}

.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}


/**
 * Feed
 */

.feed .content_container .page {
    border-bottom: 0px dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:last-child .page {
	border-bottom: 0;
}



/*
 * Audio Player
 */

.audio-player {
    max-width: 36rem;
    height: 3.3rem;
    outline: 1px solid rgba(0,0,0,0.15);
    color: rgba(0, 0, 0, 0.6);
    background: #fff;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin: 1px 1px 1em 1px;
}

body.mobile .audio-player {
    max-width: 100%;
}

.audio-player .separator {
    width: 1px;
    background-color: rgba(0,0,0,0.15);
}

.audio-player .button {
    background: transparent;
    cursor: pointer;
    fill: rgba(0, 0, 0, 0.85);
}

.audio-player .icon {
    fill: rgba(0, 0, 0, 0.85);
    padding: 30%;
    width: 100%;
    margin: auto;
}

.audio-player .buffer {
    background: rgba(0,0,0,0.03);
}

.audio-player .progress {
    background: rgba(0,0,0,0.1);
}

.audio-player .progress-indicator {
    border: 1px solid rgba(0, 0, 0, 0.7);
    width: 1px;
    height: 100%;
    right: 0;
    position: absolute;
    cursor: ew-resize;
}

.audio-player .note-icon {
    height: 100%;
    width: 3.8rem;
    padding: 1rem;
    fill: rgba(0, 0, 0, 0.5);
}

.audio-player .current-time {
    padding-left: 1rem;
}

.audio-player .total-time {
    padding-right: 1rem;
}

[data-css-preset] .content_padding {
	padding-top: 7.7rem /*!main_margin*/;
	padding-bottom: 7.7rem /*!main_margin*/;
	padding-left: 7.7rem /*!main_margin*/;
	padding-right: 7.7rem /*!main_margin*/;
}


/* =====================================================================
   ▼▼▼ 커스텀 영역 (직접 만든 부분) — 여기부터 아래만 수정하면 됩니다 ▼▼▼
   구성: 0 변수 / 1 썸네일 그리드 / 2 썸네일 이미지 / 3 썸네일 제목 /
         4 프로젝트 텍스트 레이어 / 5 기타
   기준 폭: 1400px 이하 = 3열, 784px 이하 = 2열 (Cargo 모바일 전환 785px)
   ===================================================================== */

/* ---------- 0. 변수 (숫자만 바꾸면 전체에 적용) ---------- */
:root {
  /* 썸네일 */
  --thumb-col-gap: 20px;                       /* 열 사이 간격 */
  --thumb-row-gap: 36px;                       /* 행 사이 간격 (제목 포함) */
  --thumb-side: 10px;                          /* 썸네일 영역 좌우 여백 */

  /* 텍스트 레이어 */
  --txt-panel-w: 820px;                        /* 패널 너비 */
  --txt-panel-bg: rgba(255, 255, 255, 0.92);   /* 패널 불투명도 */
  --txt-dim: rgba(249, 240, 225, 0.55);        /* 패널 바깥 뒤 화면을 덮는 막 */
  --txt-gap: 24px;                             /* 패널과 화면 가장자리 간격 */
  --txt-align: left;                           /* 글 정렬: left 또는 center */
}


/* ---------- 1. 썸네일 그리드: 4열 > 3열 > 2열 ---------- */
html body [thumbnails] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--thumb-col-gap) !important;
  row-gap: var(--thumb-row-gap) !important;
  align-items: start;
  padding: 0 var(--thumb-side) !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
html body [thumbnails] .thumbnail {
  float: none !important;
  clear: none !important;
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;       /* Cargo가 폭에 따라 바꾸는 안쪽 여백 제거 */
  box-sizing: border-box !important;
}
html body [thumbnails] .thumbnail a.image-link {
  position: relative;
  display: block !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

@media (max-width: 1400px) {
  html body [thumbnails] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 784px) {
  html body [thumbnails] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 72px !important;   /* 로고 아래 간격 */
  }
}


/* ---------- 2. 썸네일 이미지: 흑백 + 호버 시 프로젝트 첫 이미지 ---------- */
html body [thumbnails] .thumbnail .thumb_image {
  position: relative !important;
  overflow: hidden !important;
}
html body [thumbnails] .thumb_image img:not(.hover-img) {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
/* 호버 이미지는 JS가 .hover-img 로 자동 삽입 */
html body [thumbnails] .thumbnail .thumb_image img.hover-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}
html body [thumbnails] .thumbnail:hover .thumb_image img.hover-img {
  opacity: 1;
}


/* ---------- 3. 썸네일 제목: 이미지 아래 중앙, 호버 시 밑줄 ---------- */
html body [thumbnails] .thumbnail .title {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: var(--title-size, 18px) !important;   /* JS가 상단 로고 글자 크기로 설정 */
  line-height: 1.3 !important;
  word-break: keep-all !important;                 /* 한글 단어 중간에서 끊기지 않게 */
  overflow-wrap: break-word !important;
  text-wrap: balance;                              /* 두 줄이 될 때 길이를 비슷하게 */
  color: rgba(0, 0, 0, 0.8);
  font-family: "Monument Grotesk", Icons;
  font-weight: 400;
  font-style: normal;
}
html body [thumbnails] .thumbnail .title span {
  display: inline-block;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  text-decoration: none !important;
}
html body [thumbnails] .thumbnail:hover .title span {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* 3열 이하(1400px 이하): 글자 크기를 폭에 따라 줄이고 진하게 */
@media (max-width: 1400px) {
  html body [thumbnails] .thumbnail .title {
    font-size: clamp(13px, 1.7vw, var(--title-size, 18px)) !important;
    color: #000 !important;
    line-height: 1.35 !important;
  }
}
/* 2열(784px 이하) */
@media (max-width: 784px) {
  html body [thumbnails] .thumbnail .title {
    font-size: clamp(11px, 2.4vw, 16px) !important;
  }
}


/* ---------- 4. 프로젝트 텍스트 레이어 (Text 클릭 시 뜨는 패널) ---------- */
html.txt-lock,
html.txt-lock body { overflow: hidden !important; }

.txt-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--txt-dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.txt-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* 가운데 패널 */
.txt-panel {
  position: absolute;
  top: var(--txt-gap);
  bottom: var(--txt-gap);
  left: var(--txt-gap);
  right: var(--txt-gap);
  width: min(var(--txt-panel-w), calc(100vw - (var(--txt-gap) * 2)));
  margin: 0 auto;                              /* 가로 가운데 정렬 */
  background: var(--txt-panel-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translateY(16px);                 /* 열릴 때 살짝 올라옴 */
  transition: transform 0.3s ease;
}
.txt-overlay.is-open .txt-panel { transform: none; }

.txt-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.txt-body {
  padding: 88px 56px 120px;
  text-align: var(--txt-align);
}

/* 원본 글 목록 스타일 정리 */
.txt-body ul, .txt-body li { list-style: none; margin: 0; padding: 0; }
.txt-overlay ul[class$="txsub"] { display: block !important; }
.txt-overlay .PJTTXOUTER,
.txt-overlay .PJTTXINNER { display: block !important; width: auto !important; max-width: 100% !important; }

/* 닫기 버튼 */
.txt-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
  color: #000;
}

/* 좁은 화면(785px 이하): 패널이 화면 전체를 채움 */
@media (max-width: 785px) {
  :root { --txt-gap: 0px; }
  .txt-panel { width: 100vw; }
  .txt-body { padding: 72px 20px 100px; }
  .txt-close { right: 8px; }
}


/* ---------- 5. 기타 ---------- */
/* PJT(썸네일) 페이지만: 최대 너비 2400px, 가운데 정렬 */
body[data-page-id="38718308"] .content.content_padding {
  width: 100% !important;
  max-width: 2400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* PJT 페이지만, 786px 이상: 좌우 여백 24px (about, news 등 다른 페이지는 원래 여백 유지) */
@media (min-width: 786px) {
  body[data-page-id="38718308"] .content.content_padding {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* ---------- 6. 상단 제목·하단 메뉴 최소 글자 크기 ---------- */
/* 창 높이/폭이 줄면 rem 기반 글자가 같이 작아지므로, px 하한을 둠 (사이트 전체 적용) */
:root { --ui-min-font: 15px; }   /* 하한 값: 더 크게 하려면 16px, 17px … */
/* 모바일: 본문 글자 크기(아래 숫자만 바꿔 조절). 하한도 함께 낮춰야 본문이 15px로 되돌려지지 않음 */
@media (max-width: 785px) {
  :root { --ui-min-font: 12px; }
  html body:not(.homepage) .page_container:not(.overlay) bodycopy { font-size: 13px !important; line-height: 1.6; }   /* 홈(body.homepage)은 제외 */
}

[data-predefined-style="true"] h1,
[data-predefined-style="true"] h2 {
  font-size: max(1rem, var(--ui-min-font)) !important;
}

/* 서브메뉴·소제목·하단 메뉴 등 작은 글자용 스타일 (S 스타일) */
[data-predefined-style="true"] small,
[data-predefined-style="true"] smalla {
  font-size: max(0.9rem, var(--ui-min-font)) !important;
  line-height: 1.8 !important;       /* 줄 간격: 글자가 커져도 위아래 줄이 겹치지 않게 */
  margin-top: 6px;                   /* px 기준 간격: 화면이 작아져 rem이 줄어도 유지됨 */
  margin-bottom: 6px;
}

/* 메뉴 여백 하한 (px) — 숫자만 바꿔서 조절 */
:root {
  --top-menu-pad: 36px;      /* 상단 메뉴(로고+서브메뉴) 위쪽 여백 (고정 px, 줄이면 로고가 위로 올라감) */
  --submenu-gap: 28px;       /* 로고와 서브메뉴(About | People …) 사이 간격 */
  --bottom-menu-pad: 24px;   /* 하단 메뉴(projects/about/news) 위아래 여백 하한 */
  --page-top-gap: 150px;     /* 본문 시작 위치: 상단 메뉴와 첫 이미지 사이를 띄우는 하한 */
}

/* 상단 고정 메뉴 */
html body .pinned_top .page_container.overlay .bodycopy.content_padding {
  padding-top: var(--top-menu-pad) !important;
}
/* 로고와 서브메뉴 사이 간격 */
html body .pinned_top .page_container.overlay small {
  margin-top: var(--submenu-gap) !important;
}

/* 하단 메뉴(projects about news) 글자 크기: 홈 화면과 같은 1.6rem (모든 페이지 공통) — 숫자만 바꿔 조절 */
:root { --bottom-menu-font: min(1.6rem, 20px); }   /* 1.6rem이되 큰 화면에서는 20px까지만 */
html body .pinned_bottom .bodycopy,
html body .pinned_bottom .bodycopy * {
  font-size: max(var(--bottom-menu-font), var(--ui-min-font)) !important;
  line-height: 1.4 !important;        /* 검정 박스 높이: 홈 화면과 비슷하게 (더 낮추려면 1.3) */
}
html body .pinned_bottom .bodycopy small,
html body .pinned_bottom .bodycopy smalla {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 상단 로고(bv-/vb architecture studio) 글자 크기: 1.6rem (모든 페이지 공통) — 서브메뉴(About | People …)는 그대로 */
:root { --logo-font: min(1.6rem, 20px); }          /* 1.6rem이되 큰 화면에서는 20px까지만 */
html body .pinned_top h1,
html body .pinned_top h1 *,
html body .pinned_top h2,
html body .pinned_top h2 * {
  font-size: max(var(--logo-font), var(--ui-min-font)) !important;
}

/* 홈 화면 등 고정 메뉴 밖의 작은 글자 줄(blog …, © …): 줄 간격 줄임 — 값만 바꿔 조절 */
html body [data-predefined-style="true"] small,
html body [data-predefined-style="true"] smalla {
  line-height: 1.3 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* 고정 메뉴 안의 작은 글자는 위 규칙에서 제외(원래 값 복원) */
html body .pinned_top .page_container.overlay small,
html body .pinned_top .page_container.overlay smalla {
  line-height: 1.8 !important;
  margin-bottom: 6px !important;
}
html body .pinned_bottom .page_container.overlay .bodycopy small,
html body .pinned_bottom .page_container.overlay .bodycopy smalla {
  line-height: 1.4 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 모바일: 서브메뉴(About | People …) 글자 한 단계 더 작게 */
@media (max-width: 785px) {
  html body .pinned_top .page_container.overlay small,
  html body .pinned_top .page_container.overlay smalla {
    font-size: 13px !important;
  }
}

/* 하단 고정 메뉴 */
html body .pinned_bottom .page_container.overlay .bodycopy.content_padding {
  padding-top: var(--bottom-menu-pad) !important;
  padding-bottom: var(--bottom-menu-pad) !important;
}

/* 본문 페이지: 위쪽 여백 하한 (상단 고정 메뉴가 이미지에 붙지 않게) */
html body .page_container:not(.overlay) .bodycopy.content_padding {
  padding-top: max(7.7rem, var(--page-top-gap)) !important;
}

/* 위 규칙으로 안 잡히는 모든 글자: HTML의 6번 스크립트가 하한보다 작은 글자에 이 표시를 붙임 */
[data-minfont] {
  font-size: var(--ui-min-font) !important;
  line-height: 1.8 !important;      /* 글자가 커져도 위아래 줄(로고·서브메뉴·하단 메뉴)이 겹치지 않게 */
}

/* 상단 제목(로고)도 같은 줄 간격 */
[data-predefined-style="true"] h1,
[data-predefined-style="true"] h2 {
  line-height: 1.8 !important;
}


/* ---------- 7. 썸네일 → 프로젝트 레이어 (HTML의 7번 스크립트와 함께 사용) ---------- */
:root { --proj-gap: 24px; }            /* 프로젝트 레이어와 화면 가장자리 간격 */

html.proj-lock,
html.proj-lock body { overflow: hidden !important; }

.proj-layer {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: var(--txt-dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.proj-layer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.proj-panel {
  position: absolute;
  top: var(--proj-gap);
  bottom: var(--proj-gap);
  left: var(--proj-gap);
  right: var(--proj-gap);
  background: #fff;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.proj-layer.is-open .proj-panel { transform: none; }

.proj-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.proj-frame.is-ready { opacity: 1; }

.proj-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
  color: #000;
}
/* 안쪽 Read more 레이어가 열려 있는 동안은 바깥 X를 숨김 (X가 겹치지 않게) */
.proj-layer.txt-open .proj-close { display: none; }

/* 프로젝트 레이어 안(iframe)에서 보이는 페이지: 사이트 메뉴를 숨기고 위쪽 여백을 줄임 */
html.in-proj-layer .pinned,
html.in-proj-layer .pinned_top,
html.in-proj-layer .pinned_bottom { display: none !important; }
html.in-proj-layer,
html.in-proj-layer body { background: #fff !important; }
html.in-proj-layer body .page_container:not(.overlay) .bodycopy.content_padding {
  padding-top: 56px !important;
}

@media (max-width: 785px) {
  :root { --proj-gap: 0px; }           /* 좁은 화면은 전체 화면 */
}