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

:root{
  /* display */
  --display-height: calc(100vh - (8.5rem / 1.8));

  /* font */
  --XXl-header-font-size: clamp(1.75rem, 2.75vw, 3.25rem);
  --XXl-des-font-size: clamp(1.5rem, 1.65vw, 2rem);
  --XXl-button-font-size: clamp(0.95rem, 1.25vw, 1.85rem);

  --Xl-header-font-size: clamp(1.5rem, 2.5vw, 3rem);
  --Xl-des-font-size: clamp(1rem, 1.5vw, 1.55rem);
  --Xl-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --L-header-font-size: clamp(1.5rem, 2.25vw, 2.5rem);
  --L-des-font-size: clamp(0.75rem, 1.25vw, 1.5rem);
  --L-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --M-header-font-size: clamp(1.25rem, 1.75vw, 2.25rem);
  --M-des-font-size: clamp(0.5rem, 1vw, 1.15rem);
  --M-button-font-size: clamp(0.35rem, 0.5vw, 1.5rem);

  --S-header-font-size: clamp(1rem, 1.5vw, 2rem);
  --S-des-font-size: clamp(0.35rem, 0.75vw, 0.95rem);

  --main-font: "Nanum Myeongjo", serif;
  --des-font: "Urbanist", sans-serif;

  --light-font-w: 300;
  --normal-font-w: 500;
  --bold-font-w: 700;

  /* color */
  --whiteS: whitesmoke;
  --darkBlue0: #000845;
  --darkBlue1: #030b3f;
  --darkBlue2: #00020d;
  --lightGrey0: #ededed;
  --lightGrey1: #c6c6c6;
  --lightGrey2: #a2a2a2;
  --black: #000;
  --gladient-darkblue: linear-gradient(90deg, #030b3f 40%, #010629 60%, #00020d 100%);
}

main{
  display: flex;
  flex-direction: column;
  /* height: 300vh; */
  /* width: 100vh; */
  width: 100%;
  height: 100%;
  /* position: relative; */
  /* top: calc(8.5rem / 1.8); */
  padding-top: calc(8.5rem / 1.8);
}

.mainContainer{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

section.workRef{
  height: var(--display-height);
  width: 100%;
  /* border: solid red 3px; */
  padding: 2vw;
  padding-top: 2vh;
  background-color: var(--lightGrey0);
}

section.workRef .workRefLstContainer{
  width: 100%;
  height: 100%;
  /* border: solid red 3px; */
  scale: 90%;
  display: flex;
  padding: 2vw 12vw;
  gap: 4vw;
  overflow: hidden;
}

@keyframes slideIn {
  from {
      transform: translateX(83vw);
      opacity: 1;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 1;
  }
}

section.workRef .lstIndex.active {
  display: flex;
  animation: slideIn 1s forwards;
}

section.workRef .lstIndex{
  /* border: solid red 3px; */
  display: none;
  overflow: hidden;
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  background-color: white;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 14px 40px -7px;
}

section.workRef .lstIndex .indexContainer{
  display: grid;
  grid-template-rows: 1.15fr 1fr;
  /* border: solid red 3px; */
}

section.workRef .gridArticle{
  width: 100%;
  height: 100%;
  font-family: var(--des-font);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
  padding: 2.5vw;
  padding-top: 4vw;
  gap: 2vw;
  position: relative;
}

section.workRef .gridArticle .header{
  font-size: var(--L-des-font-size);
  position: relative;
  z-index: 111;
  /* border: solid red 3px; */
  /* background-color: white; */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 15%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.85) 70%,
    rgba(255, 255, 255, 0.95) 85%,
    rgb(255, 255, 255) 90%
  );
}

section.workRef .gridArticle .textShadow{
  color: var(--lightGrey0);
  position: absolute;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  /* border: solid red 3px; */
  /* top: 5rem; */
  top: 2rem;
  right: 0;
  left: 0;
  /* right: 4rem; */
  /* bottom: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(229, 229, 229);
  div{
    font-size: var(--M-des-font-size);
    color: rgb(108, 108, 182);
    /* color: red; */
  }
}

section.workRef .gridArticle .description{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-size: var(--M-des-font-size);
}

.gridImg{
  /* display: none; */
  height: 100%;
  width: 100%;
}

.imgCon{
  width: 85%;
  aspect-ratio: 1;
  /* border: solid red 3px; */
  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* section.workRef .lstIndex.out {
  animation: slideOut 1s forwards;
} */

@media screen and (min-height: 1030px){
  section.workRef{
    height: 50vh  !important;
    border: solid red 3px !important;
  }
}