/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover {
  color: #000;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 25%;
  min-width: 25%;
  padding: 3rem 2rem;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.site-title {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.site-title a {
  color: #111;
}

.site-title a:hover {
  color: #000;
}

/* Navigation */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.site-nav a {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #000;
  font-weight: 500;
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

.social-links a {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #666;
}

.social-links a:hover {
  color: #000;
}

/* Language switch */
.lang-switch {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lang-switch span.active {
  font-weight: 500;
}

.lang-switch a {
  color: #999;
}

.lang-switch a:hover {
  color: #000;
}

.lang-switch span + a::before,
.lang-switch a + span::before,
.lang-switch a + a::before {
  content: ' | ';
  color: #ccc;
}

/* Content area */
.content {
  margin-left: 25%;
  padding: 3rem 3rem 4rem;
  flex: 1;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Homepage */
.home-image {
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-image img {
  width: 70%;
  max-width: 70%;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.gallery-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  max-width: 700px;
}

.gallery-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  max-width: 700px;
}

/* Lightbox */
.lightbox-trigger {
  cursor: zoom-in;
  display: block;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 1001;
}

.lightbox-close:hover {
  color: #ccc;
}


/* About & Contacts */
.content p {
  max-width: 600px;
  margin-bottom: 1rem;
}

.content p img {
  max-width: 600px;
}

/* Hamburger button - hidden on desktop */
.menu-toggle {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: auto;
    padding: 1.2rem 1.5rem;
  }

  .sidebar-inner {
    height: auto;
  }

  .site-title {
    margin-bottom: 0;
    font-size: 1.1rem;
  }

  /* Hamburger button */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: #222;
    transition: transform 0.3s, opacity 0.3s;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }

  /* Animate to X when open */
  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Collapsible nav */
  .sidebar-nav {
    display: none;
    padding-top: 1.2rem;
  }

  .sidebar-nav.open {
    display: block;
  }

  .site-nav {
    margin-bottom: 1.2rem;
  }

  .site-nav a {
    padding: 0.3rem 0;
    display: block;
  }

  .social-links {
    margin-top: 0;
    margin-bottom: 0.8rem;
  }

  .content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .gallery {
    gap: 1.5rem;
  }
}
