:root {
  --black-grey: #252525;
  --spacer: 24px;
  --page-width: 1200px;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--black-grey);
  hyphens: auto;
}

#main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Times New Roman", Times, serif;
  font-weight: normal;
}

h1 {
  font-size: 3rem;
}

p {
  line-height: 120%;
}

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

.main-section {
  width: 100%;
  padding: calc(var(--spacer) * 2) 0;
}

.full-width {
  width: var(--page-width);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-start {
  display: flex;
  justify-content: flex-start;
  gap: var(--spacer);
}

figure {
  margin: 20px 0px;
  padding: 0;
}

figure > img {
  width: 100%;
}

figure .extra-large, .extra-large > figcaption {
  width: 85%;
}

figure .large, .large > figcaption {
  width: 70%;
}

figure .medium, .medium > figcaption {
  width: 50%;
}

figure .small, .small > figcaption {
  width: 35%;
}

figcaption {
  font-size: 0.9rem;
  opacity: 0.6;
}

@media (width >= 1500px) {
  :root {
    --page-width: 1360px;
  }
}
/* Laptop, minimised */
@media (width <= 1250px) {
  :root {
    --page-width: 1060px;
  }
}
@media (width <= 1150px) {
  :root {
    --page-width: 960px;
  }
}
@media (width <= 1050px) {
  :root {
    --page-width: 860px;
  }
}
@media (width <= 950px) {
  :root {
    --page-width: 92vw;
  }
}