/**
 * Session collection page.
 * The experience block below the packages uses the homepage styles.
 */

.mk-session-page {
  padding-bottom: 1rem;
}

.mk-session-offers,
.mk-session-portfolio {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.mk-session-page .hero-copy h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.mk-session-page .hero-copy .kicker {
  margin-bottom: 0.15rem;
}

.mk-session-offers {
  padding: 1.35rem 0 7rem;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mk-session-offers {
    opacity: 1;
  }
}

.mk-session-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  margin: 0 0 1.8rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--mk-secondary);
  cursor: grab;
}

.mk-session-tabs::-webkit-scrollbar {
  display: none;
}

.mk-session-tabs.is-dragging {
  cursor: grabbing;
  user-select: none;
}

@supports (justify-content: safe center) {
  .mk-session-tabs {
    justify-content: safe center;
  }
}

.mk-session-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--mk-muted);
  font-family: var(--mk-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
}

.mk-session-tab__pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--mk-accent);
  color: var(--mk-on-accent);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
}

.mk-session-tab.is-on {
  color: var(--mk-primary);
  background: var(--mk-surface);
  border-bottom-color: var(--mk-accent);
}

.mk-session-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2.2rem;
  align-items: start;
}

.mk-session-panel[hidden] {
  display: none;
}

.mk-session-panel h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.15;
}

.mk-session-panel__copy > p {
  margin: 0.8rem 0 0;
}

.mk-session-panel__copy > p.mk-session-panel__price {
  margin-top: 0.45rem;
  font-family: var(--mk-font-head);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--mk-text);
}

.mk-session-panel__copy > p.mk-session-panel__price + p {
  margin-top: 1.15rem;
}

.mk-session-panel__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
  margin-top: 2.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--mk-secondary);
}

.mk-session-panel__facts--solo {
  grid-template-columns: minmax(0, 1fr);
}

.mk-session-panel__facts > div + div {
  border-left: 1px solid var(--mk-secondary);
  padding-left: 1.5rem;
}

.mk-session-panel__facts > div:first-child {
  padding-right: 1.5rem;
}

.mk-session-panel__facts--solo > div:first-child {
  padding-right: 0;
}

.mk-session-panel__label {
  margin: 0;
  font-family: var(--mk-font-head);
  font-size: 1.15rem;
  color: var(--mk-text);
}

.mk-session-panel ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.mk-session-panel li {
  list-style: disc;
  color: var(--mk-text);
}

.mk-session-panel li + li {
  margin-top: 0.4rem;
}

.mk-session-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 1.3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--mk-accent);
  color: var(--mk-on-accent);
  font-family: var(--mk-font-body);
  font-size: 0.95rem;
  text-decoration: none;
}

