/* Custom CSS for three.pm - using basscss from CDN */

@font-face {
  font-family: "ISO";
  src: url(/ISO-v0.4-Regular-Web.woff2) format("woff2"),
    url(/ISO-v0.4-Regular-Web.woff) format("woff");
  font-weight: normal;
}
@font-face {
  font-family: "ISO";
  src: url(/ISO-v0.4-Bold-Web.woff2) format("woff2"),
    url(/ISO-v0.4-Bold-Web.woff) format("woff");
  font-weight: bold;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: "ISO", monospace;
  /* font: 16px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; */
}

p,
li {
  font-family: "ISO", monospace;
  font-weight: normal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "ISO", monospace;
  font-weight: bold;
}

.regular {
  font-weight: normal;
}

.main-carousel {
  width: 0;
  height: 0;
  z-index: -1;
}

.carousel-cell {
  width: 100%;
  height: 100%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.flickity-enabled.is-fullscreen {
  padding-bottom: 0;
}

.grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.grid-container {
  min-height: 100%;
  display: flex;
  flex-grow: 1;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-content: flex-start;
}
.grid:after {
  content: "";
  display: block;
  flex-grow: 10;
  outline: 2px solid #fff;
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .grid:after {
    outline-color: #000;
  }
}
.grid .item {
  height: 40vh;
  flex-grow: 1;
  outline: 2px solid #fff;
  position: relative;
  background-size: 100%;
}
@media (prefers-color-scheme: dark) {
  .grid .item {
    outline-color: #000;
  }
}
.grid .item img {
  max-height: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}
.grid .item .open,
.grid .item .close {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-indent: 150%;
  overflow: hidden;
  white-space: nowrap;
}
.grid .item .open {
  cursor: zoom-in;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.15s ease-out;
}
.grid .item .open:hover,
.grid .item .open:focus {
  background-color: rgba(0, 0, 0, 0.25);
}
.grid .item .open:active {
  background-color: rgba(0, 0, 0, 0.5);
}

.links {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-wrap: wrap;
  margin-left: 16px;
}
.links li {
  margin-left: 8px;
}
.links li a {
  display: block;
  border-radius: 16px;
  text-indent: 150%;
  overflow: hidden;
  white-space: nowrap;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: 8px;
  background-size: 16px;
  transition: background-color 0.1s linear;
  -webkit-backdrop-filter: blur(20px);
  -moz-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(200, 200, 200, 0.25);
}
.links li a:hover,
.links li a:focus {
  background-color: rgba(200, 200, 200, 0.5);
}
.links li a:active {
  background-color: rgba(200, 200, 200, 0.25);
}
.links li.github a {
  background-image: url(/../img/icon-github.svg);
}
.links li.rss a {
  background-image: url(/../img/icon-rss.svg);
}
.links li.link a {
  text-indent: 0;
  width: auto;
  font-size: 13px;
  line-height: 32px;
  text-transform: uppercase;
  padding: 0 12px;
  color: rgba(0, 0, 0, 0.75);
  font-weight: 600;
  text-decoration: none;
}

@media (max-aspect-ratio: 1 / 1) {
  .grid .item {
    height: 30vh;
  }
}
@media (max-height: 480px) {
  .grid .item {
    height: 80vh;
  }
}
@media (max-aspect-ratio: 1 / 1) and (max-width: 480px) {
  .grid {
    flex-direction: row;
  }
  .grid .item {
    height: auto;
    width: 100%;
  }
  .grid .item img {
    width: 100%;
    height: auto;
  }
  .grid .item .previous,
  .grid .item .next {
    width: 25vw;
    max-width: auto;
  }
  .grid .item .previous span,
  .grid .item .next span {
    display: none;
  }
  .grid .item .previous {
    cursor: w-resize;
  }
  .grid .item .next {
    cursor: e-resize;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* QR Code styling */
.qr svg {
  display: block;
  margin: 0 auto;
}
