/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #d8d8d8;
  font-size: 14px;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: 220px;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 44px 32px;
  z-index: 100;
  border-right: 1px solid #1c1c1c;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar__name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 52px;
  text-decoration: none;
  display: block;
  transition: opacity 0.25s ease;
}
.sidebar__name:hover { opacity: 0.7; }

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__nav a {
  display: inline-block;
  color: #5a5a5a;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 0;
  position: relative;
  transition: color 0.28s ease;
}

.sidebar__nav a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar__nav a:hover { color: #fff; }
.sidebar__nav a:hover::after { width: 100%; }

.sidebar__nav a.active {
  color: #fff;
}
.sidebar__nav a.active::after { width: 100%; }

/* Mobile hamburger */
.sidebar__toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 200;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.sidebar__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sidebar__toggle.open span:nth-child(2) { opacity: 0; }
.sidebar__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  margin-left: 220px;
  min-height: 100vh;
}

/* Page enter animation */
.page-enter {
  animation: fadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

/* ============================================================
   HOME SLIDESHOW
   ============================================================ */
.slideshow {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.slideshow__slide.active { opacity: 1; }

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow__dots {
  position: absolute;
  bottom: 28px;
  right: 36px;
  display: flex;
  gap: 9px;
  z-index: 10;
}

.slideshow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.35s ease, transform 0.35s ease;
}

.slideshow__dot.active {
  background: #fff;
  transform: scale(1.4);
}

.slideshow__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
}

/* ============================================================
   GALLERY SECTION HEADER
   ============================================================ */
.gallery-header {
  padding: 56px 48px 28px;
}

.gallery-header h1 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
}

/* ============================================================
   JUSTIFIED ROW GALLERY
   ============================================================ */
.justified-gallery {
  padding: 0 3px 3px;
}

.jg-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #111;
  flex-shrink: 0;
}

.jg-item img {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.3s ease;
}

.jg-item:hover img {
  transform: scale(1.03);
  opacity: 0.82;
}

/* ============================================================
   LANDSCAPE ALBUM OVERVIEW
   ============================================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px 3px;
}

.album-card {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card:hover img { transform: scale(1.04); }

.album-card__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-card:hover .album-card__label { opacity: 1; }

.album-card__label span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

/* Back nav in album view */
.gallery-back {
  padding: 8px 48px 20px;
}

.gallery-back a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
  transition: color 0.25s ease;
}

.gallery-back a:hover { color: #fff; }
.gallery-back a::before { content: '← '; }

/* Empty state */
.gallery-empty {
  padding: 80px 48px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img-wrap {
  max-width: calc(100vw - 140px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox__img-wrap img.loaded { opacity: 1; }

.lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 22px;
  cursor: pointer;
  padding: 20px 26px;
  transition: color 0.25s ease;
  z-index: 501;
  line-height: 1;
  font-family: inherit;
}

.lightbox__arrow:hover { color: #fff; }
.lightbox__arrow--prev { left: 0; }
.lightbox__arrow--next { right: 0; }

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.25s ease;
  z-index: 501;
  line-height: 1;
}

.lightbox__close:hover { color: #fff; }

.lightbox__counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  user-select: none;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 40px;
}

.contact-inner h1 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 32px;
}

.contact-inner a {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #c8c8c8;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 3px;
  transition: color 0.28s ease, border-color 0.28s ease;
}

.contact-inner a:hover {
  color: #fff;
  border-color: #666;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);
  }

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

  .sidebar__toggle { display: flex; }

  .main { margin-left: 0; }

  .gallery-grid,
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-header,
  .gallery-back { padding-left: 16px; padding-right: 16px; }

  .contact-wrap { padding: 64px 24px; }

  .lightbox__img-wrap { max-width: calc(100vw - 80px); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .album-grid   { grid-template-columns: 1fr; }
}
