.debug_dump {
  display: block;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  color: #000;
  font: normal 13px/18px monospace;
  padding: 10px;
  margin: 10px 0;
  white-space: pre-wrap;
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  overflow-x: auto;
}
.debug_dump kbd {
  background-color: transparent;
  padding: unset;
  border-radius: unset;
  box-shadow: unset;
}
.debug_dump kbd[style~="color:white"] {
  color: #ccc !important;
}

.debug_wrapper--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.debug_wrapper {
  margin: 10px 0;
}
.debug_wrapper .debug_toggle {
  background: #fff;
  border: 1px solid #000;
  position: relative;
  z-index: 2;
  color: #000;
  font: normal 13px/18px monospace;
  display: inline-block;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  cursor: pointer;
}
.debug_wrapper .debug_toggle:hover {
  background: #f4f4f4;
}
.debug_wrapper .debug_toggle:focus {
  outline: 1px solid #000;
  outline-offset: 1px;
}
.debug_wrapper .debug_toggle:focus:not(:focus-visible) {
  outline: none;
}
.debug_wrapper .debug_toggle.solo {
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  margin: 0;
}
.debug_wrapper .debug_toggle.solo:active {
  transform: translate(1px, 1px);
  box-shadow: 4px 4px 0 0 #8a8a8a;
}
.debug_wrapper .debug_content {
  overflow-y: hidden;
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  color: #000;
  font: normal 13px/18px monospace;
}
.debug_wrapper .debug_content .debug_dump {
  background: transparent;
  box-shadow: none;
  border: 1px dashed #999;
  max-width: 100%;
  margin: 0;
}
.debug_wrapper .debug_content .debug_dump + .debug_dump {
  margin-top: 10px;
}
.debug_wrapper .debug_content .debug_toggle.solo {
  box-shadow: none;
}

body {
  position: relative;
  font-family: monospace;
  background: #dadac5;
  color: #212121;
  margin: 0;
  padding: 0;
  display: flex;
  max-height: 100vh;
  align-items: center;
  flex-direction: column;
}

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

.flash-stack {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: min(20rem, 100vw - 2rem);
  pointer-events: none;
}
.flash-stack:empty {
  display: none;
}

.flash {
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #000;
  text-align: left;
  pointer-events: auto;
  box-sizing: border-box;
}
.flash.alert {
  border-color: #000;
}
.flash.notice {
  border-color: #000;
}

.logo {
  margin: 50px auto;
  max-width: 80vw;
}

.project-grid-nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  width: 100%;
  max-width: min(100%, 2400px);
  margin: 0 auto;
  padding: 0 25px 1.75rem;
  box-sizing: border-box;
}
.project-grid-nav a {
  white-space: nowrap;
}

.projects {
  margin: 0 25px;
  text-align: center;
}
.projects .project {
  display: block;
  padding: 50px;
  margin: 50px auto;
  border: 1px solid #b9b9b9;
  background: #c8c8b1;
  font-size: 20px;
}
.projects .project.private {
  background: #ffd700;
  border-color: goldenrod;
}

.posts {
  margin: 0 25px;
  text-align: center;
}
.posts.posts--permalink {
  align-self: stretch;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin-inline: 0;
}
.posts.posts--permalink .post {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.posts.posts-grid-host {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  text-align: initial;
}
@media (min-width: 1100px) {
  .posts.posts-grid-host {
    align-self: stretch;
    max-width: min(100%, 2400px);
  }
}
.posts.posts-grid-host .posts-grid-sizer {
  width: 100%;
}
.posts.posts-grid-host .posts-grid-masonry {
  width: 100%;
  line-height: 0;
}
.posts.posts-grid-host .post-grid-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  vertical-align: top;
}
.posts.posts-grid-host .post-grid-frame-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.posts.posts-grid-host .post-grid-tile-mux-host {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.posts.posts-grid-host .post-grid-tile-mux-host mux-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  --controls: none;
  --media-object-size: cover;
  --media-object-position: center;
}
.posts.posts-grid-host .post-grid-tile-mux-host .post-grid-tile-link.post-grid-tile-pswp-mux {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  min-height: 100%;
}
.posts.posts-grid-host .post-grid-tile-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: inherit;
  text-decoration: none;
}
.posts.posts-grid-host .post-grid-tile-link.post-grid-tile-pswp {
  cursor: zoom-in;
}
.posts.posts-grid-host .post-grid-tile-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}
.posts.posts-grid-host .post-grid-tile-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 4rem;
  font-size: 14px;
  color: #5a5a55;
  text-decoration: none;
  box-sizing: border-box;
}
.posts.posts-grid-host .posts-grid-sentinel {
  height: 1px;
}
.posts.posts-grid-host .posts-grid-loading {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 0.625rem;
  pointer-events: none;
}
.posts.posts-grid-host .posts-grid-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a8a85;
  opacity: 0.65;
  animation: posts-grid-loading-bounce 0.55s ease-in-out infinite alternate;
}
.posts.posts-grid-host .posts-grid-loading-dot:nth-child(2) {
  animation-delay: 0.1s;
}
.posts.posts-grid-host .posts-grid-loading-dot:nth-child(3) {
  animation-delay: 0.2s;
}
@keyframes posts-grid-loading-bounce {
  from {
    transform: translateY(0);
    opacity: 0.45;
  }
  to {
    transform: translateY(-7px);
    opacity: 0.95;
  }
}
@media (prefers-reduced-motion: reduce) {
  .posts.posts-grid-host .posts-grid-loading-dot {
    animation: none;
    opacity: 0.55;
  }
}
.posts .post {
  margin: 100px auto;
  max-width: 90vw;
}
.posts .post img,
.posts .post video {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
}
.posts .post .post-show-media-inline img,
.posts .post .post-show-media-inline mux-player {
  max-height: 95dvh;
}
.posts .post .filename {
  color: #5a5a55;
}

