@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Noto+Sans+KR:wght@100;200;300;400;500;600;700;800;900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url("https://use.typekit.net/ipm5esh.css");

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

*::selection {
  background-color: #E8642B;
}

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

:root {
  --vh: 1vh;
}

@supports (height: 1svh) {
  :root {
    --vh: 1svh;
  }
}

html {
  background-color: #f5f5f5;
  width: 100%;
  overflow-x: clip;
}

body {
  min-width: 0;
  background-color: #f5f5f5;
}

::-webkit-scrollbar {
  width: 0px;
}

* {
  cursor: none;
}

.cursor {
  top: -300px;
  left: -300px;
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: white;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translateX(-50%) translateY(-50%);
  z-index: 601;
  transition: width .1s, height .1s, background-color 1s;
}

.need-to-cursor-big {
  width: 50px;
  height: 50px;
}

@media screen and (max-width: 1024px) {
  * {
    cursor: auto;
  }

  .cursor,
  .need-to-cursor-big {
    display: none;
  }
}

.progress {
  background-color: #F5F5F5;
  color: #0d0d0d;
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: 300;
}

.progress-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 300;
}

.progress-text {
  font-family: "aktiv-grotesk", sans-serif;
  font-size: 15px;
  color: #0d0d0d;
}

.progress-bar {
  background-color: #E8642B;
  width: 190px;
  height: 3px;
}

.header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  z-index: 101;
  padding: 0 30px;
}

.header-logobox {
  z-index: 300;
}

.header-logobox > a {
  vertical-align: middle;
  padding: 3px;
  z-index: 300;
  display: flex;
  align-items: center;
}

.header-logobox > a > img {
  width: 90px;
}

.header-menubox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  width: 80px;
  position: relative;
  z-index: 201;
}

.header-menu-en {
  display: flex;
  align-items: center;
  height: 30px;
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #0d0d0d;
  transition: .3s;
}

.header-menubox:hover > .header-menu-en {
  font-size: 1.3rem;
  transition: .5s;
}

.header-menu-dot {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 30px;
  width: 30px;
}

.menu-first,
.menu-second,
.menu-third {
  height: 5px;
  width: 5px;
  background-color: #0d0d0d;
  border-radius: 100%;
  z-index: 200;
  transition: all 1s;
}

.menu-second {
  z-index: 199;
  transition: all .3s;
}

.header-menubox:hover > .header-menu-dot > .menu-first,
.header-menubox:hover > .header-menu-dot > .menu-third {
  display: none;
}

.header-menubox:hover > .header-menu-dot > .menu-second {
  width: 25px;
  height: 25px;
  border-radius: 100%;
}

.scale {
  scale: 1000;
  background-color: #F5F5F5;
  transition: scale 1s ease-in-out;
}

.menuSelector {
  color: #0d0d0d;
  display: flex;
  position: fixed;
  opacity: 0;
  top: -100%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 200;
}

.opacity {
  top: 45%;
  opacity: 100;
  transition:
    top .1s,
    opacity 2s ease-in-out;
}

.menuSelectorWrapper {
  display: none;
  flex-direction: column;
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 700;
  justify-content: center;
  align-items: start;
  margin-top: 5vh;
  font-size: 3.5rem;
  z-index: 100;
}

.menuSelectorWrapper div:hover {
  text-decoration: underline;
  font-size: 4rem;
  transition:
    all 0s,
    font-size .5s;
}

.displayFlex {
  display: flex;
}

.main {
  width: 100%;
  min-width: 0;
}

.instagram {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: clamp(8rem, 14vw, 12rem) clamp(1.5rem, 3vw, 6rem) clamp(4rem, 8vw, 6rem);
  background-color: #f5f5f5;
}

.instagram-container {
  width: 100%;
}

.instagram-heading {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  z-index: 2;
}

.instagram-title {
  margin: 0;
  max-width: 1760px;
  color: #2d2d2d;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 60px;
  word-break: keep-all;
}

.instagram-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  z-index: 2;
}

.instagram-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  background-color: #dedbd8;
  color: inherit;
}

.instagram-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 13, 13, 0);
  z-index: 2;
  pointer-events: none;
  transition: background-color 0.45s ease;
}

.instagram-card-cta {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.9rem, 1.15vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f5f5f5;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-card-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(13, 13, 13, 0.72);
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5f5f5;
  z-index: 3;
  transition: opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .instagram-card:hover .instagram-card-img {
    transform: scale(1.04);
  }

  .instagram-card:hover .instagram-card-overlay {
    background-color: rgba(13, 13, 13, 0.45);
  }

  .instagram-card:hover .instagram-card-cta {
    opacity: 1;
    transform: translateY(0);
  }

  .instagram-card:hover .instagram-card-label {
    opacity: 0;
  }
}

.instagram-status {
  grid-column: 1 / -1;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: rgba(13, 13, 13, 0.55);
}

.instagram-sentinel {
  width: 100%;
  height: 1px;
}

.instagram-sentinel[data-loading] {
  height: auto;
  margin-top: 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: rgba(13, 13, 13, 0.45);
}

.instagram-sentinel[data-loading]::before {
  content: "Loading more posts...";
}

.footer {
  display: flex;
  height: 10vh;
  position: relative;
  width: 100%;
  background-color: #f5f5f5;
  z-index: 100;
}

.footer > .footer-infBox {
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  font-size: .6rem;
  margin-bottom: 3vh;
  margin-left: calc(2vw + 10px);
  color: #0d0d0d;
}

.footer > .footer-infBox > .web-inf {
  display: flex;
}

@media screen and (max-width: 960px) {
  .instagram {
    min-height: auto;
    padding: 7rem 1.25rem 4rem;
  }

  .instagram-heading {
    display: block;
  }

  .instagram-title {
    font-size: clamp(20px, 5.4vw, 28px);
    line-height: 1.4;
  }

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

  .footer {
    height: calc(var(--vh, 1svh) * 10);
  }
}

@media screen and (max-width: 430px) {
  .header {
    width: 100%;
    height: 12%;
  }

  .menu-hidden {
    display: none;
  }
}
