html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  color: #d3d3d3;
  background-color: #111;
  background-repeat: repeat;
  font-family: "Times New Roman", Times, serif;
}
a { color: #d9d9d9; }
img { max-width: 100%; height: auto; display: block; }

.protected-media {
  position: relative;
  display: block;
}
.protected-media img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.protected-media--thumb {
  width: 100%;
}
.media-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 36px;
}
.site-header { margin-bottom: 18px; }
.header-image {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.header-image img { width: min(650px, 100%); }
.topbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(211,211,211,.35);
  border-bottom: 1px solid rgba(211,211,211,.35);
  padding: 10px 0;
}
.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 4px 10px;
  text-decoration: none;
  border: 1px solid rgba(211,211,211,.18);
  background: rgba(255,255,255,.02);
}
.nav-btn--home { min-width: 126px; }
.nav-btn--small { min-width: 166px; }
.nav-btn--monument { min-width: 210px; }
.nav-btn--bio { min-width: 126px; }
.nav-label {
  display: inline-block;
  text-align: center;
  line-height: 1.0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #d2c46a;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 2px 0 rgba(0,0,0,.85);
}
.nav-btn.is-active, .lang-link.is-active {
  outline: 1px solid rgba(255,255,255,.35);
  outline-offset: 3px;
}
.lang-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-link img { width: 34px; height: 46px; }
.content {
  min-height: 60vh;
}
.home-grid, .bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.portrait {
  width: 100%;
  max-width: 270px;
  border: 1px solid rgba(211,211,211,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 16px 24px rgba(0,0,0,.35);
}
.intro-panel, .bio-content, .contact-box, .work-header, .gallery-card, .work-image-card {
  background: rgba(18,18,18,.52);
  border: 1px solid rgba(211,211,211,.25);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.intro-panel, .bio-content, .work-header { padding: 18px 22px; }
.intro-panel h1, .bio-content h1, .gallery-header h1, .work-header h1 {
  margin-top: 0;
  font-size: 1.5rem;
  line-height: 1.04;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.cta-card {
  display: block;
  text-decoration: none;
  padding: 14px;
  background: rgba(26,26,26,.68);
  border: 1px solid rgba(211,211,211,.2);
}
.contact-box {
  padding: 16px 18px;
  margin-top: 14px;
}
.contact-box h2 { margin-top: 0; }
.contact-box-simple { line-height: 1.7; }
.contact-box-simple a { color: #fff; }
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.gallery-grid--composed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}
.gallery-card {
  overflow: hidden;
}
.gallery-card--composed {
  background: transparent;
  border: 2px solid rgba(211,211,211,.33);
  box-shadow: none;
  min-height: 176px;
}
.thumb-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 14px;
  background: transparent;
  cursor: pointer;
}
.thumb-button--composed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  padding: 12px 10px;
}
.thumb-button img {
  width: 100%;
  object-fit: contain;
  max-height: 240px;
  margin: 0 auto;
}
.thumb-image {
  width: auto !important;
  max-width: 154px;
  margin: 0 auto;
}
.thumb-image.is-portrait {
  max-height: 145px;
}
.thumb-image.is-squareish {
  max-height: 132px;
}
.thumb-image.is-landscape {
  max-height: 108px;
  max-width: 156px;
}
.thumb-image.is-wide {
  max-height: 98px;
  max-width: 160px;
}
.card-meta {
  padding: 0 14px 14px;
}
.card-meta h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  min-height: 2.4em;
}
.text-link, .back-link {
  color: #fff;
  text-decoration: underline;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.work-info-line { margin-top: 4px; }
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.work-image-card { padding: 14px; }
.work-image-card img { max-height: 340px; margin: 0 auto; object-fit: contain; }
.work-image-caption {
  margin-top: 10px;
  font-size: .96rem;
}
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(1px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  margin: 12px auto;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  background: rgba(10,10,10,.96);
  border: 1px solid rgba(211,211,211,.3);
  box-shadow: 0 22px 40px rgba(0,0,0,.48);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(12,12,12,.86);
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 14px;
  cursor: pointer;
}
.lightbox-nav {
  grid-row: 1;
  align-self: stretch;
  border: 0;
  background: rgba(255,255,255,.035);
  color: white;
  font-size: 2.35rem;
  cursor: pointer;
}
.lightbox-media {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 10px;
  min-height: 0;
}
.lightbox-media img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
}
.lightbox-info {
  grid-column: 1 / -1;
  grid-row: 2;
  border-top: 1px solid rgba(211,211,211,.14);
  padding: 10px 18px 12px;
  background: rgba(18,18,18,.98);
}
.lightbox-title {
  font-size: 1.12rem;
  line-height: 1.12;
  margin-bottom: 4px;
  color: #fff;
}
.lightbox-caption {
  font-size: .94rem;
  line-height: 1.18;
  margin-bottom: 4px;
  color: #e4e4e4;
}
.lightbox-caption:empty {
  display: none;
}
.lightbox-meta {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Times New Roman", Times, serif;
  font-size: .9rem;
  line-height: 1.15;
  color: #d3d3d3;
  max-height: 5.4em;
  overflow: auto;
}
.site-footer {
  margin-top: 18px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(211,211,211,.18);
}
.footer-contact {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: #cfcfcf;
}
.footer-contact a { color: #d8d8d8; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-copyright {
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.15;
  color: #cfcfcf;
}
.dim { color: #b8b8b8; margin: 0 8px; }
@media (max-width: 980px) {
  .nav-label { font-size: 13px; }
  .nav-btn { min-height: 56px; }
  .nav-btn--home, .nav-btn--bio { min-width: 120px; }
  .nav-btn--small { min-width: 156px; }
  .nav-btn--monument { min-width: 196px; }
}
@media (max-width: 820px) {
  .home-grid, .bio-layout {
    grid-template-columns: 1fr;
  }
  .portrait-panel, .bio-portrait { display: flex; justify-content: center; }
  .topbar { flex-direction: column; align-items: stretch; }
  .lightbox-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    margin: 6px auto;
    grid-template-columns: 44px 1fr 44px;
  }
  .lightbox-media img {
    max-height: calc(100vh - 150px);
  }
  .lightbox-info {
    padding: 9px 12px 10px;
  }
}

