/* 기본 설정 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}


@font-face {
  font-family: 'Dating Historia';
  src: url('../font/DatingHistoriaLight.woff2') format('woff2'),
    url('../font/DatingHistoriaLight.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}



body {
  font-family: pretendard, sans-serif;
  line-height: 1.6;
  display: flex;
  background-color: #fff;
  color: black;
  font-size: 14px;

}

a {
  text-decoration: none;
  color: #a4a4a4;
}

a:visited {
  color: #a4a4a4;
}

a.highlight-link {
  color: black;
}


body,
html,
.main,
.block {
  max-width: 100vw;
  overflow-x: hidden;
}


/* 왼쪽 사이드바 */
aside {
  width: 320px;
  padding: 40px 30px;
  flex-shrink: 0;
  line-height: 1.1;
}

.lilist {
  margin-top: 110px;
}

.lilist-bl {
  color: black;
}

.click-cate {
  font-weight: bold;
  color: black;
  text-decoration: underline;
}

aside li:nth-child(n+2) {
  color: #a4a4a4;
}

aside h1 {
  margin-top: 5px;
  margin-bottom: -70px;
  font-weight: bold;
  font-size: 14px;
}

aside ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

aside ul li {
  margin-bottom: 10px;
}

.category-group li:first-child a {
  color: black;
  /* 첫 번째 항목만 검정 */
}


.font-dating {
  font-family: 'Dating Historia', sans-serif;
}



/* ----------오른쪽 메인 영역 ---------------------*/

.main {
  max-width: 1470px;
  padding: 0 0 80px 30px;
  /* 모든 페이지 하단 여백 */
  /* background-color: #000; */
}


.header-section {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 40px 30px;
  box-sizing: border-box;
  margin-bottom: 80px;
}

.header-title {
  width: 520px;
  font-size: 36px;
  line-height: 1.3;
}

.header-subtitle {
  color: #cfcfcf;
  /* font-size: 28px; */
}

.header-desc {
  width: calc(100% - 520px - 30px);
  /* 30px은 중간 여백 */
  margin-left: 20px;
}


.row.text {
  font-size: 20px;
  margin-bottom: 30px;
}




/* --------------  이미지 영역 ----------- */
.block {
  width: 100%;
  max-width: 1470px;
  margin: 0 auto;
  box-sizing: border-box;
  /* background-color: #a4a4a4; */
  margin-bottom: 200px;
}

.block:last-of-type {
  margin-bottom: 20px;
}






/* -------------- row ----------- */
.row {
  width: 100%;
  max-width: 1600px;
  height: auto;
  display: grid;
  padding: 0 0 0 30px;
  /* 좌우 패딩 동일하게 */
  margin: 0 auto;
  /* 중앙 정렬 */
  box-sizing: border-box;
  /* background-color: #000; */
}




/* ---------------row one------------- */
.row.one {
  display: grid;
  width: 1375px;
  gap: 40px;
  box-sizing: border-box;
  justify-content: left;
  padding: 0;
}


.row.one .item {
  aspect-ratio: unset;
  height: auto;
}

.row.one .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}




/* ------------row one aplli ---------- */
.row.one.aplli {
  display: flex;
  /* 중앙 정렬을 위한 flex 사용 */
  justify-content: center;
  /* 가로 중앙 정렬 */
  align-items: center;
  /* 세로 중앙 정렬 (높이 줄 경우) */
  height: auto;
  /* 영역 높이 */
  box-sizing: border-box;
}

.row.one.aplli .item {
  width: 700px;
  /* ✅ 원하는 이미지 너비 */
  height: auto;
  /* 높이는 자동 */
  display: block;
}

.row.one.aplli .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}



/* ---------------row two------------- */
.row.two {
  display: grid;
  grid-template-columns: 667.5px 667.5px;
  gap: 20px;
  box-sizing: border-box;
  justify-content: flex-start;
}


/* row.three 내 .item 이미지 잘림 방지 */
.row.two .item {
  aspect-ratio: unset;
  height: auto;
}

.row.two .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}





