@import url("https://fonts.googleapis.com/css2?family=Share+Tech&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Saira+Stencil:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "PyeongchangPeace";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2206-02@1.0/PyeongChangPeace-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-display: swap;
}

.share-tech {
  font-family: "Share Tech", sans-serif;
}

.saira-stencil {
  font-family: "Saira Stencil", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body {
  margin: 0;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

.title {
  position: absolute;
  display: flex;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);

  align-items: baseline;
  gap: 5vh;

  text-align: center;
  color: white;
  z-index: 100;
}

.title h1 {
  font-family: "Share Tech", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
  margin: 0;
  letter-spacing: 0.1vh;
}

.title p {
  font-size: 1.1rem;

  font-family: "Share Tech", sans-serif;
  color: white;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  padding: 2vw;
  background-color: black;
  width: 90%;
  max-width: 100%;
}

.box {
  position: relative;
  aspect-ratio: 45/32;
  /* width: 25vw;
  height: 25vh; */
  background-color: white;
  overflow: hidden;
  display: block;
}

.box iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* 위에 투명하게 덮 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

/* 마우스를 올렸을 때 효과 */
.box:hover .overlay {
  background: rgba(0, 0, 0, 0.1);
}

/* 프로젝트 정보 */
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 15px;
  color: white;
  z-index: 10;
}

.project-info h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: bold;
}

.project-info p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}
