.braj-gallery {
  --gallery-ivory: #f7f4ec;
  --gallery-sand: #e8dfcd;
  --gallery-ink: #27382f;
  --gallery-muted: #748078;
  --gallery-green: #244b3e;
  --gallery-gold: #b18b50;
  overflow: hidden;
  color: var(--gallery-ink);
  background: #fffdf8;
}

.gallery-shell {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.gallery-hero {
  position: relative;
  padding: clamp(54px, 8vw, 112px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(ellipse at 85% 12%, rgb(211 193 151 / 20%), transparent 34%),
    linear-gradient(120deg, #f8f5ed 0%, #f2ecdf 54%, #f8f5ed 100%);
}

.gallery-hero::before {
  position: absolute;
  inset: auto auto 0 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b18b5070, transparent);
  content: "";
}

.gallery-hero__inner {
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.gallery-hero__copy {
  position: relative;
  z-index: 1;
}

.gallery-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: #947443;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-eyebrow span {
  font-size: .95rem;
}

.gallery-hero h1 {
  max-width: 610px;
  margin: 0;
  color: #21382e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.85rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.gallery-hero h1 em {
  display: block;
  color: #8d744f;
  font-weight: 400;
}

.gallery-hero__intro {
  max-width: 460px;
  margin: 25px 0 0;
  color: #68756c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.27rem);
  line-height: 1.7;
}

.gallery-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 29px;
  padding: 13px 19px;
  border: 1px solid #345447;
  border-radius: 2px;
  color: #244b3e;
  font-size: .83rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.gallery-hero__link:hover {
  transform: translateY(-2px);
  color: #fff;
  background: #244b3e;
}

.gallery-hero__disclosure {
  max-width: 400px;
  margin: 19px 0 0;
  color: #81857a;
  font-size: .72rem;
  line-height: 1.6;
}

.gallery-hero__collage {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

.gallery-hero__image {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 7px solid #fffdf7;
  background: #e9e1d2;
  box-shadow: 0 22px 54px rgb(52 48 36 / 16%);
}

.gallery-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero__image--1 {
  z-index: 1;
  inset: 3% 26% 5% 2%;
  transform: translate3d(var(--gallery-parallax-1-x, 0px), var(--gallery-parallax-1-y, 0px), 0) rotate(-2.2deg);
  transition: transform .42s cubic-bezier(.2, .7, .2, 1);
}

.gallery-hero__image--2 {
  z-index: 2;
  inset: 0 0 52% 64%;
  transform: translate3d(var(--gallery-parallax-2-x, 0px), var(--gallery-parallax-2-y, 0px), 0) rotate(3deg);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.gallery-hero__image--3 {
  z-index: 2;
  inset: 56% 0 0 60%;
  transform: translate3d(var(--gallery-parallax-3-x, 0px), var(--gallery-parallax-3-y, 0px), 0) rotate(-1.5deg);
  transition: transform .68s cubic-bezier(.2, .7, .2, 1);
}

.gallery-hero__image figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  padding: 9px 11px;
  color: #fff;
  background: linear-gradient(transparent, rgb(20 30 25 / 76%));
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gallery-hero__seal {
  position: absolute;
  z-index: 3;
  right: 28%;
  bottom: 0;
  display: grid;
  width: 83px;
  height: 83px;
  place-content: center;
  border: 1px solid #fff9;
  border-radius: 50%;
  color: #fff;
  background: #315547;
  box-shadow: 0 6px 20px #1f382c38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .55rem;
  letter-spacing: .13em;
  line-height: 1.4;
  text-align: center;
}

.gallery-hero__empty {
  display: grid;
  height: 100%;
  min-height: 380px;
  padding: 30px;
  place-items: center;
  border: 1px dashed #c9b991;
  color: #7e796d;
  text-align: center;
}

.gallery-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 27px;
}

.gallery-section-heading h2 {
  margin: 0;
  color: #263d32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.gallery-section-heading > p {
  max-width: 390px;
  margin: 0 0 3px;
  color: var(--gallery-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
}

.gallery-collections {
  padding-top: clamp(58px, 8vw, 100px);
  padding-bottom: clamp(61px, 8vw, 100px);
}

.gallery-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-collection {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 7px;
  overflow: hidden;
  border: 1px solid #e8e4da;
  border-radius: 3px;
  color: inherit;
  background: #fffdf8;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(44 54 46 / 7%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gallery-collection:hover,
.gallery-collection[aria-pressed="true"] {
  transform: translateY(-4px);
  border-color: #b9a67c;
  box-shadow: 0 15px 32px rgb(44 54 46 / 10%);
}

.gallery-collection__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.35;
  background: #e7e0d1;
}

.gallery-collection__image::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(23 35 28 / 48%));
  content: "";
}

.gallery-collection__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.gallery-collection:hover img,
.gallery-collection[aria-pressed="true"] img {
  transform: scale(1.045);
}

.gallery-collection__count {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-collection__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 16px 17px;
}

.gallery-collection__copy strong {
  color: #2f4137;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.25;
}

.gallery-collection__copy > span:nth-child(2) {
  margin-top: 7px;
  color: #778077;
  font-size: .76rem;
  line-height: 1.55;
}

.gallery-collection__action {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  color: #42644f;
  font-size: .72rem;
  font-weight: 750;
}

.gallery-exhibition {
  padding: clamp(55px, 7vw, 88px) 0 78px;
  background: #f6f3eb;
}

.gallery-section-heading--exhibition {
  margin-bottom: 24px;
}

.gallery-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #e2ddcf;
  border-bottom: 1px solid #e2ddcf;
}

.gallery-search-tools {
  display: grid;
  width: min(460px, 100%);
  grid-template-columns: 150px minmax(0, 1fr);
  justify-self: end;
  gap: 8px;
}

.gallery-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.gallery-media-filter {
  display: grid;
  min-height: 42px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #ddd8cb;
  border-radius: 2px;
  color: #788078;
  background: #fffdf9;
  font-size: .67rem;
  font-weight: 700;
}

.gallery-media-filter select {
  width: 100%;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  color: #34443a;
  background: transparent;
  font: inherit;
  font-size: .71rem;
}

.gallery-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-chip {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #dbd7cc;
  border-radius: 999px;
  color: #617067;
  background: #fffdf9;
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.gallery-chip:hover,
.gallery-chip.is-active {
  border-color: #315a48;
  color: #fff;
  background: #315a48;
}

.gallery-search {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #ddd8cb;
  border-radius: 2px;
  background: #fffdf9;
}

.gallery-search svg {
  width: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #728078;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.gallery-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #34443a;
  background: transparent;
  font: inherit;
  font-size: .76rem;
}

.gallery-search input::placeholder {
  color: #92978d;
}

.gallery-results-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #788078;
  font-size: .73rem;
}

.gallery-results-heading p {
  margin: 0;
}

.gallery-results-heading [data-gallery-collection-label] {
  color: #42644f;
  font-weight: 700;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.gallery-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 8px 12px;
  overflow: hidden;
  border: 1px solid #e8e4da;
  color: inherit;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgb(44 54 46 / 7%);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}

.gallery-card:nth-child(3n + 1) {
  transform: rotate(-.45deg);
}

.gallery-card:nth-child(3n + 2) {
  transform: rotate(.35deg);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px) rotate(0);
  box-shadow: 0 14px 28px rgb(44 54 46 / 14%);
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.25;
  background: #e4dece;
}

