/* === Global Resets === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  background-color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* === Layout === */
#canvas {
  display: flex;
  flex-direction: row;
  max-width: 1500px;
  width: 100%;
  min-height: 100vh;
  gap: 80px;
  padding: 0 80px;
}

/* === Sidebar === */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  padding-bottom: 80px;
}

.desktop-header {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-header,
.mobile-title {
  display: none;
}

.mobile-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: #121212;
}

.nav-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sidebar nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: center;
}

.sidebar nav ul li {
  margin-bottom: 1rem;
}

.sidebar nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #404040;
}
.sidebar nav a:hover {
  color: #000;
}

/* === Main Image Area === */
.main-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 80vh;
  width: 100%;
}

.image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.image-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* === Click zones for arrow navigation (Desktop) === */
.click-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
}

.click-zone.left {
  left: 0;
  cursor: w-resize;
}

.click-zone.right {
  right: 0;
  cursor: e-resize;
}

.arrow-icon {
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.4);
  background: white;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  pointer-events: none;
}

/* === Side Arrows (Mobile) === */
.side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem !important;
  color: rgba(80, 80, 80, 0.6) !important;
  background: none !important;
  border: none !important;
  padding: 0.2rem !important;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transition: color 0.2s ease;
}
.side-arrow.left {
  left: 1rem !important;
}
.side-arrow.right {
  right: 1rem !important;
}
.side-arrow:hover {
  color: rgba(50, 50, 50, 0.85) !important;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  color: #121212;
  margin-bottom: 1em;
}
p {
  margin-bottom: 1em;
}

/* === About Text Styling === */
.text-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .text-content {
    padding: 2rem;
    text-align: left;
  }
}

/* === Menu Button (Mobile) === */
.menu-toggle {
  color: #000;
  background: none;
  border: 1px solid #000;
  padding: 0.4rem 0.8rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: none;
}

/* === Desktop Nav === */
.desktop-menu {
  display: block;
}

/* === Mobile Nav === */
#mobile-menu {
  position: absolute;
  top: 3.5rem;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}

/* === Mobile Overrides === */
@media screen and (max-width: 768px) {
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    flex-direction: column;
    align-items: stretch;
  }

  #canvas {
    flex-direction: column;
    padding: 0;
    gap: 0;
    width: 100vw;
    height: 100%;
  }

  .desktop-header {
    display: none;
  }

  .mobile-title {
    display: block;
    font-size: 1.2rem;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    background: white;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
  }

  .sidebar {
    width: 100%;
    padding: 64px 0 0 0;
    margin: 0;
    align-items: center;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    margin: 0;
  }

  .desktop-menu {
    display: none;
  }

  #mobile-menu {
    display: block;
  }

  #mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
  }

  .nav-wrapper {
    width: 100%;
    align-items: center;
    margin-top: 0.5rem;
  }

  .sidebar nav ul {
    flex-direction: column;
    gap: 0.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .sidebar nav ul li {
    margin: 0.5rem 0;
  }

  .main-content {
    flex: 1;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    box-sizing: border-box;
  }

  .image-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

  .click-zone {
    display: none;
  }

  .gallery-controls,
  .image-controls {
    display: none;
  }

  .text-content {
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* === Top Navigation Buttons === */
.image-controls {
  position: absolute;
  top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 5;
  pointer-events: none;
}

.image-controls button {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  font-size: 14px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease;
}

.image-controls button:hover {
  background: rgba(255, 255, 255, 1);
}
