.museum-admin {
  max-width: 1100px;
  margin: 0 auto;
  padding: .35rem 1.25rem 0;
  font-size: .65rem;
  opacity: .4;
}
.museum-admin label { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }

.museum-room { margin: 1.75rem 0 0; overflow: visible; }

.museum-room__arch {
  position: relative;
  overflow: visible;
  background: #e9e5db;
  --order: #a8a193;
}
html[data-theme="dark"] .museum-room__arch {
  background: #2c2a26;
  --order: #6a655c;
}

.museum-room__entablature {
  height: 3px;
  background: var(--order);
}

.museum-room__wall {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  height: 368px;
  padding: 2.2rem 11% 3.6rem;
}

.museum-room__pilaster {
  position: absolute;
  top: 0;
  bottom: 52px;
  width: 16px;
  background: var(--order);
  color: var(--order);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.museum-cap {
  position: absolute;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  color: var(--order);
  overflow: visible;
}
.museum-cap--top { top: 0; }
.museum-cap--bot { bottom: 0; }
.museum-room__pilaster--l { left: 5%; }
.museum-room__pilaster--r { right: 5%; }

.museum-room__dado {
  height: 32px;
  background: #c4bcae;
  border-top: 3px solid var(--order);
}
html[data-theme="dark"] .museum-room__dado { background: #3a3833; }
.museum-room__floor {
  height: 20px;
  background: #8c8678;
}
html[data-theme="dark"] .museum-room__floor { background: #141311; }

.museum-bay {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 2.6rem;
}
.museum-hang { display: none; }

.museum-frame {
  position: relative;
  margin: 0 auto;
  padding: 3px;
  background: #cbb892;
  border: 3px solid #585349;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s ease;
}
html[data-theme="dark"] .museum-frame { border-color: #8a8478; }
.museum-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  box-shadow: inset 0 0 0 6px #f2ece0;
  pointer-events: none;
}
.museum-bay:hover .museum-frame { transform: translateY(-3px); }

.museum-frame__link,
.museum-frame__empty {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d8d2c6;
}
.museum-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.museum-bay--medium .museum-frame { width: 128px; height: 162px; }
.museum-bay--large .museum-frame { width: 176px; height: 230px; }
.museum-bay--small .museum-frame { width: 88px; height: 114px; }
.museum-bay--landscape .museum-frame { width: 200px; height: 162px; }

.museum-bay figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
}
.museum-work {
  display: block;
  font-size: .72rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity .18s ease;
}
.museum-bay:hover .museum-work,
.museum-bay:focus-within .museum-work { opacity: 1; }
.museum-size {
  display: inline-block;
  font-size: .52rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim, #7a766e);
  text-decoration: none;
}
.museum-count {
  display: block;
  font-style: normal;
  font-size: .5rem;
  color: var(--fg-dim, #8a8680);
}

@media (max-width: 820px) {
  .museum-room__pilaster { display: none; }
  .museum-room__wall {
    height: 340px;
    padding: 1.2rem 1rem 3.2rem;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .museum-bay { scroll-snap-align: center; }
  .museum-work { opacity: .8; }
}
