body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  --line-offset: calc((10vh + 8px) / 2);
}

.container {
  width: 100vw;
  height: 100vh;
  display: grid;
  /* grid-template-rows: 1fr 6fr 1fr; */
  grid-template-rows: 6fr 1fr;
  background: #021919;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  display: flex;
}

.tab {
  width: calc(10vh + 8px);
  height: calc(10vh + 8px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0% 50%, 15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%);
  shape-outside: polygon(0% 50%, 15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%);
  z-index: 0;
  transition: width 0.5s;
}

.tab img {
  width: 10vh;
  height: 10vh;
  z-index: 10;
  cursor: pointer;
  clip-path: polygon(0% 50%, 15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%);
  shape-outside: polygon(0% 50%, 15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%);
  transition: width 0.5s;
}

[type="radio"] {
  display: none;
}

.preview-list {
  /* background: linear-gradient(
    #021919,
    #021919 var(--line-offset),
    #efefef var(--line-offset)
  ); */
}

.tab {
  /* background: linear-gradient(
    #efefef,
    #efefef var(--line-offset),
    #021919 var(--line-offset)
  ); */
  background: transparent;
}

.vgo-note {
  background-color: red;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  display: block;
  height: fit-content;
  padding: 5px 20px;
  z-index: 9;
  max-height: 100%;
  text-align: center;
}
[type="radio"]:checked ~ label ~ .content {
  text-align: center;
  z-index: 8;
}

[type="radio"]:checked ~ label .tab {
  width: 0;
}

.content {
  position: absolute;
  background: #021919;
  top: 1vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-in;
}

.content img {
  height: 100%;
  /* height: auto; */
  width: 100vw;
  background-size: cover;
  object-fit: contain;
}
@media screen and (max-width: 550px) {
  .container {
    height: 95vh;
  }
  .vgo-note {
    font-size: 0.75rem;
  }
  ul {
    flex-wrap: wrap;
    max-width: 100%;
    padding: 5px 0;
    row-gap: 2px;
  }

  .tab {
    width: calc(8vh + 8px);
    height: calc(8vh + 8px);
    align-items: start;
  }
  .tab img {
    width: 8vh;
    height: 8vh;
  }
  .content {
    height: 65vh;
    padding-top: 3rem;
  }
  .content img {
    object-fit: contain;
  }
}
