/* Wachsmalerin styling layered over the copied Quark 2 theme. */
:root {
  --pico-font-family-display: 'Princess Sofia', cursive;
}

.dropmenu a,
.overlay .overlay-menu a {
  font-family: 'Princess Sofia', cursive;
  font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

:root[data-theme="dark"] {
  --q2-bg: #202020;
  --q2-bg-elev: #282828;
  --q2-bg-muted: #333333;
  --q2-text: #eeeeee;
  --q2-text-strong: #ffffff;
  --q2-text-muted: #b8b8b8;
  --q2-accent: #ed6b93;
  --q2-link: #ed6b93;
  --q2-focus-ring: color-mix(in oklab, #ed6b93 40%, transparent);
  --q2-divider: rgba(255, 255, 255, 0.12);
  --q2-border-ring: rgba(255, 255, 255, 0.12);
  --q2-border-strong: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] #header {
  background: #4b102b url('../images/background-head-V3.png') center / 100% 100% no-repeat;
}

:root[data-theme="light"] #header {
  background: #f7f3f4;
}

.content-item > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.75;
}

a.button, button, [type=submit] {
  border-radius: 999px;
}

.gallery-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.5rem 0 3rem;
}

.gallery-categories a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--q2-divider);
  border-radius: 999px;
  background: var(--q2-bg-elev);
  color: var(--q2-text-strong);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.gallery-categories a:hover,
.gallery-categories a:focus-visible {
  border-color: var(--q2-accent);
  background: color-mix(in oklab, var(--q2-accent) 14%, var(--q2-bg-elev));
  color: var(--q2-accent);
}

.gallery-category {
  margin: 3rem 0;
  scroll-margin-top: 13rem;
}

#gallery-categories {
  scroll-margin-top: 13rem;
}

.gallery-back-to-categories {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--q2-divider);
  border-radius: 50%;
  background: var(--q2-bg-elev);
  color: var(--q2-text-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
}

.gallery-back-to-categories:hover,
.gallery-back-to-categories:focus-visible {
  border-color: var(--q2-accent);
  background: var(--q2-accent);
  color: #fff;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, 5fr) minmax(3rem, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 3.5rem 1rem 2.5rem;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
}

.gallery-lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  max-height: 100%;
  margin: 0;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.gallery-lightbox button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox button:hover,
.gallery-lightbox button:focus-visible {
  background: var(--q2-accent);
  border-color: var(--q2-accent);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.gallery-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.gallery-lightbox-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.gallery-lightbox-count {
  position: absolute;
  right: 50%;
  bottom: 0.5rem;
  margin: 0;
  transform: translateX(50%);
  color: rgba(255, 255, 255, 0.75);
}

.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .gallery-lightbox {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    padding-inline: 0.5rem;
  }

  .gallery-lightbox button {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 860px) {
  .gallery-category {
    scroll-margin-top: 10rem;
  }

  #gallery-categories {
    scroll-margin-top: 10rem;
  }

  .gallery-back-to-categories {
    right: 1rem;
    bottom: 1rem;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

#header .container {
  padding-block: 0.5rem;
}

.header-brand-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.header-brand-row .navbar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% + 13%));
}

#home-hero {
  background-size: auto 100%;
  background-position: center;
  background-color: #1a1a1a;
}

#header .navbar {
  position: relative;
  justify-content: center;
  min-height: 48px;
}

#header .desktop-menu {
  flex: 1 1 auto;
  justify-content: center;
}

#header .dropmenu > ul {
  justify-content: center;
}

#header .navbar-section.actions {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

.navbar-brand .brand-logo {
  display: block;
  width: 600px;
  height: 120px;
  object-fit: cover;
}

.navbar-brand .brand-logo-dark {
  object-position: center top;
}

.navbar-brand .brand-logo-bright {
  object-position: center bottom;
}

html[data-theme="dark"] .navbar-brand .brand-logo-bright,
html[data-theme="light"] .navbar-brand .brand-logo-dark {
  display: none;
}

@media (max-width: 860px) {
  #header .container {
    padding-block: 0;
  }

  .header-brand-row {
    min-height: 90px;
  }

  .header-brand-row .navbar-brand {
    transform: translateX(-50%);
  }

  #header .navbar {
    min-height: 0;
  }

  .navbar-brand .brand-logo {
    width: 480px;
    height: 90px;
  }

  .mobile-menu {
    top: 34px;
    right: 10px;
  }
}

@media (max-width: 400px) {
  .header-brand-row {
    min-height: 70px;
  }

  .navbar-brand .brand-logo {
    width: 360px;
    height: 70px;
  }

  .mobile-menu {
    top: 20px;
    right: 8px;
  }
}

@media (max-width: 860px) {
  :root[data-theme="dark"] #header {
    background-size: 100% 100%;
  }
}
