#academy .home-house-link .home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  margin-top: 6px;
  border-radius: 10px;
  background: #ecd09a;
  color: #34220c;
  font-weight: 700;
  line-height: 1.3;
}
#academy .home-house-link:is(:hover, :focus-visible) .home-link {
  background: #ddba70;
}

.gradebook-modal .modal-content .record-book.is-fitted .book-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  padding-block: 4px;
}
.gradebook-modal .modal-content .record-book.is-fitted .record-pager {
  gap: 8px;
}
.gradebook-modal .modal-content .record-book.is-fitted .record-pager > button {
  width: 44px;
  height: 44px;
}
.gradebook-modal .modal-content .record-book.is-fitted .record-autoplay {
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #d6bd91;
  border-radius: 12px;
  color: #4d3417;
  font-size: 12px;
  max-width: none;
}
.gradebook-modal .record-canvas.is-turning .record-base .record-page-content {
  visibility: hidden;
}
.gradebook-modal .record-leaf-face.front {
  transform: translateZ(.5px);
}
.gradebook-modal .record-leaf-face.back {
  transform: rotateY(180deg) translateZ(.5px);
}

.mm-graduation-r34 :is(#formats, #faq) .p-section-head {
  margin-bottom: 0;
}
.mm-graduation-r34 #formats .mm-grad-formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: 22px;
}
.mm-grad-formats > article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
  background: #f5f0e5;
}
.mm-grad-formats :is(h3, p) {
  margin: 0;
}
.mm-grad-formats .home-button {
  margin-top: auto;
}
.mm-grad-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
}
.mm-grad-table .home-frame {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
}
.mm-grad-table .home-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
}
.mm-grad-table h2 {
  margin: 0 0 16px;
}
.mm-grad-table p {
  margin: 0 0 20px;
}
.mm-graduation-r34 #more-moments {
  padding-block: clamp(24px, 4vw, 52px);
}
.mm-graduation-r34 #more-moments .fp-more-gallery {
  margin: 0;
}
.mm-graduation-r34 #more-moments .fp-photo-strip {
  margin-top: 24px;
}
.mm-graduation-r34 #more-moments summary {
  list-style: none;
}
.mm-graduation-r34 #more-moments summary::-webkit-details-marker {
  display: none;
}
.mm-graduation-r34 #more-moments .fp-more-gallery[open] .mm-gallery-closed,
.mm-graduation-r34 #more-moments .fp-more-gallery:not([open]) .mm-gallery-open {
  display: none;
}
#root :is(.mm-graduation-r34, .mm-parents-r34) #faq [data-mm-common="faq-layout"] {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important;
  gap: clamp(24px, 4vw, 56px) !important;
}
.mm-graduation-r34 #faq [data-mm-common="faq-intro"],
.mm-parents-r34 #faq [data-mm-common="faq-intro"] {
  display: block;
  position: static;
  margin: 0;
}
.mm-graduation-r34 #faq .fp-faq,
.mm-parents-r34 #faq .mf-faq {
  width: 100%;
  max-width: none;
  margin: 0;
}
.mm-parents-r34 #faq .mf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.mm-neyolka-r34 .mm-winter-photo-r34 figcaption {
  display: block;
  overflow: visible;
  padding: 4px 6px;
  margin-inline: 0;
}
#request [data-mm-request-copy] > .p-section-head {
  display: block;
  margin: 0 0 clamp(18px, 3vw, 32px);
}
#request [data-mm-request-copy] > .p-section-head > p {
  margin: 12px 0 0;
}
#request [data-mm-request-copy]:has(> .p-section-head) > h3 {
  margin: 0 0 8px;
}
#request [data-mm-request-copy]:has(> .p-section-head) > p {
  margin: 0;
}
.mm-world-r34 #world-films .mf-film-grid article h3 {
  margin: 18px 0 6px;
}
.mm-world-r34 #world-films .mf-film-grid article p {
  margin: 0;
}
.mm-legend-r34 .mf-story {
  gap: clamp(24px, 5vw, 72px) !important;
}
.mm-legend-r34 #morning > .container {
  display: block !important;
}
.mm-legend-r34 #morning .mm-editorial-head {
  margin-bottom: clamp(22px, 3vw, 40px);
}
.mm-legend-r34 #morning .mf-photo-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mm-legend-r34 #morning .mm-legend-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.mm-legend-r34 #morning .mm-legend-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.mm-legend-r34 #cta > .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.mm-legend-r34 #cta .mf-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
}
.mm-legend-r34 #cta .mf-heading > p {
  margin: 0;
  max-width: 44ch;
}
.mm-parents-r34 .mf-hero::after {
  background: linear-gradient(90deg, #1c1510ed, #1c1510b0 52%, #1c151024 100%);
}
.mm-parents-r34 .mf-hero :is(h1, .mf-hero-copy > p) {
  color: #fff9ec !important;
}
.mm-parents-r34 .mf-hero .mf-kicker {
  color: #f2ce8c !important;
}
.mm-parents-r34 .mf-hero .mf-button-secondary {
  background: #23180cb0 !important;
  border-color: #f1d9ad !important;
  color: #fff9ec !important;
}
.mm-parents-r34 .mf-hero .mf-button-secondary:hover {
  background: #3f2f1e !important;
}
#root.mm-system .mf-hero[data-mm-header-clearance] {
  padding-top: calc(var(--mm-header-height, 132px) - var(--mm-promo-space, 49px) + 20px) !important;
}
#root.mm-system .mm-legend-layout[data-mm-header-clearance] {
  padding-top: calc(var(--mm-header-height, 132px) - var(--mm-promo-space, 49px) + 20px);
}
.mf-hero[data-mm-header-clearance] .mf-breadcrumb {
  margin-bottom: clamp(18px, 3vw, 40px);
}

#root.mm-system .mm-photo-landscape-r35 {
  display: block;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden;
}
#root.mm-system .mm-photo-landscape-r35 > img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: var(--mm-photo-focus, 50% 42%) !important;
}

@media (min-width: 1101px) {
  #root.mm-system #smaller-format .fp-editorial-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #root.mm-system #smaller-format .fp-editorial-list > article {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  #smaller-format .fp-editorial-list > article > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
  }
  #smaller-format .fp-editorial-list .home-button {
    margin-top: auto;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 759px) {
  .mm-grad-table,
  .mm-graduation-r34 #formats .mm-grad-formats,
  .mm-legend-r34 #morning .mf-photo-triplet {
    grid-template-columns: minmax(0, 1fr);
  }
  #root :is(.mm-graduation-r34, .mm-parents-r34) #faq [data-mm-common="faq-layout"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .mm-parents-r34 .mf-hero::after {
    background: linear-gradient(0deg, #1c1510f5, #1c1510c0 58%, #1c15103a);
  }
}
@media (max-width: 460px) {
  .gradebook-modal .modal-content .record-book.is-fitted .book-controls {
    gap: 6px 10px;
  }
  .gradebook-modal .modal-content .record-book.is-fitted .record-autoplay {
    flex-basis: 100%;
    border: 0;
    min-height: 32px;
    padding: 4px;
  }
}