.gallery-card:nth-child(6n + 1) .gallery-card__image {
  aspect-ratio: .92;
}

.gallery-card:nth-child(6n + 4) .gallery-card__image {
  aspect-ratio: 1.55;
}

.gallery-card:nth-child(5n) .gallery-card__image {
  aspect-ratio: 1;
}

.gallery-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.gallery-card:hover .gallery-card__image img,
.gallery-card:focus-visible .gallery-card__image img {
  transform: scale(1.055);
}

.gallery-card__shade {
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgb(18 28 23 / 60%));
  opacity: .48;
  transition: opacity .25s ease;
}

.gallery-card:hover .gallery-card__shade,
.gallery-card:focus-visible .gallery-card__shade {
  opacity: 1;
}

.gallery-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 50%;
  color: #fff;
  background: rgb(25 48 38 / 34%);
  backdrop-filter: blur(5px);
  transition: transform .2s ease, background .2s ease;
}

.gallery-card__play svg {
  width: 21px;
  height: 21px;
  margin-left: 3px;
  fill: currentColor;
}

.gallery-card:hover .gallery-card__play,
.gallery-video-card:hover .gallery-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #315a48;
}

.gallery-card__duration {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 11px;
  padding: 5px 8px;
  border-radius: 2px;
  color: #fff;
  background: rgb(20 30 25 / 72%);
  font-size: .64rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: .06em;
}

