
/* JENRIKS — Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --gray: #888;
  --light: #f5f5f5;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Helvetica, Arial, sans-serif;
  --font-headline: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --chrome-h: 52px;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: #fff;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Photo layout (homepage + photo pages) ── */

.photo-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.photo-header {
  flex: 0 0 auto;
  text-align: center;
  padding: 18px 80px 12px;
  font-family: var(--font-headline);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  padding: 20px;
}

.photo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.photo-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 10px 80px 14px;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.06em;
}

/* ── Bottom chrome (logo + nav) ── */

.site-chrome {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  pointer-events: none;
  z-index: 200;
}

.site-logo {
  pointer-events: all;
}

.site-logo img {
  height: 20px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 22px;
  pointer-events: all;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.65;
  transition: opacity 0.15s;
}

.site-nav a:hover { opacity: 1; }
.site-nav a.active { opacity: 1; font-weight: 600; }

/* ── Side navigation arrows ── */

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 150;
  cursor: pointer;
  font-size: 20px;
}

.nav-prev { left: 8px; }
.nav-next { right: 8px; }

body:hover .nav-arrow { opacity: 0.25; }
.nav-arrow:hover { opacity: 0.85 !important; }

/* ── Archive page ── */

.archive-page {
  min-height: 100vh;
  padding: 48px 32px 80px;
}

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.archive-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.archive-count {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.search-bar {
  width: 360px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  margin-bottom: 20px;
  background: #fff;
}

.search-bar:focus { border-color: var(--black); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
  font-family: var(--font);
}

.filter-chip:hover { border-color: var(--black); }
.filter-chip.active { background: var(--black); color: #fff; border-color: var(--black); }

.filter-sep {
  width: 1px;
  background: #e0e0e0;
  align-self: stretch;
  margin: 2px 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3px;
}

.grid-item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--light);
  border-radius: 3px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-item-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
}

.grid-item:hover .grid-item-meta { opacity: 1; }
.grid-item-title { font-weight: 500; letter-spacing: 0.03em; }
.grid-item-date { opacity: 0.75; font-size: 10px; margin-top: 2px; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--gray);
  font-size: 13px;
}

/* Load more */
.load-more-wrap {
  text-align: center;
  padding: 40px 0 20px;
}

.load-more-btn {
  padding: 10px 32px;
  border: 1px solid var(--black);
  background: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.load-more-btn:hover { background: var(--black); color: #fff; }
.load-more-btn:disabled { opacity: 0.3; cursor: default; }

/* ── Map page ── */

.map-page { height: 100vh; display: flex; flex-direction: column; padding-bottom: var(--chrome-h); }
#map { flex: 1; }

/* ── Slideshow ── */

.slideshow-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.slideshow-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.4s ease, border 0.4s ease;
}

.slideshow-controls.controls-hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-bottom: none;
  pointer-events: none;
}

.ss-btn {
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
  font-family: var(--font);
}

.ss-btn.active { background: var(--black); color: #fff; border-color: var(--black); }
.ss-btn:hover:not(.active) { border-color: var(--black); }

.slideshow-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.ss-photo-header {
  text-align: center;
  padding: 14px 60px 8px;
  font-family: var(--font-headline);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.ss-photo-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.ss-photo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
  border-radius: 3px;
}

.ss-photo-footer {
  text-align: center;
  padding: 8px 60px 14px;
  font-size: 11px;
  color: var(--gray);
}

.ss-progress {
  height: 2px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.ss-progress-bar {
  height: 100%;
  background: var(--black);
  width: 0%;
  transition: width linear;
}

/* ── About page ── */

.about-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

.about-page h1 {
  font-family: var(--font-headline);
  font-size: 36px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 40px;
}

.about-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 40px;
  display: block;
}

.about-page p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}

.about-stats {
  margin-top: 48px;
  padding: 28px 24px;
  border: 1px solid #eee;
  text-align: center;
}

.stat-main {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  letter-spacing: 0.03em;
}

.stat-main strong {
  color: var(--black);
  font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .photo-header { padding: 14px 60px 8px; font-size: 16px; }
  .photo-footer { padding: 8px 60px 52px; }
  .archive-page { padding: 40px 16px 80px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px; }
  .slideshow-controls { gap: 12px; padding: 12px; }
}

/* ── Utilities ── */

.hidden { display: none !important; }
