:root {
  --mk-gallery-ink: #1d1d1f;
  --mk-gallery-body: #424245;
  --mk-gallery-muted: #6e6e73;
  --mk-gallery-line: #d2d2d7;
  --mk-gallery-surface: #ffffff;
  --mk-gallery-bg: #f5f5f7;
  --mk-gallery-shadow: 0 20px 55px rgba(0, 0, 0, 0.1);
}

html.mk-gallery-shortcode-page,
body.mk-gallery-shortcode-page,
body.mk-gallery-is-locked {
  overflow-x: hidden;
}

body.mk-gallery-is-locked {
  overflow: hidden;
}

body.mk-gallery-shortcode-page #main-content > .container,
body.mk-gallery-shortcode-page #content,
body.mk-gallery-shortcode-page #content-area,
body.mk-gallery-shortcode-page #primary,
body.mk-gallery-shortcode-page #left-area,
body.mk-gallery-shortcode-page .site-content,
body.mk-gallery-shortcode-page .content-area,
body.mk-gallery-shortcode-page .entry-content,
body.mk-gallery-shortcode-page article,
body.mk-gallery-shortcode-page .hentry,
body.mk-gallery-shortcode-page .type-page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.mk-gallery-shortcode-page #left-area,
body.mk-gallery-shortcode-page #primary,
body.mk-gallery-shortcode-page .content-area {
  float: none !important;
}

body.mk-gallery-shortcode-page #main-content .container::before,
body.mk-gallery-shortcode-page .content-area::before {
  display: none !important;
}

body.mk-gallery-shortcode-page #sidebar,
body.mk-gallery-shortcode-page #secondary,
body.mk-gallery-shortcode-page .sidebar,
body.mk-gallery-shortcode-page .secondary,
body.mk-gallery-shortcode-page .widget-area,
body.mk-gallery-shortcode-page .et_pb_widget_area,
body.mk-gallery-shortcode-page #main-content .entry-header,
body.mk-gallery-shortcode-page #main-content .page-title,
body.mk-gallery-shortcode-page #main-content .entry-title,
body.mk-gallery-shortcode-page #main-content h1.entry-title,
body.mk-gallery-shortcode-page #main-content .et_post_meta_wrapper {
  display: none !important;
}

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

.mk-wordpress-gallery-page,
.mk-gallery {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mk-gallery {
  overflow: hidden;
  color: var(--mk-gallery-ink);
  background: var(--mk-gallery-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.mk-gallery button,
.mk-gallery a {
  font: inherit;
}

.mk-gallery button {
  color: inherit;
}

.mk-gallery a {
  color: inherit;
  text-decoration: none;
}

.mk-gallery img {
  display: block;
  max-width: 100%;
}

.mk-gallery .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mk-gallery-hero {
  position: relative;
  display: flex;
  min-height: clamp(580px, 72vh, 760px);
  align-items: flex-end;
  isolation: isolate;
  color: #fff;
  background-color: #07101d;
  background-image: var(--mk-gallery-hero-image);
  background-position: center;
  background-size: cover;
}

.mk-gallery-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.04) 74%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 42%);
}

.mk-gallery-hero__content {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) clamp(24px, 7vw, 112px);
}

