/* ============================================
   LORD TRUFFINGTON - style.css
   White editorial theme | Montserrat
   ============================================ */

:root {
  --color-bg: #fff;
  --color-text: #000;
  --header-height: 80px;
  --max-width: 1434px;
  --page-padding: 32px;
  --gap: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  height: var(--header-height);
  gap: 24px;
}

.site-title {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.nav-item {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-item:hover { border-bottom-color: #000; }
.nav-item.active { border-bottom: 1px solid #000; }

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: 8px;
}

.header-social a {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s;
}

.header-social a:hover { opacity: 0.5; }
.header-social svg { fill: currentColor; width: 28px; height: 28px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.burger span { display: block; width: 22px; height: 1px; background: #000; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: #fff;
  padding: 32px 20px;
  border-top: 1px solid #eee;
}

.mobile-menu.open { display: flex; }
.mobile-menu .nav-item { font-size: 13px; }

.mobile-social {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.mobile-social a { color: #000; text-decoration: none; }
.mobile-social svg { fill: currentColor; }

/* ============ GALLERY (Home = 3 cols, sub-galleries = 4 cols) ============ */
.gallery-section {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-masonry {
  columns: 3;
  column-gap: var(--gap);
}

.gallery-masonry.cols-4 { columns: 4; }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease;
}

.gallery-item:hover img { opacity: 0.82; }

/* ============ LIGHTBOX ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 36px;
  cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s; z-index: 1000;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #fff; font-size: 60px;
  cursor: pointer; opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 1; padding: 0 20px; z-index: 1000;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* ============ NFTs PAGE ============ */
.nfts-section {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  max-width: 960px;
  margin: 0 auto;
}

.nfts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 48px;
}

.nft-card img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 20px;
}

.nft-card h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.nft-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.nft-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.nft-card ul li {
  font-size: 14px;
  line-height: 1.85;
  padding-left: 14px;
  position: relative;
}

.nft-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
}

.btn-outline {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #000;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover { background: #000; color: #fff; }

/* ============ ABOUT PAGE ============ */
.about-section {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image {
  display: flex;
  justify-content: flex-start;
}

.about-image img {
  display: block;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  margin-top: 40px;
}

.about-text h2:first-child { margin-top: 0; }

.about-text p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .gallery-masonry.cols-4 { columns: 3; }
}

@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
  .gallery-masonry.cols-4 { columns: 2; }
  .nfts-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image img { max-width: 200px; }
}

@media (max-width: 768px) {
  .header-nav, .header-social { display: none; }
  .burger { display: flex; }
  .gallery-section, .nfts-section, .about-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-masonry, .gallery-masonry.cols-4 { columns: 1; }
}