.mk-session-book:hover,
.mk-session-book:focus-visible {
  background: color-mix(in srgb, var(--mk-accent) 90%, #fff);
  color: var(--mk-on-accent);
}

.mk-session-stack {
  position: relative;
  min-height: 460px;
}

.mk-session-stack figure {
  position: absolute;
  margin: 0;
  padding: 3px;
  background: var(--mk-bg);
  box-shadow: 0 10px 22px rgba(40, 30, 20, 0.12);
}

.mk-session-stack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-session-stack--1 figure:nth-child(1) {
  top: 0;
  left: 0;
  width: 64%;
  height: 240px;
  z-index: 1;
}

.mk-session-stack--1 figure:nth-child(2) {
  top: 28px;
  right: 0;
  width: 50%;
  height: 200px;
  z-index: 2;
}

.mk-session-stack--1 figure:nth-child(3) {
  top: 196px;
  left: 4%;
  width: 56%;
  height: 190px;
  z-index: 3;
}

.mk-session-stack--1 figure:nth-child(4) {
  right: 0;
  bottom: 0;
  width: 48%;
  height: 168px;
  z-index: 4;
}

.mk-session-stack--2 figure:nth-child(1) {
  top: 0;
  left: 0;
  width: 56%;
  height: 220px;
  z-index: 1;
}

.mk-session-stack--2 figure:nth-child(2) {
  top: 36px;
  right: 0;
  width: 54%;
  height: 200px;
  z-index: 3;
}

.mk-session-stack--2 figure:nth-child(3) {
  top: 188px;
  left: 6%;
  width: 50%;
  height: 186px;
  z-index: 2;
}

.mk-session-stack--2 figure:nth-child(4) {
  right: 2%;
  bottom: 0;
  width: 52%;
  height: 160px;
  z-index: 4;
}

.mk-session-stack--3 figure:nth-child(1) {
  top: 0;
  left: 0;
  width: 54%;
  height: 200px;
  z-index: 2;
}

.mk-session-stack--3 figure:nth-child(2) {
  top: 22px;
  right: 0;
  width: 56%;
  height: 190px;
  z-index: 1;
}

.mk-session-stack--3 figure:nth-child(3) {
  top: 168px;
  left: 6%;
  width: 58%;
  height: 200px;
  z-index: 3;
}

.mk-session-stack--3 figure:nth-child(4) {
  right: 0;
  bottom: 0;
  width: 48%;
  height: 150px;
  z-index: 4;
}

.mk-session-stack--4 figure:nth-child(1) {
  top: 0;
  right: 0;
  width: 58%;
  height: 210px;
  z-index: 1;
}

.mk-session-stack--4 figure:nth-child(2) {
  top: 46px;
  left: 0;
  width: 56%;
  height: 200px;
  z-index: 3;
}

.mk-session-stack--4 figure:nth-child(3) {
  top: 196px;
  right: 4%;
  width: 52%;
  height: 176px;
  z-index: 2;
}

.mk-session-stack--4 figure:nth-child(4) {
  left: 4%;
  bottom: 0;
  width: 50%;
  height: 156px;
  z-index: 4;
}

.mk-session-stack--5 figure:nth-child(1) {
  top: 0;
  left: 0;
  width: 52%;
  height: 220px;
  z-index: 1;
}

.mk-session-stack--5 figure:nth-child(2) {
  top: 24px;
  left: 28%;
  width: 48%;
  height: 196px;
  z-index: 3;
}

.mk-session-stack--5 figure:nth-child(3) {
  top: 72px;
  right: 0;
  width: 44%;
  height: 200px;
  z-index: 2;
}

.mk-session-stack--5 figure:nth-child(4) {
  left: 8%;
  bottom: 0;
  width: 64%;
  height: 200px;
  z-index: 4;
}

.mk-session-stack--single {
  min-height: 0;
}

.mk-session-stack--single figure,
.mk-session-stack--single figure:nth-child(n) {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  height: auto;
  z-index: auto;
}

.mk-session-stack--single img {
  height: 360px;
}

.mk-session-page .proc {
  width: min(1280px, calc(100% - 48px));
  margin: 3.5rem auto 4.5rem;
}

.mk-session-portfolio {
  padding: 1rem 0 4.6rem;
  text-align: center;
}

.mk-session-portfolio h2 {
  margin: 0.2rem 0 1.2rem;
}

.mk-session-masonry {
  columns: 3;
  column-gap: 12px;
  text-align: left;
}

.mk-session-masonry figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 12px;
  vertical-align: top;
}

.mk-session-page .mk-session-masonry img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mk-session-portfolio__more {
  margin: 1.6rem 0 0;
}

.mk-session-portfolio__more .mk-session-book {
  margin-top: 0;
}

@media (max-width: 800px) {
  .mk-session-page .hero-copy .hero-long {
    display: block;
  }

  .mk-session-page .hero-copy .hero-short {
    display: none;
  }

  .mk-session-panel {
    grid-template-columns: 1fr;
  }

  .mk-session-panel__facts {
    grid-template-columns: 1fr;
    row-gap: 1.35rem;
  }

  .mk-session-panel__facts > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--mk-secondary);
    padding-top: 1.15rem;
  }

  .mk-session-panel__facts > div:first-child {
    padding-right: 0;
  }

  .mk-session-masonry {
    columns: 2;
  }

  .mk-session-stack {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .mk-session-masonry {
    columns: 1;
  }
}

/* Desktop: the packages and their tabs fade in on the first scroll (session-studio.js). */
.mk-session-offers.is-timed {
  transition: opacity 0.45s ease;
}
