.gallery-hero-trial-page {
  margin: 0;
  background: #fcfbf7;
  color: #263c35;
}

.gallery-trial-hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 31%, rgba(226, 204, 166, .14), transparent 31%),
    radial-gradient(circle at 69% 42%, rgba(255, 255, 255, .82), transparent 34%),
    linear-gradient(112deg, #fbf8ef 0%, #fdfbf5 50%, #faf7ee 100%);
}

.gallery-trial-decor {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gallery-trial-decor img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  user-select: none;
}

.gallery-trial-decor__wash--title-blush {
  top: 116px;
  left: -392px;
  width: clamp(560px, 43vw, 820px);
  opacity: .3;
  filter: saturate(.86) brightness(1.04);
  transform: rotate(-2deg);
}

.gallery-trial-decor__wash--blush {
  left: -84px;
  bottom: 20px;
  width: clamp(600px, 43vw, 825px);
  opacity: .62;
  filter: saturate(.88) brightness(1.04);
  transform: rotate(3deg);
}

.gallery-trial-decor__branch--left {
  left: -118px;
  bottom: -176px;
  width: clamp(285px, 22vw, 420px);
  opacity: .48;
  filter: saturate(.72) brightness(1.06);
  transform: rotate(70deg);
  transform-origin: center;
}

.gallery-trial-decor__speckles--left {
  left: 385px;
  bottom: 58px;
  width: clamp(220px, 18vw, 345px);
  opacity: .58;
  filter: saturate(.9) brightness(1.03);
  transform: rotate(-8deg);
}

.gallery-trial-decor__dense-speckles {
  position: absolute;
  display: block;
  background-image: url('../img/hero-assets/right-speckles.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: .68;
  filter: saturate(1.08) contrast(1.06);
}

.gallery-trial-decor__dense-speckles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-assets/right-speckles.svg') 18px 10px / 78% 78% no-repeat;
  clip-path: inset(0 50% 0 0);
}

.gallery-trial-decor__dense-speckles--upper-art {
  top: 50px;
  left: calc(50% - 180px);
  width: 250px;
  height: 138px;
  transform: rotate(-7deg);
}

.gallery-trial-decor__dense-speckles--lower-right {
  top: 418px;
  right: 4px;
  width: 260px;
  height: 150px;
  transform: rotate(11deg);
}

.gallery-trial-decor__wash--sage {
  top: -218px;
  right: -365px;
  width: clamp(900px, 65vw, 1250px);
  opacity: .5;
  filter: saturate(.96) brightness(.94) contrast(1.06);
  transform: rotate(-8deg);
  transform-origin: center;
}

.gallery-trial-decor__leaf {
  filter: saturate(.74) brightness(1.03);
}

.gallery-trial-decor__leaf--sage {
  top: 26px;
  right: 132px;
  width: clamp(55px, 4.25vw, 80px);
  opacity: .6;
  filter: saturate(.96) brightness(.78) contrast(1.14);
  transform: rotate(24deg) scaleX(-1);
}

.gallery-trial-decor__leaf--cream {
  right: 122px;
  bottom: 42px;
  width: clamp(62px, 4.9vw, 92px);
  opacity: .36;
  transform: rotate(-18deg) scaleX(-1);
}

.gallery-trial-decor__leaf--near-top-image {
  top: 218px;
  right: 72px;
  width: clamp(58px, 4.5vw, 86px);
  opacity: .62;
  filter: saturate(.96) brightness(.78) contrast(1.14);
  transform: rotate(-32deg);
}

.gallery-trial-decor__leaf--kicker-left {
  top: 82px;
  left: 20px;
  width: clamp(54px, 3.8vw, 72px);
  opacity: .48;
  transform: rotate(-24deg);
}

.gallery-trial-decor__leaf--lower-image-left {
  top: 530px;
  left: calc(50% - 212px);
  width: clamp(54px, 3.8vw, 72px);
  opacity: .5;
  transform: rotate(48deg);
}

.gallery-trial-decor__leaf--below-search {
  top: 458px;
  left: calc(50% - 560px);
  width: clamp(55px, 4vw, 76px);
  opacity: .46;
  transform: rotate(22deg);
}

.gallery-trial-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(570px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 4vw, 76px);
  min-height: 590px;
  padding-top: 32px;
  padding-bottom: 78px;
}

.gallery-trial-copy {
  max-width: 590px;
  padding-left: 4px;
}

.gallery-trial-kicker {
  margin: 0 0 18px;
  color: #9a7740;
  font: 600 11px/1 'Anuphan', sans-serif;
  letter-spacing: .28em;
}

