.gallery-page {
  overflow-x: clip;
}

.gallery-page .section {
  position: relative;
}

.gallery-hero {
  padding-block: var(--space-8) var(--space-20);
}

.gallery-hero__shell {
  position: relative;
  overflow: clip;
  min-height: 710px;
  border-radius: var(--radius-xl);
}

.gallery-hero__ribbons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gallery-hero__ribbon {
  position: absolute;
  left: -35%;
  display: flex;
  width: 170%;
  min-width: 1200px;
  height: 56px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(120, 132, 227, 0.16);
  color: var(--color-indigo-ribbon);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-hero__ribbon--one {
  top: 31%;
  transform: rotate(-12deg);
  animation: gallery-ribbon-forward 28s linear infinite;
}

.gallery-hero__ribbon--two {
  top: 56%;
  transform: rotate(12deg);
  animation: gallery-ribbon-reverse 34s linear infinite;
}

.gallery-hero:hover .gallery-hero__ribbon,
.gallery-hero:focus-within .gallery-hero__ribbon {
  animation-play-state: paused;
}

.gallery-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.25fr) minmax(0, 6.75fr);
  min-height: 710px;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-10);
}

.gallery-hero__copy,
.gallery-hero__visual {
  min-width: 0;
  width: 100%;
}

.gallery-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-12);
}

.gallery-hero__copy > * {
  min-width: 0;
  margin: 0;
}

.gallery-hero__copy .badge {
  max-width: 100%;
}

.gallery-hero__copy h1,
.gallery-hero__copy .lead,
.gallery-hero__actions {
  width: min(100%, 620px);
}

.gallery-hero__copy .lead {
  font-size: 18px;
  line-height: 1.5556;
}

.gallery-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.gallery-hero__actions > * {
  min-width: 0;
}

.gallery-hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.gallery-hero__image {
  width: 100%;
  margin: 0;
}

.gallery-hero__image > img {
  height: 570px;
  aspect-ratio: auto;
  object-position: center;
}

.gallery-hero__floating-card {
  position: absolute;
  bottom: 22px;
  left: -28px;
  display: flex;
  width: min(245px, 48%);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-ivory-000);
  box-shadow: var(--shadow-surface);
  transform: rotate(-6deg);
}

.gallery-hero__floating-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4286;
}

.gallery-hero__card-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-cloud-100);
  color: var(--color-indigo-700);
  font-size: 22px;
}

.gallery-guides {
  background: var(--color-cloud-100);
}

.gallery-guides__intro {
  width: min(100%, 680px);
  min-width: 0;
}

.gallery-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.gallery-guides__grid > * {
  min-width: 0;
  width: 100%;
}

.gallery-guide {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: var(--space-4);
}

.gallery-guide > * {
  min-width: 0;
  margin: 0;
}

.gallery-guide h3 {
  padding-right: 42px;
}

.gallery-guide__accent {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
}

.gallery-guide__accent--apricot {
  background: var(--color-apricot-300);
}

.gallery-guide__accent--indigo {
  background: var(--color-indigo-500);
  color: var(--color-ivory-000);
}

.gallery-guide__accent--sage {
  background: var(--color-sage-300);
}

.gallery-kitchen__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-8);
}

.gallery-kitchen__layout > * {
  min-width: 0;
  width: 100%;
}

.gallery-kitchen__image {
  margin: 0;
}

.gallery-kitchen__image > img {
  min-height: 500px;
  aspect-ratio: 4 / 3;
}

.gallery-kitchen__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.gallery-kitchen__copy > * {
  min-width: 0;
  margin: 0;
}

.gallery-kitchen__copy > p:not(.eyebrow),
.gallery-kitchen__copy h2 {
  width: min(100%, 540px);
}

.gallery-kitchen__caption,
.gallery-kitchen__route {
  width: 100%;
}

.gallery-kitchen__caption,
.gallery-kitchen__route {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gallery-kitchen__caption {
  padding: var(--space-5);
}

.gallery-kitchen__caption > *,
.gallery-kitchen__route > * {
  margin: 0;
}

.gallery-kitchen__garnish {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 24px;
  border-radius: 80% 20% 80% 20%;
  background: var(--color-apricot-300);
  transform: rotate(-24deg);
}

.gallery-room {
  padding-bottom: var(--space-20);
}

.gallery-room__intro {
  width: min(100%, 680px);
  min-width: 0;
  margin-bottom: var(--space-8);
}

.gallery-room__intro > :last-child {
  margin-bottom: 0;
}

.gallery-room__image {
  width: 100%;
  margin: 0;
}

.gallery-room__image > img {
  min-height: 520px;
  aspect-ratio: 3 / 2;
}

.gallery-room__tiles {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: var(--space-8);
  margin-top: calc(var(--space-8) * -1);
  padding-inline: var(--space-10);
  position: relative;
  z-index: 1;
}

.gallery-room__tile {
  width: min(100%, 360px);
  min-width: 0;
}

.gallery-room__tile > :last-child {
  margin-bottom: 0;
}

.gallery-lounge {
  background: var(--color-cloud-100);
}

.gallery-lounge__panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  background: var(--color-indigo-950);
  box-shadow: var(--shadow-raised);
}

