@keyframes slidein {
  0% {
    position: relative;
    top: 10px;
    opacity: 0;
  }

  99% {
    position: relative;
    top: 0;
    opacity: 1;
  }

  100% {
    position: static;
    top: unset;
  }
}

@keyframes slidein_header {
  0% {
    position: relative;
    left: -10px;
    opacity: 0;
  }

  99% {
    position: relative;
    left: 0;
    opacity: 1;
  }

  100% {
    position: static;
    top: unset;
  }
}

.MainLayout {
  width: 100vw;
  max-width: 100vw;
  height: 100%;
    max-height: 100%;
  margin: 0;
  padding: 0;

  overflow: hidden;
  display: grid;
  grid-template-columns: 256px 1fr;
}

.MainLayout_Aside {
  padding: 4px 16px;
  background-color: var(--bg-1);
  color: var(--fg-1);
  border-right: 1px solid var(--neutral);
  overflow-y: auto;
}

.MainLayout_Aside.Modifier_Open {}
.MainLayout_Inner {
  max-width: 100%;
  max-height: 100%;

  overflow: hidden;

  display: grid;
  grid-template-rows: 48px auto;
}

.MainLayout_Inner_Header {
  padding: 6px 16px;
  background-color: var(--bg-2);
  color: var(--fg-2);
  border-bottom: 1px solid var(--neutral);
  overflow: hidden;

  display: grid;
  grid-template-columns: auto;
  gap: 8px;
  align-items: center;
}

.MainLayout_Inner_Header>* {
  animation-duration: 0.25s;
  animation-name: slidein_header;
}

.MainLayout_Inner_Header.Modifier_Back {
  padding: 6px 8px;
  grid-template-columns: 32px 1fr;
}

.MainLayout_Inner_Header_Back_Button {
  font-family: var(--font-MaterialSymbols);
  font-size: 24px;
  width: 32px;
  height: 32px;
}

.MainLayout_Inner_Header_Menu {
  display: none;
}

.MainLayout_Inner_Header_Title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-content: center;
  width: 100%;
    overflow: hidden;
}

.MainLayout_Inner_Header_Title h1 {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
  font-size: 1em;
  text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.MainLayout_Inner_Header_Title span {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
  font-size: 0.75em;
  text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.MainLayout_Inner_Main {
  display: inline-block;
  background-color: var(--bg-1);
  color: var(--fg-1);
  width: 100%;

  overflow: hidden;
  overflow-y: auto;
  text-align: center;
  position: relative;
}

.MainLayout_Inner_Main_Content {
  display: inline-block;
  text-align: left;
  overflow: hidden;
  background-color: var(--bg-2);
  color: var(--fg-2);
  padding: 0 16px;
  max-width: 50em;
  width: 100%;
  min-height: 100%;
  margin-bottom: -4px;

  /* border-left: 1px solid var(--neutral);
  border-right: 1px solid var(--neutral); */
}

.MainLayout_Inner_Main_Content>* {
  animation-duration: 0.25s;
  animation-name: slidein;
}

.MainLayout_Inner_Main_Content img {
  max-width: 100%;
}

@media screen and (max-width: 800px) {
  .MainLayout {
    grid-template-columns: 1fr;
  }

  .MainLayout_Aside {
    position: absolute;
    height: calc(100% - 48px);
    width: 100%;
    top: 48px;
    z-index: 50;
    left: -100%;
    transition: left 0.125s;
  }

  .MainLayout_Inner_Header_Menu {
    display: inline-block;
  }

  .MainLayout_Inner_Header {
    padding: 6px 8px;
    grid-template-columns: 32px auto;
  }

  .MainLayout_Aside.Modifier_Open {
    left: 0;
  }
}