/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(8px);
}
.site-logo img {
  height: 55px;
  width: auto;
  display: block;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.site-nav a:hover,
.site-nav a.active { color: #fff; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.hero-image {
  background-size: cover;
  background-position: center;
}
.hero-text {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 420px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
  background: linear-gradient(135deg, #0d1a12 0%, #0d1420 50%, #140d1a 100%);
}
.hero-title {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  letter-spacing: 0.06em;
}
/* ── Filter bar ── */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 20px 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}
.filter-btn {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.filter-btn.active,
.filter-btn:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* ── Gallery (CSS grid med featured-stöd) ── */
.gallery {
  padding: 4px 40px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  display: block;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}
.gallery-item--featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Photo detail ── */
.photo-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: calc(100vh - 60px);
}
.photo-main {
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 20px;
}
.photo-full {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.photo-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.photo-nav-btn {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.photo-nav-btn:hover { color: #fff; }

.photo-sidebar {
  border-left: 0.5px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}
.sidebar-section {
  padding: 24px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.sidebar-section--cta {
  margin-top: auto;
  border-bottom: none;
  display: flex;
  gap: 8px;
}
.photo-title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.photo-cat-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.15);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.sidebar-label {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.exif-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: baseline;
}
.exif-key { font-size: 12px; color: rgba(255,255,255,0.25); }
.exif-val { font-size: 12px; color: rgba(255,255,255,0.6); font-family: monospace; }

/* ── About ── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.about-photo {
  background: #1a1e2a;
  min-height: 400px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.about-name { font-size: 26px; font-weight: 500; color: #fff; }
.about-role {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}
.about-bio {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}
.gear-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gear-tag {
  padding: 4px 12px;
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ── Contact ── */
.contact-page {
  max-width: 560px;
  margin: 64px auto;
  padding: 0 40px;
}
.contact-page h1 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
}
.contact-page > p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}
.social-icon {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.social-icon:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn--primary { background: #fff; color: #111; border: none; font-weight: 500; }
.btn--secondary {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 0.5px solid rgba(255,255,255,0.2);
}

/* ── Footer ── */
.site-footer {
  padding: 16px 40px;
  border-top: 0.5px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}
.cat-header {
  padding: 40px 40px 24px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.cat-title {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery { columns: 2; }
  .photo-detail { grid-template-columns: 1fr; }
  .photo-sidebar {
    border-left: none;
    border-top: 0.5px solid rgba(255,255,255,0.07);
  }
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { min-height: 280px; }
}
@media (max-width: 600px) {
  .site-header { padding: 14px 20px; }
  .site-nav { gap: 16px; }
  .gallery { columns: 1; padding: 4px 16px 24px; }
  .filter-bar { padding: 16px; }
  .hero { min-height: 240px; padding: 32px 20px; }
  .about-text { padding: 32px 20px; }
  .contact-page { padding: 0 20px; }
}