.hardware-gallery {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--muted, #bcb3a8);
}
.hardware-gallery__visual {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(210px, 28vw, 405px);
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid #c8b59a38;
  background: #e6e7e8;
  cursor: zoom-in;
}
.hardware-gallery__visual > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: none;
}
.hardware-gallery__enlarge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border: 1px solid #ffffff45;
  background: #151514e8;
  color: #f7f3ed;
  font-size: 11px;
  letter-spacing: .04em;
}
.hardware-gallery__views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 12px 8px;
}
.hardware-gallery__views > button,
.hardware-gallery__close {
  padding: 7px 12px;
  border: 1px solid #ffffff36;
  background: #201e1c;
  color: #e8e2da;
  font: inherit;
  font-size: 13px;
}
.hardware-gallery__views > button[aria-pressed="true"] {
  border-color: #c29b70;
  background: #34291e;
  color: #f0c797;
}
.hardware-gallery__caption p {
  max-width: 58ch;
  margin: 9px 0 4px;
  color: #e8e1d7;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.hardware-gallery__caption small {
  color: #c2b7aa;
  font-size: 12px;
}
.hardware-gallery__dialog {
  width: fit-content;
  max-width: min(95vw, 1230px);
  max-height: 94dvh;
  margin: auto;
  padding: 9px;
  border: 1px solid #a98e6c;
  background: #191817;
}
.hardware-gallery__dialog::backdrop { background: #0b0a09db; }
.hardware-gallery__close {
  display: block;
  margin: 0 0 7px auto;
}
.hardware-gallery__dialog > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78dvh, 900px);
  margin: auto;
  object-fit: contain;
  filter: none;
}
@media (max-width: 640px) {
  .hardware-gallery__visual { height: clamp(190px, 65vw, 340px); }
  .hardware-gallery__views > button { min-height: 40px; }
}