.gallery-lounge__panel > * {
  min-width: 0;
  width: 100%;
}

.gallery-lounge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  color: var(--color-ivory-000);
}

.gallery-lounge__copy > * {
  min-width: 0;
  margin: 0;
}

.gallery-lounge__copy h2,
.gallery-lounge__copy p:not(.eyebrow) {
  width: min(100%, 540px);
  color: var(--color-ivory-000);
}

.gallery-lounge__copy .eyebrow {
  color: var(--color-sage-300);
}

.gallery-lounge__copy .button--secondary {
  background: var(--color-ivory-000);
}

.gallery-lounge__visual {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
  padding-bottom: var(--space-10);
}

.gallery-lounge__image {
  width: 100%;
  margin: 0;
}

.gallery-lounge__image > img {
  min-height: 440px;
}

.gallery-lounge__caption {
  width: min(84%, 470px);
  margin: 0;
}

.gallery-lounge__caption > :last-child {
  margin-bottom: 0;
}

.gallery-lounge__object {
  position: absolute;
  top: -18px;
  right: 30px;
  z-index: 1;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-indigo-500);
  box-shadow: var(--shadow-surface);
  color: var(--color-ivory-000);
  font-size: 30px;
  transform: rotate(9deg);
}

.gallery-tables__intro {
  width: min(100%, 650px);
  min-width: 0;
  margin-bottom: var(--space-8);
}

.gallery-tables__intro > :last-child {
  margin-bottom: 0;
}

.gallery-tables__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: start;
}

.gallery-tables__layout > * {
  min-width: 0;
  width: 100%;
}

.gallery-tables__image {
  margin: 0;
}

.gallery-tables__image > img {
  min-height: 500px;
}

.gallery-tables__principles {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.gallery-tables__principles > * {
  min-width: 0;
  width: 100%;
}

.gallery-principle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: 68px;
}

.gallery-principle > * {
  min-width: 0;
  margin: 0;
}

.gallery-principle__icon {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cloud-100);
  color: var(--color-indigo-700);
  font-weight: 700;
}

.gallery-gatherings {
  background: var(--color-cloud-100);
}

.gallery-gatherings__panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-8);
}

.gallery-gatherings__panel > * {
  min-width: 0;
  width: 100%;
}

.gallery-gatherings__copy {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.gallery-gatherings__copy > * {
  min-width: 0;
  margin: 0;
}

.gallery-gatherings__scene {
  position: relative;
  min-height: 260px;
}

.gallery-gatherings__plate,
.gallery-gatherings__card,
.gallery-gatherings__leaf {
  position: absolute;
  display: block;
  box-shadow: var(--shadow-surface);
}

.gallery-gatherings__plate {
  top: 54px;
  left: 50%;
  width: 180px;
  height: 180px;
  border: 18px solid var(--color-apricot-300);
  border-radius: 50%;
  background: var(--color-ivory-000);
  transform: translateX(-50%);
}

.gallery-gatherings__card {
  right: 32px;
  bottom: 26px;
  display: inline-flex;
  width: 86px;
  height: 118px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-ivory-000);
  color: var(--color-indigo-700);
  font-size: 42px;
  transform: rotate(12deg);
}

.gallery-gatherings__leaf {
  top: 26px;
  left: 36px;
  width: 78px;
  height: 34px;
  border-radius: 80% 20% 80% 20%;
  background: var(--color-sage-300);
  transform: rotate(-34deg);
}

.gallery-faqs__intro {
  width: min(100%, 680px);
  min-width: 0;
  margin-bottom: var(--space-8);
}

.gallery-faqs__intro > :last-child {
  margin-bottom: 0;
}

.gallery-faqs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.gallery-faqs__grid > * {
  min-width: 0;
  width: 100%;
}

.gallery-faq {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-12);
}

.gallery-faq > * {
  min-width: 0;
  margin: 0;
}

.gallery-faq__mark {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-indigo-700);
  color: var(--color-ivory-000);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.gallery-faqs__route {
  display: inline-block;
  margin-top: var(--space-6);
  font-weight: 600;
}

.gallery-contact {
  padding-bottom: var(--space-20);
}

.gallery-contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  background: var(--color-indigo-700);
  box-shadow: var(--shadow-raised);
}

.gallery-contact__panel > * {
  min-width: 0;
  width: 100%;
}

.gallery-contact__copy {
  display: flex;
  max-width: 580px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  color: var(--color-ivory-000);
}

.gallery-contact__copy > * {
  min-width: 0;
  margin: 0;
}

.gallery-contact__copy h2,
.gallery-contact__copy p:not(.eyebrow) {
  color: var(--color-ivory-000);
}

.gallery-contact__copy .eyebrow {
  color: var(--color-cloud-100);
}

.gallery-contact__slab {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--color-ivory-000);
  box-shadow: var(--shadow-surface);
  font-style: normal;
}

.gallery-contact__slab p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}

