/*
Theme Name: Irina Field Notes
Description: Авторский Журнал Ирины Евграфовой, выбранный 15 октября 2026 года.
Version: 0.3.7
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: irina-field-notes
*/

@font-face {
  font-family:Manrope;
  src:url('assets/fonts/manrope.ttf') format('truetype');
  font-weight:200 800;
  font-display:swap;
}
@font-face {
  font-family:Alegreya;
  src:url('assets/fonts/alegreya.ttf') format('truetype');
  font-weight:400 900;
  font-display:swap;
}
:root {
  --bg:#f5f3ed;
  --ink:#242421;
  --muted:#65645e;
  --line:#cecec4;
  --accent:#ae4934;
  --panel:#eae7df;
  --serif:Alegreya,Georgia,serif;
  font-family:Manrope,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
  scroll-padding-top:30px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
img {
  max-width:100%;
  display:block;
}
a {
  color:inherit;
  text-decoration:none;
}
button {
  font:inherit;
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
}
a, button {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
a:focus-visible, button:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px;
}
main:focus {
  outline:none;
}
h1, h2, h3, p, figure {
  margin:0;
}
h1, h2, h3 {
  font-weight:500;
}
h1, h2 {
  text-wrap:balance;
}
em {
  font-family:var(--serif);
  font-style:normal;
  font-weight:400;
}
p {
  line-height:1.75;
}
button {
  color:inherit;
}
.wrap {
  width:calc(100% - 112px);
  max-width:1488px;
  margin-inline:auto;
}
.skip {
  position:fixed;
  left:16px;
  top:-100px;
  background:var(--ink);
  color:var(--bg);
  padding:14px;
  z-index:10;
}
.skip:focus {
  top:12px;
}
.site-header {
  height:124px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:24px;
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  flex-shrink:0;
}
.brand-symbol {
  font-size:38px;
  font-weight:400;
}
.brand strong {
  font-size:27px;
  letter-spacing:-1.5px;
  font-weight:700;
  line-height:1;
}
.brand small {
  display:block;
  font-size:12px;
  letter-spacing:.11em;
  text-transform:uppercase;
  margin-top:7px;
}
.brand-dot {
  color:var(--accent);
}
.site-nav {
  display:flex;
  gap:35px;
  align-items:center;
  font-size:13px;
}
.site-nav a {
  padding:13px 0;
}
.site-nav a[aria-current] {
  border-bottom:1px solid var(--ink);
}
.site-nav a:last-child {
  margin-left:32px;
}
.menu-toggle {
  display:none;
}
.eyebrow {
  font-size:12px;
  letter-spacing:.11em;
  text-transform:uppercase;
  line-height:1.6;
}
.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  margin:0 8px 1px 0;
  background:var(--accent);
  border-radius:50%;
}
.journal-hero {
  display:grid;
  grid-template-columns:1.02fr 1fr;
  gap:46px;
  align-items:center;
  padding:48px 0 44px;
  min-height:680px;
}
.hero-copy h1 {
  font-size:clamp(64px,7.15vw,115px);
  line-height:1.02;
  letter-spacing:-.065em;
  margin:30px 0 28px;
}
.hero-copy h1 em {
  letter-spacing:-.045em;
  color:var(--accent);
  font-size:1.09em;
}
.hero-intro {
  font-size:15px;
  line-height:1.8;
  max-width:390px;
}
.story-link {
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:30px;
  font-size:13px;
}
.story-link small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:5px;
}
.story-label {
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1px;
}
.hero-signature {
  margin-top:48px;
  display:flex;
  gap:20px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--muted);
}
.journal-stone {
  --hero-image-height:530px;
  position:relative;
  padding-bottom:24px;
}
.journal-stone>a:first-child {
  display:block;
  position:relative;
  background:#e4e2e8;
  height:var(--hero-image-height);
  overflow:hidden;
}
.journal-stone>a:first-child>img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 50%;
  mix-blend-mode:normal;
}
.image-corner {
  position:absolute;
  top:18px;
  left:20px;
  right:20px;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.journal-stone>figcaption {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:12px;
  font-size:14px;
  color:var(--muted);
}
.detail-window {
  position:absolute;
  width:142px;
  top:calc(var(--hero-image-height) - 170px);
  left:-44px;
  background:var(--bg);
  padding:7px;
  box-shadow:0 6px 22px #25201c12;
}
.detail-window img {
  height:110px;
  width:100%;
  object-fit:cover;
}
.detail-window span {
  display:block;
  font-size:12px;
  padding:9px 2px 4px;
}
.chapter-nav {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-block:1px solid var(--line);
}
.chapter-nav>a {
  padding:25px 24px 25px 0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.chapter-nav>a+a {
  padding-left:32px;
  border-left:1px solid var(--line);
}
.chapter-nav small {
  font-size:12px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
}
.chapter-nav span {
  font-size:17px;
  letter-spacing:-.025em;
}
.section {
  padding:96px 0;
  border-bottom:1px solid var(--line);
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:36px;
}
.section-head h2 {
  font-size:clamp(28px,3.2vw,46px);
  letter-spacing:-.05em;
  margin-top:10px;
  line-height:1.15;
}
.text-link {
  font-size:12px;
  line-height:1.8;
  text-decoration:underline;
  text-underline-offset:7px;
  flex-shrink:0;
}
.feature-article {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:64px;
  align-items:center;
}
.feature-article>.media {
  background:var(--panel);
  overflow:hidden;
}
.feature-article img {
  height:390px;
  width:100%;
  object-fit:cover;
}
.feature-article h3 {
  font-size:40px;
  letter-spacing:-.04em;
  line-height:1.2;
  margin:18px 0;
}
.feature-article p {
  font-size:14px;
  color:var(--muted);
  margin-bottom:26px;
}
.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
}
.card a {
  display:block;
}
.card-media {
  display:block;
  aspect-ratio:1/1.08;
  background:var(--panel);
  overflow:hidden;
  margin-bottom:20px;
}
.card img {
  height:100%;
  width:100%;
  object-fit:contain;
  mix-blend-mode:normal;
}
.card small {
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.card h3 {
  font-size:23px;
  line-height:1.3;
  letter-spacing:-.035em;
  margin-top:8px;
  overflow-wrap:anywhere;
}
.card p {
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
}
.card-link {
  font-size:12px;
  display:block;
  margin-top:18px;
  text-decoration:underline;
  text-underline-offset:5px;
}
.about-strip {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
  padding-block:100px;
}
.about-strip h2 {
  font-size:54px;
  letter-spacing:-.05em;
  line-height:1.15;
  margin:20px 0 28px;
}
.about-strip h2 em {
  font-size:1.1em;
  color:var(--accent);
}
.about-strip>div+div {
  max-width:410px;
}
.about-strip p {
  font-size:14px;
}
.author-initial {
  display:block;
  font-family:var(--serif);
  font-size:42px;
  margin-bottom:14px;
  color:var(--accent);
}
.author-name {
  font-size:12px;
  display:block;
  margin-top:24px;
}
.site-footer {
  padding:65px 0 36px;
  display:flex;
  justify-content:space-between;
  gap:40px;
}
.footer-brand {
  font-size:48px;
  letter-spacing:-3px;
  font-weight:600;
}
.footer-brand span {
  color:var(--accent);
}
.site-footer p {
  font-size:12px;
  color:var(--muted);
  margin-top:16px;
}
.site-footer>div+div {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding-top:13px;
  font-size:12px;
}
.site-footer small {
  font-size:12px;
  color:var(--muted);
  margin-top:18px;
}
.page-heading {
  padding:68px 0 18px;
  max-width:900px;
}
.page-heading h1, .article-heading h1 {
  font-size:clamp(44px,6vw,88px);
  letter-spacing:-.055em;
  line-height:1.08;
  margin:18px 0 24px;
}
.intro {
  font-size:17px;
  line-height:1.7;
  max-width:680px;
}
.breadcrumbs {
  padding-top:32px;
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  overflow-wrap:anywhere;
}
.breadcrumbs a {
  text-decoration:underline;
  text-underline-offset:3px;
}
.article-heading {
  max-width:900px;
  padding:48px 0 30px;
}
.byline {
  font-size:12px;
  color:var(--muted);
}
.article-cover img {
  width:100%;
  height:570px;
  object-fit:cover;
  object-position:50% 43%;
  background:var(--panel);
}
figcaption {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  padding-top:10px;
}
.article-layout {
  display:grid;
  grid-template-columns:240px minmax(0,680px);
  gap:86px;
  padding-block:64px 100px;
}
.toc {
  align-self:start;
  position:sticky;
  top:28px;
  font-size:13px;
  display:flex;
  flex-direction:column;
  gap:16px;
  border-top:1px solid var(--line);
  padding-top:18px;
}
.toc strong {
  font-weight:600;
  margin-bottom:6px;
}
.toc a {
  line-height:1.7;
  color:var(--muted);
}
.article-body p {
  font-size:17px;
  line-height:1.95;
  margin-bottom:23px;
}
.article-body h2 {
  font-size:37px;
  line-height:1.2;
  letter-spacing:-.04em;
  margin:54px 0 24px;
}
.article-body h3 {
  font-size:27px;
  line-height:1.3;
  letter-spacing:-.03em;
  margin:34px 0 20px;
}
.article-body figure {
  margin:38px 0;
}
.article-body img {
  width:100%;
  height:auto;
}
.related-box {
  border-block:1px solid var(--line);
  padding:25px 0;
  margin-top:48px;
  font-size:12px;
  color:var(--muted);
}
.related-box a {
  display:block;
  margin-top:12px;
  font-size:22px;
  color:var(--ink);
}
.detail-layout {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:72px;
  margin-top:36px;
}
.detail-image {
  background:var(--panel);
}
.zoom {
  border:0;
  background:transparent;
  display:block;
  padding:0;
  width:100%;
  cursor:zoom-in;
}
.detail-image img {
  width:100%;
  height:540px;
  object-fit:contain;
  mix-blend-mode:normal;
}
.detail-image figcaption {
  padding:14px 20px;
  text-align:right;
  border-top:1px solid var(--line);
}
.thumbs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.thumbs button {
  padding:3px;
  border:1px solid transparent;
  background:var(--panel);
  width:60px;
  height:60px;
}
.thumbs button[aria-pressed=true] {
  border-color:var(--ink);
}
.thumbs img {
  height:100%;
  width:100%;
  object-fit:contain;
}
.detail-info {
  padding-top:24px;
}
.detail-info h1 {
  font-size:clamp(38px,4.3vw,66px);
  line-height:1.1;
  letter-spacing:-.055em;
  margin:20px 0 26px;
  overflow-wrap:anywhere;
}
.detail-info .intro {
  font-size:14px;
}
.specs {
  margin:32px 0 26px;
  border-top:1px solid var(--line);
}
.specs>div {
  display:grid;
  grid-template-columns:120px 1fr;
  gap:18px;
  border-bottom:1px solid var(--line);
  padding:15px 0;
  font-size:12px;
  line-height:1.7;
}
.specs dt {
  color:var(--muted);
}
.specs dd {
  margin:0;
}
.detail-note {
  font-size:12px;
  color:var(--muted);
}
.actions {
  margin-top:25px;
  display:flex;
  gap:20px;
}
.button {
  display:inline-flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  min-height:50px;
  padding:15px 24px;
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--bg);
  font-size:12px;
}
.buy {
  background:var(--panel);
  color:var(--muted);
  border:1px solid var(--line);
  width:100%;
  gap:12px;
}
.price-pending {
  font-size:12px;
  color:var(--muted);
  margin-bottom:14px;
}
.purchase {
  margin:35px 0;
}
.gallery-large {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}
.gallery-large img {
  width:100%;
  height:420px;
  object-fit:contain;
  background:var(--panel);
}
.about-page {
  max-width:740px;
  margin:30px 0 100px;
}
.about-page p {
  font-size:19px;
  line-height:1.9;
  margin-bottom:25px;
}
.about-page .button {
  margin-top:20px;
}
.loading, .error {
  padding-block:80px;
}
dialog {
  border:0;
  padding:24px;
  background:#f9f8f4;
  color:#242421;
  width:min(1100px,95vw);
  max-height:94dvh;
}
dialog::backdrop {
  background:#141512df;
}
dialog>img {
  height:70dvh;
  width:100%;
  object-fit:contain;
}
.lightbox-bar, .lightbox-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.lightbox-bar p {
  font-size:13px;
}
.lightbox-bar button, .lightbox-actions button {
  min-width:44px;
  min-height:44px;
  border:1px solid #bbb;
  background:transparent;
  padding:10px;
}
.lightbox-actions {
  margin-top:12px;
  font-size:12px;
}
@media(hover:hover) {
  .site-nav a:hover, .text-link:hover, .toc a:hover {
    color:var(--accent);
  }
  .card a:hover h3, .feature-article a:hover, .chapter-nav a:hover {
    color:var(--accent);
  }
  .story-link:hover {
    color:var(--accent);
  }
  .card img {
    transition:transform .3s ease;
  }
  .card a:hover img {
    transform:scale(1.035);
  }
}
@media(max-width:1050px) {
  .wrap {
    width:calc(100% - 64px);
  }
  .site-nav {
    gap:22px;
  }
  .site-nav a:last-child {
    margin-left:8px;
  }
  .journal-hero {
    gap:32px;
    min-height:590px;
  }
  .journal-stone {
    --hero-image-height:460px;
  }
  .hero-copy h1 {
    font-size:74px;
  }
  .hero-intro {
    font-size:14px;
  }
  .detail-window {
    width:110px;
    left:-22px;
  }
  .detail-window img {
    height:90px;
  }
  .feature-article {
    gap:40px;
  }
  .feature-article h3 {
    font-size:32px;
  }
  .about-strip {
    gap:55px;
  }
  .about-strip h2 {
    font-size:43px;
  }
  .article-layout {
    grid-template-columns:180px minmax(0,1fr);
    gap:44px;
  }
  .detail-layout {
    gap:38px;
  }
  .detail-image img {
    height:440px;
  }
  .gallery-large img {
    height:330px;
  }
}
@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .site-header {
    height:92px;
    position:relative;
    gap:10px;
  }
  .brand strong {
    font-size:23px;
  }
  .brand small {
    font-size:12px;
  }
  .brand-symbol {
    font-size:31px;
  }
  .menu-toggle {
    display:flex;
    gap:14px;
    align-items:center;
    background:transparent;
    border:0;
    padding:12px 0 12px 16px;
    font-size:13px;
    min-height:44px;
  }
  .menu-toggle span {
    font-size:24px;
    font-weight:200;
  }
  .site-nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:91px;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    padding:16px 0 22px;
    z-index:4;
    box-shadow:0 14px 15px #282c2510;
  }
  .site-nav[data-open=true] {
    display:flex;
    align-items:stretch;
    flex-direction:column;
    gap:0;
  }
  .site-nav a {
    padding:14px 18px;
    font-size:15px;
  }
  .site-nav a:last-child {
    margin:0;
  }
  .site-nav a[aria-current] {
    border:0;
    background:var(--panel);
  }
  .journal-hero {
    grid-template-columns:1fr;
    padding-top:30px;
    gap:32px;
    min-height:0;
  }
  .eyebrow {
    font-size:12px;
  }
  .hero-copy h1 {
    font-size:clamp(58px,14vw,92px);
    margin:22px 0 20px;
    letter-spacing:-.065em;
  }
  .hero-intro {
    font-size:13px;
    line-height:1.8;
  }
  .story-link {
    margin-top:22px;
    font-size:13px;
    gap:12px;
  }
  .story-link small {
    font-size:12px;
  }
  .hero-signature {
    display:none;
  }
  .journal-stone {
    margin-left:24px;
    padding-bottom:12px;
  }
  .journal-stone {
    --hero-image-height:380px;
  }
  .journal-stone>figcaption {
    font-size:14px;
    gap:8px;
  }
  .detail-window {
    width:100px;
    bottom:auto;
    left:-24px;
  }
  .detail-window img {
    height:85px;
  }
  .detail-window span {
    font-size:12px;
    padding-top:7px;
  }
  .image-corner {
    font-size:12px;
    left:14px;
    right:14px;
    top:13px;
  }
  .chapter-nav {
    grid-template-columns:1fr;
  }
  .chapter-nav>a, .chapter-nav>a+a {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    padding:17px 0;
    border-left:0;
    gap:14px;
  }
  .chapter-nav>a+a {
    border-top:1px solid var(--line);
  }
  .chapter-nav small {
    font-size:12px;
    letter-spacing:.04em;
  }
  .chapter-nav span {
    font-size:12px;
  }
  .section {
    padding:58px 0;
  }
  .section-head {
    gap:16px;
    align-items:start;
    margin-bottom:25px;
  }
  .section-head h2 {
    font-size:30px;
    line-height:1.18;
  }
  .section-head .text-link {
    font-size:12px;
    margin-top:26px;
    max-width:90px;
  }
  .feature-article {
    grid-template-columns:1fr;
    gap:25px;
  }
  .feature-article img {
    height:300px;
  }
  .feature-article h3 {
    font-size:31px;
    margin:12px 0;
  }
  .feature-article p {
    font-size:12px;
    line-height:1.9;
    margin-bottom:18px;
  }
  .text-link {
    font-size:12px;
  }
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 16px;
  }
  .card-media {
    margin-bottom:14px;
    aspect-ratio:1;
  }
  .card h3 {
    font-size:17px;
    line-height:1.35;
    margin-top:6px;
    letter-spacing:-.035em;
  }
  .card p {
    font-size:12px;
    line-height:1.8;
  }
  .card small {
    font-size:12px;
    letter-spacing:.05em;
  }
  .card-link {
    font-size:12px;
    margin-top:14px;
  }
  .collection-section .card:first-child {
    grid-column:1/-1;
  }
  .collection-section .card:first-child .card-media {
    aspect-ratio:1.2;
  }
  .collection-section .card:first-child h3 {
    font-size:24px;
  }
  .about-strip {
    grid-template-columns:1fr;
    gap:38px;
  }
  .about-strip h2 {
    font-size:41px;
  }
  .about-strip p {
    font-size:13px;
  }
  .author-initial {
    margin-bottom:8px;
  }
  .site-footer {
    padding-block:42px 28px;
    flex-direction:column;
    gap:28px;
  }
  .footer-brand {
    font-size:42px;
  }
  .site-footer>div+div {
    font-size:12px;
    gap:16px;
  }
  .site-footer small {
    margin-top:0;
  }
  .page-heading {
    padding:40px 0 0;
  }
  .page-heading h1, .article-heading h1 {
    font-size:44px;
    margin:12px 0 20px;
    overflow-wrap:anywhere;
  }
  .intro {
    font-size:14px;
  }
  .breadcrumbs {
    font-size:12px;
    padding-top:24px;
  }
  .article-heading {
    padding:32px 0 25px;
    text-align:left;
  }
  .byline {
    font-size:12px;
  }
  .article-cover img {
    height:340px;
  }
  .article-cover figcaption {
    font-size:14px;
  }
  .article-layout {
    display:flex;
    flex-direction:column;
    gap:35px;
    padding:35px 0 60px;
  }
  .toc {
    position:static;
    font-size:13px;
    width:100%;
    gap:12px;
  }
  .toc strong {
    margin-bottom:0;
  }
  .article-body p {
    font-size:16px;
    line-height:1.9;
    margin-bottom:21px;
  }
  .article-body h2 {
    font-size:30px;
    margin:38px 0 20px;
  }
  .article-body h3 {
    font-size:24px;
  }
  .article-body figcaption {
    font-size:14px;
  }
  .related-box a {
    font-size:19px;
  }
  .detail-layout {
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:24px;
  }
  .detail-image img {
    height:370px;
  }
  .detail-image figcaption {
    font-size:14px;
  }
  .thumbs {
    gap:6px;
  }
  .thumbs button {
    width:48px;
    height:48px;
  }
  .detail-info {
    padding-top:22px;
  }
  .detail-info h1 {
    font-size:42px;
    margin:14px 0 20px;
  }
  .detail-info .intro {
    font-size:13px;
  }
  .specs>div {
    grid-template-columns:100px 1fr;
    font-size:12px;
    gap:16px;
  }
  .gallery-large {
    gap:23px;
    grid-template-columns:1fr;
  }
  .gallery-large img {
    height:350px;
  }
  .about-page {
    margin-top:28px;
    margin-bottom:60px;
  }
  .about-page p {
    font-size:16px;
    line-height:1.9;
  }
  .button {
    font-size:12px;
    gap:20px;
    max-width:100%;
  }
  dialog {
    padding:14px;
  }
  dialog>img {
    height:62dvh;
  }
  .lightbox-bar p {
    font-size:12px;
  }
  .lightbox-bar button {
    font-size:12px;
    white-space:nowrap;
  }
}
@media(max-width:360px) {
  .wrap {
    width:calc(100% - 32px);
  }
  .hero-copy h1 {
    font-size:54px;
  }
  .journal-stone {
    --hero-image-height:320px;
  }
  .journal-stone>figcaption {
    flex-direction:column;
    gap:1px;
  }
  .hero-intro {
    font-size:12px;
  }
  .desktop-break {
    display:none;
  }
  .chapter-nav span {
    font-size:12px;
  }
  .section-head h2 {
    font-size:26px;
  }
  .card h3 {
    font-size:15px;
  }
  .detail-info h1 {
    font-size:35px;
  }
  .article-cover img {
    height:290px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}
:root {
  --photo-radius: 18px;
  --photo-radius-small: 8px;
}
.journal-stone > a:first-child, .feature-article > .media, .card-media, .detail-image, .gallery-large .zoom {
  border-radius: var(--photo-radius);
  overflow: hidden;
}
.article-cover img, .article-body img, .gallery-large img, .detail-window, .detail-window img {
  border-radius: var(--photo-radius);
}
.detail-window img {
  border-radius: calc(var(--photo-radius) - 7px);
}
.thumbs button, .thumbs img {
  border-radius: var(--photo-radius-small);
}
@media (max-width: 760px) {
  :root {
    --photo-radius: 12px;
    --photo-radius-small: 6px;
  }
}
:root {
  --detail-height: 540px;
  --gallery-height: 420px;
}
.card-media, .detail-image .zoom, .gallery-large .zoom {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-media img, .detail-image img, .gallery-large img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--photo-radius);
}
.detail-image .zoom {
  height: var(--detail-height);
}
.gallery-large .zoom {
  height: var(--gallery-height);
}
dialog > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70dvh;
  margin-inline: auto;
  border-radius: var(--photo-radius);
}
@media (max-width: 1050px) {
  :root {
    --detail-height: 440px;
    --gallery-height: 330px;
  }
}
@media (max-width: 760px) {
  :root {
    --detail-height: 370px;
    --gallery-height: 350px;
  }
  dialog > img {
    max-height: 62dvh;
  }
}

