/* ============================================================
   Laura Ockel Photography — style.css
   ============================================================ */

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #100c12;
  color: #fff;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* === Left panel — always visible, dark === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 37vw;
  max-width: 450px;
  min-width: 300px;
  height: 100%;
  background: #1c1520;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 28px;
  z-index: 1000;
}

/* === Gallery header — centered in panel === */
.gallery-header {
  text-align: center;
  padding: 0 16px;
  transition: opacity 0.3s ease;
}

.gallery-title {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.2;
}

.gallery-title.home-title {
  line-height: 1;
}

.home-logo {
  height: auto;
}

.gallery-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
  line-height: 1.6;
}

/* === Nav overlay — white panel that slides over the dark panel === */
.nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 80px 30px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

body.sidebar-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* === Branding — inside white overlay === */
.branding {
  text-align: left;
  margin-bottom: 40px;
}

.brand-name {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 6px;
  color: #222;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-tagline {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 5px;
  color: #999;
  margin-top: 6px;
  text-transform: uppercase;
}

/* === Nav links — dark text on white === */
.nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  flex: 1;
}

.nav-link {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  transition: color 0.2s;
  padding: 8px 0;
}

.nav-link:hover {
  color: #333;
}

.nav-link.active {
  color: #111;
  font-weight: 700;
}

/* === Social icons — dark on white === */
.social {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: background 0.2s;
}

.social-link:hover {
  background: #444;
}

.social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* === Close button — inside white overlay, right side of nav area === */
.sidebar-close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #444;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 20px;
  transition: color 0.2s;
  z-index: 11;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, color 0.2s;
}

.sidebar-close:hover {
  color: #111;
}

body.sidebar-open .sidebar-close {
  opacity: 1;
  visibility: visible;
}

/* === Hamburger / MENU button — left edge, vertically centered === */
.hamburger {
  position: fixed;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  z-index: 1001;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 0.3s;
}

.hamburger-icon {
  font-size: 28px;
  line-height: 1;
}

.hamburger-text {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

body.sidebar-open .hamburger {
  opacity: 0;
  pointer-events: none;
}

/* === Main content area === */
.main {
  margin-left: 37vw;
  min-height: 100vh;
  padding: 0;
}

@media (min-width: 1200px) {
  .main { margin-left: 450px; }
  .sidebar { width: 450px; }
}

/* === Masonry grid === */
.gallery {
  columns: 2;
  column-gap: 8px;
}

/* === Gallery items with fade-in === */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
  background: #1c1520;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery-item img.loaded {
  opacity: 1;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .sidebar { width: 300px; min-width: 250px; }
  .main { margin-left: 300px; }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open { transform: translateX(0); }

  .hamburger {
    top: 14px;
    left: 14px;
    transform: none;
    flex-direction: row;
    gap: 8px;
  }

  .hamburger-text { display: none; }
  .main { margin-left: 0; }
  .gallery { columns: 1; padding: 4px; }
  .gallery-title { font-size: 26px; }
}

/* === GLightbox overrides === */
.glightbox-clean .gslide-description { background: #1c1520; }
.glightbox-clean .gslide-title {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background-color: rgba(24, 18, 26, 0.7);
  border-radius: 50%;
}
.glightbox-clean .gclose svg,
.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg { filter: invert(1); }
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover { background-color: rgba(42, 24, 40, 0.9); }
.glightbox-container { z-index: 10000; }
.glightbox-container .goverlay { background: rgba(10, 6, 10, 0.97); }
.glightbox-container .gloader { border-top-color: rgba(255, 255, 255, 0.4); }