.gallery-trial-copy h1 {
  margin: 0 0 19px;
  color: #123f34;
  font: 600 clamp(64px, 5.65vw, 94px)/.82 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.045em;
}

.gallery-trial-copy h1 span { color: #123f34; }
.gallery-trial-copy h1 em { color: #b58b43; font-weight: 500; }

/* Match the index hero's Porto-style blur-in entrance. */
.gallery-trial-heading-motion {
  animation: gallery-trial-porto-blur-in 1s ease .22s both;
  transform-origin: center;
  will-change: opacity, filter, transform;
}

@keyframes gallery-trial-porto-blur-in {
  from { opacity: 0; filter: blur(20px); transform: scale(1.3); }
  to { opacity: 1; filter: blur(.1px); transform: none; }
}

.gallery-trial-tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: #48655d;
  font: italic 600 17px/1.3 'Cormorant Garamond', Georgia, serif;
}

.gallery-trial-tagline span {
  width: 52px;
  height: 1px;
  background: #bd934b;
  flex: 0 0 auto;
}

.gallery-trial-intro {
  max-width: 540px;
  margin: 0 0 27px;
  color: #4c5a54;
  font: 500 14px/1.75 'Anuphan', sans-serif;
}

.gallery-trial-search {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  width: min(100%, 520px);
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(51, 73, 62, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 15px 34px rgba(53, 64, 52, .07);
}

.gallery-trial-search > i { position: static; justify-self: end; width: 16px; padding: 0; text-align: center; color: #708278; }
.gallery-trial-search input { width: 100%; min-width: 0; height: 56px; padding: 0; border: 0; outline: 0; background: transparent; color: #263c35; font: 500 12px/1 'Anuphan', sans-serif; }
.gallery-trial-search button { align-self: stretch; margin: 5px; padding: 0 23px; border: 0; border-radius: 999px; background: #174438; color: #fff; font: 600 12px/1 'Anuphan', sans-serif; }
.gallery-trial-search button span { margin-left: 8px; }

.gallery-trial-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 0;
  color: #69736c;
  font: 500 11px/1.4 'Anuphan', sans-serif;
}

.gallery-trial-count strong { color: #a47b3c; font: 600 22px/1 'Cormorant Garamond', Georgia, serif; }

.gallery-trial-collage {
  position: relative;
  top: 100px;
  right: 50px;
  justify-self: end;
  width: min(100%, 710px);
  height: 490px;
  margin-right: clamp(34px, 4vw, 66px);
  transform: scale(1.13);
  transform-origin: center right;
  isolation: isolate;
}

.gallery-trial-panel {
  position: absolute;
  z-index: -1;
}

.gallery-trial-panel--small-top { top: 42px; left: 4px; width: 172px; height: 166px; background: #dfe1df; }
.gallery-trial-panel--wide-top { top: 8px; right: 0; width: 420px; height: 210px; background: #dfe1df; }
.gallery-trial-panel--wide-bottom { z-index: -2; left: 96px; bottom: 58px; width: 370px; height: 228px; background: #dfe1df; }
.gallery-trial-panel--portrait-bottom { right: 58px; bottom: 10px; width: 160px; height: 238px; background: #dfe1df; }

.gallery-trial-line-art {
  position: absolute;
  z-index: 1;
  display: block;
  overflow: hidden;
  opacity: .58;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.gallery-trial-line-art--primary {
  top: -14px;
  left: 578px;
  width: 132px;
  height: 154px;
  opacity: .54;
  transform: rotate(4deg);
}

/* Botanical line art draws itself in before the original fills settle in. */
.gallery-trial-line-art--primary path {
  fill-opacity: 0;
  stroke: #675f59;
  stroke-width: .72;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  animation: gallery-trial-botanical-draw 3.8s cubic-bezier(.42, 0, .2, 1) 2.85s forwards;
  vector-effect: non-scaling-stroke;
}

.gallery-trial-line-art--primary path:nth-of-type(3n + 2) { animation-delay: 2.99s; }
.gallery-trial-line-art--primary path:nth-of-type(3n) { animation-delay: 3.13s; }

@keyframes gallery-trial-botanical-draw {
  0% {
    fill-opacity: 0;
    stroke-dashoffset: 6000;
    stroke-opacity: 0;
  }
  12% { stroke-opacity: .72; }
  76% {
    fill-opacity: 0;
    stroke-dashoffset: 0;
    stroke-opacity: .72;
  }
  100% {
    fill-opacity: 1;
    stroke-dashoffset: 0;
    stroke-opacity: .32;
  }
}

.gallery-trial-line-art--left-top {
  top: -38px;
  left: 90px;
  width: 110px;
  height: 128px;
  transform: rotate(-5deg);
}

.gallery-trial-line-art--left-bottom {
  top: 350px;
  left: 145px;
  width: 145px;
  height: 150px;
  transform: rotate(7deg);
}

.gallery-trial-tile {
  position: absolute;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .96);
  background: #fff;
  box-shadow: 0 14px 30px rgba(38, 52, 42, .12);
}

.gallery-trial-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-trial-tile--left {
  z-index: 2;
  top: 86px;
  left: -26px;
  width: 222px;
  height: 234px;
  animation: gallery-trial-cinematic-fade-in 1.4s ease .4s forwards;
}

.gallery-trial-tile--left img { object-position: 54% 45%; }

.gallery-trial-tile--primary {
  z-index: 3;
  top: 47px;
  left: 216px;
  width: 310px;
  height: 310px;
  animation: gallery-trial-cinematic-fade-in 1.4s ease .1s forwards;
}

.gallery-trial-tile--primary img { object-position: 64% center; }

.gallery-trial-tile--right-top {
  z-index: 2;
  top: 123px;
  right: -66px;
  width: 230px;
  height: 134px;
  animation: gallery-trial-cinematic-fade-in 1.4s ease .7s forwards;
}

.gallery-trial-tile--right-top img { padding: 4px; background: #f4f0e7; object-fit: contain; }

.gallery-trial-tile--left-bottom {
  z-index: 2;
  left: 51px;
  bottom: 24px;
  width: 145px;
  height: 126px;
  animation: gallery-trial-cinematic-fade-in 1.4s ease 1s forwards;
}

.gallery-trial-tile--left-bottom img { object-position: 49% 50%; }

.gallery-trial-tile--right-bottom {
  z-index: 3;
  right: 24px;
  bottom: 71px;
  width: 140px;
  height: 142px;
  animation: gallery-trial-cinematic-fade-in 1.4s ease 1.3s forwards;
}

.gallery-trial-tile--right-bottom img { object-position: 53% 37%; }

/* Floating starts only after each tile's entrance animation emits animationend. */
.gallery-trial-tile.is-gallery-trial-floating {
  opacity: 1;
  filter: blur(0);
  animation-name: gallery-trial-gentle-float;
  animation-duration: var(--gallery-trial-float-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
  will-change: transform;
}

.gallery-trial-tile--primary {
  --gallery-trial-float-distance: 3px;
  --gallery-trial-float-duration: 10s;
}

.gallery-trial-tile--left {
  --gallery-trial-float-distance: 5px;
  --gallery-trial-float-duration: 8s;
}

.gallery-trial-tile--right-top {
  --gallery-trial-float-distance: 4px;
  --gallery-trial-float-duration: 9s;
}

.gallery-trial-tile--left-bottom {
  --gallery-trial-float-distance: 4px;
  --gallery-trial-float-duration: 11s;
}

.gallery-trial-tile--right-bottom {
  --gallery-trial-float-distance: 5px;
  --gallery-trial-float-duration: 9.5s;
}

@keyframes gallery-trial-gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-1 * var(--gallery-trial-float-distance))); }
}

.gallery-trial-collage__caption {
  position: absolute;
  z-index: 4;
  bottom: 73px;
  left: 280px;
  color: #49675d;
  font: italic 600 14px/1 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .03em;
}

@keyframes gallery-trial-cinematic-fade-in {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}

.gallery-trial-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 74px;
}

.gallery-trial-wave--back { fill: #e9eee6; opacity: .78; }
.gallery-trial-wave--front { fill: #fcfbf7; }

.gallery-trial-context {
  min-height: 260px;
  padding: 58px max(24px, calc((100vw - 1200px) / 2));
  background: #fcfbf7;
  text-align: center;
}

.gallery-trial-context p { color: #a27c42; font: 600 9px/1 'Anuphan', sans-serif; letter-spacing: .28em; }
.gallery-trial-context h2 { margin: 17px 0 0; color: #174438; font: 600 48px/1 'Cormorant Garamond', Georgia, serif; }

@media (max-width: 1400px) {
  .gallery-trial-collage { margin-right: 24px; transform: scale(1); }
}

@media (max-width: 1040px) {
  .gallery-trial-hero__layout { grid-template-columns: .9fr 1.1fr; gap: 18px; }
  .gallery-trial-collage { margin-right: 16px; transform: scale(.86); transform-origin: center right; }
  .gallery-trial-decor__wash--sage { right: -560px; opacity: .38; }
  .gallery-trial-decor__wash--blush { left: -210px; opacity: .48; }
  .gallery-trial-decor__wash--title-blush { left: -480px; opacity: .26; }
  .gallery-trial-decor__leaf--kicker-left { left: 8px; }
  .gallery-trial-decor__leaf--lower-image-left { left: calc(50% - 164px); }
  .gallery-trial-decor__leaf--below-search { left: calc(50% - 470px); }
  .gallery-trial-decor__speckles--left { left: 285px; opacity: .48; }
  .gallery-trial-decor__dense-speckles--upper-art { left: calc(50% - 190px); width: 210px; }
  .gallery-trial-decor__dense-speckles--lower-right { right: -75px; width: 220px; }
}

@media (max-width: 800px) {
  .gallery-trial-hero { min-height: 0; }
  .gallery-trial-hero__layout { grid-template-columns: 1fr; padding-top: 54px; padding-bottom: 110px; }
  .gallery-trial-copy { max-width: 620px; }
  .gallery-trial-collage { right: 0; justify-self: center; width: min(100%, 620px); margin-right: 0; transform: scale(.92); transform-origin: top center; }
  .gallery-trial-decor__wash--blush { left: -390px; bottom: -30px; opacity: .34; }
  .gallery-trial-decor__wash--title-blush { top: 102px; left: -520px; width: 680px; opacity: .23; }
  .gallery-trial-decor__branch--left { left: -235px; bottom: -155px; opacity: .28; }
  .gallery-trial-decor__speckles--left { left: 180px; bottom: 40px; width: 230px; opacity: .34; }
  .gallery-trial-decor__dense-speckles--upper-art { top: 650px; left: 12px; width: 180px; opacity: .42; }
  .gallery-trial-decor__dense-speckles--lower-right { display: none; }
  .gallery-trial-decor__wash--sage { top: 440px; right: -640px; width: 820px; opacity: .3; }
  .gallery-trial-decor__leaf--sage { display: none; }
  .gallery-trial-decor__leaf--cream { right: 80px; bottom: 160px; opacity: .28; }
  .gallery-trial-decor__leaf--near-top-image { display: none; }
  .gallery-trial-decor__leaf--kicker-left { top: 28px; left: 2px; opacity: .36; }
  .gallery-trial-decor__leaf--lower-image-left { display: none; }
  .gallery-trial-decor__leaf--below-search { top: 460px; left: auto; right: 268px; opacity: .34; }
}

@media (max-width: 540px) {
  .gallery-trial-copy h1 { font-size: 58px; }
  .gallery-trial-tagline { font-size: 15px; }
  .gallery-trial-count { align-items: flex-start; flex-direction: column; gap: 5px; }
  .gallery-trial-collage { height: 390px; transform: scale(.72); margin-bottom: -100px; }
  .gallery-trial-decor__leaf--cream { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-trial-tile { opacity: 1; animation: none !important; }
  .gallery-trial-tile.is-gallery-trial-floating {
    transform: none !important;
    will-change: auto;
  }
  .gallery-trial-heading-motion {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
    will-change: auto;
  }
  .gallery-trial-line-art--primary path {
    fill-opacity: 1;
    stroke-dashoffset: 0;
    stroke-opacity: 0;
    animation: none !important;
  }
}


/* Keep the composition within its own block at every viewport size. */
.gallery-trial-hero .gallery-trial-collage {
  display: block;
  width: 100%;
  min-width: 0;
  right: auto;
  margin: 0;
  transform: none;
  height: var(--gallery-collage-height, 490px);
}
.gallery-trial-collage__composition {
  position: absolute;
  width: 710px;
  height: 490px;
  left: var(--gallery-collage-inset, 26px);
  top: 0;
  transform: scale(var(--gallery-collage-scale, .65));
  transform-origin: top left;
  isolation: isolate;
}
@media (min-width: 1401px) {
  .gallery-trial-hero__layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .gallery-trial-copy { min-width: 0; }
  .gallery-trial-hero .gallery-trial-collage { top: 100px; }
}
@media (max-width: 1400px) {
  .gallery-trial-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .gallery-trial-copy {
    width: min(100%, 620px);
    max-width: 620px;
    justify-self: center;
    padding-left: 0;
    text-align: left;
  }
  .gallery-trial-hero .gallery-trial-collage {
    top: 0;
    justify-self: center;
    width: min(100%, 802px);
    margin: 0;
  }
}
