/* style.css */
@font-face{font-family:'GmarketSans';src:url('./GmarketSansLight.otf') format('opentype');font-weight:300;}
@font-face{font-family:'GmarketSans';src:url('./GmarketSansMedium.otf') format('opentype');font-weight:400;}
@font-face{font-family:'GmarketSans';src:url('./GmarketSansBold.otf') format('opentype');font-weight:700;}

:root {
  --white: #ffffff;
  --black: #111111;
  --muted: #666666;
  --border: #111111;
  --grid-line: rgba(17, 17, 17, 0.07);
  /* detail.html 내 정상 출력을 위한 미지정 변수 추가 정의 */
  --point: #111111;
  --bg: #fafafa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--black);
  font-family: 'GmarketSans', sans-serif;
  font-weight: 300;
  background-color: var(--white);
  -webkit-text-size-adjust: none;
  position: relative;
}

.phone-wrapper {
  width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; z-index: 1; background: transparent;
}

header {
  width: 100%; height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--black); flex-shrink: 0; 
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.header-row1 {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  display: flex; align-items: center; font-weight: 800; text-decoration: none; color: var(--black);
}
.header-pages {
  display: flex !important; margin: 0 !important; padding: 0 !important; list-style: none; height: 100%; background: transparent;
}
.hpage-btn {
  display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 12px !important;
  font-size: 12px; font-weight: 600; color: #888; letter-spacing: 0.5px; position: relative; cursor: pointer; transition: all 0.2s ease;
}
.hpage-btn::after { content: ""; position: absolute; bottom: 1px; left: 0; width: 100%; height: 5px; background: transparent; transition: all 0.2s ease; }
.hpage-btn.active { color: var(--black) !important; font-weight: 800 !important; }
.hpage-btn.active::after { background: var(--black) !important; }

.static-top-info {
  width: 100%; display: flex; flex-direction: column; border-bottom: 1px solid var(--black); flex-shrink: 0;
}
.type-strip {
  width: 100%; height: 26px; display: flex; align-items: center; padding: 0 14px;
  font-size: 10px; font-weight: 400; letter-spacing: 0.5px; color: var(--muted); border-bottom: 1px solid var(--black);
}
.type-text { display: inline-block; }
.type-cursor {
  display: inline-block; width: 5px; height: 11px; background-color: var(--muted); margin-left: 3px;
  animation: blink 0.8s infinite; vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

.count-bar {
  width: 100%; height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
}
.count-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }

.dynamic-slider-container {
  flex: 1; width: 100%; position: relative; overflow: hidden;
}
.view-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; display: none; overflow: hidden;
}
.view-layer.active-layer { display: block; }

#content-gallery { 
  padding: 4px 0 8px 0 !important;
}

.main-portfolio-swiper { 
  width: 100%; 
  height: 100%; 
  padding: 0 14px 34px 14px !important; 
  position: relative; 
}

.swiper-slide {
  width: 300px !important; 
  height: calc(100% - 2px) !important; 
  display: flex; 
  flex-direction: column; 
}

.main-portfolio-swiper .swiper-slide {
  pointer-events: none !important;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.main-portfolio-swiper .swiper-slide.swiper-slide-active {
  pointer-events: auto !important;
  opacity: 1 !important;
}

.main-portfolio-swiper .swiper-slide-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column;
}

:not(.main-portfolio-swiper) > .swiper-wrapper > .swiper-slide,
.swiper-slide-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column;
}

.proj-excel-table {
  width: 100%; display: flex; flex-direction: column; border: 1px solid var(--black) !important; margin-bottom: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.50) !important; backdrop-filter: blur(0px) !important; -webkit-backdrop-filter: blur(8px) !important;
  position: relative; z-index: 10;
}
.excel-row {
  width: 100%; height: 24px; display: flex; border-bottom: 1px solid var(--black) !important;
}
.excel-row:last-child { border-bottom: none !important; }
.excel-cell {
  height: 100%; display: flex; align-items: center; font-size: 9px; padding: 0 8px; letter-spacing: 0.2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: transparent !important; color: var(--black) !important;
}
.cell-label {
  width: 68px; font-weight: 700; border-right: 1px solid var(--black) !important; background: rgba(0, 0, 0, 0.03) !important; flex-shrink: 0;
}
.cell-value { flex: 1; font-weight: 400; }

