.club-hero {
  min-height: min(58rem, calc(100svh - var(--header-height)));
  overflow: hidden;
  color: var(--color-white);
}

.club-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 35, 62, 0.46), rgba(0, 35, 62, 0.08) 68%, transparent);
  content: "";
  pointer-events: none;
}

.club-hero__image {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: max(125%, 66.6818vw);
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, var(--hero-image-offset, 0), 0);
  will-change: transform;
}

.club-hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(5rem, 9vw, 8.5rem);
}

.club-hero h1 {
  max-width: 58rem;
  margin-bottom: var(--space-4);
  font-size: clamp(2.2rem, 4vw, 4.6rem);
}

.club-hero__lead {
  max-width: 44rem;
  margin-bottom: var(--space-5);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

.club-amenities,
.memberships,
.membership-steps,
.club-gallery,
.restobar,
.membership-cta,
.cta {
  padding-block: var(--space-7);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.amenity-card,
.membership-card {
  display: flex;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-white);
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.amenity-card {
  min-height: 21rem;
  padding: clamp(1.4rem, 2.5vw, 2.25rem);
}

.amenity-card:hover,
.amenity-card:focus-within,
.membership-card:hover,
.membership-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.amenity-card h3,
.membership-card h3 {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  line-height: 1.08;
  font-weight: 500;
}

.amenity-card h3 {
  min-height: 2.16em;
}

.amenity-card p {
  min-height: 3.6rem;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.amenity-card .button {
  width: min(100%, 13rem);
  margin-top: 30px;
  align-self: center;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.membership-card {
  min-height: 31rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-soft);
}

.membership-card > p,
.membership-card li {
  font-size: 0.79rem;
}

.membership-card > p {
  min-height: 3.5rem;
  margin-bottom: var(--space-2);
}

.membership-card ul {
  display: grid;
  min-height: 9rem;
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  gap: 0.45rem;
}

.membership-card li::marker {
  color: var(--color-ink);
}

.membership-card .button {
  width: min(100%, 15rem);
  margin-top: 30px;
  align-self: center;
}

.membership-steps__intro {
  margin-bottom: var(--space-6);
  font-size: 0.84rem;
}

.steps-list {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.steps-list::before {
  position: absolute;
  top: 2.45rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: #d2d2d2;
  content: "";
}

.steps-list li {
  position: relative;
  z-index: 1;
  padding-inline: var(--space-3);
  text-align: center;
}

.steps-list__number {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-white);
  font-size: 2rem;
  place-items: center;
}

.steps-list li:first-child .steps-list__number {
  background: var(--color-ink);
  color: var(--color-white);
}

.steps-list h3 {
  min-height: 3.2rem;
  margin: 0 0 var(--space-3);
  font-size: 1.1rem;
  line-height: 1.12;
  font-weight: 500;
}

.steps-list p {
  margin: 0 auto;
  max-width: 16rem;
  font-size: 0.76rem;
}

.club-gallery__grid {
  display: grid;
  margin-bottom: var(--space-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(10rem, 15vw, 17rem);
  gap: 0.25rem;
}

.club-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--color-soft-strong);
}

.club-gallery__main {
  grid-column: span 2;
  grid-row: span 2;
}

.club-gallery__item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.club-gallery__item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.club-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-gallery figcaption {
  position: absolute;
  z-index: 3;
  top: var(--space-3);
  left: var(--space-3);
  max-width: calc(100% - (2 * var(--space-3)));
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.gallery-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080808;
  color: var(--color-white);
}

.gallery-modal::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.gallery-modal__shell {
  position: relative;
  display: grid;
  height: 100%;
  max-height: 100dvh;
  padding: 1rem;
  grid-template-rows: minmax(0, 1fr) 7rem;
  gap: 0.75rem;
  overflow: hidden;
}

.gallery-modal__viewer {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-height: calc(100vh - 9.75rem);
  max-height: calc(100dvh - 9.75rem);
  overflow: hidden;
  place-items: center;
}

.gallery-modal__viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-modal__thumbs {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(5, minmax(0, 9rem));
  justify-content: center;
  gap: 0.55rem;
}

.gallery-modal__thumbs button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1d1d1d;
  cursor: pointer;
}

.gallery-modal__thumbs button:hover,
.gallery-modal__thumbs button:focus-visible,
.gallery-modal__thumbs button[aria-pressed="true"] {
  border-color: var(--color-accent);
}

.gallery-modal__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-modal__close {
  position: absolute;
  z-index: 4;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: var(--color-white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.gallery-modal__close:hover,
.gallery-modal__close:focus-visible {
  background: var(--color-white);
  color: var(--color-ink);
}

.gallery-modal [aria-busy="true"] {
  opacity: 0.55;
}

.gallery-modal .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.restobar__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-6);
  align-items: center;
}

.restobar__copy h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.restobar__copy > p:not(.eyebrow) {
  max-width: 42rem;
  font-size: 0.9rem;
}

.restobar__features {
  display: flex;
  margin: 0 0 var(--space-4);
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.4rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.restobar__image {
  width: 100%;
  height: clamp(22rem, 34vw, 36rem);
  object-fit: cover;
}

.membership-cta__inner,
.cta__inner {
  text-align: center;
}

.membership-cta h2,
.cta h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.membership-cta p,
.cta p {
  margin-bottom: var(--space-5);
  font-size: 0.85rem;
}

@media (max-width: 64rem) {
  .club-hero {
    min-height: 48rem;
  }

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

  .membership-card {
    min-height: 33rem;
  }

  .steps-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }

  .steps-list::before {
    display: none;
  }
}

@media (max-width: 48rem) {
  .club-hero {
    min-height: 46rem;
  }

  .club-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.16) 68%, transparent);
  }

  .club-hero__image {
    object-position: 58% top;
  }

  .club-hero__content {
    padding-top: var(--space-7);
  }

  .club-hero .button-row,
  .club-hero .button {
    width: 100%;
  }

  .amenity-grid,
  .membership-grid,
  .restobar__layout {
    grid-template-columns: 1fr;
  }

  .amenity-card,
  .membership-card {
    min-height: 22rem;
  }

  .amenity-card h3,
  .amenity-card p {
    min-height: 0;
  }

  .membership-card > p,
  .membership-card ul {
    min-height: 0;
  }

  .club-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 12rem;
  }

  .club-gallery__main {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .gallery-modal__shell {
    display: block;
    height: 100%;
    padding: 4.5rem 1rem 1rem;
    overflow-y: auto;
  }

  .gallery-modal__viewer {
    display: none;
  }

  .gallery-modal--selected .gallery-modal__viewer {
    display: grid;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 6.5rem);
    max-height: calc(100dvh - 6.5rem);
    margin-bottom: 1rem;
  }

  .gallery-modal--selected .gallery-modal__viewer img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 6.5rem);
    max-height: calc(100dvh - 6.5rem);
  }

  .gallery-modal__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .gallery-modal__thumbs button {
    aspect-ratio: 1;
  }

  .restobar__image {
    grid-row: 1;
    height: 23rem;
  }
}

@media (max-width: 30rem) {
  .amenity-grid,
  .steps-list {
    grid-template-columns: 1fr;
  }

  .club-gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 15rem;
  }

  .club-gallery__main {
    grid-column: auto;
    grid-row: span 2;
  }

  .membership-cta .button-row,
  .membership-cta .button {
    width: 100%;
  }
}
