/* =========================================
   AES Custom Knives – Shared Stylesheet
   ========================================= */

:root {
  --bg: #b8b8b8;
  --card: #d0d0d0;
  --text: #222;
  --border: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 1.15rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 1.2rem;
}

/* ---------- Navigation (1150 px) ---------- */
.nav-bar {
  max-width: 1150px;
  margin: 0 auto;
  background: #000;
  padding: 0.5rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  text-align: right;
}

.nav-bar a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.3rem;
  font-weight: bold;
}

.nav-bar a:hover {
  text-decoration: underline;
}

.nav-line {
  margin: 0.15rem 0;
  line-height: 1.35;
}

/* ---------- Main content ---------- */
section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2rem 1.3rem 0.8rem 1.3rem;
}

h2 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #222;
  border-bottom: 1px solid #777;
  padding-bottom: 0.4rem;
}

.separator {
  border: none;
  border-bottom: 1px solid #777;
  margin: 1.2rem 0 0.8rem 0;
}

/* ---------- Content links (same behavior as footer) ---------- */
section a {
  color: #222;
  font-weight: bold;
  text-decoration: none;
}

section a:hover {
  text-decoration: underline;
}

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem;
}

.gallery-item {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid #777;
  background: #ccc;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  border-color: #444;
}

/* Two bigger pictures */
.gallery-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.gallery-big .gallery-item {
  height: 380px;
}

/* Special layout: 1 big left + 2×2 small on the right */
.gallery-special {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.gallery-special .big {
  grid-row: span 2;
  height: 100%;
  min-height: 420px;
}

.gallery-special .gallery-item {
  height: 100%;
  min-height: 200px;
}

/* ---------- Specs / description boxes ---------- */
.specs-field {
  width: 100%;
  margin: 0 0 1.1rem 0;
  padding: 0.9rem 1.1rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #000;
  background: #d8d8d8;
  border: 2px solid #777;
  border-radius: 3px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.specs-field strong {
  font-weight: bold;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40,40,40,0.92);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 94%;
  max-height: 90vh;
  border-radius: 3px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Footer (1150 px) ---------- */
footer {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 1.3rem;
  border-top: none;
  color: #333;
  font-size: 1.05rem;
  background: #a8a8a8;
  font-family: Verdana, Geneva, sans-serif;
}

footer a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .gallery-special {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-special .big {
    grid-column: span 2;
    grid-row: auto;
    min-height: 260px;
  }
  .gallery-item {
    height: 170px;
  }
  .gallery-big .gallery-item {
    height: 220px;
  }
  body {
    font-size: 1.05rem;
  }
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .nav-links {
    text-align: left;
  }
  .nav-bar {
    font-size: 0.85rem;
  }
}