html,
body {
  min-height: 100%;
}

body {
  padding: 14px 0 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .72), transparent 38%),
    #dfeeff url("/assets/teachers-bg-tile.png") repeat;
}

.album {
  width: min(980px, calc(100vw - 18px)) !important;
  min-height: auto !important;
  margin: 0 auto !important;
  padding: 16px clamp(12px, 3.8vw, 34px) 18px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(239,246,255,.76)),
    rgba(245,250,255,.82) !important;
  border: 4px double #264878 !important;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.82),
    4px 5px 0 rgba(0,0,0,.18) !important;
}

.album header {
  display: grid;
  gap: 2px;
  max-width: 760px;
  margin: 0 auto 10px;
  text-align: center;
}

.album h1 {
  margin: 0;
  color: #000080 !important;
  font-size: clamp(31px, 6vw, 49px) !important;
  line-height: .98;
  letter-spacing: 0 !important;
  text-shadow: 2px 2px 0 rgba(255,255,255,.86), 3px 3px 0 rgba(0,0,0,.14) !important;
}

.ornament {
  color: #b00020 !important;
  font-size: 15px !important;
}

.subtitle {
  max-width: 58ch;
  margin: 0 auto !important;
  color: #263f7c !important;
  font-size: clamp(15px, 2.6vw, 19px) !important;
  line-height: 1.15;
}

.rule {
  margin: 7px auto !important;
  border-top: 1px solid rgba(0,0,128,.54) !important;
}

.intro {
  max-width: 60ch !important;
  margin: 0 auto 12px !important;
  color: #111;
  font: 700 14px/1.35 "Courier New", Courier, monospace !important;
}

.album-tools {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  background: rgba(255,255,255,.7) !important;
  border: 2px solid rgba(38,72,120,.55) !important;
  box-shadow: 2px 2px 0 rgba(0,0,0,.11) !important;
}

.album-tools h2 {
  margin: 0 !important;
  color: #000080 !important;
  font: 900 15px/1.1 "Courier New", Courier, monospace !important;
  text-transform: lowercase;
}

.folder-row {
  gap: 6px !important;
}

.folder-filter {
  min-height: 29px !important;
  padding: 5px 9px !important;
  color: #000080 !important;
  background: #f8fbff !important;
  border: 2px outset #cdd9ee !important;
  font: 900 12px/1 "Courier New", Courier, monospace !important;
}

.folder-filter.is-active {
  color: #fff !important;
  background: #000080 !important;
  border-style: inset !important;
}

.folder-status {
  grid-column: 2;
  margin: -2px 0 0 !important;
  color: #4f1a84 !important;
  font: 700 12px/1.25 "Courier New", Courier, monospace !important;
}

.photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)) !important;
  gap: 10px !important;
  border: 0 !important;
}

.photo-card {
  min-height: 0 !important;
  padding: 7px !important;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(38,72,120,.46) !important;
  box-shadow: 2px 3px 0 rgba(0,0,0,.12);
  text-align: center;
}

.photo-card a.image {
  height: auto !important;
  aspect-ratio: 4 / 3;
  border: 1px solid #7891b8 !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}

.photo-card span {
  min-height: 30px;
  margin-top: 6px !important;
  color: #000080;
  font: 900 13px/1.15 "Courier New", Courier, monospace !important;
}

.empty-folder {
  min-height: 150px !important;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,128,.05) 0 8px, transparent 8px 16px),
    rgba(255,255,255,.62) !important;
  border: 1px dashed rgba(0,0,128,.55) !important;
}

.bottom-nav {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px !important;
  width: min(720px, 100%) !important;
  margin: 14px auto 6px !important;
}

.bottom-nav a {
  min-height: 30px !important;
  padding: 4px 12px;
  background: linear-gradient(180deg, #fff, #dce7ff) !important;
  border: 2px outset #d8e4f4 !important;
  box-shadow: 1px 1px 0 rgba(0,0,0,.18) !important;
  font: 900 13px/1 "Courier New", Courier, monospace !important;
}

.counter-row,
.updated {
  margin-top: 6px !important;
  color: #263f7c;
  font: 700 12px/1.25 "Courier New", Courier, monospace !important;
}

.album-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 8px;
  color: #263f7c;
  text-align: center;
  font: 700 12px/1.25 "Courier New", Courier, monospace;
}

.album-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 680px) {
  body {
    padding: 5px 0 12px;
  }

  .album {
    width: calc(100vw - 10px) !important;
    padding: 12px 9px 14px !important;
    border-width: 3px !important;
  }

  .album-tools {
    grid-template-columns: 1fr;
  }

  .folder-status {
    grid-column: auto;
  }

  .folder-filter {
    flex: 1 1 calc(50% - 6px) !important;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .photo-card {
    padding: 5px !important;
  }

  .photo-card span {
    font-size: 12px !important;
  }

  .bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
