.site-page {
  --site-header-height: 68px;
  --site-gutter: clamp(20px, 4vw, 64px);
}

.site-page .gallery-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: calc(var(--site-header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--site-gutter), env(safe-area-inset-right)) 0 max(var(--site-gutter), env(safe-area-inset-left));
  border-bottom: 1px solid #2b2b29;
  background: #111;
}

.gallery-header .gallery-brand { justify-self: start; padding-block: 12px; }
.gallery-header .gallery-brand img { width: 76px; height: auto; }
.gallery-nav, .gallery-actions { display: flex; align-items: center; }
.gallery-nav { gap: clamp(16px, 2.8vw, 44px); }
.gallery-actions { justify-self: end; gap: clamp(12px, 2.2vw, 32px); }
.gallery-nav a, .gallery-store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.gallery-nav a { color: #b9b9b6; }
.gallery-nav a:hover, .gallery-nav a[aria-current] { color: #fff; }
.gallery-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.gallery-header .language select { font-size: 12px; border-bottom: 0; }

@media (max-width: 620px) {
  .site-page { --site-header-height: 58px; --site-gutter: 12px; }
  .site-page .gallery-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .gallery-header .gallery-brand img { width: 53px; }
  .gallery-nav { justify-content: center; gap: clamp(8px, 3vw, 14px); }
  .gallery-nav a, .gallery-store { font-size: 12px; }
  .gallery-header .language select { max-width: 78px; padding-inline: 3px 15px; font-size: 11px; }
  .gallery-header .language::after { right: 3px; }
  .gallery-actions .gallery-store { display: none; }
}

@media (max-width: 350px) {
  .gallery-header .gallery-brand img { width: 44px; }
  .site-page .gallery-header { gap: 5px; }
  .gallery-nav a { font-size: 11px; }
  .gallery-header .language select { max-width: 65px; }
}
