@charset "UTF-8";
/* // <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 900 */

/* 바디 */
body {
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Edge */
  font-family: "Montserrat", "YourKoreanFont", sans-serif;
  margin: 0;
}

/* a 태그 색상 지정 */
a {
  color: #000000;
}
a:visited {
  color: #000000;
}
a:hover {
  opacity: 80%;
}
a:active {
  color: #000000;
}

/* 헤더 내 링크 색상 */
.header a {
  color: #e3c1b0;
  font-weight: 900;
  text-decoration-line: underline;
  cursor: pointer;
}

/* 헤더 여백 */
.header {
  margin: 50px;
}

h1 {
  color: #e3c1b0;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  line-height: 35px; /* 89.286% */
}

h2 {
  margin-top: 40px;
  opacity: 0.75;
  color: #e3c1b0;
  font-family: "Montserrat";
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 27px; /* 192.857% */
}

/* 하단 메뉴 */
#gnb {
  display: flex;
  justify-content: space-between;
}

/* 네비게이션 메뉴 */
#nav-1 {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999993;
}

#nav-1 li {
  margin: 0px;
  a {
    position: relative;
    padding: 0.6em 1em;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 14px;
    border: none;
    outline: none;
    color: #ffffff;
    opacity: 60%; /* 기본 상태 opacity */
    display: inline-block;
    text-decoration: none;
    z-index: 3;
  }
}
.slide1,
.slide2 {
  position: absolute;
  display: inline-block;
  height: 2.25em;
  border-radius: 10em;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1.05);
}

.slide1 {
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.slide2 {
  opacity: 70%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.squeeze {
  transform: scale(0.9);
}

/* 메인 */
.main_line {
  height: 1px;
  opacity: 0.1;
  background: #fff;
  margin-left: 50px;
  margin-right: 50px;
}

.project {
  width: 100%;
  height: 100px;
  cursor: pointer;
  list-style-type: none;
  display: flex;
  align-items: center;
}

/* project_sub 기본 스타일 */
.project_sub {
  margin-left: 20px;
}

/* 세 번째 project_sub에만 박스 스타일 적용 */
.project_sub:nth-child(3) {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
}

/* 마우스 오버 시 박스 스타일 변경 */
.project li:hover .project_sub:nth-child(3) {
  background: var(--hover-color);
  border-color: var(--hover-color);
  color: #000; /* 폰트 색상을 검정색으로 변경 */
}

/* 마우스 오버 시 텍스트 색상 유지 */
.project li:hover .project_sub:nth-child(3) img {
  opacity: 1; /* 이미지 투명도 유지 */
}

.project li {
  padding: 0 10px;
  align-items: center;
  color: #9d9d9d;
  transition: color 0.3s ease-in-out;
}

/* 마우스 오버 시 색상 변경 */
.project li:hover {
  color: var(--hover-color); /* 지정된 색상으로 변경 */
}

.project li:hover .project_number,
.project li:hover .project_title,
.project li:hover .project_text span,
.project li:hover .project_title_blur {
  color: var(--hover-color);
  transition: color 0.3s ease-in-out; /* 동일한 속도로 애니메이션 적용 */
}

/* 상단 메인 텍스트 변경 */
#main-title,
#main-title a,
#clock2,
.header h2 {
  transition: color 0.3s ease-in-out;
}

.project_number {
  position: relative;
  top: -2px; /* 위로 2px 이동 */
  color: #9d9d9d;
  margin-right: 30px;
  display: inline-block;
  align-items: center;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 25px; /* 156.25% */
  text-transform: uppercase;
}

.project_title {
  width: 680px;
  display: inline-block;
  align-items: center;
  color: #9d9d9d;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 25px; /* 104.167% */
  text-transform: uppercase;
}

.project_title_blur {
  color: #9d9d9d;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 25px; /* 104.167% */
  text-transform: uppercase;
  display: inline-block;
  align-items: center;
  width: 680px;
  filter: blur(10px);
  -webkit-filter: blur(10px);
}

.project_text {
  color: #9d9d9d;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 25px; /* 156.25% */
  text-transform: uppercase;
  display: inline-block;
  align-items: center;
  position: absolute;
  right: 50px;
}

/* 어바웃 메뉴 */
.about_menu {
  width: 440px;
  height: calc(100% - 35px);
  top: 0px;
  right: -440px;
  z-index: 999994;
  position: fixed;
  background: rgba(227, 193, 176);
  float: right;
  -webkit-transition: right 1s;
  -moz-transition: right 1s;
  -ms-transition: right 1s;
  -o-transition: right 1s;
  transition: right 1s;
  overflow-y: auto;
  overflow-x: hidden;
}

.about_menu.active {
  right: 0px;
}

.about_title1 {
  margin-left: 40px;
  margin-top: 50px;
}

.about_title2 {
  font-size: 20px;
  font-family: Montserrat;
  font-weight: 800;
  margin-top: 50px;
}

.about_menu_icon {
  width: 32px;
  z-index: 1;
  float: right;
  right: 0px;
  margin-top: -5px;
  margin-right: 40px;
  cursor: pointer;
}

.about_title {
  font-size: 12px;
  font-weight: 200;
  font-family: Montserrat;
  opacity: 50%;
  margin-top: 35px;
  margin-left: 40px;
}

.about_group {
  margin-left: 50px;
}

.about_date {
  font-size: 14px;
  font-weight: 500;
  font-family: Montserrat;
}

.about_text {
  font-size: 14px;
  font-weight: 300;
  font-family: Montserrat;
  margin-top: -8px;
  color: #000000;
  line-height: 1.6;
}

/* 어바웃 시간초 */
#clock {
  font-size: 14px;
  font-weight: 300;
  font-family: Montserrat;
  position: relative;
  margin-top: 40px;
  margin-bottom: 10px;
  text-align: center;
}

/* 메인 년도 */
#clock2 {
  color: #e3c1b0;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  line-height: 35px; /* 89.286% */
}