.gallery-contact__slab strong {
  color: var(--color-indigo-700);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-contact__leaf {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: var(--color-sage-300);
  font-size: 22px;
}

@keyframes gallery-ribbon-forward {
  from { margin-left: -8%; }
  to { margin-left: 8%; }
}

@keyframes gallery-ribbon-reverse {
  from { margin-left: 8%; }
  to { margin-left: -8%; }
}

@media (max-width: 900px) {
  .gallery-hero__shell,
  .gallery-hero__layout {
    min-height: auto;
  }

  .gallery-hero__layout,
  .gallery-kitchen__layout,
  .gallery-lounge__panel,
  .gallery-tables__layout,
  .gallery-gatherings__panel,
  .gallery-contact__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-hero__layout {
    gap: var(--space-6);
  }

  .gallery-hero__visual {
    min-height: 520px;
  }

  .gallery-hero__image > img {
    height: 520px;
  }

  .gallery-hero__floating-card {
    left: var(--space-6);
  }

  .gallery-guides__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-guides__grid > :last-child {
    grid-column: 1 / -1;
  }

  .gallery-kitchen__copy,
  .gallery-lounge__copy,
  .gallery-gatherings__copy,
  .gallery-contact__copy {
    max-width: none;
  }

  .gallery-kitchen__copy > p:not(.eyebrow),
  .gallery-kitchen__copy h2,
  .gallery-lounge__copy h2,
  .gallery-lounge__copy p:not(.eyebrow),
  .gallery-gatherings__copy,
  .gallery-contact__copy {
    width: 100%;
  }

  .gallery-room__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
    padding-inline: 0;
  }

  .gallery-room__tile {
    width: 100%;
  }

  .gallery-lounge__visual {
    align-items: flex-start;
    padding-bottom: 0;
  }

  .gallery-lounge__caption {
    width: 100%;
  }

  .gallery-tables__principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-tables__principles > :last-child {
    grid-column: 1 / -1;
  }

  .gallery-contact__slab {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .gallery-hero {
    padding-block: var(--space-6) var(--space-12);
  }

  .gallery-hero__shell {
    border-radius: var(--radius-card);
  }

  .gallery-hero__layout {
    padding-block: 0 var(--space-10);
  }

  .gallery-hero__copy {
    gap: var(--space-4);
    padding: var(--space-6);
  }

  .gallery-hero__copy h1 {
    font-size: 34px;
    line-height: 1.1176;
  }

  .gallery-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-hero__actions > * {
    width: 100%;
  }

  .gallery-hero__visual {
    min-height: auto;
  }

  .gallery-hero__image > img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: center;
  }

  .gallery-hero__floating-card {
    right: var(--space-4);
    bottom: -30px;
    left: auto;
    width: 46%;
    padding: var(--space-4);
  }

  .gallery-hero__ribbon {
    left: -45%;
    width: 190%;
    min-width: 760px;
    height: 42px;
    font-size: 11px;
    opacity: 0.72;
  }

  .gallery-hero__ribbon--one {
    top: 36%;
    transform: rotate(-8deg);
  }

  .gallery-hero__ribbon--two {
    top: 60%;
    transform: rotate(8deg);
  }

  .gallery-guides__grid,
  .gallery-room__tiles,
  .gallery-tables__principles,
  .gallery-faqs__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .gallery-guides__grid > :last-child,
  .gallery-tables__principles > :last-child {
    grid-column: auto;
  }

  .gallery-guides__grid {
    margin-top: var(--space-6);
  }

  .gallery-kitchen__image > img,
  .gallery-room__image > img,
  .gallery-lounge__image > img,
  .gallery-tables__image > img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .gallery-kitchen__copy,
  .gallery-lounge__panel,
  .gallery-gatherings__panel,
  .gallery-contact__panel {
    padding: var(--space-6);
  }

  .gallery-lounge__panel {
    gap: var(--space-6);
    border-radius: var(--radius-card);
  }

  .gallery-lounge__copy,
  .gallery-gatherings__copy,
  .gallery-contact__copy {
    gap: var(--space-4);
  }

  .gallery-lounge__copy h2,
  .gallery-gatherings__copy h2,
  .gallery-contact__copy h2 {
    font-size: 30px;
    line-height: 1.1667;
  }

  .gallery-lounge__object {
    top: -12px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .gallery-tables__layout {
    gap: var(--space-6);
  }

  .gallery-principle {
    padding-left: 64px;
  }

  .gallery-gatherings__scene {
    min-height: 145px;
  }

  .gallery-gatherings__plate {
    top: 12px;
    width: 120px;
    height: 120px;
    border-width: 12px;
  }

  .gallery-gatherings__card {
    right: 15%;
    bottom: 0;
    width: 62px;
    height: 88px;
    font-size: 30px;
  }

  .gallery-gatherings__leaf {
    top: 20px;
    left: 18%;
    width: 54px;
    height: 24px;
  }

  .gallery-contact {
    padding-bottom: var(--space-12);
  }

  .gallery-contact__copy .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .gallery-room__intro,
  .gallery-tables__intro,
  .gallery-faqs__intro {
    margin-bottom: var(--space-6);
  }

  .gallery-contact__slab {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-hero__ribbon {
    animation: none;
  }
}
