html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #eaeaea;
  font-family: 'Libre Baskerville', serif;
}

.page {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* Prevents sidebar from squishing */
}

.name {
  font-size: 1.0rem;
  letter-spacing: 0.2em;
  margin-bottom: 36px;
  text-decoration: none;
  color: #eaeaea;
  /* Removed padding-left to keep it clean, 
     but you can add it back if you want that specific offset */
}

.nav {
  margin-top: 130px; /* Kept your original high-offset */
}

.nav a {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  margin-bottom: 14px;
  text-decoration: none;
  color: #eaeaea;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.nav a:hover {
  opacity: 1;
}

.contact-link {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  opacity: 0.45;
  text-decoration: none;
  color: #eaeaea;
}

/* MAIN - This is where the alignment happens */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* This padding balances the sidebar so the image 
     feels centered on the whole screen */
  padding-right: 280px; 
}

/* IMAGE VIEW */
.image-view {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 70vh;
  /* Removed margin-left: -3in; */
}

.image-view img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease; /* Slightly slower for a more 'fine art' feel */
}

.image-view img.active {
  opacity: 1;
}

/* CONTROLS */
.controls {
  position: absolute;
  bottom: -40px; /* Moved slightly further down */
  left: 0;
  display: flex;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.image-view:hover .controls {
  opacity: 0.75;
}

.controls button {
  background: none;
  border: none;
  color: #eaeaea;
  font-family: inherit;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  cursor: pointer;
}