/* ========================= */
/* 팝업 배경 */
/* ========================= */
#popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999998;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.5s, opacity 0.5s ease-in-out;
}

#popup-container.active {
  visibility: visible;
  opacity: 1;
  z-index: 999998;
}

/* 팝업 박스 */
.popup {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(15px);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.054);
  text-align: center;
  width: 340px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

/* 팝업 제목 */
.popup-header h2 {
  font-size: 18px;
  color: #ffffff77;
  margin-top: 10px;
  margin-bottom: 30px;
  font-weight: 300;
  text-align: center;
}

/* 비밀번호 입력 필드 */
.popup-body input {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.422);
  border: 1px solid rgba(255, 255, 255, 0.057);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  outline: none;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.popup-body input::placeholder {
  color: rgba(255, 255, 255, 0.177);
  font-family: "Montserrat", sans-serif;
}

/* 확인 버튼 */
.popup-body button {
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.137);
  border: 1px solid rgba(255, 255, 255, 0.269);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.456);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s;
}

.popup-body button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* 팝업 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 어바웃 년도 */
#clock3 {
  font-size: 20px;
  font-family: Montserrat;
  font-weight: 300;
}

.about_project {
  width: 360px;
  height: 40px;
  background-color: #d7b7a7;
  border-radius: 80px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.about_project_detail a {
  font-size: 20px;
  font-weight: 300;
  color: #000000;
  font-family: Montserrat;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

/* 하단 푸터 고정 박스 */
.footer {
  width: 100%;
  height: 35px;
  flex-shrink: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.9);
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 200;
}

.footer-right {
  display: inline-block;
  margin-left: 50px;
}

.footer-left {
  float: right;
  margin-right: 50px;
}

.footer p {
  color: #fff;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.5;
  vertical-align: middle;
  line-height: 0.4;
}

.footer li {
  list-style-type: none;
  display: inline-block;
  padding: 10px;
  line-height: 0.8;
}

.footer a {
  color: #898989;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  text-decoration-line: underline;
  opacity: 0.5;
}

/* 객체 캔버스 */
#matterCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* UI 뒤로 배치 */
  pointer-events: none; /* 클릭 방지 */
}

