:root {
  --bg-blue: #f1f3f7;
  --bg-white: #ffffff;
  --orange: #ff8711;
}

main {
  overflow: hidden;
}

picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

article {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
}

section {
  display: grid;
  justify-self: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.orange {
  color: var(--orange);
}

section.fold {
  margin-top: 0;
}

.fold {
  width: 100%;
  padding: 2rem;
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--bg-blue),
    var(--bg-blue) 85%,
    var(--bg-white) 85%,
    var(--bg-white)
  );
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.fold-img-container {
  width: 100%;
  height: 100%;
  border: 1px solid black;
  border-radius: 1rem;
  overflow: hidden;
}

.table {
  display: grid;
}

.table-title {
  width: fit-content;
  padding: 0.5rem 2rem;
  background-color: var(--orange);
  color: white;
  font-weight: 900;
  border: 1px solid black;
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
}

.table-description {
  background-color: var(--bg-white);
  border: 1px solid black;
  border-radius: 0 1rem 1rem 1rem;
  padding: 1rem;
}

.table-description ul {
  list-style-type: none;
}

.table-description ul li {
  position: relative;
  display: grid;
  gap: 0.5rem;
  grid-auto-flow: column;
  grid-template-columns: 1.2rem 1fr;
  align-items: center;
}

.table-description ul li::before {
  color: var(--orange);
  font-size: 1.5rem;
}

.fold-contents.table-description ul li::before {
  content: "●";
}

.related-contents.table-description ul li::before {
  content: "▶";
}

.section-title {
  display: grid;
  grid-auto-flow: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  color: var(--orange);
}

.section-content {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
}

.two-column {
  grid-template-columns: 1fr 1fr;
}

.three-column {
  grid-template-columns: 1fr 1fr 1fr;
}

.section-image-container {
  display: grid;
  grid-auto-flow: column;
  justify-items: center;
  gap: 2rem;
}

.related {
  width: 100%;
  max-width: 1100px;
  justify-content: unset;
  justify-self: center;
}

.related-contents.table-description {
  border-radius: 0 1rem;
}

.related-contents.table-description ul li {
  width: 100%;
  grid-template-areas: "marker description" "link link";
}

.related-contents.table-description ul li::before {
  grid-area: marker;
}

.related-contents.table-description ul li p {
  grid-area: description;
}

.related-contents.table-description ul li a {
  justify-self: flex-end;
  grid-area: link;
}

.related-contents.table-back {
  justify-self: end;
  width: fit-content;
  padding: 0.5rem 2rem;
  background-color: var(--orange);
  color: white;
  border: 1px solid black;
  border-top: none;
  border-radius: 0 0 1rem 1rem;
}

@media screen and (max-width: 1000px) {
  .two-column {
    grid-template-columns: unset;
    grid-auto-flow: row;
  }

  .three-column {
    grid-template-columns: unset;
    grid-auto-flow: row;
  }
}