.proj-img {
  flex: 1 !important; width: 100%; height: 100%; border: 1px solid var(--black); background-size: cover; background-position: center; position: relative;
}

.swiper-pagination { bottom: 6px !important; }
.swiper-pagination-bullet-active { background: var(--black) !important; }

.proj-overlay-table {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(17,17,17,0.15); display: flex; flex-direction: column; gap: 2px;
}
.overlay-row { display: flex; align-items: center; gap: 8px; }
.overlay-num { font-size: 9px; font-weight: 700; color: #999; letter-spacing: 0.5px; }
.overlay-cat { font-size: 9px; font-weight: 700; color: #111; letter-spacing: 0.5px; text-transform: uppercase; background: rgba(17,17,17,0.08); padding: 1px 5px; border-radius: 2px; }
.overlay-loc { font-size: 11px; font-weight: 700; color: #111; letter-spacing: 0.2px; }
.overlay-name { font-size: 10px; font-weight: 400; color: #555; letter-spacing: 0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t1 { background: #fdfbf7; } .t2 { background: #f4f4f4; } .t3 { background: #fafafa; }
.t4 { background: #f9f7f5; } .t5 { background: #fcfcfc; } .t6 { background: #f5f5f5; }
.t7 { background: #fbfbfb; } .t8 { background: #f7f7f7; } .t9 { background: #fcfbfa; }

footer {
  width: 100%; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-top: 1px solid var(--black); background: #ffffff; flex-shrink: 0; gap: 3px;
}
.ft-links { display: flex; gap: 14px; }
.ft-links a { font-size: 9px; font-weight: 400; color: var(--black); text-decoration: none; letter-spacing: 0.3px; }
.ft-copy { font-size: 8px; font-weight: 400; color: #999999; letter-spacing: 0.2px; }

#content-about {
  width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px; display: none;
}
#content-about.active-layer { display: block; }

.about-grid-container {
  width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 0 4px !important; margin: 0 auto; padding-bottom: 20px;
}
.about-photo-row {
  width: 100%; height: 100px; display: flex; gap: 8px; margin-bottom: 12px;
}
.about-photo-item {
  flex: 1; height: 100%; background: #f9f9f9; position: relative; overflow: hidden; border: 1px solid var(--black);
}
.about-photo-item img {
  width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 5;
}
.about-fallback-box {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #bbb; z-index: 1; background: #fafafa;
}

.about-sns-row {
  display: flex; gap: 8px; width: 100%; margin-top: 12px;
}
.sns-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 42px; 
  border: 1px solid var(--black); background: #ffffff; color: var(--black); 
  font-size: 11px; font-weight: 700; text-decoration: none; letter-spacing: 0.5px;
}
.sns-btn:active { background: #f5f5f5; }

.custom-nav-arrow {
  position: absolute; top: calc(50% - 15px); transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  color: var(--black); font-size: 42px; font-weight: 300;
  cursor: pointer; z-index: 150; user-select: none; width: 32px; height: 50px;
}
.custom-prev { left: 4px; }
.custom-next { right: 4px; }

.modal-swiper {
  width: 100% !important;
  height: 100% !important;
}
.modal-swiper .swiper-slide {
  width: 100% !important;   
  height: 100% !important;
  pointer-events: auto !important; 
  opacity: 1 !important;           
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.modal-img-target {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* 워터마크 좌표 배치 최적화 및 구문 오류 교정 */
.swiper-slide .watermark-text {
  position: absolute !important;
  font-size: 13px !important;      
  font-weight: 700 !important;    
  letter-spacing: 3px !important;  
  color: #ffffff !important;      
  opacity: 0.4 !important;        
  pointer-events: none !important; 
  user-select: none !important;   
  text-transform: lowercase !important;
  z-index: 9999 !important; 
  line-height: 1 !important;
}

@media (max-width: 768px) {
  .swiper-slide .watermark-text {
    font-size: 12px !important;
    letter-spacing: 2px !important;
  }
}

.tone-placeholder .watermark-text-tone {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: var(--black) !important; 
  opacity: 0.2 !important;
  pointer-events: none !important;
  user-select: none !important;
  text-transform: lowercase !important;
}