/* 모달 기본 스타일 */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 999995;

  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  /* will-change: transform; */
  overflow-x: hidden;
}

/* 모달 활성화 시 */
/* .project-modal.active {
  transform: translateY(0);
} */
.project-modal.disable {
  transform: translateY(100%);
}

/* 모달 헤더 */
.modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 50px;
  z-index: 99999; /* 모달의 내부 요소들도 동일한 z-index */
}

/* 헤더 컨텐츠 래퍼 */
.header-content {
  position: relative;
  width: 100%;
  display: flex;
  gap: 10%;
}

.project-title {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--project-color);
  margin-bottom: 5px;
  line-height: 1;
}

.project-subtitle {
  font-family: "Ydestreet", sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--project-color);
  margin-bottom: 30px;
}

.project-type {
  color: var(--project-color);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

/* 헤더 오른쪽 영역 */
.header-righ .project-part {
  position: absolute;
  top: 0;
  left: 10%; /* 왼쪽 영역(60%)에서 5% 떨어진 위치 */
  width: 50%;
  text-align: right;
}

.project-part {
  margin-top: 30px;
  font-weight: 600;
  color: var(--project-color);
  line-height: 0.8;
  font-size: 14px;
}

.project-date,
.project-client {
  color: var(--project-color);
  font-size: 14px;
  line-height: 0.8;
  text-align: left;
}

.project-meta {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--project-color);
}

.project-meta span {
  color: var(--project-color);
}

/* 닫기 버튼 */
.modal-close {
  position: absolute;
  top: 55px;
  right: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.modal-close svg {
  fill: var(--project-color);
  width: 30px;
  height: 30px;
}

/* 모달 내용 */
.project-modal .modal-content {
  width: 100%; /* 화면 폭의 더 넓은 비율 사용 */
  max-width: 100%; /* 모달의 최대 너비 */
  min-width: 0;
  height: auto;
  overflow-y: auto; /* 내용이 많으면 세로 스크롤바 표시 */
  overflow-x: hidden; /* 가로 스크롤바 방지 및 내용 넘침 숨김 */
}

/* 프로젝트 이미지 스타일 */
.project-images {
  width: 100%;
  padding: 0; /* 패딩 제거 */
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* 헤더보다 아래에 표시 */
  margin-top: 0px; /* 헤더와 겹치도록 위로 올림 */
}

.project-images img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transform: translateZ(0); /* GPU 가속 */
  backface-visibility: hidden; /* 렌더링 최적화 */
  margin-bottom: -1; /* 이미지 간 간격 제거 */
}

/* 폰트 선언 */
@font-face {
  font-family: "Ydestreet";
  src: url("fonts/YdestreetL.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  /* unicode-range 제거하여 모든 문자에 적용 */
}

@font-face {
  font-family: "Ydestreet";
  src: url("fonts/YdestreetB.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  /* unicode-range 제거하여 모든 문자에 적용 */
}

/* 모달 컨텐츠 스크롤바 */
.modal-content::-webkit-scrollbar {
  width: 6px; /* 스크롤바 너비 */
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--project-color);
  opacity: 0.3;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  opacity: 0.5;
}

/* Firefox 스크롤바 */
.project-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--project-color) transparent;
  z-index: 999998;
}

/* 모달이 활성화될 때 네비게이션 숨기기 또는 뒤로 보내기 */
/* Index 프로젝트 모달(`.project-modal`)이 열리고 body에 `modal-open` 클래스가 붙을 때 적용 */
body.modal-open #nav-1 {
  /* z-index 값을 매우 낮게 설정하여 모달 뒤로 완전히 가려지도록 함 */
  z-index: -1; /* 음수 z-index 사용 */
  /* 필요하다면 display: none; 또는 visibility: hidden; 으로 아예 숨길 수도 있습니다. */
  /* display: none; */
}

/* 탑 버튼 스타일 */
.top-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--project-color);
  opacity: 0.7;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  transition: opacity 0.3s, transform 0.3s;
  /* 처음에는 숨김 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* 스크롤 시 보이기 */
