* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #000;
  letter-spacing: -0.03em;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.f-sub {
  font-size: 1.2rem;
}
/* ==== - ==== */

.vision {
  outline: 1px dashed #4fc3f7;
  outline-offset: -1px;
}

.none {
  display: none;
}

/* ==== - ==== */

img {
  width: 100%;
  height: 100%;
  object-fit: fit;
  display: block;
}


.logo {
  display: block;
  height: 42px;
  width: auto;
}

.grid {
  display: grid;
}

.g-1fr {
  grid-template-columns: 1fr;
}

.g-2fr {
  grid-template-columns: 1fr 1fr;
}

.g-3fr {
  grid-template-columns: 1fr 1fr 1fr;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.f-col {
  flex-direction: column;
}

.f-row {
  flex-direction: row;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}



a {
  color: #e67e22;
  text-decoration: underline;
  text-decoration-color: rgba(230, 126, 34, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: blue;
}

.m-w-800 {
  max-width: 800px;
}

.m-w-600 {
  max-width: 600px;
}

.m-w-400 {
  max-width: 400px;
}

.m-w-200 {
  max-width: 200px;
}



/* ==== grid-img ==== */

.no-overlay-thumb {
  overflow: hidden;
}

.thumb {
  position: relative; /* 텍스트 배치를 위한 기준 */
  overflow: hidden;
  cursor: pointer;
  background-color: #000; /* 이미지 확대 시 배경색 노출 방지 */
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.thumb:hover img {
  transform: scale(1.1);
  opacity: 0.2; 
}

.thumb .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  width: 100%;
  padding: 0 10px;
  color: #e67e22;
}

.thumb:hover .caption {
  opacity: 1;
}

.no-overlay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==== img-overlay ==== */

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* 조금 더 어둡게 */
  z-index: 9999;
  flex-direction: column; /* 세로 정렬: 이미지 위, 텍스트 아래 */
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}

#overlay.active {
  display: flex;
}

#overlay img {
  width: 100%;
  height: auto;

  object-fit: contain;
}

#overlay-caption {
  color: #e67e22; /* 요청하신 주황색 계열 유지 */
  margin-top: 20px;
  padding-bottom: 2rem;
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.4;
}

#close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}
