/* Base reset and variables */
:root {
  --bg: #0f0f10;
  --text: #f5f5f5;
  --muted: #bfbfbf;
  --accent: #e0e0e0;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(6px);
  background: color-mix(in hsl, var(--bg) 85%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Full-width photo grid container */
.photo-grid-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}

.brand {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.brand a {
  padding: 8px 0;
  transition: all 0.3s ease;
  position: relative;
}

.brand a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.brand a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.brand a:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 30px;
}

.nav-links a {
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  transition: opacity 0.2s ease;
}

.menu-toggle:hover {
  opacity: 0.7;
}

/* Hamburger icon - 3 lines */
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 6px;
  transition: transform 0.2s ease;
}

.menu-toggle::before {
  top: 9px;
}

.menu-toggle span::before {
  top: 15px;
}

.menu-toggle::after {
  top: 21px;
}

/* Mobile nav */
@media (max-width: 1100px) {
  .menu-toggle { 
    display: inline-flex; 
    position: absolute;
    right: 16px;
    z-index: 3;
  }
  
  .brand {
    font-size: 24px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 12px 10px;
  }
}

/* Main */
main {
  padding-top: 8px;
}

/* Photo grid - exactly 5 columns, full width, no gaps */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}

/* Responsive photo grid */
@media (max-width: 1200px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* perfect squares */
  overflow: visible;
  background: #111;
  opacity: 0;
  animation: fadeInUp 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grid-item:hover {
  transform: scale(1.02) !important;
  z-index: 10;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

/* Footer spacing */
footer {
  color: var(--muted);
  opacity: 0.4;
  text-align: center;
  padding: 48px 16px 64px;
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  width: 85vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.lightbox-close {
  position: absolute;
  top: -3vh;
  right: 2vw;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 32px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* Mobile lightbox - larger images */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95vw;
    height: 95vh;
  }
}

/* About page */
.about {
  max-width: 800px;
  margin: 24px auto 64px;
  padding: 0 16px;
  line-height: 1.65;
  color: var(--accent);
}

.about h1 {
  font-size: 28px;
  margin: 16px 0 8px;
}

.about p {
  margin: 0 0 14px;
}