/* ---------------row tree------------- */
.row.three {
  display: grid;
  grid-template-columns: 445px 445px 445px;
  gap: 20px;
  box-sizing: border-box;
  justify-content: flex-start;
}


/* row.three 내 .item 이미지 잘림 방지 */
.row.three .item {
  aspect-ratio: unset;
  height: auto;
}

.row.three .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}



/* ---------------row four------------- */
.row.four {
  display: grid;
  grid-template-columns: 328.75px 328.75px 328.75px 328.75px;
  gap: 20px;
  box-sizing: border-box;
  justify-content: start;
}


.row.four .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}




/* ---------------row five------------- */
.row.five {
  display: grid;
  grid-template-columns: 259px 259px 259px 259px 259px;
  gap: 20px;
  box-sizing: border-box;
  justify-content: start;
  margin-top: 20px;
}


.row.five .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ----------------- GBHUSE 상세페이지 ------------------ */

/* custom-three와 custom-two를 한 줄에 배치 */
.outer-box {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  margin-bottom: 200px;
  margin-top: -100px;

  display: flex;
  gap: 80px;
  padding: 0 30px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.outer-box:last-of-type {
  margin-bottom: 0;
}

.custom-three {
  display: flex;
  width: 760px;
  gap: 20px;
}

.custom-two {
  display: flex;
  width: 760px;
  gap: 20px;
}




.row.one.use {
  display: flex;
  /* 중앙 정렬을 위한 flex 사용 */
  justify-content: center;
  /* 가로 중앙 정렬 */
  align-items: center;
  /* 세로 중앙 정렬 (높이 줄 경우) */
  height: auto;
  /* 영역 높이 */
  box-sizing: border-box;
}

.row.one.use .item {
  width: 370px;
  /* ✅ 원하는 이미지 너비 */
  height: auto;
  /* 높이는 자동 */
  display: block;
}

.row.one.use .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}






/* 공통 이미지 스타일 */
.custom-three .item,
.custom-two .item {
  flex: 1;
}

.custom-three .item img,
.custom-two .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}






/* ----------------- 웹 & 디지털 컨텐츠 ------------------ */
/* sns&meta  2줄*/
.row.three.ee {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

.row.three.ee .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 390.8px;
  overflow: hidden;
}

.row.three.ee .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}



.row.four.gift {
  display: grid;
  grid-template-columns: 328.75px 328.75px 328.75px 328.75px;
  gap: 20px;
  box-sizing: border-box;
  justify-content: start;
  margin-top: 20px;
}


.row.four.gift .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* sns&meta  3줄*/
.row.three.e {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

.row.three.e .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 398.2px;
  overflow: hidden;
}

.row.three.e .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}


/* sns&meta  3줄*/
.row.three.egift {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

.row.three.egift .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 235.8px;
  overflow: hidden;
}

.row.three.egift .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}





.row.three.ssse {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

.row.three.ssse .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 449px;
  overflow: hidden;
}

.row.three.ssse .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}



/* 1번째 row.three.ssse (섹션 내 2번째 .row 요소) */
section.block>.row:nth-child(2).three.ssse .item {
  height: 311px;
  /* 원하는 높이 */
}

/* 2번째 row.three.ssse (섹션 내 3번째 .row 요소) */
section.block>.row:nth-child(3).three.ssse .item {
  height: 398.2px;
  /* 원하는 높이 */
}

/* 3번째 row.three.ssse (섹션 내 4번째 .row 요소) */
section.block>.row:nth-child(4).three.ssse .item {
  height: 303.6px;
  /* 원하는 높이 */
}

/* 4번째 row.three.ssse (섹션 내 5번째 .row 요소) */
section.block>.row:nth-child(5).three.ssse .item {
  height: 262.3px;
  /* 원하는 높이 */
}

/* 5번째 row.three.ssse (섹션 내 6번째 .row 요소) */
section.block>.row:nth-child(6).three.ssse .item {
  height: 315.7px;
  /* 원하는 높이 */
}

