/* Brand story gallery: the three editorial cards open a full-image viewer. */
[code-path="src/v2/BrandV2.tsx:166:15"][data-rq-gallery-card] {
  position: relative;
  cursor: zoom-in;
  transition: transform 220ms ease, filter 220ms ease;
}

[code-path="src/v2/BrandV2.tsx:166:15"][data-rq-gallery-card]:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

[code-path="src/v2/BrandV2.tsx:166:15"][data-rq-gallery-card]:focus-visible {
  outline: 1px solid rgba(216, 181, 106, 0.72);
  outline-offset: 10px;
}

html.rq-gallery-open,
html.rq-gallery-open body {
  overflow: hidden !important;
}

.rq-gallery-lightbox[hidden] {
  display: none !important;
}

.rq-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  box-sizing: border-box;
  padding: clamp(18px, 3vw, 42px);
  place-items: center;
  color: #f2e9d8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
}

.rq-gallery-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 7, 5, 0.93);
  cursor: default;
  opacity: 0;
  transition: opacity 180ms ease;
}

.rq-gallery-dialog {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  max-height: calc(100dvh - clamp(36px, 6vw, 84px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(216, 181, 106, 0.28);
  background: #0d0b08;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rq-gallery-lightbox.rq-is-open .rq-gallery-backdrop,
.rq-gallery-lightbox.rq-is-open .rq-gallery-dialog {
  opacity: 1;
}

.rq-gallery-lightbox.rq-is-open .rq-gallery-dialog {
  transform: translateY(0) scale(1);
}

.rq-gallery-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(216, 181, 106, 0.14);
  color: rgba(216, 181, 106, 0.7);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.rq-gallery-close,
.rq-gallery-nav button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(216, 181, 106, 0.28);
  background: transparent;
  color: rgba(242, 233, 216, 0.78);
  font: inherit;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.rq-gallery-close:hover,
.rq-gallery-close:focus-visible,
.rq-gallery-nav button:hover,
.rq-gallery-nav button:focus-visible {
  border-color: rgba(216, 181, 106, 0.68);
  outline: none;
  background: rgba(216, 181, 106, 0.08);
  color: #f4e6c8;
}

.rq-gallery-figure {
  display: grid;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 30%);
}

.rq-gallery-media {
  display: grid;
  min-height: 0;
  padding: clamp(16px, 2vw, 28px);
  place-items: center;
  background: #080705;
}

.rq-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(70dvh, 720px);
  object-fit: contain;
  background: #080705;
}

.rq-gallery-caption {
  display: flex;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 42px);
  border-left: 1px solid rgba(216, 181, 106, 0.14);
  flex-direction: column;
  justify-content: center;
}

.rq-gallery-number {
  margin: 0 0 24px;
  color: rgba(216, 181, 106, 0.55);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.32em;
}

.rq-gallery-title {
  margin: 0;
  color: rgba(245, 240, 230, 0.94);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.rq-gallery-description {
  margin: 20px 0 0;
  color: rgba(245, 240, 230, 0.58);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.rq-gallery-image-label {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 181, 106, 0.14);
  color: rgba(216, 181, 106, 0.46);
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1.7;
}

.rq-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(216, 181, 106, 0.14);
}

@media (max-width: 720px) {
  [code-path="src/v2/BrandV2.tsx:166:15"][data-rq-gallery-card]:hover {
    transform: none;
  }

  .rq-gallery-lightbox {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .rq-gallery-dialog {
    width: 100%;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  }

  .rq-gallery-toolbar {
    min-height: 50px;
    padding-inline: 12px;
  }

  .rq-gallery-figure {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .rq-gallery-media {
    padding: 10px;
  }

  .rq-gallery-image {
    max-height: 52dvh;
  }

  .rq-gallery-caption {
    padding: 20px 18px 22px;
    border-top: 1px solid rgba(216, 181, 106, 0.14);
    border-left: 0;
  }

  .rq-gallery-number {
    margin-bottom: 10px;
  }

  .rq-gallery-title {
    font-size: 25px;
  }

  .rq-gallery-description {
    margin-top: 10px;
    font-size: 14px;
  }

  .rq-gallery-image-label {
    margin-top: 14px;
    padding-top: 12px;
  }

  .rq-gallery-nav {
    justify-content: space-between;
    padding: 10px 12px;
  }

  .rq-gallery-nav button {
    min-width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [code-path="src/v2/BrandV2.tsx:166:15"][data-rq-gallery-card],
  .rq-gallery-backdrop,
  .rq-gallery-dialog {
    transition: none;
  }
}
