/* =================================== */
/* 1. Global & Base Styles             */
/* =================================== */
:root {
  --page-w: 100%;
  --pad: 40px;
  --line: #e6e6e6;
  --text: #0e0e0e;
  --muted: #6e6e6e;
  --header-h: 76px;
  --pad-mobile: 24px; 
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =================================== */
/* 2. Layout                           */
/* =================================== */
.page {
  max-width: var(--page-w);
  margin: 0 auto;
  background: #0e0e0e;
}



/* =================================== */
/* 4. Intro Overlay                    */
/* =================================== */
.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10001; 
  pointer-events: none;
  background: #2a2a2a;
  color: #f9f9f9;
  overflow: hidden;
}

.intro-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(24px, 6vw, 80px);
  text-align: center;
}


/* =================================== */
/* 5. Main Content (Hero, About, Slider) */
/* =================================== */
.hero {
  height: 700px;
  width: 100%;
  overflow: hidden;
}
.hero-media {
  width: 100%;
  height: 100%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #0e0e0e;
  color: #fff;
}

.about-left .title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
}

.about-right .smallcaps {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase; 
}

.about-right .body-kr {
  font-size: 16px;
  line-height: 1.5;
  color: #b7b7b7;
}

.slider {
  overflow: hidden; 
}

.track {
  display: flex;
  gap: 16px;
  padding: 0 var(--pad);
  will-change: transform;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad);
  border-top: 1px solid #2a2a2a;
  color: #fff;
}

.slider-head .left {
  font-size: 46px;
  font-weight: 600;
}

.slide {
  flex: 0 0 420px;
  cursor: pointer;
}

.slide .card {
  margin: 0;
  display: block;
}

.slide .card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}


.slide .card .cap {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
}







/* =================================== */
/* 7. Footer                           */
/* =================================== */
.footer {
  padding: 34px var(--pad) 40px;
  color: #fff;
  margin-top: 50px;
  border-top: 1px solid #2a2a2a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h4 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .6px;
  color: #fff;
  font-weight: 800;
}

.footer-grid h4 a img {
  width: 26px;
  vertical-align: middle;
}

.footer-grid a {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a0;
  font-weight: 400;
}

/* =================================== */
/* 8. Responsive Design                */
/* =================================== */

@media (max-width: 1200px) {
  .about-left .title {
    font-size: 44px;
  }
}


@media (max-width: 1177px) {
  .gallery-grid .card img {
    width: 100% !important;
    min-width: 350px !important;
    height: 600px !important;
    object-fit: cover;
    display: block;
  }
}


@media (max-width: 960px) {
  :root {
    --pad: 30px;
  }
}

@media (max-width: 800px) {
}

@media (max-width: 640px) {
  :root {
    --pad: var(--pad-mobile); 
  }

}

@media (max-width: 500px) {
  :root {
      --pad: 16px; 
  }
  .gallery-content{
    padding: calc(var(--header-h) + 20px) var(--pad) 60px !important; 
  }
  .gallery-title{
    margin: 0 0 28px 0 !important;
  }

}


@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; 
  }
}
@media (max-width: 420px) {
  .gallery-grid .card img {
    width: 100% !important;
    height: 480px !important;
    object-fit: cover;
    display: block;
  }
  
}



/* =================================== */
/* 7.5. Gallery Grid Styles (Subpage)  */
/* =================================== */
.gallery-content {
  max-width: var(--page-w);
  margin: 0 auto;
  background: #0e0e0e;
  color: #fff;
  padding: calc(var(--header-h) + 40px) var(--pad) 60px; 
  min-height: 80vh; 
}

.gallery-title {
  font-size: 38px;
  font-weight: 600;
  margin: 0 0 50px 0;
  text-align: left;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px 24px;
}

.grid-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.gallery-grid .card {
  margin: 0;
  display: block;
}

.gallery-grid .card img {
  width: 100%;
  height: 500px; 
  aspect-ratio: 420 / 400; 
  object-fit: cover;
  display: block;
}

.gallery-grid .card .sep {
  background: #0e0e0e;
  margin: 14px 0;
}

.gallery-grid .card .cap {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .02em;
  color: #fff;
}

/* =================================== */
/* 8. Responsive Design                */
/* =================================== */

@media (max-width: 1200px) {
.about-left .title {
  font-size: 44px;
}
}

@media (max-width: 960px) {
:root {
  --pad: 30px;
}
}

/* 🚨🚨🚨 800px 이하 모바일 비율 최적화 */
@media (max-width: 800px) {

}

/* 모바일 (Mobile) 최적화 */
@media (max-width: 640px) {
:root {
  --pad: var(--pad-mobile); /* 24px */
}
}

/* 🚨🚨🚨 500px 이하 소형 모바일 최적화 (모달 시트 높이 유연성 부여) */
@media (max-width: 500px) {
/* 모바일 전체 패딩 축소 */
:root {
    --pad: 16px; 
}

}


/* 소형 모바일 (Small Mobile) 및 Footer 최적화 */
@media (max-width: 768px) {
.footer-grid {
  grid-template-columns: 1fr; 
}
}