.top-button.visible {
  opacity: 0.7;
  visibility: visible;
  transform: translateY(0);
}

/* 호버 효과 */
.top-button:hover {
  opacity: 1;
}

/* 화살표 아이콘 색상 */
.top-button svg {
  color: white;
}

/* 로딩 컨테이너 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: var(--project-color);
}

/* 로딩 스피너 */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(var(--project-color), 0.3);
  border-radius: 50%;
  border-top-color: var(--project-color);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 로딩 텍스트 */
.loading-text {
  font-size: 16px;
  font-family: var(--font-montserrat);
}

/* 페이드 효과 */
.modal-body {
  transition: opacity 0.3s ease;
}

/* 에러 메시지 */
.error-message {
  color: #ff4444;
  text-align: center;
  padding: 20px;
  font-family: var(--font-montserrat);
}

/* 활성화 상태일 때 opacity 수정 */
#nav-1 li a.active,
.menu_li_about a.active {
  opacity: 100%; /* 활성화 상태일 때 완전 불투명 */
}

/* 기본 메뉴 스타일 */
#nav-1 li a {
  position: relative;
  padding: 0.6em 1em;
  font-family: Montserrat;
  font-weight: 700;
  font-size: 14px;
  border: none;
  outline: none;
  color: #ffffff;
  opacity: 60%;
  display: inline-block;
  text-decoration: none;
  z-index: 3;
}

/* 활성화 상태에서 마우스 오버 시에도 스타일 유지 */
#nav-1 li a.active:hover {
  opacity: 100%; /* 활성화 상태에서 마우스 오버 시에도 완전 불투명 유지 */
}

/* Vault 페이지 비밀번호 팝업 스타일 */
#vault-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 100);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.5s, opacity 0.5s ease-in-out;
}

#vault-popup-container.active {
  visibility: visible;
  opacity: 1;
}

.vault-password-popup {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(15px);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.054);
  text-align: center;
  width: 340px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

.vault-password-popup h3 {
  font-size: 18px;
  color: #ffffff77;
  margin-top: 10px;
  margin-bottom: 30px;
  font-weight: 300;
  text-align: center;
}

.vault-password-popup input {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.422);
  border: 1px solid rgba(255, 255, 255, 0.057);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  outline: none;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.vault-password-popup input::placeholder {
  color: rgba(255, 255, 255, 0.177);
  font-family: "Montserrat", sans-serif;
}

.vault-password-popup button {
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.137);
  border: 1px solid rgba(255, 255, 255, 0.269);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.456);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s;
}

.vault-password-popup button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* 경로 표시 스타일 */
.breadcrumb {
  padding: 14px 50px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* 그리드 레이아웃 컨테이너 */
.study-grid {
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/* 세로 구분선 */
.study-grid::before,
.study-grid::after {
  display: none;
}

/* 스터디 아이템 행 */
/* .study-row { */
/* display: grid; */
/* grid-template-columns: repeat(3, 1fr); */
/* gap: 0 100px; */
/* position: relative; */
/* } */

/* 가로 구분선 */
.horizontal-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.horizontal-line1 {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 80px;
}

/* 스터디 아이템 기본 상태 */
.study-item {
  aspect-ratio: 540/350;
  overflow: hidden;
  position: relative;
  z-index: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.study-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 마우스 오버 효과 */
.study-item:hover {
  transform: scale(1.06);
  z-index: 1;
}

/* 팝업 스타일 */
.study-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.study-popup.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.95);
}

.study-popup-content {
  width: 972px;
  height: 630px;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.study-popup.active .study-popup-content {
  transform: scale(1);
  opacity: 1;
}

.study-popup-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 닫기 버튼 */
.study-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
}

.study-popup-close::before,
.study-popup-close::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 30px;
  background: white;
  top: 0;
  left: 50%;
}

.study-popup-close::before {
  transform: rotate(45deg);
}

.study-popup-close::after {
  transform: rotate(-45deg);
}

/* 비밀번호 팝업 관련 */
#vault-popup-container,
#popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* lock.svg 이미지 위치 조정 */
img[src="img/lock.svg"] {
  position: relative;
  top: 4px; /* 아래로 1px 이동 */
}