.dropzone {
  background: #eee;
  border: 1px solid #b9b9b9;
  text-align: center;
  padding: 20px;
  margin: 0 0 15px 0;
  position: relative;
}
.dropzone input {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.media-queue .media-item {
  margin: 0 0 15px 0;
}
.media-queue .media-item .media-item__status {
  margin-left: 0.4em;
  font-size: 0.88em;
  color: #5a7a86;
}
.media-queue .media-item .media-item__status:empty {
  display: none;
}
.media-queue .media-item.media-item--dupe label {
  color: #888;
}
.media-queue .media-item.media-item--dupe .progress {
  opacity: 0.45;
}
.media-queue .media-item .progress {
  position: relative;
  height: 10px;
  background: #e3f3f8;
  overflow: hidden;
}
.media-queue .media-item .progress .bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 0;
}
.media-queue .media-item .progress .bar--hash {
  z-index: 1;
  background: #b8d8e8;
}
.media-queue .media-item .progress .bar--upload {
  z-index: 2;
  background: #6ea0b1;
}

.post-show-media-inline {
  width: 100%;
  line-height: 0;
}
.post-show-media-inline img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 95dvh;
  height: auto;
  margin-inline: auto;
  vertical-align: middle;
}
.post-show-media-inline--video {
  display: block;
}
.post-show-media-inline--video .post-show-mux {
  display: block;
  width: min(100%, var(--post-media-w-fit, 100vw));
  max-width: 100%;
  max-height: 95dvh;
  height: auto;
  aspect-ratio: var(--post-media-ar, 16/9);
  margin-inline: auto;
}

.pswp-mux-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  touch-action: manipulation;
  pointer-events: auto;
}
.pswp-mux-wrap mux-player {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  pointer-events: auto;
}

.resource-page {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  box-sizing: border-box;
  text-align: center;
}
.resource-page h1 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: normal;
  line-height: 1.3;
}
.resource-page .resource-page__links {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #333;
  line-height: 1.6;
}
.resource-page .resource-page__links a {
  color: #000;
}

.resource-form {
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.resource-form__errors {
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
}
.resource-form__errors h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: normal;
  color: #000;
}
.resource-form__errors ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #000;
}
.resource-form__errors li {
  margin: 0.15rem 0;
}

.resource-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.resource-form__field:last-of-type {
  margin-bottom: 0;
}

.resource-form__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
}

.resource-form__control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.resource-form__control:focus {
  outline: 1px solid #000;
  outline-offset: 1px;
}

select.resource-form__control {
  cursor: pointer;
  padding-right: 1.75rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1 1.5L6 6l5-4.5' stroke='%23000' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  appearance: none;
}

.resource-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #000;
  cursor: pointer;
}
.resource-form__check input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #000;
}

.resource-form__hint {
  margin: 0;
  font-size: 0.75rem;
  color: #333;
  line-height: 1.35;
}

.resource-form__field > .resource-form__hint {
  margin-top: 0.15rem;
}

.resource-form__actions {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed #ccc;
}

.resource-form__submit {
  background: #fff;
  border: 1px solid #000;
  box-shadow: 5px 5px 0 0 #8a8a8a;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: #000;
}
.resource-form__submit:hover {
  background: #f4f4f4;
}
.resource-form__submit:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}
.resource-form__submit:active {
  transform: translate(1px, 1px);
  box-shadow: 4px 4px 0 0 #8a8a8a;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  --pswp-root-z-index: 100000;
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;
  --pswp-error-text-color: var(--pswp-icon-color);
}

/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/
.pswp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--pswp-root-z-index);
  display: none;
  touch-action: none;
  outline: 0;
  opacity: 0.003;
  contain: layout style size;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
  display: block;
}

.pswp,
.pswp__bg {
  transform: translateZ(0);
  will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
  background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
  overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
  width: auto;
  height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
  cursor: move;
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
  cursor: -webkit-zoom-out;
  cursor: -moz-zoom-out;
  cursor: zoom-out;
}

/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.pswp__item {
  /* z-index for fade transition */
  z-index: 1;
  overflow: hidden;
}

.pswp__hidden {
  display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}

.pswp__content > * {
  pointer-events: auto;
}

/*

  PhotoSwipe UI

*/
/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}

.pswp__error-msg {
  margin: auto;
  font-size: 1em;
  line-height: 1;
  color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
  opacity: 0.005;
  will-change: opacity;
  transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
  z-index: 10; /* always overlap slide content */
  pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
  opacity: 1;
  pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
  position: relative;
  display: block;
  width: 50px;
  height: 60px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 0.85;
  -webkit-appearance: none;
  -webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
  outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
  background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  z-index: 10;
  /* allow events to pass through top bar itself */
  pointer-events: none !important;
}

.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}

/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}

/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}

.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}

/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}
