/* === GLOBAL STYLES === */
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
}

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

.container {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR (Desktop) === */
.sidebar {
  width: 300px;
  padding: 60px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  position: relative;
  transform: none;
  background: #fff;
  z-index: 1;
}

.sidebar h1 {
  font-size: 13px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 12px;
}

.sidebar a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.sidebar a:hover {
  background-color: #000;
  color: #fff;
}

/* === CONTENT (NO VERTICAL SHIFT) === */
.content {
  flex-grow: 1;
  display: flex;
  align-items: flex-start; /* align to top */
  justify-content: center;
  padding: 60px 40px 40px 10px; /* top-right-bottom-left */
  box-sizing: border-box;
}

.content img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

/* === MOBILE HEADER (Hidden by Default) === */
.mobile-header {
  display: none;
  background: #fff;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 2;
}

/* === MOBILE STYLES (Under 768px) === */
@media screen and (max-width: 767px) {
  .mobile-header {
    display: flex;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
    position: absolute;
    top: 56px; /* height of mobile header */
    left: 0;
    width: 200px;
    background: #fff;
    height: calc(100vh - 56px);
    z-index: 1000;
    border-right: 1px solid #eee;
  }

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

  .content {
    padding: 20px;
    align-items: flex-start; /* ensure no vertical shifting */
  }

  .content img {
    max-width: 100%;
    max-height: calc(100vh - 56px - 40px); /* adjust for mobile header */
  }
}

/* === SAFETY: HIDE MOBILE HEADER ABOVE 768px === */
@media screen and (min-width: 768px) {
  .mobile-header {
    display: none !important;
  }
}
