@font-face { font-family: 'Kosmos 129'; src: url('../fonts/Kosmos129.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
body.page-photography.page-photo-domestic { position: relative; isolation: isolate; background: #070f20; }
.domestic-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.domestic-atmosphere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center calc(50% + clamp(70px, calc(31.5vw - 213px), 240px) + clamp(12px, 6vw, 90px)); }
.domestic-atmosphere-edges { mask-image: radial-gradient(ellipse at 50% 45%, transparent 35%, #000 92%); }
/* Refraction and fine grain are baked into the soft image: avoid flattening
   the texture with a heavy CSS blur. Both layers keep identical alignment. */
.domestic-atmosphere-soft { filter: none; }
.domestic-atmosphere-focus {
  mask-image: linear-gradient(to right, transparent 16%, #000 20%, #000 29%, transparent 34%),
    linear-gradient(to bottom, transparent 18%, #000 24%, #000 66%, transparent 73%);
  mask-composite: intersect;
}
.domestic-atmosphere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #060b1b40, #080a1f73); }
.page-photo-domestic .site-header .logo,
.page-photo-domestic .site-header .logo .logo-anim { color: #e6dfea; }
.page-photo-domestic .domestic-main { position: relative; padding-top: 100px; padding-bottom: 80px; }
.page-photo-domestic .photo-heading { padding-top: 28px; padding-bottom: 46px; }
.page-photo-domestic .photo-heading .page-title {
  color: #34429e; opacity: .9; mix-blend-mode: multiply;
  font-family: 'Kosmos 129', sans-serif; font-size: clamp(32px, 5.2vw, 80px);
  font-weight: 400; line-height: 1.4; letter-spacing: -.02em; text-align: center; text-transform: uppercase; overflow-wrap: normal;
}
.domestic-gallery {
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px); max-width: 1460px; margin: 0 auto;
  padding: 56px clamp(32px, 4vw, 60px) 64px;
}
.domestic-work { min-width: 0; margin: 0; }
.domestic-work .photo-open { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(300px, 40vw, 540px); text-decoration: none; }
.domestic-work .photo-open img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  border: 0; border-image: none;
  box-shadow: -.8px 0 1.2px #7acfff38, .8px .3px 1.2px #5df3bb30, 0 16px 40px #0003;
}
/* One Cyrillic-capable face for both Latin and Russian artwork titles. */
.page-photo-domestic .artwork-title { font-family: 'Manrope', sans-serif; }
/* Dialog focus restoration must not draw a coloured frame after a click. */
.page-photo-domestic .photo-open:focus { outline: none; }
html.is-keyboard-nav .page-photo-domestic .photo-open:focus-visible { outline: 1px solid #cdd9de80; outline-offset: 6px; }
/* Use the ordinary system cursor here, not the castle's feather. */
.page-photo-domestic { cursor: auto; }
.page-photo-domestic * { cursor: inherit; }
.page-photo-domestic a, .page-photo-domestic button { cursor: pointer; }
.page-photo-domestic .photo-open { cursor: zoom-in; }
.domestic-work figcaption { color: #e8dce6; margin: 20px auto 0; max-width: 460px; font-size: 15px; font-weight: 400; line-height: 1.6; text-align: center; }
.domestic-curator { position: relative; isolation: isolate; max-width: 640px; margin: 28px auto 0 clamp(24px, 3vw, 44px); padding: 20px 22px; border: 0; background: none; }
.domestic-curator::before {
  content: ''; position: absolute; z-index: -1; inset: -18px; pointer-events: none;
  background: url('../images/photography/domestic/soft-grain.png') repeat, linear-gradient(110deg, #040a196b, #040a1952);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 85%, transparent),
    linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent);
  mask-composite: intersect;
}
.domestic-curator blockquote { margin: 0; color: #d0d2dc; font: 300 clamp(14px, 1vw, 15px)/1.9 'Manrope', sans-serif; }
.domestic-curator p { margin: 0 0 1em; }
.domestic-curator p:last-child { margin-bottom: 0; }
.domestic-curator .domestic-quote-ending { color: #f2c6df; font-style: normal; }
.domestic-curator figcaption { font-size: 11px; font-weight: 300; color: #e2bbd0; letter-spacing: .025em; }
.domestic-curator figcaption span { color: #9fa9bd; }
.page-photo-domestic .photo-lightbox-title { display: none; }
.page-photo-domestic .photo-lightbox img { max-height: calc(100svh - 90px); }
.page-photo-domestic .photo-lightbox .artwork-title { margin: 18px auto 0; font-size: clamp(18px, 1.8vw, 24px); }
@media (min-width: 1180px) {
  .domestic-curator { position: absolute; left: clamp(24px, 3vw, 44px); top: clamp(300px, 23vw, 360px); width: min(15vw, 210px); max-width: none; margin: 0; padding: 16px 12px 16px 16px; }
  .domestic-curator blockquote { font-size: 13px; line-height: 1.85; }
}
@media (max-width: 900px) {
  .page-photo-domestic .domestic-main { padding-top: 125px; }
  .page-photo-domestic .inst-back-arrow { top: 100px; left: var(--pad-x); }
  .domestic-curator { margin-left: var(--pad-x); margin-right: var(--pad-x); }
}
@media (max-width: 650px) {
  .page-photo-domestic .photo-heading { padding-top: 22px; padding-bottom: 32px; }
  .domestic-gallery { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px 30px 52px; }
  .domestic-work .photo-open { height: auto; max-height: none; }
  .domestic-work .photo-open img { max-height: 68svh; }
  .domestic-work figcaption { font-size: 14px; margin-top: 16px; }
  .domestic-curator { margin-top: 16px; padding: 20px 16px 20px 22px; }
}