/* 6번째 row.three.ssse (섹션 내 7번째 .row 요소) */
section.block>.row:nth-child(7).three.ssse .item {
  height: 342.4px;
  /* 원하는 높이 */
}

/* 7번째 row.three.ssse (섹션 내 8번째 .row 요소) */
section.block>.row:nth-child(8).three.ssse .item {
  height: 269.7px;
  /* 원하는 높이 */
}

/* 8번째 row.three.ssse (섹션 내 9번째 .row 요소) */
section.block>.row:nth-child(9).three.ssse .item {
  height: 325.6px;
  /* 원하는 높이 */
}

/* 9번째 row.three.ssse (섹션 내 10번째 .row 요소) */
section.block>.row:nth-child(10).three.ssse .item {
  height: 281px;
  /* 원하는 높이 */
}

/* 10번째 row.three.ssse (섹션 내 11번째 .row 요소) */
section.block>.row:nth-child(11).three.ssse .item {
  height: 302.3px;
  /* 원하는 높이 */
}





/* 앨범 커버 개인작 */
.row.two.ss {
  width: 1375px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* max-width: 100%; */
  /* background-color: aqua; */
}

.row.two.ss .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 550px;
  overflow: hidden;
  padding: 0 30px 0 0px;
}

.row.two.ss .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}



/* ----------------- 데오스틱 ------------------ */
.row.three.deo {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

.row.three.deo .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380.5px;
  overflow: hidden;
}

.row.three.deo .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}



.row.three.deoo {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  padding: 0;
}

.row.three.deoo .item {
  display: flex;
  align-items: center;
  justify-content: left;
  height: 365.3px;
  overflow: hidden;
}

.row.three.deoo .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}


.row.two.deo {
  display: grid;
  grid-template-columns: 677px 677px;
  gap: 20px;
  justify-content: left;
  /* background-color: #000; */
  padding: 0;
  margin-left: 30px;
}

.row.two.deo .item {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.row.two.deo .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}



.row.three.sssdeo {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
}

.row.three.sssdeo .item {
  display: flex;
  align-items: center;
  justify-content: left;
  height: 410px;
  overflow: hidden;
}

.row.three.sssdeo .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}


/* ------------------ 센바미 ---------------- */

/* 공통 row 스타일 */
.row.three.mist,
.row.three.mistt,
.row.three.misttt,
.row.three.misttts {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

/* 공통 item 박스 스타일 */
.row.three.mist .item,
.row.three.mistt .item,
.row.three.misttt .item,
.row.three.misttts .item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 공통 이미지 스타일 */
.row.three.mist .item img,
.row.three.mistt .item img,
.row.three.misttt .item img,
.row.three.misttts .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 각각의 행별 높이만 분리 */
.row.three.mist .item {
  height: 384.5px;
}

.row.three.mistt .item {
  height: 360px;
}

.row.three.misttt .item {
  height: 398.5px;
}

.row.three.misttts .item {
  height: 354.5px;
}




/* ---------------메먼 2022------------- */
.row.one.lookbook {
  display: grid;
  width: 1440px;
  gap: 40px;
  box-sizing: border-box;
  justify-content: left;
  padding: 0;
}


.row.one.lookbook .item,
.row.one.lookbook .item-border {
  margin-left: 30px;
  width: 1375px;
  height: 100%;
}


.row.one.lookbook .item img,
.row.one.lookbook .item-border img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* ----------------- etc / 희화 ------------------ */
.row.one.poster,
.row.one.poster.hee {
  display: grid;
  width: 1440px;
  gap: 40px;
  box-sizing: border-box;
  justify-content: left;
  padding: 0 0 0 30px;
}

.row.one.poster {
  margin-bottom: 20px;
}

.row.one.poster.hee {
  margin-top: 20px;
}

.row.one.poster .item,
.row.one.poster.hee .item {
  width: 1375px;
  height: auto;
}

.row.one.poster .item img,
.row.one.poster.hee .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* --------------- 인덱스 메인 페이지------------- */
.header-section-main {
  width: 1440px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 38px 56px;
  gap: 2rem;
  overflow: hidden;
}

.header-title-main {
  flex: 1 1 0px;
  font-size: 60px;
  line-height: 1.1;
  overflow: hidden;
}

.block.main {
  width: 1390px;
  margin-left: 60px;
  margin-right: auto;
  padding: 0;
  overflow: hidden;
}

.row.one.index {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  justify-content: left;
  padding: 0;
}

.row.one.index .item {
  width: 100%;
  height: auto;
}

.row.one.index .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}







