:root {
  --work-border-accent: #871B0E;
  --work-offset-accent: #621309;
}

.gallery-container {
  height: 100vh;
  overflow: hidden;
}

.artwork-view {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  overflow: hidden;
}

.artwork-side {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.image-container {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.artwork-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 66vh;
  border: 1px solid var(--work-border-accent);
  object-fit: contain;
}

.artwork-accent {
  background: var(--work-offset-accent);
  opacity: 0.62;
}

.wall-label {
  width: 310px;
  max-height: 66vh;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.label-accent {
  background:
    linear-gradient(
      to bottom,
      var(--work-border-accent) 0%,
      var(--work-offset-accent) 100%
    );
}

.label-content {
  width: 100%;
  min-height: 0;
  max-height: 66vh;
  padding: 26px 28px 28px 36px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #333333 transparent;
}

.label-content::-webkit-scrollbar {
  width: 3px;
}

.label-content::-webkit-scrollbar-track {
  background: transparent;
}

.label-content::-webkit-scrollbar-thumb {
  background: #333333;
}

.work-position {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.15em;
}

.work-id {
  color: var(--work-border-accent);
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.025em;
}

.placard-text p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.48;
}

.exhibition-nav {
  flex: 0 0 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-right: 4px;
  position: relative;
  z-index: 10;
}

.exhibition-nav button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.exhibition-nav button:hover {
  color: var(--text-bright);
}

/* V03: lock wall-label vertical position across all works */
.wall-label {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
}

.label-content {
  box-sizing: border-box;
}

/* V04: fixed wall-label geometry across every work */
.wall-label {
  height: 66vh;
  min-height: 66vh;
  max-height: 66vh;
  align-self: center;
  margin: 0;
}

.label-content {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
