:root {
  --grid-gap-desktop: 178px;
  --grid-gap-tablet: 60px;
  --grid-gap-mobile: 20px;
}

#production {
  position: relative;
}

#production .container {
  position: absolute;
  top: 72px;
  padding: 0 74px;
}

#production .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-desktop);
  row-gap: 158px; 
  font-size: 0;
}

#production .item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#production .item.top{
  display: flex;
  justify-content: flex-start;
}

#production .item p {
  margin: 12px 0;
  font-size: 14px;
  font-weight: 700;
}

#production .item img,
#production .item video {
  width: 100%;
  display: block;
}

#production .full {
  grid-column: span 2;
}

#production .bottom-view {
  display: flex;
  flex-wrap: wrap;
  gap: 49px;
  margin-top: 220px;
  margin-bottom: 100px;
}

#production .bottom-view .item{
  justify-content: flex-start;
}

#production .bottom-view .title {
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  padding: 0 29px 0 0;
}

#production .bottom-view video{
  max-height: 200px;
}

#production video{
  height: auto;
  max-height: none;
}

/* Sidebar */
#production .sidebar {
  padding-left: 75px;
  padding-top: 49px;
}

#production .sidebar h1 {
  margin-bottom: 14px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  font-size: 50px;
}

#production .sidebar .menu {
  display: flex;
  flex-direction: column;
}

#production .sidebar .menu a {
  font-family: 'Times New Roman', serif;
  font-size: 24px;
  margin-bottom: 1px;
  z-index: 99;
  font-weight: lighter;
}

#production .sidebar .menu .active {
  font-weight: bold;
}

#production .sidebar .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #production .sidebar {
    padding: 20px;
  }

  #production .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #production .sidebar .menu-toggle {
    display: block;
  }

  #production .sidebar .menu {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    gap: 8px;
  }

  #production .sidebar .menu.active {
    display: flex;
  }
}

/* ====== 반응형 미디어 쿼리 ====== */

/* Tablet */
@media (max-width: 1024px) {
  #production .container {
    padding: 0 40px;
  }

  #production .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap-tablet);
  }

  #production .sidebar {
    padding-left: 40px;
    padding-top: 40px;
  }

  #production .sidebar h1 {
    font-size: 32px;
  }

  #production .sidebar .menu a {
    font-size: 20px;
  }

  #production .bottom-view {
    gap: 60px;
    margin-top: 120px;
    margin-bottom: 80px;
  }

  #production .bottom-view .title {
    font-size: 18px;
    padding-right: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  #production .sidebar {
    padding-left: 20px;
    padding-top: 20px;
  }

  #production .sidebar h1 {
    font-size: 26px;
    margin-bottom: 0;
  }

  #production .sidebar .menu a {
    font-size: 18px;
  }

  #production .container {
    padding: 0 10px;
    position: absolute;
    top: 130px;
  }

  #production .grid {
    gap: var(--grid-gap-mobile);
  }

  #production .bottom-view {
    flex-direction: column;
    gap: 40px;
    margin-top: 80px;
    margin-bottom: 60px;
  }

  #production .bottom-view .title {
    padding: 0 0 10px 0;
    font-size: 16px;
  }

  .menu-toggle span {
      display: block;

      width: 50px;
      height: 1px;

      background-color: #000;
  }

  .menu-toggle span:nth-of-type(1){
    margin-bottom: 7px;
  }

  #production .item p{
    font-size: 12px;
  }


}
