/* Combined Wellness page and image lightbox. Keep it separate from legacy tab CSS. */

.wellness-combined-content .wellness-combined-layout {
  margin-top: 3.125rem !important;
}

.wellness-combined-content .wellness-combined-layout > .tab-content {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
}

.wellness-combined-content .wellness-combined-layout > .tab-content + .tab-content {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(168, 56, 41, 0.24);
}

/* Match Dining menu rows: same size and spacing. The extra classes beat the
   larger legacy Spa-menu rules in wellness-spa-menu.css. */
.wellness-combined-content.wellness-reference-content .wellness-combined-layout .tab-content.wellness-spa-tab > .wellness-spa-menu {
  display: grid !important;
  width: 100%;
  max-width: 50rem;
  grid-template-columns: max-content max-content;
  justify-content: start;
  gap: 1.1rem 3rem;
  margin: 1.25rem auto 2.5rem !important;
  padding: 0 !important;
}

/* Same column rule as Dining: the link sits 3rem after the longest name
   instead of being pushed to the right edge of the 50rem column. */
.wellness-combined-content .wellness-spa-menu-item {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  column-gap: inherit;
  width: 100%;
}

.wellness-combined-content .wellness-spa-menu-name {
  color: var(--cl-text);
  font-family: Gelasio, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
}

.wellness-combined-content.wellness-reference-content .wellness-combined-layout .tab-content.wellness-spa-tab .wellness-spa-menu-link {
  display: inline;
  color: rgb(168, 56, 41) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.2rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.4;
  text-decoration: underline !important;
  white-space: nowrap;
}

.wellness-combined-content .wellness-spa-book {
  justify-content: flex-start !important;
  max-width: 50rem;
  margin: 0 auto 2.5rem !important;
}

.wellness-combined-content .wellness-spa-book-link {
  font-weight: 800 !important;
}

.wellness-combined-content .wellness-lightbox-trigger {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.wellness-combined-content .wellness-lightbox-trigger:focus-visible {
  outline: 2px solid var(--cl-main);
  outline-offset: 3px;
}

.wellness-combined-content .row-treatment-pack > .item > .wellness-lightbox-trigger {
  flex: 0 0 100%;
  width: 100%;
}

.wellness-combined-content .wellness-lightbox-trigger img {
  display: block;
  width: 100%;
}

.wellness-lightbox[hidden] {
  display: none !important;
}

.wellness-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 24, 29, 0.86);
}

.wellness-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.wellness-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: min(92vw, 90rem);
  max-height: 92vh;
  align-items: center;
  justify-content: center;
}

.wellness-lightbox-image {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wellness-lightbox-close {
  position: absolute;
  top: -2.25rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

body.wellness-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .wellness-combined-content .wellness-combined-layout > .tab-content + .tab-content {
    margin-top: 4rem;
    padding-top: 2.5rem;
  }

  .wellness-combined-content.wellness-reference-content .wellness-combined-layout .tab-content.wellness-spa-tab > .wellness-spa-menu {
    grid-template-columns: minmax(0, max-content) max-content;
    column-gap: 1.5rem;
  }

  .wellness-combined-content .wellness-spa-menu-name {
    font-size: 1.15rem;
  }

  .wellness-combined-content.wellness-reference-content .wellness-combined-layout .tab-content.wellness-spa-tab .wellness-spa-menu-link {
    font-size: 1rem !important;
  }

  .wellness-lightbox {
    padding: 1rem;
  }

  .wellness-lightbox-close {
    top: -2rem;
  }
}
