:root {
  --bg: #000000;
  --bg-soft: #131312;
  --ink: #636363;
  --muted: #6b645c;
  --line: #e1dacf;
  --accent: #b26a3c;
  --shadow: 0 12px 30px rgba(28, 27, 24, 0.3);
  --radius: 18px;
  --font-serif: "Google Sans", "Noto Sans Hebrew", sans-serif;
  --font-sans: "Google Sans", "Noto Sans Hebrew", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  /* background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(233, 226, 213, 0.7), transparent 40%),
    linear-gradient(120deg, var(--bg), var(--bg-soft)); */
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.layout {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
  width: min(1000px, 100%);
}

.img-index{
  margin:0 auto;
  text-align: center;
}
.site-header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px 16px;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-img{
max-width: 80px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.5px;
}

.site-tagline {
  font-size: 14px;
  color: var(--muted);
}

.nav-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: inline-flex;
}

.site-nav {
  grid-area: nav;
  padding: 80px 24px 24px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(80vw, 320px);
  background: var(--bg);
  transform: translateX(-110%);
  transition: transform 0.25s ease;
  z-index: 10;
  box-shadow: var(--shadow);
  top: 0;
  overflow-y: auto;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-link:hover {
  border-color: var(--line);
}

.nav-count {
  font-size: 12px;
  color: var(--muted);
}

.site-main {
  grid-area: main;
  padding: 10px 24px 64px;
}

.site-footer {
  grid-area: footer;
  padding: 24px 40px 40px;
  font-size: 12px;
  color: var(--muted);
}

.section {
  margin-bottom: 64px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  margin: 0;
}

.section-description {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.home-intro {
  max-width: 560px;
  font-size: 15px;
  color: var(--muted);
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.card-title {
  font-family: var(--font-serif);
  color: var(--ink);
}

.project-detail {
  max-width: 900px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 42px;
  margin: 0 0 16px;
}

.project-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.project-content {
}

.project-content img {
  margin: 12px 0;
  cursor: zoom-in;
}

.project-gallery {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.project-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.project-nav {
  display: block;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}

.lightbox img {
  max-width: 86vw;
  max-height: 86vh;
  cursor: zoom-in;
}

.lightbox img.is-zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#nav-toggle:checked ~ .layout .site-nav {
  transform: translateX(0);
}

#nav-toggle:checked ~ .layout .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 15, 0.35);
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9;
  cursor: pointer;
}
