.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.brand-tile { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; font-size: 13px; }
.brand-tile__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--panel);
}
.brand-tile__media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.brand-tile__zoom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 50%;
  background: var(--media-ink);
  color: white;
  font-size: 21px;
  opacity: 0;
}
.brand-tile:hover .brand-tile__zoom, .brand-tile:focus-visible .brand-tile__zoom { opacity: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand-tile__media img { transition: transform 180ms ease-out; }
  .brand-tile:hover img { transform: scale(1.02); }
}
.brand-lightbox-open { overflow: hidden; }
.brand-lightbox {
  width: min(1100px, calc(100% - 20px));
  max-width: none;
  max-height: 95dvh;
  padding: 12px;
  border: 0;
  background: var(--media-ink);
  color: var(--media-paper);
  touch-action: pan-y pinch-zoom;
}
.brand-lightbox::backdrop { background: rgb(15 14 13 / 84%); }
.brand-lightbox__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.brand-lightbox__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.brand-lightbox figure { margin: 0; text-align: center; min-width: 0; }
.brand-lightbox figure img { display: block; margin: auto; max-width: 100%; width: auto; max-height: 74dvh; object-fit: contain; }
.brand-lightbox figcaption { margin-top: 8px; font-size: 13px; }
.brand-lightbox button { border: 1px solid #8d8880; color: inherit; background: transparent; cursor: pointer; min-width: 36px; min-height: 40px; }
.brand-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 960px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }


.brand-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: start;
}
.brand-preview { display: grid; gap: 12px; min-width: 0; }
.brand-preview h3 { margin: 0; font-size: clamp(22px, 3vw, 36px); font-weight: 500; }
.brand-preview h3 small { margin-right: 8px; color: var(--muted); font-size: 12px; }
.brand-preview p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.brand-preview__main,
.brand-preview__thumbs > div { overflow: hidden; background: var(--panel); }
.brand-preview__main { aspect-ratio: 16 / 9; }
.brand-preview__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brand-preview__thumbs > div { aspect-ratio: 3 / 2; }
.brand-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-preview__link { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand-preview__link span { transition: transform 160ms ease-out; }
  .brand-preview:hover .brand-preview__link span { transform: translate(3px, -3px); }
}

.video-detail .kama-film-grid {
  max-width: 952px;
  align-items: start;
}
.video-detail .kama-film-grid .film-card__media { background: var(--panel); }
@media (max-width: 620px) {
  .brand-directory { grid-template-columns: minmax(0, 1fr); }
  .video-detail .kama-film-grid { max-width: 452px; }
}

.hearthlyre-detail .brand-grid { align-items: start; }
.hearthlyre-detail .brand-tile__media {
  display: block;
  aspect-ratio: auto;
  background: transparent;
}
.hearthlyre-detail .brand-tile__media img { height: auto; }
.hearthlyre-detail .brand-tile:hover img { transform: none; }
@media (min-width: 621px) {
  .hearthlyre-detail .brand-grid--furniture { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
