:root {
  --pico-border-radius: 0.75rem;
}
.site-header {
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.site-header nav {
  position: relative;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 0.75rem;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--pico-h1-color);
}
.site-header .brand i {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  background: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
  font-size: 1.3rem;
}
.site-header .menu {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .menu li {
  display: block;
  margin: 0;
  padding: 0;
}
.site-header .menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--pico-muted-color);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-header .menu a:hover,
.site-header .menu a:focus-visible {
  background: var(--pico-secondary-focus);
  color: var(--pico-h1-color);
}
.site-header .menu a[aria-current="page"] {
  background: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
}
.site-header .menu-toggle,
.site-header .burger {
  display: none;
}
@media (max-width: 767px) {
  .site-header .menu-toggle,
  .site-header .burger {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
  }
  .site-header .menu-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0;
    z-index: 1;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  .site-header .burger {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.75rem;
    font-size: 1.5rem;
    color: var(--pico-h1-color);
  }
  .site-header .burger .ph-x {
    display: none;
  }
  .site-header .menu-toggle:focus-visible + .burger {
    outline: 2px solid var(--pico-primary);
    outline-offset: 2px;
  }
  .site-header .menu-toggle:checked + .burger .ph-list {
    display: none;
  }
  .site-header .menu-toggle:checked + .burger .ph-x {
    display: block;
  }
  .site-header .menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
  }
  .site-header .menu a {
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
  }
  .site-header .menu-toggle:checked ~ .menu {
    display: flex;
  }
}
main {
  padding-block: 2rem;
}
hgroup h1 i,
h2 i,
.camera-card header i {
  color: var(--pico-primary);
}
.camera-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.camera-card {
  margin: 0 0 var(--pico-block-spacing-vertical);
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
}
.camera-card > header,
.camera-card > footer {
  margin: 0;
  padding: 0.75rem 1rem;
}
.camera-card > header {
  font-weight: 600;
}
.camera-card > footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.camera-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--pico-muted-border-color);
}
.camera-card .no-image {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  aspect-ratio: 3 / 2;
  color: var(--pico-muted-color);
  text-decoration: none;
}
.camera-card .no-image i {
  font-size: 2.5rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.actions [role="button"] {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
.day-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-block: 0.6rem;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--pico-background-color) 85%, transparent);
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.day-nav [role="button"] {
  margin: 0;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}
.day-nav .to-top {
  margin-left: auto;
}
#archiv {
  scroll-margin-top: 1rem;
}
section > h3 {
  scroll-margin-top: 4.5rem;
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--pico-muted-color);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--pico-muted-border-color);
  aspect-ratio: 3 / 2;
}
.gallery a:focus-visible {
  outline: 2px solid var(--pico-primary);
  outline-offset: 2px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s, opacity 0.3s;
}
.gallery img[data-src] {
  opacity: 0;
}
.gallery a:hover img {
  transform: scale(1.05);
}
.gallery time {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
}
#lightbox > article {
  position: relative;
  display: flex;
  flex-direction: column;
  touch-action: pan-y pinch-zoom;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
#lightbox > article > header {
  margin: 0;
  padding: 0.5rem 1rem;
}
#lightbox > article > header p {
  margin: 0;
}
#lightbox > article > header .close {
  position: relative;
}
#lightbox > article > header .close::after {
  content: "";
  position: absolute;
  inset: -1rem;
}
#lightbox > article img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
#lightbox > article .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.55);
  border-color: transparent;
  color: #fff;
}
#lightbox > article .nav.prev {
  left: 0.75rem;
}
#lightbox > article .nav.next {
  right: 0.75rem;
}
.site-footer {
  padding-block: 2rem;
  text-align: center;
  color: var(--pico-muted-color);
}
