.mk-frame-layout {
  color: var(--mk-text, #f3efe8);
}

.mk-frame-layout .mk-frame-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  border: 1px solid var(--mk-rule, #3d3831);
  background: var(--mk-panel, #1d1c1a);
}

.mk-frame-notes {
  display: grid;
  grid-auto-rows: 1fr;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.mk-frame-layout .mk-frame-copy {
  padding: clamp(1.3rem, 4.5vw, 3.5rem);
}

.mk-frame-layout .mk-frame-copy h2,
.mk-frame-layout .mk-frame-article-section h2 {
  margin: 0 0 .8rem;
  font-family: var(--mk-serif, Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  line-height: 1.12;
  text-wrap: balance;
}

.mk-frame-layout .mk-frame-copy p {
  margin: 0 0 .75rem;
  max-width: 56ch;
  color: var(--mk-muted, #c2bab0);
}

.mk-frame-layout .mk-frame-copy .mk-ed-kicker {
  color: var(--mk-gold, #d8bb85);
}

.mk-frame-layout .mk-frame-copy a {
  display: inline-block;
  margin-top: .65rem;
  color: var(--mk-gold, #d8bb85);
}

.mk-frame-layout .mk-frame-photo {
  margin: 0;
  align-self: stretch;
  min-width: 0;
}

.mk-frame-layout .mk-frame-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 25rem;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 0;
}

.mk-frame-winter .mk-frame-photo img {
  height: auto;
  max-height: min(38rem, 70vh);
  object-fit: contain;
}

.mk-frame-winter .mk-frame-photo {
  background: #151515;
  display: grid;
  place-items: center;
}

.mk-frame-winter .mk-frame-article-section {
  max-width: 70ch;
  margin-inline: auto;
  padding-block: clamp(1.6rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--mk-rule, #3d3831);
}

.mk-frame-winter .mk-frame-article-section h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

.mk-frame-winter .mk-frame-article-section p {
  margin-block: .45rem 0;
}

body.mk-frame-winter-post #main .ct-featured-image:not(.entry-content *) {
  display: none;
}

@media (max-width: 720px) {
  .mk-frame-layout .mk-frame-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mk-frame-layout .mk-frame-photo img {
    max-height: 18rem;
  }

  .mk-frame-winter .mk-frame-photo img {
    max-height: 32rem;
  }
}

:is(.mk-frame-notes, #mk-frame-home) {
  --mk-frame-photo-height: 25rem;
}

:is(.mk-frame-notes, #mk-frame-home) .mk-frame-photo {
  display: flex;
  justify-content: center;
  block-size: var(--mk-frame-photo-height);
  background-color: #151515;
}

:is(.mk-frame-notes, #mk-frame-home) .mk-frame-photo img {
  width: min(100%, calc(var(--mk-frame-photo-height) * var(--mk-frame-crop-ratio, 1.9)));
  height: var(--mk-frame-photo-height);
  max-height: none;
  object-position: center top;
}

.mk-frame-notes #less-perfection {
  --mk-frame-crop-ratio: 1.43;
}

.mk-frame-notes #less-perfection .mk-frame-photo img {
  object-position: center 6.6%;
}

@media (width > 720px) {
  .mk-frame-notes #less-perfection {
    grid-template-columns:
      minmax(0, 1fr)
      min(44%, calc(var(--mk-frame-photo-height) * var(--mk-frame-crop-ratio)));
  }
}

@media (max-width: 720px) {
  .mk-frame-notes #less-perfection .mk-frame-photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    container-type: inline-size;
  }

  .mk-frame-notes #less-perfection .mk-frame-photo::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1rem;
    background: url("./portraet-regen.webp") center 7% / cover no-repeat;
    filter: blur(18px) brightness(.58);
  }

  @container (width > 25.74rem) {
    .mk-frame-notes #less-perfection .mk-frame-photo img {
      mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    }
  }
}

:is(.mk-frame-notes #urban-silence, #mk-frame-home) {
  --mk-frame-crop-ratio: 2.55;
}

@media (max-width: 720px) {
  :is(.mk-frame-notes, #mk-frame-home) {
    --mk-frame-photo-height: 18rem;
  }

  .mk-frame-notes .mk-frame-row {
    grid-template-rows: 1fr auto;
  }
}