.cta-card img { margin: 0 auto; }
.card-meta h2 { min-height: 0; }


@media (max-width: 900px) {
  .gallery-grid--composed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gallery-grid--composed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-card--composed, .thumb-button--composed {
    min-height: 118px;
  }
}
@media (max-width: 420px) {
  .gallery-grid--composed {
    grid-template-columns: 1fr;
  }
}

.gallery-grid--composed .card-meta { display: none; }


.social-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.35;
}
.social-link a {
  color: #fff;
  text-decoration: none;
}
.social-link a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .page-shell {
    padding: 12px 12px 28px;
  }
  .site-header {
    margin-bottom: 14px;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0;
  }
  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .nav-btn,
  .nav-btn--home,
  .nav-btn--small,
  .nav-btn--monument,
  .nav-btn--bio {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
  }
  .nav-label {
    font-size: clamp(12px, 3.8vw, 15px);
    line-height: 0.98;
  }
  .lang-nav {
    justify-content: center;
    gap: 14px;
  }
  .lang-link img {
    width: 32px;
    height: auto;
    max-height: 44px;
  }
  .home-grid,
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .portrait-panel,
  .bio-portrait {
    display: flex;
    justify-content: center;
  }
  .portrait {
    max-width: min(420px, 88vw);
  }
  .intro-panel,
  .bio-content,
  .work-header {
    padding: 16px 16px;
  }
  .intro-panel h1,
  .bio-content h1,
  .gallery-header h1,
  .work-header h1 {
    font-size: 1.25rem;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gallery-grid--composed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .gallery-card--composed,
  .thumb-button--composed {
    min-height: 138px;
  }
  .thumb-button--composed {
    padding: 10px 8px;
  }
  .thumb-image {
    max-width: 100%;
  }
  .thumb-image.is-portrait {
    max-height: 126px;
  }
  .thumb-image.is-squareish {
    max-height: 122px;
  }
  .thumb-image.is-landscape {
    max-height: 108px;
  }
  .thumb-image.is-wide {
    max-height: 98px;
  }
  .work-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .work-image-card {
    padding: 10px;
  }
  .work-image-card img {
    width: 100%;
    max-height: none;
  }
  .lightbox-dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: 0;
    grid-template-columns: 44px 1fr 44px;
  }
  .lightbox-media {
    padding: 12px 4px 6px;
  }
  .lightbox-media img {
    max-height: calc(100vh - 138px);
  }
  .lightbox-info {
    padding: 8px 12px 10px;
  }
  .lightbox-title {
    font-size: 1rem;
  }
  .lightbox-caption,
  .lightbox-meta {
    font-size: .88rem;
    line-height: 1.18;
  }
  .lightbox-close {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 14px;
  }
  .site-footer {
    margin-top: 14px;
    padding-top: 6px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 10px 8px 22px;
  }
  .header-image img {
    width: min(360px, 100%);
  }
  .primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .nav-btn,
  .nav-btn--home,
  .nav-btn--small,
  .nav-btn--monument,
  .nav-btn--bio {
    min-height: 54px;
    padding: 6px 8px;
  }
  .nav-label {
    font-size: clamp(11px, 4vw, 13px);
    line-height: 0.96;
  }
  .gallery-grid--composed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-card--composed,
  .thumb-button--composed {
    min-height: 122px;
  }
  .thumb-image.is-portrait {
    max-height: 112px;
  }
  .thumb-image.is-squareish {
    max-height: 108px;
  }
  .thumb-image.is-landscape,
  .thumb-image.is-wide {
    max-height: 92px;
  }
  .lightbox-dialog {
    grid-template-columns: 38px 1fr 38px;
  }
  .lightbox-nav {
    font-size: 1.9rem;
  }
  .lightbox-media img {
    max-height: calc(100vh - 126px);
  }
  .footer-contact,
  .footer-copyright {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .primary-nav {
    grid-template-columns: 1fr;
  }
  .lang-nav {
    gap: 10px;
  }
  .gallery-grid,
  .gallery-grid--composed {
    grid-template-columns: 1fr;
  }
  .gallery-card--composed,
  .thumb-button--composed {
    min-height: 156px;
  }
}