.gallery-card__view {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .71rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-card:hover .gallery-card__view,
.gallery-card:focus-visible .gallery-card__view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__art-label {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  color: #fff;
  background: rgb(32 54 43 / 64%);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gallery-card__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 12px;
  padding: 12px 3px 1px;
}

.gallery-card__category {
  grid-column: 1 / -1;
  color: #a07d45;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-card__copy strong {
  min-width: 0;
  color: #304137;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-card__location {
  color: #83887e;
  font-size: .67rem;
  text-align: right;
}

.gallery-empty {
  margin: 30px 0;
  padding: 28px;
  border: 1px dashed #d2c8b3;
  color: #777a70;
  background: #fffdf9;
  text-align: center;
}

.gallery-empty[hidden],
.gallery-load-more[hidden],
.gallery-viewer__controls button[hidden] {
  display: none;
}

.gallery-error {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid #a5503b;
  color: #713e31;
  background: #fff1ec;
}

.gallery-load-more {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 32px auto 0;
  padding: 0 22px;
  border: 1px solid #315a48;
  border-radius: 2px;
  color: #315a48;
  background: transparent;
  font: inherit;
  font-size: .79rem;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.gallery-load-more:hover {
  color: #fff;
  background: #315a48;
}

.gallery-video-feature {
  padding: clamp(58px, 8vw, 98px) 0;
  background: #ece7da;
}

.gallery-video-strip {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 0 2px 13px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a9a18f transparent;
  scrollbar-width: thin;
}

.gallery-video-card {
  min-width: 0;
  padding: 8px 8px 0;
  overflow: hidden;
  border: 1px solid #ded7c7;
  color: inherit;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgb(44 54 46 / 8%);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: box-shadow .2s ease, transform .2s ease;
}

.gallery-video-card:hover,
.gallery-video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgb(44 54 46 / 15%);
}

.gallery-video-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.72;
  background: #ddd4c2;
}

.gallery-video-card__poster::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgb(18 28 23 / 24%));
  content: "";
}

.gallery-video-card__poster img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-video-card__preview {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.gallery-video-card__preview.is-playing {
  opacity: 1;
}

.gallery-video-card__poster::after {
  z-index: 2;
  pointer-events: none;
}

.gallery-video-card .gallery-card__play,
.gallery-video-card .gallery-card__duration {
  z-index: 3;
}

.gallery-video-card:hover .gallery-video-card__poster img {
  transform: scale(1.04);
}

.gallery-video-card__copy {
  display: grid;
  gap: 5px;
  padding: 13px 8px 15px;
}

.gallery-video-card__copy strong {
  color: #304137;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.gallery-video-card__copy span {
  color: #7b827a;
  font-size: .72rem;
}

.gallery-note {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 24px;
  padding-bottom: 28px;
  color: #788078;
  font-size: .72rem;
  line-height: 1.6;
}

.gallery-note > span {
  flex: 0 0 auto;
  color: #aa874d;
}

.gallery-note p {
  margin: 0;
}

.gallery-note a {
  flex: 0 0 auto;
  margin-left: auto;
  color: #48634f;
  font-weight: 700;
  text-decoration: none;
}

.braj-gallery .gallery-reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity .68s cubic-bezier(.2, .7, .2, 1) var(--gallery-reveal-delay, 0ms),
    translate .68s cubic-bezier(.2, .7, .2, 1) var(--gallery-reveal-delay, 0ms);
}

