html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

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

img,
video {
  display: block;
}

select::picker-icon {
  display: none;
}

select {
  position: relative;
  width: 100vw;
  height: auto;
  max-height: 400vh;
  border: none;
  border-radius: 0;

  &,
  &::picker(select) {
    appearance: base-select;
    border: none;
  }

  button {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: none;

    header {
      padding: 20px;
      width: 100%;
      height: 80px;
      overflow: hidden;
      background-color: #000;
      color: #fff;

      h1 {
        font-size: 20px;
      }

      @media (max-width: 768px) {
        h1 {
          font-size: 16px;
        }
      }
    }
  }

  option {
    height: 80px;
    padding: 20px 10px;
    width: 100%;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    &:first-child {
      height: 0;
    }

    &::checkmark {
      display: none;
    }

    &:checked {
      background-color: #000;
      color: #fff;
    }

    .media-container {
      width: 80px;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .text {
      flex: 1;
      width: 40px;
      height: 80px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: center;

      h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        font-weight: 500;
      }
    }

    .description {
      display: none;
    }
  }

  .media-container {
    width: 100px;
    height: 100%;

    img,
    video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: none;

      &:first-child {
        display: block;
      }
    }
  }

  selectedcontent {
    margin: -10px 0 0;
    padding: 20px;
    width: 100%;
    height: auto;
    max-height: 400vh;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    gap: 20px;

    .media-container {
      width: 60vw;
      height: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;

      video,
      img {
        width: 100%;
        /* object-fit: cover; */
        display: block;
        object-position: top;
      }
    }

    .text {
      width: 40vw;
      font-size: 14px;
      line-height: 1.6;

      h1 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 20px;
      }

      h3 {
        font-size: 16px;
        font-weight: 600;
        margin: 20px 0 10px;
      }

      h4 {
        font-size: 15px;
        font-weight: 600;
        margin: 15px 0 5px;
      }

      p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
      }

      a {
        color: #000;
        text-decoration: underline;

        &:hover {
          text-decoration: none;
        }
      }

      ul {
        list-style: none;
        padding: 0;
        margin: 10px 0 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;

        li {
          font-size: 14px;
          line-height: 1.6;

          .year {
            font-size: 12px;
            color: #666;
            margin-top: 2px;
          }
        }
      }
    }

    @media (max-width: 768px) {
      width: 100%;
      flex-direction: column;

      .media-container {
        width: 100%;
        height: auto;
      }

      .text {
        width: 100%;

        h1 {
          font-size: 18px;
        }

        h3 {
          font-size: 15px;
        }

        h4 {
          font-size: 14px;
        }

        p {
          font-size: 13px;
        }

        ul li {
          font-size: 13px;
        }
      }
    }
  }

  &:open {
    selectedcontent {
      display: none;
    }
  }
}
