.ed-surface {
  background: #f7f4eb;
  color: #122f28;
}
.ed-gallery { padding: clamp(2.6rem, 6vw, 6.2rem) 0 clamp(3.7rem, 7vw, 7.3rem); }
.ed-pagehead {
  display: grid;
  grid-template-columns: 1.4fr .84fr;
  align-items: end;
  column-gap: clamp(2rem, 6vw, 7rem);
  padding-bottom: clamp(1.5rem, 3.8vw, 3.45rem);
}
.ed-surface h1,
.ed-surface h2,
.ed-film h2 {
  font-family: var(--sans, Inter, Arial, sans-serif);
  font-weight: 600;
  letter-spacing: -.073em;
  line-height: 1.05;
  margin: 0;
}
.ed-surface h1 { font-size: clamp(3.3rem, 6.8vw, 7.35rem); }
.ed-surface h2, .ed-film h2 { font-size: clamp(2.7rem, 4.7vw, 5.1rem); }
.ed-surface h1 em,
.ed-surface h2 em,
.ed-film h2 em {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.065em;
}
.ed-gallery p, .ed-about p, .ed-film p {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
}
.ed-intro p { margin: 0 0 .55rem; max-width: 35ch; }
.ed-textlink {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .31em;
  min-height: 44px;
}
.ed-textlink:hover { text-decoration-thickness: 2px; }
.ed-photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.2rem, 2.3vw, 2.1rem) clamp(.85rem, 2.1vw, 2.15rem); }
.ed-gallery figure, .ed-about figure, .ed-film figure { margin: 0; }
.ed-photo { grid-column: span 6; min-width: 0; }
.ed-photo-lada, .ed-photo-board { grid-column: span 7; }
.ed-photo-front, .ed-photo-angle { grid-column: span 5; }
.ed-photo a {
  background: #dbd8c9;
  display: block;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.ed-photo a::after {
  content: '+';
  position: absolute;
  bottom: .8rem;
  right: .8rem;
  border-radius: 50%;
  background: #fffdf5f2;
  color: #122f28;
  border: 1px solid #122f282b;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  font: 400 1.45rem/1 Arial, sans-serif;
  pointer-events: none;
}
.ed-photo img { display: block; height: clamp(13rem, 30vw, 26rem); width: 100%; object-fit: cover; }
.ed-photo-front img { object-position: 50% 38%; }
.ed-photo-room img, .ed-photo-angle img { object-position: 50% 53%; }
.ed-photo-board img { object-position: center 24%; }
.ed-photo figcaption {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 620;
  letter-spacing: -.025em;
  padding-top: .7rem;
}
.ed-film {
  padding: clamp(3rem, 6vw, 5.8rem) 0;
  color: #f7f4eb;
  background: #122f28;
  scroll-margin-top: 7rem;
}
.ed-film-inside, .ed-kitchen-inside, .ed-window, .ed-about-opening {
  display: grid;
  align-items: center;
  column-gap: clamp(2rem, 7vw, 8rem);
}
.ed-film-inside { grid-template-columns: 1.2fr .8fr; }
.ed-film h2, .ed-film p { color: inherit; }
.ed-film h2 em { color: #e9bd70; }
.ed-film p { max-width: 39ch; }
.ed-film .ed-textlink { margin-top: .8rem; }
.ed-film video {
  display: block;
  max-width: 100%;
  width: min(100%, 29rem);
  height: auto;
  max-height: 65vh;
  background: #0d231e;
  justify-self: center;
  object-fit: contain;
}
.ed-transcript { max-width: 37rem; border-top: 1px solid #ffffff4f; border-bottom: 1px solid #ffffff4f; margin-top: 1.7rem; }
.ed-transcript summary { cursor: pointer; font-weight: 600; padding: .92rem 0; }
.ed-transcript p { margin: 0 0 1rem; font-size: 1rem; }
.ed-about-opening { grid-template-columns: 1.02fr 1.05fr; padding-block: clamp(2.4rem, 5vw, 5rem); }
.ed-about-titlebox h1 em { display: block; }
.ed-about-titlebox p, .ed-kitchen p, .ed-window p { max-width: 43ch; margin-block: 1.2rem .6rem; }
.ed-about-photo img, .ed-kitchen img, .ed-window img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-about-photo { height: clamp(22rem, 39vw, 38rem); }
.ed-about-photo img { object-position: 50% 51%; }
.ed-kitchen {
  background: #122f28;
  color: #f7f4eb;
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.ed-kitchen-inside { grid-template-columns: 1.02fr 1fr; }
.ed-kitchen h2 em { color: #e9bd70; }
.ed-kitchen figure { aspect-ratio: 1.3; }
.ed-window { grid-template-columns: 1fr 1fr; padding-block: clamp(3rem, 6vw, 6rem); }
.ed-window figure { height: clamp(20rem, 31vw, 29rem); }
.ed-window img { object-position: center 56%; }
.ed-inline-actions { display: flex; flex-wrap: wrap; gap: .1rem 1.6rem; }
.ed-lightbox {
  box-sizing: border-box;
  inset: 0;
  border: none;
  padding: 0;
  width: min(1000px, calc(100vw - 2rem));
  max-width: 100%;
  max-height: 93vh;
  max-height: 93dvh;
  margin: auto;
  overflow: auto;
  background: #122f28;
  color: #f7f4eb;
}
.ed-lightbox::backdrop { background: #081510e5; }
.ed-lightbox:not([open]) { display: none; }
.ed-modal-open { overflow: hidden; }
.ed-dialog-content { padding: clamp(.6rem, 1.8vw, 1.4rem); }
.ed-dialog-top, .ed-dialog-nav { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.ed-dialog-top { padding-bottom: .6rem; }
.ed-dialog-status h2 { margin: 0; font: 650 1.2rem/1.25 var(--sans, Inter, Arial, sans-serif); color: inherit; }
.ed-dialog-status span { font-size: .88rem; display: inline-block; padding-top: .2rem; }
.ed-dialog-stage { background: #0c211b; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.ed-dialog-stage img { display: block; max-width: 100%; width: auto; height: auto; max-height: 66vh; max-height: 66dvh; }
.ed-lightbox button { cursor: pointer; background: transparent; color: inherit; font: inherit; border: 1px solid #f7f4eb7a; min-height: 44px; padding: .52rem .85rem; }
.ed-lightbox button:hover { background: #ffffff14; }
.ed-lightbox .ed-close { padding: 0; min-width: 44px; border-radius: 50%; font: 400 1.65rem/1 Arial, sans-serif; }
.ed-dialog-nav { padding-top: .7rem; }
.ed-gallery :focus-visible, .ed-about :focus-visible, .ed-film :focus-visible, .ed-lightbox :focus-visible {
  outline: 3px solid #cb8421;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .ed-photo img { transition: transform .35s ease; }
  .ed-photo a:hover img { transform: scale(1.03); }
}
@media (max-width: 760px) {
  .ed-pagehead, .ed-film-inside, .ed-about-opening, .ed-kitchen-inside, .ed-window { grid-template-columns: 1fr; gap: 1.4rem; }
  .ed-pagehead { padding-bottom: 1.5rem; }
  .ed-intro p { max-width: 48ch; }
  .ed-about-titlebox h1 em { display: inline; }
  .ed-about-photo { height: clamp(18rem, 66vw, 29rem); }
  .ed-film video { width: min(100%, 24rem); justify-self: start; }
  .ed-kitchen-inside > figure { grid-row: 2; }
  .ed-kitchen figure, .ed-window figure { aspect-ratio: 1.6; height: auto; }
  .ed-film-inside { gap: 1.8rem; }
}
@media (max-width: 580px) {
  .ed-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem .65rem; }
  .ed-photo { grid-column: span 1; }
  .ed-photo-lada, .ed-photo-board { grid-column: 1 / -1; }
  .ed-photo-room { grid-column: 2; grid-row: 2; }
  .ed-photo-front { grid-column: 1; grid-row: 2; }
  .ed-photo-salads { grid-column: 1; grid-row: 3; }
  .ed-photo-angle { grid-column: 2; grid-row: 3; }
  .ed-photo img { height: auto; aspect-ratio: 4 / 5; }
  .ed-photo-lada img, .ed-photo-board img { aspect-ratio: 1.55; }
  .ed-photo a::after { width: 1.9rem; height: 1.9rem; bottom: .45rem; right: .45rem; }
  .ed-photo figcaption { line-height: 1.22; padding-top: .5rem; }
}
@media (max-width: 380px) {
  .ed-surface h1 {font-size: 2.8rem;}
  .ed-dialog-nav {gap: .4rem;}
  .ed-lightbox button {font-size: .93rem; padding-inline: .5rem;}
}