.braj-gallery .gallery-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.gallery-image-frame {
  isolation: isolate;
}

.gallery-image-frame::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(105deg, transparent 22%, rgb(255 255 255 / 28%) 48%, transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-110%);
}

.gallery-image-frame.is-image-loading::before {
  opacity: 1;
  animation: gallery-image-shimmer 1.65s ease-in-out infinite;
}

.gallery-image-frame.is-image-loading img {
  filter: blur(7px);
  opacity: .68;
}

.gallery-image-frame.is-image-loaded img {
  animation: gallery-image-resolve .56s ease-out both;
}

.gallery-image-frame.is-image-error::before {
  display: none;
}

.gallery-hero__image.gallery-image-frame img {
  position: relative;
  z-index: 0;
}

.gallery-collection__image.gallery-image-frame::after,
.gallery-video-card__poster.gallery-image-frame::after {
  z-index: 1;
}

.gallery-collection__image.gallery-image-frame .gallery-collection__count {
  z-index: 4;
}

.gallery-card__image.gallery-image-frame .gallery-card__shade,
.gallery-card__image.gallery-image-frame .gallery-card__play,
.gallery-card__image.gallery-image-frame .gallery-card__duration,
.gallery-card__image.gallery-image-frame .gallery-card__view,
.gallery-card__image.gallery-image-frame .gallery-card__art-label {
  z-index: 4;
}

.gallery-viewer {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: min(92vh, 960px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  color: #f5f2e9;
  background: #17231e;
  box-shadow: 0 30px 100px rgb(0 0 0 / 48%);
}

.gallery-viewer::backdrop {
  background: rgb(13 20 17 / 82%);
  backdrop-filter: blur(5px);
}

.gallery-viewer[open] {
  animation: gallery-dialog-in .22s ease-out;
}

.gallery-viewer__top {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
}

.gallery-viewer__eyebrow {
  margin: 0;
  color: #b7a577;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-viewer__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ffffff3b;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-viewer__stage {
  position: relative;
  display: grid;
  min-height: 240px;
  max-height: calc(92vh - 190px);
  place-items: center;
  overflow: hidden;
  background: #0c1310;
  touch-action: pan-y;
}

.gallery-viewer__stage img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 190px);
  box-sizing: border-box;
  border: 10px solid #fffdf8;
  border-bottom-width: 26px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgb(0 0 0 / 32%);
  object-fit: contain;
  transition: transform .2s ease;
}

.gallery-viewer__stage.is-zoomed {
  overflow: auto;
  cursor: zoom-out;
}

.gallery-viewer__stage.is-zoomed img {
  max-width: none;
  max-height: none;
  transform: scale(1.8);
  cursor: zoom-out;
}

.gallery-viewer__stage video,
.gallery-viewer__stage iframe {
  display: block;
  width: min(100%, 1050px);
  max-height: calc(92vh - 190px);
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border: 10px solid #fffdf8;
  border-bottom-width: 26px;
  background: #000;
  box-shadow: 0 18px 48px rgb(0 0 0 / 32%);
}

.gallery-viewer__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px 20px;
}

.gallery-viewer__details > div:first-child {
  min-width: 0;
}

.gallery-viewer__details p {
  margin: 0;
  color: #aeb8af;
  font-size: .76rem;
  line-height: 1.6;
}

.gallery-viewer__details [data-gallery-viewer-location] {
  margin-bottom: 5px;
  color: #c1a978;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-viewer__details h2 {
  margin: 0 0 5px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 500;
}