/* ----------- 보더 ------------------- */
/* custom-three와 custom-two 이미지에 보더 적용 */
.custom-three .item img,
.custom-two .item img,
.item.border-item img,
.item-border img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: 1px solid #dadada;
  box-sizing: border-box;
}






/* ----------- 어바웃 페이지 -----------*/
.index-left {
  width: 370px;
  margin-top: 10px;
}

.index-right {
  margin-top: 8px;
  margin-left: 100px;
  font-size: 14px;
  line-height: 1.6;
  /* background-color: antiquewhite; */
}

.me {
  width: 370px;
  height: auto;
}

.me img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.info-text-title {
  font-weight: bold;
}

/* 공통 섹션 마진 */
.about_margin {
  width: 100%;
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
}

.about_margin:last-of-type {
  margin-bottom: -190px;
  /* 또는 0 */
}

/* 내부 box 정렬 */
.box_e {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin: -20px 0 55px 260px;
  gap: 30px;
  justify-content: flex-start;
  align-items: flex-start;
  /* background-color: #a4a4a4; */
}

.workk,
.workkk {
  flex-shrink: 0;
}

.workk {
  width: 240px;
  flex: 0 0 240px;
}

.workkk {
  width: 370px;
  flex: 0 0 370px;
  /* background-color: aqua; */
}

.text_gr {
  color: #a4a4a4;
}





/* ------------------- 더코지 ------------------ */
/* 폰트 컬러 */
.font-col-bl {
  color: #221E1F;
}

.font-col-gray {
  color: #a9a9a9;
}

/* block 구조 및 마진 조절 */
.block.cozy,
.block.cozy-u {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 30px;
  margin-bottom: 100px;
}

section.block.cozy:nth-of-type(2) {
  margin-bottom: 160px;
}

/* 박스 레이아웃 비율 */
.box.one,
.box.three {
  width: 39%;
}

.box.two,
.box.four {
  width: 50%;
}

/* 박스 공통 제목 스타일 */
.box-title {
  font-size: 20px;
  margin-bottom: 23px;
}

/* 폰트 샘플 배치 */
.font-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.font-sample {
  flex: 1;
}

.font-suit {
  font-size: 15px;
  line-height: 1.4em;
}

.font-dating {
  font-family: 'Dating Historia', serif;
  font-weight: 300;
  font-size: 14px;
}

/* 로고 */
.logo.cozy img {
  width: 260px;
  height: auto;
}

/* 컬러 스와치 영역 */
.color-row,
.color-row,
u {
  display: flex;
  gap: 130px;
}

.color-swatch,
.color-swatch-u {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: sans-serif;


}

.color-info {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.color-box-b {
  background-color: #221E1F;
  width: 50px;
  height: 50px;
}

.color-box-g {
  background-color: #007F4A;
  width: 50px;
  height: 50px;
}

/* 외곽 박스 */
.outer-box-cozy {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 200px;
  padding: 0 30px;
  box-sizing: border-box;
}

.outer-box-cozy-ad{
  margin-bottom: 200px;
}

/* 커스텀 이미지 그리드 */
.custom-wrap {
  display: flex;
  gap: 80px;
  justify-content: flex-start;
  align-items: flex-start;
}

.custom-three,
.custom-two {
  display: flex;
  gap: 20px;
  width: 760px;
}

.custom-three .item,
.custom-two .item {
  flex: 1;
}

.custom-three .item img,
.custom-two .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}








/* ------------------- 유니세프 ------------------ */
/* 폰트컬러 */
.font-col-u-one {
  color: #191919;
}

.font-col-u-two {
  color: #727272;
}

.font-col-u-three {
  color: #999999;
}