/* ABOUT 메뉴 스타일 */
.menu_li_about {
  position: relative;
  z-index: 3;
}

.menu_li_about a {
  position: relative;
  padding: 0.6em 1em;
  font-family: Montserrat;
  font-weight: 700;
  font-size: 14px;
  border: none;
  outline: none;
  color: #ffffff;
  opacity: 60%;
  display: inline-block;
  text-decoration: none;
}

/* ABOUT 메뉴 활성화 상태 */
.menu_li_about a.active {
  opacity: 100%;
}

/* ABOUT 메뉴 호버 상태 */
.menu_li_about a:hover {
  opacity: 100%;
}

/* ABOUT 메뉴 활성화 상태에서 호버 */
.menu_li_about a.active:hover {
  opacity: 100%;
}

/* vault기준 */
/* 기본 레이아웃 (1024px 이상): 고정 3열 */
.study-grid-container {
  display: grid;
  /* 1fr 크기의 3개 열로 고정 */
  grid-template-columns: repeat(3, 1fr);
  gap: 50px; /* 항목 사이 간격 */
  padding: 0 50px; /* 컨테이너 양쪽 여백 */
  max-width: 1920px; /* 컨테이너 최대 너비 (원하는 값 유지) */
  margin: 50px auto; /* 위아래 여백 및 가운데 정렬 */
  box-sizing: border-box;
}

