.mk-journal-hero {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  grid-column: 1 / -1;
  width: 100%;
  min-height: clamp(16rem, 28vw, 24rem);
  margin: 0 0 clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 4.2vw, 3.75rem);
  overflow: hidden;
  border: 1px solid #493b2d;
  background: #1b1815;
}

.mk-journal-hero img {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.mk-journal-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #1b1815 16%, #1b1815 36%, rgba(27, 24, 21, .2) 61%, transparent 80%),
    linear-gradient(0deg, rgba(27, 24, 21, .66), transparent 61%);
}

#main .mk-journal-hero h1 {
  margin: 0;
  color: var(--mk-text, #f3efe8);
  font-family: var(--mk-serif, Georgia, serif);
  font-size: clamp(2.55rem, 5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
}

@media (max-width: 680px) {
  .mk-journal-hero {
    min-height: clamp(14rem, 60vw, 19rem);
  }

  .mk-journal-hero img {
    width: 100%;
  }

  .mk-journal-hero::after {
    background: linear-gradient(0deg, #1b1815, rgba(27, 24, 21, .52) 33%, transparent 65%);
  }
}

.mk-mobile-gallery-cover {
  display: none;
}

@media (max-width: 767px), (max-width: 999px) and (max-height: 540px) and (pointer: coarse) {
  body.mk-editorial:is(.postid-166, .page-id-15309) #main .mk-ed-wrap > .mk-ed-page-head.mk-mobile-gallery-head {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: clamp(14rem, 60vw, 19rem);
    margin: 0 0 1.25rem;
    padding: clamp(1.15rem, 4vw, 1.75rem);
    overflow: hidden;
    border: 1px solid #493b2d;
    background: #1b1815;
  }

  .mk-mobile-gallery-head .mk-mobile-gallery-cover {
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    display: block;
    width: 100%;
  }

  .mk-mobile-gallery-head .mk-mobile-gallery-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
  }

  body.postid-166 .mk-mobile-gallery-head .mk-mobile-gallery-cover {
    width: min(100%, calc(clamp(14rem, 60vw, 19rem) * 1.43));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%);
    mask-image: linear-gradient(90deg, transparent, #000 14%);
  }

  body.postid-166 .mk-mobile-gallery-head .mk-mobile-gallery-cover img {
    object-position: center 6.6%;
  }

  .mk-mobile-gallery-head::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, #1b1815, rgba(27, 24, 21, .58) 31%, transparent 68%);
  }

  body.mk-editorial:is(.postid-166, .page-id-15309) #main .mk-ed-wrap > .mk-ed-page-head.mk-mobile-gallery-head h1 {
    margin: 0;
    color: var(--mk-text, #f3efe8);
    font-family: var(--mk-serif, Georgia, serif);
    font-size: clamp(2.35rem, 7vw, 3.35rem);
    font-weight: 400;
    line-height: 1.02;
  }

  .mk-mobile-gallery-head .mk-ed-back {
    margin-bottom: .4rem;
  }
}

body.mk-editorial #main a:is(.mk-ed-photo, .mk-ed-card, .mk-home-discover-tile).mk-touch-highlight {
  position: relative;
  z-index: 3;
  outline: 2px solid #d8bb85;
  outline-offset: -2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
}

@media (prefers-reduced-motion: no-preference) {
  body.mk-editorial #main a:is(.mk-ed-photo, .mk-ed-card, .mk-home-discover-tile).mk-touch-highlight {
    scale: 1;
    transform: translateY(-3px) scale(1.014);
    transition: transform 145ms ease-out, box-shadow 145ms ease-out;
  }
}

@media (hover: none), (pointer: coarse) {
  body.postid-166.mk-editorial #main :is(.mk-ed-photo, .mk-ed-card, .mk-home-discover-tile):is(:active, :hover):not(:focus-visible) {
    box-shadow: none;
    scale: 1;
    translate: none;
    transform: none;
  }

  body.postid-166.mk-editorial #main .mk-ed-photo:hover img {
    opacity: 1;
  }
}