.box.one-u {
  width: 39%;
}

.box.two-u {
  width: 50%;
}

.color-row-u {
  display: flex;
  gap: 90px;
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: sans-serif;
}

.color-box-u,
.color-box-ugra,
.color-box-u-one,
.color-box-u-two,
.color-box-u-three {
  width: 50px;
  height: 50px;
}

.color-box-u {
  background-color: #00ABEB;
}

.color-box-ugra {
  background: linear-gradient(to bottom, #3DD8FF, #09A6F1);
}

.color-box-u-one {
  background-color: #E8E8E8;
}

.color-box-u-two {
  background-color: #F2F2F2;
}

.color-box-u-three {
  background-color: #FFFFFF;
  border: 1px solid #dadada;
}

.color-info {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.row.six-wrapper {
  display: flex;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  justify-content: flex-start;
  margin-bottom: 200px;
}

.row.six-wrapper .uni {
  display: grid;
  grid-template-columns: repeat(9, 100px);
  row-gap: 0px;
  column-gap: 10px;
  grid-auto-rows: auto;
  justify-content: flex-start;
}

.row.six-wrapper .uni .item {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.row.six-wrapper .uni .item img {
  width: 100px;
  height: auto;
  display: block;
  vertical-align: top;
}

.row.six-wrapper .button {
  width: 420px;
  padding-left: 30px;
  display: flex;
  justify-content: flex-start;
}

.row.six-wrapper .button img {
  width: 145px;
  height: auto;
  display: block;
}

.row.three.uni,
.row.three.unii {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin: 20px 0;
}

.row.three.uni .item,
.row.three.unii .item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.row.three.uni .item img,
.row.three.unii .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.row.three.uni .item {
  height: 84.5px;
}

.row.three.unii .item {
  height: 360px;
}

.row.three.uni.mo {
  display: grid;
  grid-template-columns: 511px 321px 321px;
  gap: 110px;
  box-sizing: border-box;
  justify-content: flex-start;
}

.row.three.uni.mo .item {
  aspect-ratio: unset;
  height: auto;
  display: flex;
  align-items: flex-start;
}

.row.three.uni.mo .item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


.outer-box-cozy-ad-u {
  margin-bottom: 200px;
  margin-top: 160px;
}





/* -------------- 올리브영 ------------ */

.row.three.olive {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  max-width: 100%;
  margin-bottom: 20px;
}

.row.three.olive .item {
  display: flex;
  align-items: center;
  justify-content: left;
  height: 453.4px;
  overflow: hidden;
}

.row.three.olive .item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}




/* ------------------ 라이트박스 -------------*/

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  /* 가로 중앙 */
  align-items: center;
  /* 세로 중앙 */
  overflow-y: auto;
  /* 세로 스크롤 */
  padding-top: 40px;
  /* 닫기 버튼 공간 */
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 70vw;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 80vh;
}

/* tall 이미지일 때만 상단 정렬 */
.lightbox.tall-active {
  align-items: flex-start;
  /* 세로 상단 정렬으로 변경 */
  /* overflow와 padding-top은 그대로 둡니다 */
}

.lightbox.tall-active img {
  max-width: 50vw;
  max-height: none;
}

.close-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

a.lilist-bl,
a.lilist-bl:visited,
a.lilist-bl:hover,
a.lilist-bl:active {
  color: black !important;
  text-decoration: none;
}



#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: none;
  /* 초기에는 숨김 */
  cursor: pointer;
  z-index: 999;

  /* 중앙 정렬 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}




#scrollTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-3px);
}



/* 모바일 전용 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  width: 100%;
  padding: 16px;
  background: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
}


#mobileMenuToggle {
  display: none;
}









@media (max-width: 768px) {


  body {
    flex-direction: column;
    font-size: 13px;
    line-height: 1.7em;
  }


  aside {
    /* display: block !important; */
    display: none !important;
    width: 100%;
    padding: 20px;
    border-bottom: none;
  }

  aside.menu-visible {
    display: block !important;
    width: 100%;
    padding: 20px;
    border-bottom: none;
  }


  /* 햄버거 버튼 모바일에서만 표시 */
  #mobileMenuToggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 38px;
    height: 35px;
    cursor: pointer;
    border: none;
    background: none;
    padding-top: 20px;
    padding-left: 20px;
  }

  #mobileMenuToggle span {
    display: block;
    width: 100%;
    height: 6px !important;
    background-color: #000;
    margin-bottom: 6px;
  }

  #mobileMenuToggle span:last-child {
    margin-bottom: 0;
  }

  /* 피씨에서 메뉴 숨기기 */
  .mobile-menu-btn {
    display: block;
  }


  /* aside 인덱스 넥스트 숨기기 */
  .mobile-hide {
    display: none !important;
  }


  /* aside 내부 정렬 및 텍스트 크기 조정 */
  aside h1 {
    display: flex;
    justify-content: space-between;
    font-size: 12.8px;
    margin-bottom: -80px;
    margin-top: 20px;
  }



  .row.text {
    font-size: 15px;
  }

  /* 메인 컨텐츠 여백 조정 */

  .main {
    margin: 0;
    padding: 20px;
    max-width: 100%;
  }

  /* About과 Photography 사이 간격 줄이기 */
  aside ul.lilist:last-of-type {
    margin-bottom: 10px;
  }

  aside ul.category-group:first-of-type {
    margin-top: -70px;
  }


  .h1 {
    margin-bottom: 100px;

  }

  /* 헤더 섹션 */
  .header-section {
    flex-direction: column;
    padding: 0;
    gap: 20px;
    margin-top: 18px;
  }

  .header-title {
    width: 100%;
    font-size: 21px;
    margin-bottom: 20px;
    line-height: 1.4em;
  }

  .header-desc {
    width: 100%;
    margin-left: 0;
  }

  .header-title-main {
    font-size: 36px;
  }

  .me {
    width: 100%;
  }

  .main {
    margin: 0;
    padding: 20px;
    max-width: 100%;
  }


  .block {
    padding: 0 0px;
    margin-bottom: 150px;
  }


  .block:last-of-type {
    margin-bottom: 50px;
  }

  .outer-box:last-of-type {
    margin-bottom: 50px;
  }

  /* 공통 row: flex → column 정렬 */
  .row,
  .row.one,
  .row.two,
  .row.three,
  .row.four,
  .row.four.gift,
  .row.five,
  .row.two.ss,
  .row.three.ee,
  .row.three.e,
  .row.three.ssse {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 0 0px;
  }

  /* item 및 이미지 크기 */
  .row .item,
  .row .item-border,
  .row .item-border img,
  .row .item img,
  .item-border img {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    display: block;
  }





  /* -------------- 비주얼 어플리케이션 -------------- */
  .row.one.aplli {
    display: flex;
    /* 중앙 정렬을 위한 flex 사용 */
    width: 100%;
    height: auto;
  }

  .row.one.aplli .item {
    width: 100%;
    /* ✅ 원하는 이미지 너비 */
  }

  .row.one.aplli .item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }



  /* -------------- 지비에이치 룩북-------------- */
  .row.one {
    display: flex;
    /* 중앙 정렬을 위한 flex 사용 */
    width: 100%;
    height: auto;
  }

  .row.one .item {
    width: 100%;
    /* ✅ 원하는 이미지 너비 */
  }

  .row.one .item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }





  /* -------------- 메먼 룩북 ------------- */

  .row.one.lookbook {
    display: flex;
    width: 100%;
    height: auto;
    margin-left: -30px;
    gap: 20px;
  }

  .row.one.lookbook .item {
    width: 100%;
    /* ✅ 원하는 이미지 너비 */
  }

  .row.one.lookbook .item img {
    width: 100%;
    display: block
  }

  .row.one.lookbook .item-border {
    width: 100%;
  }

  .row.one.lookbook .item-border img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }




  /* ----------- 어바웃 페이지 -----------*/
  .index-left {
    width: 100%;
    margin-top: 10px;
  }

  .me {
    width: 100%;
    height: auto;
  }

  .me img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .index-right {
    display: block;
    width: 100%;
    margin: 20px 0 0 0;
    font-size: 13px;
    line-height: 1.7em;
    margin-top: 30px;
  }

  .info-text-title {
    font-weight: bold;
  }

  /* 공통 섹션 마진 */
  .about_margin {
    display: block;
    margin-bottom: 90px;
  }


  .box_e {
    display: block;
    margin-top: 40px;
    margin-left: 0;
    margin-bottom: -5px;
  }


  .workk {
    width: 100%;
    flex: 0 0 290px;
  }

  .workkk {
    width: 100%;
    margin-top: 3px;
  }

  .workk:first-of-type {
    margin-top: 0;
  }


  /* Profile 소개 */
  .profile {
    margin-left: 45px;
  }

  .about_margin:last-of-type {
    margin-bottom: -70px;
    /* 또는 0 */
  }




  /* --------------ect  포스터 ------------- */
  .row.one.poster,
  .row.one.poster.hee {
    display: flex;
    /* 중앙 정렬을 위한 flex 사용 */
    width: 100%;
    height: auto;
    padding: 0;
    gap: 20px;
  }

  .row.one.poster .item,
  .row.one.poster.hee .item {
    width: 100%;
    /* ✅ 원하는 이미지 너비 */
  }

  .row.one.poster .item img,
  .row.one.poster.hee .item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block
  }









  /* --------------gbhuse -------------- */
  .outer-box,
  .outer-box-cozy {
    width: 100%;
    max-width: 390px;
    display: flex !important;
    flex-direction: column !important;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 200px;
  }

  .custom-three,
  .custom-two {
    width: 100% !important;
    gap: 10px;
  }



  .custom-three .item img,
  .custom-two .item img,
  .item-border img,
  .item.border-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border: 0.8px solid #cfcfcf;
    box-sizing: border-box;
  }


  .row.one.use {
    width: 100%;
    max-width: 390px;
    padding: 0;
  }

  .row.one.use .item {
    width: 100%;
  }



  .row.one.aplli,
  .row.one.poster {
    display: flex;
    /* 중앙 정렬을 위한 flex 사용 */
    width: 100%;
    height: auto;
  }

  .row.one.aplli .item,
  .row.one.poster .item {
    width: 100%;
    /* ✅ 원하는 이미지 너비 */
  }

  .row.one.aplli .item img,
  .row.one.poster.item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }





  /* ----------------- etc --------------- */
  .row.two.ss {
    display: flex;
    /* 중앙 정렬을 위한 flex 사용 */
    width: 100%;
    height: auto;
  }

  .row.two.ss .item {
    padding: 0;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* --------------ect  포스터 ------------- */
  .row.one.poster {
    display: flex;
    /* 중앙 정렬을 위한 flex 사용 */
    width: 100%;
    height: auto;
    padding: 0;
    gap: 20px;
  }

  .row.one.poster .item {
    width: 100%;
    /* ✅ 원하는 이미지 너비 */
  }

  .row.one.poster .item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block
  }



  /* ------------------- 데오스틱 -------------- */
  .row.two.deo {
    display: flex;
    width: 390px;
    height: auto;
    /* background-color: #000; */
    margin: 0;
    gap: 0;
  }




  /* --------------- 인덱스 메인 페이지------------- */
  .header-section-main {
    width: 100%;
    max-width: 390px;
    padding: 20px 20px;
  }

  .header-title-main {
    flex: 1 1 0px;
    font-size: 33px;
    line-height: 1.;
    overflow: hidden;
    margin-top: 30px;
  }

  .block.main {
    width: 100%;
    max-width: 390px;
    /* padding: 20px; */
    margin: 0 auto;
    /* 전체 중앙 정렬 */
  }

  .row.one.index {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .row.one.index .item {
    max-width: 100%;
  }


  .row.one.index .ite .img {
    width: 100%;
    max-width: 100%;
  }



  /* ------------------ 더 코지 -------------- */


  .cozy .box.four .font-row .font-sample + .font-sample {
  margin-top: 20px;
}

.block:nth-of-type(3) {
  margin-top: -20px; /* 원하는 마진 값 */
}



  .block.cozy,
  .block.cozy-u {
    width: 390px;
    display: block;
    /* 두 박스 사이 간격 */
    padding: 0;
    /* background-color: #a4a4a4; */
    margin-bottom: 70px;
  }


  .box.two-u:nth-of-type(2) {
    /* 여기에 원하는 스타일 작성 */
    margin-bottom: -70px;
  }

  .box.one {
    width: 100%;
    margin-bottom: 50px;
  }

  .box.two {
    width: 100%;
    margin-bottom: 0px;
  }

  .box.three {
    width: 100%;
    margin-bottom: 70px;
  }

  .box.three .box-title {
    margin-bottom: 0px;
  }

  .box.four {
    width: 100%;
    margin-bottom: -30px;
  }

  .box-title{
    font-size: 16px;
  }
  


  .font-row {
    display: block;
    width: 390px;
  }


  .logo.cozy img {
    width: 180px;
  }


  .color-row {
    width: 390px;
    gap: 75px;
  }


  .color-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .color-box-b,
  .color-box-g {
    width: 40px;
    height: 40px;
  }



  .custom-wrap {
    display: flex;
    flex-direction: column;
    /* ✅ 세로 정렬 */
    gap: 80px;
    /* 위아래 간격 */
  }

  .custom-two,
  .custom-three {
    width: 100% !important;
    /* ✅ 너비 꽉 채우기 */
    flex-direction: row;
    gap: 10px;
  }

  .custom-two .item,
  .custom-three .item {
    flex: 1;
  }

  .outer-box-cozy {
    margin-bottom: 50px;
  }

  .outer-box-cozy-ad {
    margin-top: 150px;
    margin-bottom: 150px;
  }



.cozy-u .box.four .font-row .font-sample + .font-sample {
  margin-top: 20px;
}




  /* ------------------유니세프 -------------- */



  .color-row-u {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 한 행에 2개씩 */
    gap: 20px 50px;
    /* 행과 열 간격 */
    width: 100%;
  }

  .color-swatch-u {
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
    flex-grow: 0;
    gap: 10px;
  }


  .color-info div {
    white-space: nowrap;
    /* 줄바꿈 방지 */
    overflow-wrap: normal;
    /* 단어 내 줄바꿈 금지 */
    word-break: keep-all;
    /* 전체 단어 유지 */
  }


  .color-row-u:last-child {
    margin-bottom: 70px;
  }



  .color-box-ugra {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3DD8FF, #09A6F1);
    flex-shrink: 0;
  }

  .color-box-u {
    width: 40px;
    height: 40px;
    background-color: #00ABEB;
    /* 단색 */
    flex-shrink: 0;
  }

  .color-box-u-one,
  .color-box-u-two,
  .color-box-u-three {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .outer-box-cozy-ad-u {
    width: 100%;
    margin-top: 150px;
    margin-bottom: 150px;
  }


  .row.six-wrapper .uni {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    /* 한 줄에 3개 */
    gap: 5px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .row.six-wrapper .uni .item {
    width: 100% !important;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .row.six-wrapper .uni .item img {
    width: 108px !important;
    height: auto;
    display: block;
  }

  .row.six.button {
    display: flex;
    justify-content: center;
    /* 가로 가운데 정렬 */
    align-items: center;
    /* 세로 가운데 정렬 (필요한 경우) */
    width: 100%;
    padding: 0;
    margin-top: 40px;
    margin-bottom: -50px;
  }

  .row.six.button img {
    width: 150px;

  }












  #lightbox {
    display: none !important;
  }



  #scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 38px;
    height: 38px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    display: none;
    /* 초기에는 숨김 */
    cursor: pointer;
    z-index: 999;

    /* 중앙 정렬 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }




  #scrollTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
  }



  .close-btn {
    top: 140px;
    /* 상단에서 간격 */
    right: 20px;
    /* 우측에서 간격 */
    font-size: 26px;
    /* 필요시 크기도 조절 가능 */
  }

}