.mk-gallery-kicker {
  margin: 0 0 14px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-gallery-hero h1 {
  margin: 0;
  font-size: clamp(64px, 9.2vw, 142px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.mk-gallery-hero__content > p:not(.mk-gallery-kicker) {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
}

.mk-gallery-hero__link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 0 0 11px;
  color: #fff;
  background: transparent;
  font-family: "neue-montreal", "Neue Montreal", "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: clamp(18px, 1.25vw, 21px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.mk-gallery-hero__link::before,
.mk-gallery-hero__link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  content: "";
}

.mk-gallery-hero__link::before {
  background: rgba(255, 255, 255, 0.36);
}

.mk-gallery-hero__link::after {
  background: #fff;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.mk-gallery-hero__link > span:last-child {
  font-size: 22px;
  line-height: 0.7;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mk-gallery-hero__link:hover::after,
.mk-gallery-hero__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.mk-gallery-hero__link:hover > span:last-child,
.mk-gallery-hero__link:focus-visible > span:last-child {
  transform: translate(3px, -3px);
}

.mk-gallery-content {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(74px, 9vw, 138px) clamp(24px, 6vw, 92px) clamp(84px, 9vw, 148px);
}

.mk-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.mk-gallery-heading .mk-gallery-kicker {
  color: var(--mk-gallery-muted);
}

.mk-gallery-heading h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.mk-gallery-intro {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--mk-gallery-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.mk-gallery-total {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--mk-gallery-line);
  border-radius: 999px;
  color: var(--mk-gallery-muted);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  white-space: nowrap;
}

.mk-gallery-total strong {
  color: var(--mk-gallery-ink);
}

.mk-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 4vw, 58px);
  width: min(calc(100% - 40px), 900px);
  max-width: 900px;
  margin: clamp(44px, 6vw, 80px) auto clamp(30px, 4vw, 52px);
  padding: 0;
  border: 0;
  background: transparent;
}

.mk-gallery-filter {
  position: relative;
  width: auto;
  min-height: 34px;
  padding: 0 0 9px;
  border: 0;
  border-radius: 0;
  color: var(--mk-gallery-muted);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  font-size: clamp(0.96rem, 1vw, 1.08rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 180ms ease;
}

.mk-gallery-filter::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mk-gallery-filter:hover {
  color: var(--mk-gallery-ink);
}

.mk-gallery-filter.is-active {
  color: var(--mk-gallery-ink);
  font-weight: 500;
}

.mk-gallery-filter.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.mk-gallery-grid {
  column-count: 3;
  column-gap: 18px;
}

.mk-gallery-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 22px;
  background: #d9d9dd;
  box-shadow: none;
  cursor: zoom-in;
  isolation: isolate;
  text-align: left;
}

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

.mk-gallery-card img {
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mk-gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 220ms ease;
}

.mk-gallery-card__meta {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-gallery-card__title {
  padding-right: 40px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mk-gallery-card__icon {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111;
  background: #fff;
  border-radius: 50%;
}

.mk-gallery-card:hover img,
.mk-gallery-card:focus-visible img {
  transform: scale(1.025);
}

.mk-gallery-card:hover .mk-gallery-card__overlay,
.mk-gallery-card:focus-visible .mk-gallery-card__overlay {
  opacity: 1;
}

.mk-gallery-card:focus-visible,
.mk-gallery-filter:focus-visible,
.mk-gallery-hero__link:focus-visible,
.mk-gallery-lightbox button:focus-visible {
  outline: 3px solid #2997ff;
  outline-offset: 3px;
}

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

.mk-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  color: #fff;
}

.mk-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(18px);
}

.mk-gallery-lightbox__panel {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px 22px 24px;
}

.mk-gallery-lightbox__toolbar {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mk-gallery-lightbox__toolbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.mk-gallery-lightbox__toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 8px 14px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.mk-gallery-lightbox__toolbar button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.mk-gallery-lightbox__stage {
  display: grid;
  min-height: 0;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 20px;
  touch-action: pan-y;
}

.mk-gallery-lightbox figure {
  display: grid;
  min-width: 0;
  height: 100%;
  max-height: calc(100vh - 100px);
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}

.mk-gallery-lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.mk-gallery-lightbox figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding-top: 16px;
  text-align: center;
}

.mk-gallery-lightbox figcaption span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-gallery-lightbox figcaption strong {
  font-size: 15px;
  font-weight: 500;
}

.mk-gallery-lightbox__nav {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 22px;
  transition: color 180ms ease, background 180ms ease;
}

.mk-gallery-lightbox__nav:hover {
  color: #111;
  background: #fff;
}

@media (max-width: 980px) {
  .mk-gallery-grid {
    column-count: 2;
  }

  .mk-gallery-hero__shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.12)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 52%);
  }
}

@media (max-width: 700px) {
  .mk-gallery-hero {
    min-height: 550px;
    background-position: 62% center;
  }

  .mk-gallery-hero__content {
    padding: 52px 22px;
  }

  .mk-gallery-hero h1 {
    font-size: clamp(62px, 23vw, 94px);
  }

  .mk-gallery-hero__content > p:not(.mk-gallery-kicker) {
    max-width: 92%;
    margin-top: 22px;
    font-size: 16px;
  }

  .mk-gallery-content {
    padding: 70px 16px 90px;
  }

  .mk-gallery-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mk-gallery-heading h2 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .mk-gallery-total {
    justify-self: start;
  }

  .mk-gallery-filters {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 32px;
    margin: 42px 0 26px;
    padding: 0 2px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mk-gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .mk-gallery-grid {
    column-count: 1;
    column-gap: 0;
  }

  .mk-gallery-card {
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .mk-gallery-card__overlay {
    opacity: 1;
    padding: 20px;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.68));
  }

  .mk-gallery-card__icon {
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
  }

  .mk-gallery-lightbox__panel {
    padding: 10px 14px 18px;
  }

  .mk-gallery-lightbox__stage {
    display: block;
  }

  .mk-gallery-lightbox figure {
    height: calc(100vh - 78px);
    max-height: none;
  }

  .mk-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
  }

  .mk-gallery-lightbox__nav.is-prev {
    left: 8px;
  }

  .mk-gallery-lightbox__nav.is-next {
    right: 8px;
  }

  .mk-gallery-lightbox figcaption {
    display: grid;
    gap: 3px;
    align-content: center;
  }
}

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