:root {
  --gallery-ocean: var(--color-primary, #a0142d);
  --gallery-ocean-deep: var(--color-primary-dark, #780f22);
  --gallery-gold: var(--color-gold, #ffbb00);
  --gallery-sand: var(--color-surface-alt, #f8f3f1);
  --gallery-ink: var(--color-text, #333333);
  --gallery-muted: #5c5654;
  --gallery-white: var(--color-white, #ffffff);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.gallery-page {
  margin: 0;
  color: var(--gallery-ink);
  background: var(--gallery-white);
  font-family: var(--tp-ff-dm, "DM Sans"), sans-serif;
}

.gallery-page *,
.gallery-page *::before,
.gallery-page *::after {
  box-sizing: border-box;
}

.gallery-page a {
  color: inherit;
}

.gallery-page a:focus-visible,
.gallery-page button:focus-visible {
  outline: 3px solid var(--gallery-gold);
  outline-offset: 4px;
}

.gallery-skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-160%);
  color: var(--gallery-white);
  background: var(--gallery-ocean-deep);
}

.gallery-skip-link:focus {
  transform: translateY(0);
}

.gallery-header {
  position: relative;
  z-index: 20;
  background: var(--gallery-white);
  box-shadow: 0 2px 18px rgba(80, 19, 31, 0.08);
}

.gallery-header__inner {
  display: flex;
  width: min(100% - 48px, 1380px);
  min-height: 92px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.gallery-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.gallery-brand img {
  display: block;
  width: 130px;
  height: 76px;
  object-fit: contain;
}

.gallery-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.gallery-nav a,
.gallery-footer__links a {
  color: var(--gallery-ocean);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.gallery-nav a:hover,
.gallery-footer__links a:hover {
  color: var(--gallery-ocean-deep);
}

.gallery-nav a[aria-current="page"] {
  color: var(--gallery-ocean-deep);
}

.gallery-nav .gallery-nav__visit {
  padding: 13px 20px;
  border: 1px solid var(--gallery-ocean);
  color: var(--gallery-white);
  background: var(--gallery-ocean);
  transition: background-color 180ms ease, color 180ms ease;
}

.gallery-nav .gallery-nav__visit:hover {
  color: var(--gallery-ocean);
  background: transparent;
}

.gallery-menu-toggle {
  display: none;
}

.gallery-hero {
  position: relative;
  display: flex;
  min-height: clamp(520px, 63vw, 760px);
  overflow: hidden;
  align-items: center;
  background: var(--gallery-ocean-deep);
}

.gallery-hero__image,
.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-hero__image {
  object-fit: cover;
  object-position: center 55%;
}

.gallery-hero__overlay {
  background: linear-gradient(90deg, rgba(68, 8, 20, 0.82) 0%, rgba(68, 8, 20, 0.58) 46%, rgba(68, 8, 20, 0.12) 100%);
}

.gallery-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1220px);
  margin: 0 auto;
  padding: 112px 0 130px;
  color: var(--gallery-white);
}

.gallery-eyebrow {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 11px;
  color: var(--gallery-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gallery-eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.gallery-hero h1,
.gallery-section h2,
.gallery-cta h2 {
  margin: 0;
  font-family: var(--tp-ff-playfair, Georgia), serif;
  font-weight: 500;
}

.gallery-hero h1 {
  max-width: 760px;
  color: var(--gallery-white);
  font-size: clamp(44px, 6.5vw, 82px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.gallery-hero__copy {
  max-width: 560px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.gallery-hero__actions,
.gallery-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-button {
  display: inline-flex;
  min-height: 52px;
  padding: 14px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-page .gallery-button--light {
  color: var(--gallery-ocean-deep);
  background: var(--gallery-white);
}

.gallery-page .gallery-button--light:hover {
  border-color: var(--gallery-white);
  color: var(--gallery-white);
  background: transparent;
}

.gallery-button--outline {
  border-color: rgba(255, 255, 255, 0.66);
  color: var(--gallery-white);
  background: transparent;
}

.gallery-page .gallery-button--outline:hover {
  border-color: var(--gallery-white);
  color: var(--gallery-ocean-deep);
  background: var(--gallery-white);
}

.gallery-hero__location {
  position: absolute;
  right: max(24px, calc((100% - 1220px) / 2));
  bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-section {
  padding: clamp(76px, 9vw, 124px) 0 clamp(84px, 10vw, 140px);
  background: var(--gallery-sand);
}

.gallery-container {
  width: min(100% - 48px, 1220px);
  margin: 0 auto;
}

.gallery-section__intro {
  max-width: 690px;
  margin: 0 auto 44px;
  text-align: center;
}

.gallery-eyebrow--green {
  justify-content: center;
  color: var(--gallery-ocean-deep);
}

.gallery-section h2,
.gallery-cta h2 {
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.gallery-section__intro > p:last-child {
  max-width: 570px;
  margin: 18px auto 0;
  color: var(--gallery-muted);
  font-size: 16px;
  line-height: 1.75;
}

.gallery-filters {
  display: flex;
  margin: 0 auto 30px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.gallery-filter {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(160, 20, 45, 0.2);
  border-radius: 0;
  color: var(--gallery-ocean);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  border-color: var(--gallery-ocean);
  color: var(--gallery-white);
  background: var(--gallery-ocean);
}

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.gallery-grid {
  display: grid;
  grid-auto-rows: 74px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  grid-column: span 4;
  grid-row: span 3;
  background: var(--gallery-sand);
  animation: gallery-enter 240ms ease both;
}

.gallery-card--feature {
  grid-column: span 7;
  grid-row: span 5;
}

.gallery-card--outdoor,
.gallery-card--dining {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-card--panorama .gallery-card__link > img {
  object-position: center;
}

.gallery-card--lounge {
  grid-column: span 7;
  grid-row: span 4;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  color: var(--gallery-white);
  text-decoration: none;
}

.gallery-card__link::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(68, 8, 20, 0.77) 100%);
  content: "";
  pointer-events: none;
  transition: opacity 200ms ease;
}

.gallery-card__link > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-card__link:hover > img,
.gallery-card__link:focus-visible > img {
  transform: scale(1.035);
}

.gallery-card__caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 23px;
  left: 24px;
  display: grid;
  gap: 7px;
  color: var(--gallery-white);
}

.gallery-card__caption > span {
  color: var(--gallery-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-card__caption strong {
  max-width: 450px;
  font-family: var(--tp-ff-playfair, Georgia), serif;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.2;
}

.gallery-card__view {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--gallery-white);
  font-size: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-card__view span {
  font-size: 17px;
}

.gallery-card__link:hover .gallery-card__view,
.gallery-card__link:focus-visible .gallery-card__view {
  opacity: 1;
}

.gallery-cta {
  padding: clamp(74px, 9vw, 118px) 24px;
  color: var(--gallery-white);
  background: var(--gallery-ocean);
  text-align: center;
}

.gallery-cta__inner {
  max-width: 850px;
  margin: 0 auto;
}

.gallery-cta .gallery-eyebrow {
  justify-content: center;
}

.gallery-cta h2 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gallery-white);
}

.gallery-cta__inner > p:not(.gallery-eyebrow) {
  max-width: 650px;
  margin: 20px auto 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.gallery-cta__links {
  justify-content: center;
}

.gallery-page .gallery-button--gold {
  color: var(--gallery-ocean-deep);
  background: var(--gallery-gold);
}

.gallery-page .gallery-button--gold:hover {
  border-color: var(--gallery-gold);
  color: var(--gallery-gold);
  background: transparent;
}

.gallery-footer {
  padding: 42px 24px 30px;
  color: var(--gallery-white);
  background: var(--gallery-ocean-deep);
  text-align: center;
}

.gallery-footer__inner {
  display: flex;
  max-width: 1220px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.gallery-footer .gallery-brand img {
  width: 112px;
  height: 66px;
  filter: brightness(0) invert(1);
}

.gallery-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

.gallery-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.gallery-footer__links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.gallery-footer__copyright {
  margin-top: 14px !important;
  font-size: 12px !important;
}

.gallery-page .mfp-bg {
  background: var(--gallery-ocean-deep);
  opacity: 0.96;
}

.gallery-page .mfp-counter {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.gallery-page .mfp-image-holder .mfp-close,
.gallery-page .mfp-arrow {
  color: var(--gallery-white);
}

@keyframes gallery-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .gallery-header__inner {
    min-height: 80px;
  }

  .gallery-brand img {
    width: 112px;
    height: 66px;
  }

  .gallery-menu-toggle {
    position: relative;
    z-index: 31;
    display: flex;
    width: 46px;
    height: 46px;
    padding: 12px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(160, 20, 45, 0.24);
    color: var(--gallery-ocean);
    background: var(--gallery-white);
    cursor: pointer;
  }

  .gallery-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .gallery-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .gallery-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .gallery-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .gallery-nav {
    position: fixed;
    z-index: 30;
    inset: 0 0 0 auto;
    display: flex;
    width: min(360px, 88vw);
    padding: 100px 32px 36px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--gallery-sand);
    box-shadow: -16px 0 42px rgba(80, 19, 31, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateX(102%);
    transition: opacity 200ms ease, transform 200ms ease;
    visibility: hidden;
  }

  .gallery-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .gallery-nav a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(160, 20, 45, 0.12);
    font-size: 16px;
  }

  .gallery-nav .gallery-nav__visit {
    margin-top: 20px;
    padding: 15px 20px;
    border: 1px solid var(--gallery-ocean);
    text-align: center;
  }

  .gallery-page.menu-open,
  .cart-page-shell.menu-open {
    overflow: hidden;
  }

  .gallery-hero {
    min-height: 620px;
  }

  .gallery-hero__overlay {
    background: linear-gradient(90deg, rgba(68, 8, 20, 0.78), rgba(68, 8, 20, 0.34));
  }

  .gallery-grid {
    grid-auto-rows: 62px;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 24px;
  }

  .gallery-header__inner,
  .gallery-hero__content,
  .gallery-container {
    width: min(100% - 36px, 1220px);
  }

  .gallery-hero {
    min-height: min(680px, calc(100svh - 78px));
  }

  .gallery-hero__image {
    object-position: 54% center;
  }

  .gallery-hero__overlay {
    background: linear-gradient(90deg, rgba(68, 8, 20, 0.79), rgba(68, 8, 20, 0.42));
  }

  .gallery-hero__content {
    padding: 86px 0 98px;
  }

  .gallery-hero h1 {
    max-width: 520px;
    font-size: clamp(42px, 13vw, 64px);
  }

  .gallery-hero__copy {
    max-width: 440px;
    margin: 19px 0 25px;
    font-size: 16px;
  }

  .gallery-hero__actions {
    align-items: stretch;
  }

  .gallery-hero__actions .gallery-button {
    min-height: 49px;
    padding: 12px 15px;
    font-size: 12px;
  }

  .gallery-hero__location {
    right: 18px;
    bottom: 18px;
    font-size: 9px;
  }

  .gallery-section {
    padding: 72px 0 84px;
  }

  .gallery-section__intro {
    margin-bottom: 30px;
  }

  .gallery-section h2,
  .gallery-cta h2 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .gallery-section__intro > p:last-child {
    font-size: 15px;
  }

  .gallery-filters {
    margin-bottom: 24px;
    justify-content: flex-start;
  }

  .gallery-filter {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .gallery-grid {
    grid-auto-rows: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .gallery-card,
  .gallery-card--feature,
  .gallery-card--outdoor,
  .gallery-card--dining,
  .gallery-card--lounge {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-card--feature {
    aspect-ratio: 5 / 4;
  }

  .gallery-card--panorama {
    aspect-ratio: 16 / 7;
  }

  .gallery-card__caption {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }

  .gallery-card__caption strong {
    font-size: 21px;
  }

  .gallery-cta {
    padding: 72px 18px;
  }

  .gallery-cta__links {
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  .gallery-page *,
  .gallery-page *::before,
  .gallery-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