/* Согласование выбранной композиции со штатными блоками WordPress. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > .journal-main { margin-inline: auto; }
.journal-main { min-height: 48vh; }
.site-header { margin-bottom: 0; }
.journal-main .feature-article + .feature-article { margin-top: 60px; }
.article-body { min-width: 0; }
.article-body > * { max-width: 100%; }
.article-body .wp-block-image { margin: 38px 0; }
.article-body .wp-block-image img { cursor: zoom-in; }
.article-body .wp-element-caption { font-size:14px; line-height: 1.6; color: var(--muted); padding-top: 10px; margin: 0; }
.specimen-content { font-size: 14px; line-height: 1.8; }
.specimen-content p { margin-bottom: 20px; }
.specimen-content .wp-block-table { margin: 28px 0; }
.specimen-content table { border-collapse: collapse; width: 100%; font-size:12px; }
.specimen-content td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; vertical-align: top; }
.specimen-content td:first-child { width: 120px; color: var(--muted); }
.empty-state, .hero-empty, .image-missing { color: var(--muted); font-size: 14px; line-height: 1.8; padding-block: 30px; }
.hero-empty { padding: 70px 30px; background: var(--panel); }
.image-missing { display: grid; place-items: center; min-height: 200px; width: 100%; }
.commerce-page { padding-block: 24px 80px; max-width: none; }
.woocommerce-ordering { margin-bottom: 30px; }
.woocommerce-ordering select, input, select, textarea { max-width: 100%; font: inherit; padding: 11px 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.woocommerce .button, .wc-block-components-button { background: var(--ink); color: var(--bg); border-radius: 0; font: inherit; }
.woocommerce .quantity input { width: 80px; }
.woocommerce form.cart { display: flex; flex-wrap: wrap; gap: 16px; }
.woocommerce .stock { font-size: 12px; margin-bottom: 18px; }
nav.pagination { padding-block: 30px; font-size: 14px; }
nav.pagination .page-numbers { padding: 8px; }
html:not(.journal-enhanced) .menu-toggle { display: none; }
html:not(.journal-enhanced) .site-nav { display: flex; position: static; box-shadow: none; border: 0; }
@media (max-width: 760px) {
  .site-nav a:last-child { margin-left: 0; }
  html:not(.journal-enhanced) .site-header { height: auto; padding-block: 24px; flex-wrap: wrap; }
  html:not(.journal-enhanced) .site-nav { flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0; }
  .specimen-content { font-size: 13px; }
  .specimen-content table { font-size:12px; }
  .article-body .wp-element-caption { font-size:14px; }
}

.journal-main .woocommerce-ordering { float: none; display: flex; justify-content: flex-end; margin: 0 0 30px; }
.purchase .price { font-size: 28px; line-height: 1.3; margin-bottom: 20px; }

.wc-block-grid__product-image img, .wp-block-woocommerce-product-image img, .wc-block-components-product-image img { border-radius: var(--photo-radius); }
