@font-face {
  font-family: "AGNM";
  src: url("font.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body,
* {
  font-family: "AGNM", sans-serif;
  font-size: 18px;
  color: #fefefe;
}

* {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li,
a,
aside {
  padding-top: 1em;
}

header,
main {
  width: 950px;
  max-width: 950px;
  margin: 0 auto 0 auto;
}
main {
  margin-bottom: 2em;
}

header div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  border-bottom: 1.5px solid #9d9d9d;
  padding-top: 1em;
  padding-bottom: 1em;
  width: 100%;
}

header div span:nth-child(1) {
  justify-self: start;
  text-align: left;
}

header div span:nth-child(2) {
  justify-self: center;
  text-align: center;
}

header div span:nth-child(3) {
  justify-self: end;
  text-align: right;
}

html {
  background-color: #191919;
}

article,
section {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 160px 1fr;
  border-bottom: 1.5px solid #9d9d9d;
  padding-bottom: 1em;
  box-sizing: border-box;
}

article aside,
section aside {
  color: #9d9d9d;
  grid-column: 1 / 2;
}

article p,
section p {
  grid-column: 2 / -1;
}

article p:first-of-type {
  margin-bottom: 1em;
}

hr {
  border: none;
  border-bottom: 1.5px solid #9d9d9d;
  margin-top: 1em;
  grid-column: 1 / -1;
}

.date-filter-body {
  display: grid;
  gap: 1em;
  grid-column: 2 / -1;
  padding-top: 1em;
}

.date-filter-values {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  color: #fefefe;
}

.date-slider {
  position: relative;
  height: 16px;
}

.date-slider-track,
.date-slider-range {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.date-slider-track {
  background: #9d9d9d;
}

.date-slider-range {
  background: #fefefe;
}

.date-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.date-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #191919;
  border-radius: 50%;
  background: #fefefe;
  pointer-events: auto;
}

.date-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid #191919;
  border-radius: 50%;
  background: #fefefe;
  pointer-events: auto;
}

.date-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 1.5px;
  background: transparent;
}

.date-slider input[type="range"]::-moz-range-track {
  height: 1.5px;
  background: transparent;
}

.is-date-hidden {
  display: none;
}

img,
video {
  width: auto;
  height: 80vh;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  grid-column: 1 / -1;
  margin-top: 1em;
}

@media (max-width: 960px) {
  html,
  body,
  * {
    font-size: 16px;
  }

  header,
  main {
    width: 100%;
    max-width: none;
    padding: 0 24px;
    box-sizing: border-box;
  }

  header div {
    grid-template-columns: 1fr;
    padding-top: 1em;
    padding-bottom: 1em;
  }

  header div span:nth-child(1),
  header div span:nth-child(2),
  header div span:nth-child(3) {
    justify-self: start;
    text-align: left;
  }

  article,
  section {
    grid-template-columns: 125px 1fr;
  }

  .date-filter-values {
    flex-direction: column;
  }

  img,
  video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
}

#tag-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1em;
}

.tag-option,
.tag-action {
  background: transparent;
  border: 0;
  color: #fefefe;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.filters {
  position: sticky;
  top: 0;
  background-color: #191919;
}

.tag-option.is-unselected {
  color: #9d9d9d;
}

.is-hidden {
  display: none;
}