.study-item {
  /* study-item 스타일 유지 */
  aspect-ratio: 540/350;
  overflow: hidden;
  position: relative;
  z-index: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.study-item img {
  /* 이미지 스타일 유지 */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 마우스 오버 효과 유지 */
.study-item:hover {
  transform: scale(1.06);
  z-index: 1;
}

/* 태블릿 레이아웃 (1023px 이하 768px 이상): 고정 2열 */
@media screen and (max-width: 1023px) {
 
  .study-grid-container {
    /* 1fr 크기의 2개 열로 고정 */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; /* 태블릿 간격 */
    padding: 0 40px; /* 태블릿 여백 */
    margin-top: 40px;
  }


  .project {
    margin: 30px 0;
    box-sizing: border-box;
  }
  #clock2 {
    font-size: 30px;
  }
  .header a{
    font-size: 30px;
  }
  h1{
    font-size: 30px;
  }
  .horizontal-line1 {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 30px;
  }

  .study-popup.active .study-popup-content {
    opacity: 1;
  }

  .study-popup-content {
    width: auto;
    height: auto;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease; /* 팝업 콘텐츠 트랜지션 */
  }

  .study-popup-content img {
    width: 608px;
    height: 394px;
  }

  .main_line {
    height: 1px;
    opacity: 0.1;
    background: #fff;
    margin-left: 40px;
    margin-right: 40px;
  }

  .breadcrumb {
    padding: 14px 40px;
  }

  .header {
    margin: 50px 40px 0px 40px;
  }

  .project_text {
    /* right: unset;
    left: 40px;
    margin-top: 30px; */
    position: relative;
    right: unset;
    left: 0;
  }
  .project_text .project_sub {
    margin-left: 3px;
  }
  .project li {
    box-sizing: border-box;
    flex-direction: column;
    display: flex;
    align-items: start;
    gap: 10px;
    max-width: 100%;
    padding-left: 0;
  }
  .project_title {
    max-width: 100%;
  }
  .about_menu {
    width: 50%;
    right: -60vw;
    height: 100vh;
  }
  .footer-right{
    margin-left: 40px;
  }
  .footer-left{
    margin-right: 30px;
  }
}

@media screen and (max-width: 799px) {
  .project_number{
    font-size: 14px;
  }
  
  #nav-1{
    bottom: 30px;
  }
  .main_line{
    margin-left: 20px;
    margin-right: 20px;
  }
  .hide799 {
    display: none;
  }
  .project_title {
    font-size: 20px;
  }
  h1,
  #clock2 {
    font-size: 30px;
  }
  h2 {
    margin-top: 20px;
  }
  .header {
    margin: 40px 20px 40px 20px;
  }
  .project {
    padding-left: 20px;
  }
  .about_menu {
    width: 100%;
    right: -110vw;
  }
  .about_menu_icon{
    margin-right: 20px;
    margin-top: -5px;
  }
  .about_title1{
    margin-left: 20px;
    margin-top: 30px;
  }
  .about_title{
    margin-left: 30px;
    margin-top: 25px;
    font-size: 10px;
  }
  .about_group {
    margin-left: 40px;
}
.about_project{
  bottom: 20px;
  height: 35px;
  width: 324px;
}
#clock{
  font-size: 12px;
  bottom: 75px;
}
#clock3{
  font-size: 22px;
}
.about_title2{
  font-size: 22px;
}
.about_project_detail a{
  font-size: 16px;
}
  /* project */
  .project-part,
  .project-date,
  .project-client,
  .project-subtitle,
  .project-type,
  .project-modal,
  .project-title {
    color: var(--project-mo-color);
  }
  .modal-close svg {
    fill: var(--project-mo-color);
  }
  .modal-header {
    background: var(--project-mo-bg);
  }

  .project_title_blur {
    width: 100%;
  }
  .footer-right{
    margin-left: 20px;
  }
  .footer-left{
    margin-right: 10px;
  }
}
/* 모바일 레이아웃 (767px 이하): 고정 1열 */
@media screen and (max-width: 767px) {

  .project-title{
    font-size: 28px;
  }
  .project-subtitle {
    font-size: 20px;
  }
  .modal-close {
    top: 30px;
    right: 20px;
  }

  .project_title{
    font-size: 18px;
  }
  .study-grid-container {
    /* 1fr 크기의 1개 열로 고정 */
    grid-template-columns: repeat(1, 1fr);
    gap: 20px; /* 모바일 간격 */
    padding: 0 20px; /* 모바일 여백 */
    margin-top: 20px;
  }

  .header {
    margin: 30px 20px 60px 20px;
  }
  .header a{
    font-size: 26px;
  }
  h1 {
    color: #e3c1b0;
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 35px; /* 89.286% */
  }

  h2 {
    margin-top: 0px;
    opacity: 0.75;
    color: #e3c1b0;
    font-family: "Montserrat";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 25px; /* 192.857% */
  }

  /* 메인 년도 */
  #clock2 {
    color: #e3c1b0;
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 35px; /* 89.286% */
  }
  #clock3{
    font-size: 22px;
  }
  .about_title2{
    font-size: 22px;
  }

  .horizontal-line1 {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 40px;
  }

  .breadcrumb {
    padding: 14px 20px;
  }

  .study-popup.active .study-popup-content {
    opacity: 1;
  }

  .study-popup-content {
    width: auto;
    height: auto;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease; /* 팝업 콘텐츠 트랜지션 */
  }

  .study-popup-content img {
    width: 304px;
    height: 197px;
  }

  .footer {
    height: 25px;
  }

  .footer-right {
    margin-left: 20px; /* 왼쪽 여백 축소 */
  }

  .footer-left {
    margin-right: 20px; /* 오른쪽 여백 축소 */
  }

  .footer p {
    font-size: 10px;
    opacity: 0.5;
    vertical-align: middle;
    line-height: 0.5;
  }

  .footer a {
    font-size: 10px; /* 폰트 크기 축소 */
  }

  .footer li {
    list-style-type: none;
    display: inline-block;
    padding: 10px;
    line-height: 0;
  }

  .modal-header {
    position: relative;
    padding: 10px 20px 20px 20px;
  }
  .header-content {
    flex-direction: column;
  }
}

/* Vault 이미지 모달이 열렸을 때 body 스크롤 비활성화 */
body.modal-open-study {
  overflow: hidden; /* 스크롤바 숨김 및 스크롤 방지 */
  position: fixed; /* 스크롤 위치 고정 */
  width: 100%; /* 전체 너비 유지 */
}

/* 혹시 Index 모달과 같은 클래스를 사용한다면 이 규칙으로 대체 가능 */
/* body.modal-open {
    overflow: hidden;
} */
