@charset "utf-8";

body {
  /*  background:url("https://husk.org/beta/underline16.gif"); */
  background-color: #fff;
  max-width: 512px;
  margin: 0;
  padding-top: 0.64em;
  font-family: ocr-b-std, monospace;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: #999;
}

@media (min-width: 512px) {
  body {
    max-width: 1024px;
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 100%;
  }
}

html>body {
  padding-top: 0.18em;
}

/* from collected.css */
div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,p,blockquote,th,td {
  margin:0;
  padding:0;
}

#main {
  width: fit-content;
  margin-bottom: 32px;
}

h1 {
  color: #ccc;
  font-family:"helvetica neue", helvetica, arial, sans-serif;
  font-size: 36px;
  letter-spacing: -0.05em;
  line-height: 48px;
  padding-bottom: 9px;
}

h1 a {
  color: #ccc;
}
h1 a:visited {
  color: #ccc;
}
h1 a:hover {
  color: #00f;
}

h1 span.sub {
  font-size: 0.5em;
  letter-spacing: 0em;
}

h1 span.sub a {
  color: #999;
}

h1 span.sub a:hover {
  color: #999;
  background: #fff;
  text-decoration: underline;
}
/* ends */

h2 {
  font-family:"helvetica neue", helvetica, arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.05em;
  line-height: 32px;
  margin: 0px;
  padding: 0px 0px 16px 0px;
}

div#subhead {
  max-width: 100%;
  overflow-wrap: break-word;
}

p.subtitle {
  margin-top: -12px;
  margin-bottom: 12px;
  word-break: break-all;
}

#wrap {
  padding: 0px 16px;
}

#nav {
  display: flex;
  margin: 32px 16px 64px 16px;
  justify-content: space-between;
}

#nav-detail {
  display: flex;
  margin: 16px 0px 32px 0px;
  justify-content: space-between;
}

#grid {
  display: grid;
  grid-gap: 16px;
}

@media (min-width: 512px) {
    #grid {
      grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (min-width: 1024px) {
    #grid {
      grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

/* FIXME 4x grid? can this be automated via CSS somehow? */

#detail {
  margin: 0px;
  padding: 0px;
}

.object {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f0f0f0;
  position: sticky;
}

div.image {
  display: grid;
  place-items: center;
  background: #f9f9f9;
  flex: 1; /* Take up all available vertical space in the object */
  position: relative;
}

div.image::before {
  content: "";
  width: 0;
  padding-bottom: 100%;
  grid-area: 1 / 1;
}

div.image > a {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

div.image img.grid-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

div.closeup {
  background: #f0f0f0;
  align-items: center;
  justify-content: center;
}

div.closeup img {
  object-fit: contain;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  background: #f9f9f9;
}

div.closeup .info {
  width: 100%; /* Spans the full width of the container/image */
  max-width: 550px; /* Constrains the text width */
  padding: 16px;
  text-align: left;
  box-sizing: border-box;
  background: inherit; /* Carries the closeup background color */
}

div.closeup .info blockquote {
  text-align: left;
  margin: 0;
}

div.caption {
  text-align: center;
  overflow: visible hidden;
  padding: 4px 4px 6px 4px;
  height: 12px;
}

span.small_number {
  font-family:"helvetica neue", helvetica, arial, sans-serif;
  font-size: 9px;
  opacity: 0;
  transition: opacity 375ms;
}
a:hover + span.small_number {
  transition: opacity 125ms;
  opacity: 1;
}

h2 a {
  color: #99f;
}

a {
  color: #99f;
  text-decoration: none;
}
a:visited {
  color: #ccf;
}
a:hover {
  color: #00f;
}

div.object:hover div.caption {
  overflow: visible;
}

ul.tags {
  display: block;
  z-index: 1;
  list-style: none;
  padding: 8px;
  margin-bottom: 22px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 1;
  background-color: #ffffff;
  opacity: 0;
  transition: opacity 375ms;
}

div.object:hover ul.tags {
  transition: opacity 125ms;
  opacity: 0.75;
}

img.right {
  transform: scale(200%);
}

img.left {
  transform: scale(200%) rotate(180deg);
}

img.arrow:hover {
  filter: invert(8%) sepia(96%) saturate(7388%) hue-rotate(246deg) brightness(101%) contrast(144%);
}

@media (min-width: 1024px) {
  img.right {
    transform: scale(100%);
  }

  img.left {
    transform: scale(100%) rotate(180deg);
  }
}

.navigation_list {
  list-style: none;
}
.nav_columns {
  float: left;
  margin-right: 16px;
}
.navigation_list .navigation_item {
  font-family: ocr-b-std, monospace;
  font-size: 16px;
  font-weight: normal;
  white-space: nowrap
}
.medium_number {
  font-family:"helvetica neue", helvetica, arial, sans-serif;
  font-size: 12px;
}
a:hover + span.medium_number {
  transition: opacity 125ms;
  opacity: 1;
}
.on, a.on {
  color: red;
}
