.box > .content {
  margin: 5rem 1rem 0 1rem;
}
.box > .content > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 2rem;
}
#sidebar {
  margin: 1rem 0 auto 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 2rem;
}

#download-links {
  flex-grow: 0;
}
#download-links > * {
  margin-bottom: 1rem;
}
#sidebar #description {
  flex-grow: 1;
  flex-basis: 0;
}

#sidebar #description ul {
  margin-block-start: 0.5rem;
  padding-inline-start: 1.5rem;
  list-style: circle;
}

#ref-image {
  flex-shrink: 1;
  max-width: 100%;
  width: 100%;
  border-radius: 0.25rem;
}

/* GALLERY */
#gallery {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  margin-top: 3rem;
}

#gallery h1 {
  margin-bottom: 1.5rem;
}

#gallery > .items > .item {
  padding: 0.875rem 2rem;
  background-color: rgb(60 90 150);
}

#gallery > .items > .item > img {
  max-width: 250px;
}

/* UTILITY */
.text-left {
  text-align: left;
}
.column {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
.row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}
.button {
  text-align: center;
  display: inline-block;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.2rem;
  text-decoration: none;
  color: var(--text-white);
  background-color: var(--bsky-blue);
  transition: all 0.2s ease-in-out;
}
.button:hover {
  background-color: var(--bsky-blue-hover);
  color: var(--text-white);
}
.button:active {
  background-color: var(--bsky-blue-active);
}
.button:disabled, .button[disabled] {
  opacity: 0.5;
  background-color: rgb(60 90 150);
  cursor: not-allowed;
}

@media screen and (width < 1366px) {
  .box > .content > div {
    display: block;
  }
  #sidebar {
    flex-direction: row;
    padding-bottom: 5rem;
  }
  #sidebar #download-links {
    text-align: right;
  }
}

@media only screen and (orientation: portrait) and (width < 600px),
only screen and (orientation: landscape) and (width < 700px) {
  h1 {
    font-size: 1.875rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .button {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
  .button-group {
    display: flex;
    column-gap: 0.25rem;
    
  }
  #download-links #description p {
    margin-left: 0;
  }
  #sidebar #download-links {
    flex-grow: 1;
    text-align: left;
  }
  #sidebar #description {
    flex-grow: 1;
    flex-basis: content;
  }
}

@media only screen and (orientation: portrait) and (width < 400px) {
  .button {
    flex-grow: 1;
  }
  .button-group {
    justify-content: center;
  }
}

@media screen and (height < 750px)  {
  .box > div {
    margin-top: 5rem;
  }
}