/*
Theme Name: Sleek Portfolio
Theme URI: https://example.com/sleek-portfolio
Author: ChatGPT
Description: Ultra-minimal, black & white photography portfolio
Version: 1.1.1
License: GPL-2.0-or-later
Text Domain: sleek-portfolio
*/

/* ----------------------------------------------------------
   Root & Base
---------------------------------------------------------- */
:root {
  --fg: #222;
  --bg: #fff;
  --muted: #666;
  --thin: #eaeaea;
}

* { box-sizing: border-box; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;
}

.image-border{
  border: 1px solid var(--thin);
}

/* ----------------------------------------------------------
   Typography
---------------------------------------------------------- */
h1, h2, h3,
.nav a,
.brand span,
.social a,
.meta, .date, .title, .tile-caption, p, footer,
figcaption { text-transform: lowercase; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 0 .5rem;
}

p { margin: 0 0 1rem; }

/* ----------------------------------------------------------
   Header
---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--thin);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: .04em;
}
.brand span { font-weight: 500; }       /* gleich „dick“ wie Menü */
.brand img  { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 18px; }

.nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 6px 0;
  font-weight: 500;
}

.nav a:hover { opacity: .7; }

.nav a.active,
.overlay-inner a.active {
  text-decoration: underline;
}


.social {
  display: none;                         /* im overlay sichtbar */
  align-items: center;
  gap: 12px;
  margin-left: 10px;
}
.social a {
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--thin);
  padding: 2px 8px;
  width: 35px;
  border-radius: 15px;
  font-size: .82rem;
  display: flex;
  justify-content: center;
}

.burger {
  display: none;
  cursor: pointer;
  border: 0;
  color: var(--fg);
  background: transparent;
  padding: 0;
}

a{
  color: var(--fg);
}

/* responsive header */
@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ----------------------------------------------------------
   Mobile Overlay Menu (iOS Fix)
---------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  display: none;
  z-index: 50;

  /* volle Höhe in iOS */
  height: 100dvh;
  height: 100svh;
  height: 100vh;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);

  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.overlay.open { display: block; }

.overlay-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}

.overlay a {
  color: #111;
  text-decoration: none;
  font-size: 1.4rem;
}

.overlay .social {
  display: flex;
  gap: 16px;
  margin-left: 0;
}

.overlay .social a {
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--thin);
  padding: 2px 8px;
  border-radius: 15px;
  font-size: .82rem;
  width: 35px;
  display: flex;
  justify-content: center;
}

.overlay .close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 24px;
  border: 0;
  background: transparent;
  color: var(--fg);
  padding: 0;
}

/* ----------------------------------------------------------
   Sticky Header Fix im Menü-Open-State
---------------------------------------------------------- */
.menu-open .site-header {
  position: relative;
  z-index: 1;
}

/* Body Scroll lock */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


/* ----------------------------------------------------------
   Layout & Container
---------------------------------------------------------- */
.container {
  max-width: 1240px;
  margin: 0px auto;
  padding: 36px 24px;
	display: flex;
    justify-content: center;
}

.post.content figure{
	display: flex;
gap: 24px;
}

.container article {
  max-width: 600px;
 width: 100%
}

@media (max-width: 560px) {
	.archive .container {margin: 0px}
	.container {padding: 0px}
	.container {margin: 24px 24px 48px 24px}
	
	.header-inner {
  padding: 12px 24px;
}
}

/* ----------------------------------------------------------
   Masonry Grid
---------------------------------------------------------- */
.masonry { column-count: 2; column-gap: 24px; }
@media (max-width: 1120px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.masonry-item {
  break-inside: avoid;
  margin: 0 0 24px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.masonry-item img { width: 100%; height: auto; display: block; }

/* Tile captions */
.tile-caption { display: block; color: #222; font-size: .95rem; margin-top: 6px; }
.tile-caption .date { color: #888; font-size: .9rem; margin-left: 8px; }

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--thin);
  padding: 28px 20px;
  color: var(--fg);
  text-align: center;
}

/* ----------------------------------------------------------
   Pages & Content
---------------------------------------------------------- */
.page h1,
.archive h1 { font-size: 1.4rem; margin: 0 0 16px; }

.content {
  max-width: 600px;
  margin: 0 auto 0px;
  font-size: 1.05rem;
}
.content p { margin: 0 0 1rem; }

/* ----------------------------------------------------------
   Single Project
---------------------------------------------------------- */
.single-hero { max-width: 600px; margin-bottom: 24px; }
.single-hero img { max-width: 100%; width:100%; height: auto;   display: block; border-radius: 0; } /* keine Abrundung */

.single-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 22px;
}
.single-meta .title { font-weight: 600; }
.single-meta .date  { color: var(--muted); font-size: .95rem; }