.gallery-viewer__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.gallery-viewer__controls button {
  min-width: 40px;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid #ffffff3d;
  border-radius: 2px;
  color: #f7f4ec;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}

.gallery-viewer__controls button:hover:not(:disabled) {
  border-color: #b7a577;
  background: #ffffff10;
}

.gallery-viewer__controls button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.braj-gallery button:focus-visible,
.braj-gallery a:focus-visible,
.gallery-viewer button:focus-visible {
  outline: 3px solid #bf9e62;
  outline-offset: 3px;
}

@keyframes gallery-image-shimmer {
  to { transform: translateX(110%); }
}

@keyframes gallery-image-resolve {
  from { filter: blur(5px); opacity: .7; }
  to { filter: blur(0); opacity: 1; }
}

@keyframes gallery-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1000px) {
  .gallery-hero__inner {
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 38px;
  }

  .gallery-hero__collage {
    min-height: 370px;
  }

  .gallery-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-tools {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gallery-shell {
    width: min(100% - 32px, 560px);
  }

  .gallery-hero {
    padding: 53px 0 49px;
  }

  .gallery-hero__inner {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .gallery-hero h1 {
    max-width: 520px;
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .gallery-hero__intro {
    margin-top: 17px;
  }

  .gallery-hero__link {
    margin-top: 20px;
  }

  .gallery-hero__disclosure {
    margin-top: 13px;
  }

  .gallery-hero__collage {
    min-height: min(72vw, 360px);
  }

  .gallery-hero__image {
    border-width: 5px;
  }

  .gallery-hero__seal {
    right: 27%;
    width: 65px;
    height: 65px;
    font-size: .45rem;
  }

  .gallery-section-heading {
    display: block;
    margin-bottom: 20px;
  }

  .gallery-section-heading > p {
    margin-top: 11px;
    font-size: .9rem;
  }

  .gallery-collections {
    padding-top: 54px;
    padding-bottom: 57px;
  }

  .gallery-collection-grid {
    gap: 11px;
  }

  .gallery-collection__image {
    aspect-ratio: 1.1;
  }

  .gallery-collection__copy {
    padding: 11px 11px 13px;
  }

  .gallery-collection__copy strong {
    font-size: 1rem;
  }

  .gallery-collection__copy > span:nth-child(2) {
    font-size: .69rem;
  }

  .gallery-collection__action {
    padding-top: 11px;
    font-size: .66rem;
  }

  .gallery-exhibition {
    padding: 52px 0 58px;
  }

  .gallery-filter-row {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding: 1px 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .gallery-filter-row::-webkit-scrollbar {
    display: none;
  }

  .gallery-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .gallery-search-tools {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
  }

  .gallery-media-filter {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .gallery-search {
    min-height: 44px;
  }

  .gallery-masonry {
    gap: 17px 11px;
  }

  .gallery-card__copy {
    display: block;
    padding-top: 9px;
  }

  .gallery-card__category {
    display: block;
    margin-bottom: 4px;
    font-size: .55rem;
  }

  .gallery-card__copy strong {
    display: block;
    font-size: .98rem;
  }

  .gallery-card__location {
    display: block;
    margin-top: 4px;
    font-size: .62rem;
    text-align: left;
  }

  .gallery-card__art-label {
    top: 7px;
    left: 7px;
    padding: 4px 5px;
    font-size: .48rem;
  }

  .gallery-card__play {
    width: 43px;
    height: 43px;
  }

  .gallery-video-feature {
    padding: 53px 0;
  }

  .gallery-video-strip {
    grid-auto-columns: minmax(250px, 83%);
    gap: 13px;
  }

  .gallery-note {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gallery-note p {
    flex: 1 1 calc(100% - 35px);
  }

  .gallery-note a {
    margin-left: 26px;
  }

  .gallery-viewer {
    width: calc(100% - 16px);
    max-height: 96vh;
  }

  .gallery-viewer__stage {
    max-height: calc(96vh - 185px);
  }

  .gallery-viewer__stage img,
  .gallery-viewer__stage video,
  .gallery-viewer__stage iframe {
    max-height: calc(96vh - 185px);
  }

  .gallery-viewer__details {
    align-items: flex-end;
    gap: 10px;
    padding: 13px 13px 15px;
  }

  .gallery-viewer__details p {
    font-size: .69rem;
  }

  .gallery-viewer__controls {
    gap: 5px;
  }

  .gallery-viewer__controls button {
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .braj-gallery *,
  .gallery-viewer * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .braj-gallery .gallery-reveal {
    opacity: 1 !important;
    translate: 0 0 !important;
  }

  .gallery-image-frame.is-image-loading::before {
    animation: none !important;
  }
}
