:root {
  font-family: 'PT Sans', Arial, sans-serif;
  color: #111;
  background: #fafafa;
  font-synthesis: none;
  --page: 1080px;
  --muted: #888;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a:hover,
button:hover {
  color: #888;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #777;
  outline-offset: 6px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
p,
figure {
  margin: 0;
}
h1,
h2,
.intro {
  font-family: 'Garamond Premier Pro', 'Baskerville', 'Times New Roman', serif;
  font-weight: 400;
}
h1 {
  font-size: 44px;
  line-height: 1.05;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 5%;
  min-height: 132px;
  font-size: 16px;
}
.identity {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}
.brand {
  font-size: 18px;
}
.language {
  font-size: 12px;
  color: #aaa;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav a[aria-current='page'] {
  color: #aaa;
}
.search-button {
  margin-left: 24px;
  width: 18px;
  height: 20px;
  color: #999;
}
.search-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-icon:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  right: -4px;
  bottom: -2px;
}
.mobile-toggle {
  display: none;
}
.header-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 68%;
  min-width: 0;
}
.subnav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-right: 62px;
  font-size: 12px;
  max-width: 100%;
}
.subnav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  max-width: 100%;
}
.subnav a {
  white-space: nowrap;
  color: #111;
}
.subnav a:hover,
.subnav a[aria-current='page'] {
  color: #aaa;
}
.content {
  max-width: var(--page);
  width: 75%;
  margin: 65px auto 90px;
}
.intro {
  font-size: 36px;
  line-height: 1.06;
  max-width: 960px;
  margin-bottom: 80px;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
}
.project-card img {
  width: 100%;
  height: auto;
}
.project-card figcaption {
  margin-top: 16px;
  text-align: right;
}
.draft {
  font-size: 12px;
  color: #999;
}
.project-heading {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 64px;
}
.project-heading h1 {
  font-size: 44px;
}
.date {
  font-size: 13px;
  color: #888;
  margin-top: 18px;
}
.description {
  font-size: 16px;
  line-height: 1.35;
}
.description p + p {
  margin-top: 24px;
}
.sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 7.5%;
}
.sequence .full {
  grid-column: 1/-1;
}
.sequence .photo-link {
  display: block;
}
.photo-link:hover img,
.project-card a:hover img {
  opacity: 0.86;
}
.sequence img {
  width: 100%;
}
.sequence figure:nth-child(3) {
  align-self: center;
}
.sequence figcaption {
  font-size: 12px;
  text-align: right;
  margin-top: 12px;
  max-width: 60%;
  margin-left: auto;
}
.sequence .interlude {
  grid-column: 1/-1;
  max-width: 580px;
  line-height: 1.4;
  margin: 0 auto;
}
.footer {
  font-size: 12px;
  margin: 70px auto 32px;
  width: 75%;
  max-width: var(--page);
}
.view-tools {
  position: fixed;
  left: 5%;
  bottom: 42px;
  z-index: 5;
}
.grid-icon {
  display: inline-grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
  width: 15px;
  height: 15px;
}
.grid-icon i {
  background: currentColor;
  border-radius: 1px;
}
.grid-link {
  color: #aaa;
  padding: 10px;
}
.to-top {
  position: fixed;
  bottom: 42px;
  right: 5%;
  color: #aaa;
  font-size: 25px;
}
.grid-page {
  width: 90%;
  max-width: none;
  margin: 64px auto;
}
.grid-back {
  display: block;
  text-align: right;
  font-family: 'Baskerville', 'Times New Roman', serif;
  margin-bottom: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.grid-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.grid figure {
  margin: 0;
}
.grid img {
  width: 100%;
}
.grid .number {
  font-size: 11px;
  color: #999;
  margin-top: 7px;
}
.home {
  height: 100svh;
  background: var(--bg, #fafafa);
}
.home .header {
  position: relative;
  z-index: 2;
}
.home-enter {
  position: absolute;
  inset: 132px 0 0;
}
.home-caption {
  position: absolute;
  bottom: 28px;
  right: 5%;
  font-size: 13px;
  background: #fafafabd;
  padding: 6px 10px;
}
.home .language {
  color: #666;
}
.viewer-page {
  background: #171717;
  color: #b6b6b6;
  min-height: 100svh;
}
.viewer {
  height: 100svh;
  display: flex;
  flex-direction: column;
}
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 3%;
  font-size: 16px;
  gap: 12px;
}
.viewer-actions {
  display: flex;
  align-items: center;
  gap: 46px;
}
.viewer-actions a {
  display: flex;
  gap: 16px;
  align-items: center;
}
.viewer-actions a:hover {
  color: #fff;
}
.viewer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 18px 12% 0;
}
.viewer-figure {
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.viewer-figure img {
  max-height: calc(100svh - 190px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}
.viewer-figure figcaption {
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 14px;
  min-height: 45px;
}
.viewer-figure small {
  display: block;
  color: #777;
  margin-top: 4px;
}
.viewer-bottom {
  height: 25px;
  flex-shrink: 0;
}
.arrow {
  position: absolute;
  top: 45%;
  font-size: 32px;
  color: #777;
  padding: 20px;
}
.arrow:hover {
  color: #fff;
}
.arrow.previous {
  left: 3%;
}
.arrow.next {
  right: 3%;
}
.counter {
  white-space: nowrap;
}
.close-symbol {
  font-size: 26px;
  font-weight: 200;
}
.list-icon {
  display: inline-block;
  width: 15px;
  height: 12px;
  border-top: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
}
.empty {
  max-width: 600px;
  line-height: 1.5;
  margin-top: 35px;
  color: #777;
}
.empty a {
  text-decoration: underline;
}
.section-title {
  font-size: 44px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about-layout p {
  line-height: 1.6;
}
.about-photo {
  position: sticky;
  top: 40px;
}
.about-photo img {
  width: 100%;
}
dialog {
  border: 0;
  background: #fafafa;
  color: #111;
  padding: 55px;
  width: min(760px, 90vw);
  max-height: 80svh;
}
dialog::backdrop {
  background: #171717cc;
}
dialog label {
  display: block;
  font-family: 'Baskerville', serif;
  font-size: 28px;
  margin-bottom: 24px;
}
dialog input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa;
  background: none;
  padding: 10px 0;
  font-size: 22px;
  border-radius: 0;
}
.close-search {
  position: absolute;
  right: 22px;
  top: 12px;
  font-size: 30px;
}
#results a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}
#results p {
  margin-top: 24px;
  color: #888;
}
.mobile-menu {
  display: none;
}
.mobile-controls {
  display: none;
}
.about-page {
  width: 88%;
  max-width: 1320px;
  margin-top: 65px;
}
.about-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(48px, 12vw, 180px);
  align-items: start;
}
.about-copy {
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
}
.about-lead {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 30px;
}
.about-copy h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 36px 0 20px;
}
.about-copy h1 + h2 {
  margin-top: 0;
}
.about-copy p {
  line-height: 1.45;
}
.about-biography p + p {
  margin-top: 16px;
}
.about-records p + p {
  margin-top: 4px;
}
.about-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
}
.about-badges img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.sequence-imported {
  align-items: start;
  gap: 32px;
}
.sequence-imported .full {
  grid-column: auto;
}
.sequence-imported figure:nth-child(3) {
  align-self: start;
}
.sequence-imported figure {
  min-width: 0;
}
.projects {
  row-gap: 64px;
}
.projects .project-card {
  min-width: 0;
}
main:focus {
  outline: none;
}
.viewer-figure {
  width: min(900px, 100%);
}
.viewer-figure img {
  width: 100%;
  height: auto;
}
@media (min-width: 1750px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .header {
    padding: 30px 5%;
    min-height: 110px;
  }
  .identity {
    display: block;
  }
  .language {
    display: block;
    margin-top: 8px;
  }
  .nav {
    gap: 14px;
    font-size: 14px;
  }
  .search-button {
    margin-left: 0;
  }
  .content {
    width: 84%;
    margin-top: 50px;
  }
  .project-heading {
    gap: 30px;
  }
  .project-heading h1 {
    font-size: 36px;
  }
  .intro {
    font-size: 30px;
  }
  .grid-page {
    width: 90%;
  }
  .viewer-actions {
    gap: 20px;
  }
  .viewer-body {
    padding-left: 9%;
    padding-right: 9%;
  }
}
@media (max-width: 650px) {
  :root {
    --mobile-header-width: calc(100vw - var(--home-layout-gutter, 0px));
    --mobile-header-inset: calc(var(--mobile-header-width) * 0.07);
  }
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: var(--mobile-header-width);
    min-height: 95px;
    padding: 26px var(--mobile-header-inset);
    align-items: start;
  }
  .header .identity {
    position: relative;
    min-width: 0;
  }
  .header .identity .language {
    position: absolute;
    top: 32px;
    left: 0;
    margin-top: 0;
  }
  .brand {
    font-size: 16px;
  }
  .language {
    font-size: 10px;
  }
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
    font-size: 24px;
  }
  .mobile-controls {
    display: flex;
    gap: 22px;
    align-items: center;
  }
  .mobile-controls .search-button {
    display: block;
  }
  .header > .search-button {
    display: none;
  }
  .subnav {
    display: none;
  }
  .content {
    width: 84%;
    margin: 36px auto 64px;
  }
  .intro {
    font-size: 29px;
    margin-bottom: 48px;
    line-height: 1.1;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .project-card figcaption {
    font-size: 14px;
  }
  .project-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  .project-heading h1 {
    font-size: 36px;
  }
  .description {
    font-size: 15px;
  }
  .date {
    margin-top: 10px;
  }
  .sequence {
    gap: 24px 6%;
  }
  .sequence figcaption {
    font-size: 10px;
    max-width: 85%;
  }
  .footer {
    width: 84%;
    margin: 48px auto 25px;
  }
  .view-tools {
    left: 1%;
    bottom: 18px;
  }
  .to-top {
    right: 2%;
    bottom: 16px;
    font-size: 22px;
  }
  .grid-page {
    width: 90%;
    margin-top: 25px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .grid-column {
    gap: 15px;
  }
  .grid-back {
    font-size: 14px;
  }
  .grid .number {
    font-size: 10px;
  }
  .viewer-toolbar {
    padding: 24px 6%;
    font-size: 12px;
    align-items: flex-start;
  }
  .viewer-actions {
    gap: 22px;
  }
  .viewer-actions a {
    gap: 7px;
  }
  .viewer-actions .action-text {
    display: none;
  }
  .viewer-body {
    padding: 10px 6%;
  }
  .viewer-figure img {
    max-height: calc(100svh - 180px);
  }
  .viewer-figure figcaption {
    font-size: 12px;
    min-height: 50px;
  }
  .arrow {
    top: auto;
    bottom: 5px;
    padding: 10px;
    font-size: 25px;
    z-index: 3;
  }
  .arrow.previous {
    left: 5%;
  }
  .arrow.next {
    right: 5%;
  }
  .viewer-bottom {
    height: 45px;
  }
  .home {
    background-position: 51% center;
  }
  .home-caption {
    font-size: 11px;
    bottom: 24px;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: #fafafa;
    z-index: 20;
    padding: 30px 8%;
  }
  .mobile-menu > button {
    position: absolute;
    right: 8%;
    top: 24px;
    font-size: 30px;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 70px;
    font-family: 'Baskerville', serif;
    font-size: 30px;
  }
  .mobile-menu .language {
    margin-top: 40px;
    font-size: 13px;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo {
    position: static;
  }
  dialog {
    padding: 45px 25px;
  }
  .home-enter {
    top: 100px;
  }
}

@media (max-width: 900px) and (min-width: 651px) {
  .subnav {
    padding-right: 32px;
  }
  .subnav-row {
    column-gap: 16px;
  }
  .header-navigation {
    max-width: 65%;
  }
}
@media (max-width: 650px) {
  .header-navigation {
    display: none;
  }
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
#app > .header,
#app > main,
#app > .home {
  flex-shrink: 0;
}
#app > .footer {
  margin-top: auto;
}
.language {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.language-flag {
  display: block;
  width: 20px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px #0002);
}
@media (max-width: 900px) {
  .identity .language {
    display: flex;
  }
}
@media (max-width: 650px) {
  .language {
    gap: 7px;
  }
  .language-flag {
    width: 18px;
    height: 14px;
  }
}

/* Contact: a single quiet text column, using the site's body typography. */
.contact-page {
  width: min(calc(37.5% - 16px), 524px);
  margin: 65px auto 90px;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #111;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact-links a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-links a:hover,
.contact-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-note {
  margin-top: 42px;
  max-width: 390px;
}
.contact-note p {
  margin: 0 0 1.35em;
}
@media (max-width: 900px) {
  .contact-page {
    width: calc(42% - 16px);
    margin-top: 50px;
  }
}
@media (max-width: 650px) {
  .contact-page {
    width: 84%;
    margin: 36px auto 64px;
  }
}

/* Reserve precisely the same header depth as Projects, including wrapped rows. */
.subnav-reserved {
  visibility: hidden;
  pointer-events: none;
}

/* Image navigation has two exact halves, with larger versions of the gallery chevrons. */
.viewer-image {
  position: relative;
  display: flex;
  max-width: 100%;
  min-height: 0;
  flex: none;
}
.photo-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: block;
}
.photo-half-previous {
  left: 0;
}
.photo-half-next {
  right: 0;
}
.photo-half:focus-visible {
  outline: 1px solid #b6b6b6;
  outline-offset: -4px;
}
.photo-half-disabled {
  cursor: default;
}
a.photo-half-previous {
  cursor:
    url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%3Ctext%20x%3D%2232%22%20y%3D%2248%22%20text-anchor%3D%22middle%22%20font-family%3D%22PT%20Sans%2CArial%2Csans-serif%22%20font-size%3D%2252%22%20fill%3D%22%23b6b6b6%22%20stroke%3D%22%23171717%22%20stroke-width%3D%22.7%22%20paint-order%3D%22stroke%22%3E%E2%80%B9%3C%2Ftext%3E%3C%2Fsvg%3E')
      32 32,
    pointer;
}
a.photo-half-next {
  cursor:
    url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%3Ctext%20x%3D%2232%22%20y%3D%2248%22%20text-anchor%3D%22middle%22%20font-family%3D%22PT%20Sans%2CArial%2Csans-serif%22%20font-size%3D%2252%22%20fill%3D%22%23b6b6b6%22%20stroke%3D%22%23171717%22%20stroke-width%3D%22.7%22%20paint-order%3D%22stroke%22%3E%E2%80%BA%3C%2Ftext%3E%3C%2Fsvg%3E')
      32 32,
    pointer;
}

/* Fixed controls remain readable over photographs. */
.view-tools .grid-link,
.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 5px;
  background: rgba(250, 250, 250, 0.8);
}
.to-top {
  z-index: 5;
}

/* Two independent Figma image sets, selected once per visit to the home page. */
.home {
  position: relative;
  overflow: hidden;
  background: none;
}
.home-visual {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.home-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-enter {
  inset: 0;
}
.home .header {
  pointer-events: none;
}
.home .header a,
.home .header button {
  pointer-events: auto;
}

/* Mobile menu follows the 375 × 812 Figma frames, with independently scrolling series. */
@media (max-width: 650px) {
  body.mobile-menu-open {
    overflow: hidden;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 80px 10% 48px;
    background: #fafafa;
    color: #444;
    font-family: 'PT Sans', Arial, sans-serif;
  }
  /* The page and overlay use identical title and icon slots. */
  .mobile-menu-header {
    position: absolute;
    top: 26px;
    left: 0;
    width: var(--mobile-header-width);
    padding: 0 var(--mobile-header-inset);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    color: #111;
  }
  .header .brand,
  .mobile-menu-header .brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    height: 28px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    white-space: nowrap;
  }
  .mobile-controls,
  .mobile-menu-controls {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 28px;
  }
  .mobile-controls button,
  .mobile-menu-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  .mobile-menu-controls .search-button {
    color: #d5d5d5;
  }
  .mobile-menu-close {
    font-size: 30px;
    font-family: Arial, sans-serif;
  }
  .mobile-menu-body {
    margin-top: 105px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 0 7px 8px;
  }
  .mobile-menu .mobile-navigation {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 0;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 24px;
    line-height: 32px;
  }
  .mobile-menu-title {
    display: block;
  }
  .mobile-menu-title[aria-current='page'] {
    color: #bbb;
  }
  .mobile-series {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 0;
    padding-left: 22px;
  }
  .mobile-series a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-size: 16px;
    line-height: 22px;
    color: #555;
  }
  .mobile-series a > span:first-child {
    flex: none;
  }
  .mobile-series a[aria-current='page'] {
    color: #bbb;
  }
  .mobile-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: none;
    padding: 30px 7px 0;
    color: #000;
  }
  .mobile-socials a,
  .mobile-socials > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }
  .mobile-socials svg {
    display: block;
    width: 22.4px;
    height: 22.4px;
  }
  .mobile-menu a:focus-visible,
  .mobile-menu button:focus-visible {
    outline-offset: 2px;
  }
}
@media (max-width: 360px) {
  .mobile-menu {
    padding-left: 8%;
    padding-right: 8%;
  }
  .mobile-controls,
  .mobile-menu-controls {
    gap: 14px;
  }
  .header .brand,
  .mobile-menu-header .brand {
    font-size: 15px;
  }
}
@media (max-width: 650px) and (max-height: 700px) {
  .mobile-menu {
    padding-top: 58px;
    padding-bottom: 28px;
  }
  .mobile-menu-body {
    margin-top: 65px;
  }
}

/* Keep layout width stable regardless of document height. */
html {
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
html:has(body.viewer-page) {
  background: #171717;
}

a,
button {
  transition:
    color 160ms ease-out,
    background-color 160ms ease-out;
}
.photo-link img,
.project-card img,
.diary-cover img,
.diary-strip img {
  transition: opacity 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  a,
  button,
  .photo-link img,
  .project-card img,
  .diary-cover img,
  .diary-strip img {
    transition: none;
  }
}

#app {
  transition: opacity 80ms ease-out;
}
#app.page-changing {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  #app {
    transition: none;
  }
}

/* Optional photo fields and the three print states. Real photographs default to no sale. */
.viewer-figure .photo-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  text-align: left;
}
.photo-details-copy {
  min-width: 0;
}
.photo-caption {
  color: #b6b6b6;
  line-height: 1.35;
}
.photo-date,
.photo-number {
  color: #777;
}
.photo-number {
  margin-top: 4px;
  font-size: 12px;
}
.print-available {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid #287647;
  border-radius: 3px;
  padding: 3px 9px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font:
    10px/1.2 'PT Sans',
    Arial,
    sans-serif;
  white-space: nowrap;
}
.print-available:hover {
  color: #fff;
  background: #214b30;
}
.print-available:disabled {
  border-color: #555;
  background: #393939;
  color: #777;
  cursor: default;
}
.viewer-figure:has(.photo-details) img {
  max-height: calc(100svh - 210px);
}
@media (max-width: 650px) {
  .viewer-figure .photo-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .photo-caption {
    font-size: 14px;
  }
  .photo-number {
    margin-top: 22px;
    font-size: 13px;
  }
  .print-available {
    width: min(280px, 100%);
    padding: 7px 16px;
    font-size: 12px;
  }
  .viewer-figure:has(.photo-details) img {
    max-height: calc(100svh - 300px);
  }
}

.print-available {
  margin-left: auto;
  align-self: flex-start;
}
@media (max-width: 650px) {
  .photo-details .print-available {
    width: auto;
    max-width: 100%;
    align-self: flex-end;
    margin-left: auto;
  }
}
#print-request {
  font:
    16px/1.35 'PT Sans',
    Arial,
    sans-serif;
}
.print-request-copy {
  overflow-wrap: anywhere;
}
.print-request-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.print-request-options a,
.print-request-options button {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 8px 12px;
}
.print-request-note {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}
#print-email-status {
  font-size: 13px;
  margin-top: 12px;
}

@media (max-width: 650px) {
  .photo-details .print-available {
    align-self: center;
    margin-left: 0;
    margin-right: 0;
    width: min(280px, 100%);
  }
}

/* Full-bleed home image; other pages retain their stable scrollbar gutter. */
html.home-page {
  scrollbar-gutter: auto;
  overflow-y: hidden;
}
.home .header {
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.home.home-contrast-ready .header {
  opacity: 1;
}
.home .header .brand,
.home .header .nav a,
.home .header button {
  color: var(--home-header-ink, #111);
  text-shadow: var(--home-header-shadow, none);
}
.home .header .search-icon {
  filter: drop-shadow(0 1px 2px #7774);
}
.home .header a:hover,
.home .header button:hover {
  opacity: 0.75;
}
@media (min-width: 651px) {
  .home .header {
    padding-left: calc((100vw - var(--home-layout-gutter, 0px)) * 0.05);
    padding-right: calc(
      (100vw - var(--home-layout-gutter, 0px)) * 0.05 +
        var(--home-layout-gutter, 0px)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .header {
    transition: none;
  }
}

.project-share-button {
  margin-top: 44px !important;
  width: 100%;
  max-width: none;
}

/* Project navigation shares the summary column and its description baseline. */
.project-heading-actions { margin-top: 28px; }
.project-heading-actions .project-share-button { margin-top: 14px !important; }
.project-view-links { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #777; font-size: 14px; line-height: 1.35; }
.project-view-links a { display: inline-flex; align-items: center; gap: 7px; }
.project-view-links svg { width: 16px; height: 16px; }
.project-page .diary-photo-caption,
.project-grid-page .diary-photo-caption { font-size: 14px; line-height: 1.35; }
@media (min-width: 651px) {
  #app > .header { position: sticky; top: 0; z-index: 20; background: transparent; }
  .home .header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
  .project-heading-summary { display: flex; flex-direction: column; }
  .project-heading-actions { margin-top: auto; padding-top: 28px; }
}

.diary-index,
.diary-scroll-page {
  width: 100%;
  max-width: none;
  margin: 65px 0 64px;
}
.diary-covers {
  display: grid;
  gap: 42px;
  width: 100%;
}
.diary-cover-row {
  display: grid;
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.diary-cover {
  flex: none;
  min-width: 0;
  margin: 0;
}
.diary-cover a {
  display: block;
}
.diary-cover img {
  display: block;
  width: 100%;
  object-fit: contain;
}
.diary-cover a:hover img {
  opacity: 0.86;
}
.diary-cover figcaption {
  padding: 10px 8px 0;
  font-size: 16px;
  line-height: 1.35;
}
.diary-cover small {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}
.diary-scroll-page {
  margin-bottom: 24px;
}
.diary-strip-wrap {
  position: relative;
}
.diary-strip {
  --strip-height: 420px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  height: var(--strip-height);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 24px 12px;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}
.diary-strip:focus {
  outline: none;
}
.diary-description {
  flex: 0 0 330px;
  height: calc(var(--strip-height) - 30px);
  overflow-y: auto;
  padding: 0 20px 12px 0;
  margin-right: 24px;
  scrollbar-width: thin;
}
.diary-description h1 {
  font-size: 44px;
  line-height: 1.05;
  margin-bottom: 26px;
}
.diary-description .description {
  font-size: 16px;
  line-height: 1.45;
}
.diary-description .description p + p {
  margin-top: 22px;
}
.diary-slide {
  flex: none;
  width: calc((var(--strip-height) - 42px) * var(--ratio));
  margin: 0;
}
.diary-slide > a {
  display: block;
  height: calc(var(--strip-height) - 42px);
}
.diary-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.diary-slide figcaption {
  font-size: 12px;
  line-height: 1.25;
  color: #888;
  margin-top: 10px;
  white-space: normal;
}
.diary-scroll-arrow {
  position: absolute;
  top: var(--diary-photo-center, calc(50% - 35px));
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
  color: #333;
  background: #fafafa99;
}
.diary-scroll-arrow[hidden] {
  display: none;
}
.diary-scroll-previous {
  left: 8px;
}
.diary-scroll-next {
  right: 8px;
}
.diary-strip img:hover {
  opacity: 0.9;
}
@media (max-width: 900px) {
  .diary-description {
    flex-basis: 280px;
    margin-right: 0;
  }
  .diary-strip {
    gap: 28px;
  }
  .diary-description h1 {
    font-size: 36px;
  }
}
@media (max-width: 650px) {
  .diary-index,
  .diary-scroll-page {
    margin-top: 36px;
  }
  .diary-covers {
    row-gap: 28px;
  }
  .diary-cover figcaption {
    padding: 9px 16px 0;
    font-size: 16px;
  }
  .diary-strip {
    padding-left: 8%;
    padding-right: 8%;
    gap: 24px;
  }
  .diary-description {
    flex-basis: 72vw;
    padding-right: 10px;
  }
  .diary-description h1 {
    font-size: 34px;
  }
  .diary-description .description {
    font-size: 15px;
  }
  .diary-slide {
    max-width: none;
  }
  .diary-slide figcaption {
    font-size: 12px;
  }
  .diary-scroll-arrow {
    padding: 0;
  }
  .diary-scroll-previous {
    left: 0;
  }
  .diary-scroll-next {
    right: 0;
  }
}

.diary-scroll-page {
  position: relative;
  margin-top: 64px;
}
.diary-gallery-actions {
  width: 90%;
  margin: 0 auto 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}
.diary-gallery-actions .grid-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
}
.diary-gallery-actions .grid-icon {
  flex: none;
}
@media (max-width: 650px) {
  .diary-scroll-page {
    margin-top: 25px;
  }
  .diary-gallery-actions {
    gap: 24px;
  }
  .diary-gallery-actions .grid-back {
    font-size: 14px;
  }
}

.diary-gallery-actions .grid-back {
  color: #888;
}
.diary-gallery-actions .grid-back:hover {
  color: #666;
}

.diary-gallery-actions [data-action='diary-start']:disabled {
  color: #d5d5d5;
  cursor: default;
}

/* Mobile diaries: full-width index covers, description above the horizontal gallery. */
@media (max-width: 650px) {
  .diary-cover-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
  }
  .diary-scroll-page > .diary-description {
    width: 84%;
    height: auto;
    overflow: visible;
    padding: 0;
    margin: 0 auto 32px;
  }
  .diary-scroll-page > .diary-description h1 {
    margin-bottom: 22px;
  }
  .diary-strip {
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }
  .diary-slide figcaption {
    padding: 0 12px;
  }
  .diary-scroll-page > .diary-description .description {
    font-size: 16px;
    line-height: 1.35;
  }
}

/* Mobile reading order follows the reference: description, then a vertical image sequence. */
@media (max-width: 650px) {
  .diary-strip {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0;
    overscroll-behavior: auto;
  }
  .diary-slide {
    width: 100%;
    margin: 0 0 28px;
  }
  .diary-slide > a {
    height: auto;
  }
  .diary-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .diary-slide figcaption {
    margin-top: 10px;
  }
  .diary-scroll-arrow {
    display: none;
  }
  .diary-strip-wrap {
    overflow: visible;
  }
}

@media (max-width: 650px) {
  .diary-gallery-actions [data-action='diary-start'] {
    display: none;
  }
}

@media (min-width: 651px) {
  #app:has(> .diary-scroll-page) > .view-tools,
  #app:has(> .diary-scroll-page) > .to-top {
    display: none;
  }
}

@media (max-width: 650px) {
  .diary-gallery-actions {
    display: none;
  }
}

.diary-description {
  display: flex;
  flex-direction: column;
}
.diary-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #dedede;
  border-radius: 12px;
  color: #777;
  text-decoration: none;
  font:
    14px/1.3 'PT Sans',
    Arial,
    sans-serif;
}
.diary-share-button svg {
  width: 16px;
  height: 16px;
}
.diary-description-field + .diary-share-button {
  margin-top: auto;
}
@media (max-width: 700px) {
  .diary-share-button {
    margin-top: 30px;
  }
  .diary-description-field + .diary-share-button {
    margin-top: 30px;
  }
}

.diary-share-button {
  flex: none;
  margin-top: 16px !important;
}
body:not(.admin-diary-mode) .diary-description {
  overflow: hidden;
}
body:not(.admin-diary-mode) .diary-copy-scroll {
  padding: 0 4px 0 0;
  margin-left: 0;
  min-height: 70px;
  flex: 1;
}
@media (max-width: 650px) {
  body:not(.admin-diary-mode) .diary-description {
    overflow: visible;
  }
  body:not(.admin-diary-mode) .diary-copy-scroll {
    overflow: visible;
    flex: none;
  }
  .diary-share-button {
    margin-top: 30px !important;
  }
}

.diary-scroll-arrow svg { width: 20px; height: 20px; display: block; }

@media (min-width: 651px) {
  .diary-copy-scroll.diary-copy-fades {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - min(5.1em, 45%)), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - min(5.1em, 45%)), transparent 100%);
  }
}
.admin-diary-order-mode .diary-index {
  width: calc(100% - 350px); margin-left: 350px; margin-right: 0;
}

.flow-feed {
  width: 75%;
  max-width: var(--page);
  margin: 65px auto 90px;
}
.flow-post {
  margin: 0 0 70px;
}
.flow-image {
  margin: 0 0 24px;
}
.flow-image img {
  display: block;
  width: 100%;
  height: auto;
}
.flow-text {
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  color: #111;
  overflow-wrap: anywhere;
}
.flow-text p {
  margin: 0 0 1.35em;
}
.flow-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.flow-text a svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: baseline;
}
.flow-text strong,
.flow-text b {
  font-weight: 700;
}
.flow-text em,
.flow-text i {
  font-style: italic;
}
.flow-text s,
.flow-text del {
  text-decoration: line-through;
}
.flow-meta {
  border-top: 0.5px solid #d0d0d0;
  padding-top: 10px;
  margin-top: 28px;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
  color: #999;
}
.flow-meta > span,
.flow-meta time {
  display: flex;
  gap: 7px;
  align-items: center;
}
.flow-meta svg {
  height: 14px;
  width: 14px;
}
.flow-pagination {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  border-top: 1px solid #999;
  padding-top: 20px;
  font-size: 16px;
}
.flow-pagination > div {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.flow-pagination a {
  color: #111;
  text-decoration: none;
}
.flow-pagination [aria-current] {
  color: #aaa;
}
.flow-pagination > span {
  color: #ccc;
}
.flow-next {
  text-align: right;
}
.flow-video {
  aspect-ratio: 16/9;
  margin-bottom: 24px;
}
.flow-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .flow-feed {
    width: 84%;
    margin-top: 50px;
  }
}
@media (max-width: 650px) {
  .flow-feed {
    width: 84%;
    margin: 36px auto 64px;
  }
  .flow-post {
    margin-bottom: 50px;
  }
  .flow-meta {
    gap: 20px;
  }
}
.flow-post {
  scroll-margin-top: 24px;
}
.flow-meta {
  flex-wrap: wrap;
  row-gap: 10px;
}
.flow-meta time {
  white-space: nowrap;
}
.flow-meta .flow-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.flow-meta .flow-share:hover {
  color: #111;
}
.flow-meta .admin-post-delete {
  margin-left: 0;
}
.flow-link-note {
  color: #999;
  font:
    16px/1.35 'PT Sans',
    Arial,
    sans-serif;
  margin: 0 0 50px;
}
.flow-share-dialog {
  width: min(490px, calc(100vw - 32px));
  box-sizing: border-box;
  border: 0;
  border-radius: 24px;
  padding: 32px 36px 20px;
  background: #fff;
  color: #35393e;
  box-shadow: 0 24px 80px #0002;
  font:
    16px/1.4 'PT Sans',
    Arial,
    sans-serif;
}
.flow-share-dialog::backdrop {
  background: #27231c30;
  backdrop-filter: blur(3px);
}
.flow-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.flow-share-heading h2 {
  font:
    700 26px/1.2 'PT Sans',
    Arial,
    sans-serif;
  margin: 0;
}
.flow-share-close {
  border: 0;
  background: #f8f8f8;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 24px;
  color: inherit;
  cursor: pointer;
}
.flow-share-networks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
.flow-share-networks a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 15px;
}
.flow-share-networks a span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: #f8f8f9;
  border-radius: 50%;
  transition: background 0.2s;
}
.flow-share-networks a:hover span {
  background: #eaeaec;
}
.flow-share-networks svg {
  width: 27px;
  height: 27px;
}
.flow-share-dialog label {
  font:
    16px/1.4 'PT Sans',
    Arial,
    sans-serif;
  display: block;
  margin-bottom: 12px;
}
.flow-share-address {
  display: flex;
  background: #f8f8f9;
  border-radius: 12px;
  padding: 8px 12px;
  align-items: center;
}
.flow-share-address input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #8a9098;
  font:
    15px/1.4 'PT Sans',
    Arial,
    sans-serif;
  padding: 10px 4px;
}
.flow-share-address button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px;
  cursor: pointer;
}
.flow-share-address svg {
  display: block;
  width: 20px;
  height: 20px;
}
.flow-share-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #888;
  font-size: 13px;
}
@media (max-width: 480px) {
  .flow-share-dialog {
    padding: 26px 20px 16px;
  }
  .flow-share-networks {
    gap: 6px;
  }
  .flow-share-networks a span {
    width: 56px;
    height: 56px;
  }
  .flow-share-networks a {
    font-size: 13px;
  }
}
.flow-post[tabindex='-1']:focus {
  outline: none;
}

.flow-image video {
  display: block;
  width: 100%;
  height: auto;
}

.admin-entry-page {
  background: #111;
  color: #ddd;
}
.admin-entry-page .skip {
  display: none;
}
.admin-entry {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.admin-login {
  width: 280px;
  font:
    16px/1.35 'PT Sans',
    Arial,
    sans-serif;
}
.admin-login label {
  display: block;
  margin-bottom: 26px;
  color: #999;
}
.admin-login input {
  display: block;
  width: 100%;
  background: transparent;
  color: #eee;
  border: 0;
  border-bottom: 1px solid #555;
  padding: 9px 0;
  border-radius: 0;
  font: inherit;
  outline-offset: 5px;
}
.admin-login > button {
  display: block;
  margin-top: 36px;
  color: #ddd;
}
.admin-login-note {
  margin-top: 28px;
  color: #555;
  font-size: 12px;
}
.admin-device-message {
  max-width: 390px;
  font:
    18px/1.4 'PT Sans',
    Arial,
    sans-serif;
}
.admin-device-message p + p {
  color: #888;
  margin-top: 16px;
  font-size: 16px;
}
.admin-device-message a {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  text-decoration: underline;
}
.admin-controls {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 30;
  padding-top: 112px;
}
.admin-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fafafa;
  background: #fafafa;
  display: block;
}
.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-avatar-tools {
  position: absolute;
  bottom: 66px;
  left: 0;
  width: 54px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}
.admin-controls:hover .admin-avatar-tools,
.admin-controls:focus-within .admin-avatar-tools {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.admin-avatar-tools button {
  width: 54px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafae8;
  border-radius: 4px;
  color: #111;
}
.admin-avatar-tools svg {
  width: 29px;
  height: 29px;
}
.admin-avatar-tools button:first-child svg {
  width: 38px;
  height: 38px;
}
.admin-add-menu {
  position: absolute;
  left: 72px;
  bottom: 80px;
  background: #fafafa;
  border: 1px solid #ddd;
  min-width: 205px;
  padding: 12px;
  box-shadow: 0 6px 24px #00000012;
  border-radius: 4px;
  color: #111;
}
.admin-add-menu[hidden] {
  display: none;
}
.admin-add-menu button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  width: 100%;
  text-align: left;
  font-size: 18px;
}
.admin-add-menu svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.admin-add-menu small {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}
.admin-add-menu button:disabled {
  color: #bbb;
  cursor: default;
}
.admin-mode .view-tools {
  left: 100px;
}
.admin-flow-draft {
  border: 1px dashed #aaa;
  padding: 24px;
  margin-bottom: 70px;
  min-height: 175px;
}
.admin-draft-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #888;
  font-size: 12px;
  margin-bottom: 28px;
}
.admin-draft-status {
  text-align: right;
}
.admin-insert {
  position: relative;
}
.admin-insert-line {
  display: block;
  width: 100%;
  height: 34px;
  padding: 9px 0;
}
.admin-insert-line img {
  width: 100%;
  height: 15px;
  object-fit: fill;
}
.admin-block-menu {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px #0000000d;
  z-index: 10;
  white-space: nowrap;
}
.admin-block-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
}
.admin-block-menu svg {
  width: 18px;
  height: 18px;
}
.admin-draft-block {
  position: relative;
  padding: 20px 0;
}
.admin-remove-block {
  position: absolute;
  right: -18px;
  top: 0;
  font-size: 21px;
  color: #aaa;
}
.admin-text-edit {
  min-height: 90px;
  outline: none;
}
.admin-text-edit:empty:before {
  content: attr(data-placeholder);
  color: #aaa;
}
.admin-text-toolbar {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #888;
}
.admin-text-toolbar button:nth-child(1) {
  font-weight: bold;
}
.admin-text-toolbar button:nth-child(2) {
  font-style: italic;
}
.admin-text-toolbar button:nth-child(3) {
  text-decoration: underline;
}
.admin-text-toolbar button:nth-child(4) {
  text-decoration: line-through;
}
.admin-draft-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admin-draft-images img {
  display: block;
  width: 100%;
  height: auto;
}
#admin-exit {
  width: 360px;
  padding: 48px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font:
    24px/1.3 'PT Sans',
    Arial,
    sans-serif;
}
#admin-exit > div {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-top: 28px;
  font-size: 16px;
}
#admin-exit button {
  padding: 8px 12px;
}
@media (prefers-reduced-motion: reduce) {
  .admin-avatar-tools {
    transition: none;
  }
}

html:has(body.admin-entry-page) {
  background: #111;
}
/* Author controls: a compact capsule with circular actions and side labels. */
.admin-controls {
  padding-top: 132px;
}
.admin-avatar {
  border: 3px solid #fff;
  box-shadow: 0 4px 18px #00000016;
}
.admin-avatar-tools {
  bottom: 66px;
  left: 0;
  width: 54px;
  padding: 7px;
  gap: 7px;
  background: rgba(250, 250, 250, 0.96);
  border: 1px solid #ddd;
  border-radius: 30px;
  box-shadow: 0 8px 28px #00000012;
}
.admin-avatar-tools button {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: #111;
}
.admin-avatar-tools button:first-child {
  background: #111;
  color: #fff;
}
.admin-avatar-tools button:hover {
  background: #e7e7e7;
  color: #111;
}
.admin-avatar-tools button:first-child:hover {
  background: #333;
  color: #fff;
}
.admin-avatar-tools svg {
  width: 20px;
  height: 20px;
}
.admin-avatar-tools button:first-child svg {
  width: 26px;
  height: 26px;
}
.admin-avatar-tools button::after {
  content: attr(aria-label);
  position: absolute;
  left: 51px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 8px 15px;
  font:
    13px/1.2 'PT Sans',
    Arial,
    sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease-out,
    transform 0.15s ease-out;
}
.admin-avatar-tools button:hover::after,
.admin-avatar-tools button:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.admin-avatar-tools button + button {
  margin-top: 6px;
}
.admin-avatar-tools button + button::before {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  top: -7px;
  border-top: 1px solid #d5d5d5;
}
.admin-add-menu {
  left: 72px;
  bottom: 66px;
  min-width: 185px;
  padding: 9px;
  border-radius: 24px;
  border-color: #e0e0e0;
  box-shadow: 0 8px 28px #00000012;
  background: rgba(250, 250, 250, 0.98);
}
.admin-add-menu button {
  border-radius: 20px;
  font-size: 16px;
  padding: 11px 13px;
  gap: 12px;
}
.admin-add-menu button:not(:disabled):hover {
  background: #111;
  color: #fff;
}
.admin-add-menu svg {
  width: 21px;
  height: 21px;
}
.admin-add-menu small {
  font-size: 10px;
}
.viewer-page .admin-avatar-tools {
  background: #333436;
  border-color: #565656;
}
.viewer-page .admin-avatar-tools button {
  color: #f5f5f5;
}
.viewer-page .admin-avatar-tools button:first-child {
  background: #fafafa;
  color: #111;
}
.viewer-page .admin-avatar-tools button:hover {
  background: #222;
  color: #fff;
}
.viewer-page .admin-avatar-tools button::after {
  background: #fafafa;
  color: #111;
}
.viewer-page .admin-avatar-tools button + button::before {
  border-color: #666;
}
.viewer-page .admin-add-menu {
  background: #333436;
  border-color: #555;
  color: #eee;
}
.viewer-page .admin-add-menu button:not(:disabled):hover {
  background: #fafafa;
  color: #111;
}
@media (prefers-reduced-motion: reduce) {
  .admin-avatar-tools button::after {
    transition: none;
  }
}
.admin-auth-title {
  font:
    24px/1.2 'PT Sans',
    Arial,
    sans-serif;
  margin-bottom: 24px;
  color: #eee;
}
.admin-auth-description {
  font:
    14px/1.5 'PT Sans',
    Arial,
    sans-serif;
  color: #999;
  margin-bottom: 26px;
}
.admin-auth-description strong {
  font-weight: 400;
  color: #ccc;
}
.admin-login form > button {
  display: block;
  margin-top: 30px;
  color: #eee;
}
.admin-login button:disabled {
  opacity: 0.35;
  cursor: default;
}
.auth-error {
  font-size: 13px;
  line-height: 1.4;
  color: #ec9696;
  margin-top: 20px;
}
.auth-notice {
  font-size: 13px;
  line-height: 1.4;
  color: #a9c9ac;
  margin-top: 20px;
}
.auth-error:empty,
.auth-notice:empty {
  display: none;
}
.auth-back-link,
.auth-secondary {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  color: #aaa;
}
.auth-secondary {
  margin-top: 16px;
}
.auth-back-link:hover,
.auth-secondary:hover {
  color: #eee;
}
.admin-setup-entry {
  align-items: flex-start;
  padding-top: 70px;
  padding-bottom: 70px;
}
.admin-setup {
  width: min(680px, 90vw);
}
.auth-form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}
.admin-setup label {
  font-size: 14px;
}
.admin-setup input {
  font-size: 15px;
}
.admin-setup select {
  display: block;
  width: 100%;
  background: #111;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 14px;
  margin-top: 8px;
  padding: 10px;
  font-size: 14px;
}
.admin-setup .admin-login-note {
  margin: 0 0 30px;
  color: #888;
  line-height: 1.5;
}
.auth-mail-title {
  font:
    20px/1.3 'PT Sans',
    Arial,
    sans-serif;
  color: #ddd;
  margin: 36px 0 18px;
}

/* Shared capsule language for interface controls; photographs keep their original edges. */
:root {
  --ui-radius: 24px;
  --ui-shadow: 0 8px 28px #00000012;
  --ui-border: #e1e1e1;
}
button {
  border-radius: var(--ui-radius);
}
dialog {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 18px 70px #00000026;
}
input,
textarea,
select {
  border-radius: 12px;
}
.print-available {
  border-radius: 20px;
}
.view-tools .grid-link,
.to-top {
  border-radius: 14px;
}
.viewer-actions a {
  border-radius: 20px;
}
.admin-entry .admin-login input {
  border: 1px solid #444;
  border-radius: 24px;
  background: #ffffff04;
  padding: 10px 14px;
}
.admin-entry .admin-login > button {
  padding: 10px 18px;
  border: 1px solid #555;
  border-radius: 24px;
}
.admin-block-menu {
  border-radius: 24px;
  padding: 9px;
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow);
}
.admin-block-menu button {
  border-radius: 20px;
  padding: 10px 14px;
}
.admin-block-menu button:hover {
  color: #fff;
  background: #111;
}
.admin-flow-draft {
  border-radius: 24px;
}
.admin-text-toolbar button,
.admin-modal-toolbar button {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-text-toolbar button:hover,
.admin-modal-toolbar button:hover {
  background: #eee;
  color: #111;
}
.admin-draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.admin-draft-actions button,
.admin-modal-actions button {
  border: 1px solid #ddd;
  padding: 11px 18px;
  font:
    14px/1.3 'PT Sans',
    Arial,
    sans-serif;
  background: #fafafa;
  color: #444;
  border-radius: 24px;
}
.admin-draft-actions button.ui-primary,
.admin-modal-actions button.ui-primary {
  background: #111;
  color: #fafafa;
  border-color: #111;
}
.admin-draft-actions button:hover,
.admin-modal-actions button:hover {
  background: #e9e9e9;
  color: #111;
}
.admin-draft-actions button.ui-primary:hover,
.admin-modal-actions button.ui-primary:hover {
  background: #333;
  color: #fff;
}
.admin-mode [data-flow-block] {
  position: relative;
}
.admin-post-pencil {
  position: absolute;
  right: -48px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fafafae6;
  color: #999;
  opacity: 0.7;
  z-index: 2;
}
.admin-post-pencil svg {
  width: 19px;
  height: 19px;
}
.admin-post-pencil:hover,
.admin-post-pencil:focus-visible {
  opacity: 1;
  background: #111;
  color: #fff;
}
.admin-draft-pencil {
  right: -16px;
  top: 34px;
}
.admin-post-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #999;
  font: inherit;
  border: 0;
  background: none;
  padding: 0;
  white-space: nowrap;
}
.admin-post-delete svg {
  width: 14px;
  height: 14px;
}
.admin-post-delete:hover {
  color: #111;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
#admin-confirm {
  padding: 42px;
  width: 380px;
  text-align: center;
  font:
    24px/1.3 'PT Sans',
    Arial,
    sans-serif;
}
#admin-confirm .admin-modal-actions {
  justify-content: center;
}
#admin-exit {
  border-radius: 24px;
  box-shadow: 0 18px 70px #00000026;
}
#admin-exit button {
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 9px 22px;
}
#admin-exit button:first-child {
  background: #111;
  color: #fff;
  border-color: #111;
}
#admin-text-modal {
  width: min(860px, 85vw);
  padding: 36px;
  max-height: 85svh;
}
.admin-modal-title {
  font:
    18px/1.3 'PT Sans',
    Arial,
    sans-serif;
  margin-bottom: 20px;
}
.admin-modal-toolbar {
  display: flex;
  gap: 8px;
  color: #777;
  margin-bottom: 14px;
}
.admin-modal-toolbar button:nth-child(1) {
  font-weight: bold;
}
.admin-modal-toolbar button:nth-child(2) {
  font-style: italic;
}
.admin-modal-toolbar button:nth-child(3) {
  text-decoration: underline;
}
.admin-modal-toolbar button:nth-child(4) {
  text-decoration: line-through;
}
#admin-post-text-editor {
  min-height: 200px;
  max-height: 45svh;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 20px;
  outline-offset: 3px;
}
#admin-notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fafafa;
  border-radius: 24px;
  padding: 12px 20px;
  max-width: 75vw;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  z-index: 60;
  box-shadow: var(--ui-shadow);
}
.flow-editor button {
  border-radius: 24px;
}
.flow-editor input,
.flow-editor textarea,
.flow-editor select {
  border-radius: 14px;
}
.flow-edit-text {
  border-radius: 14px;
}
.print-request-options a,
.print-request-options button {
  border-radius: 24px;
}
#admin-video-modal {
  width: min(720px, 85vw);
  padding: 36px;
}
.admin-video-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.admin-video-services button {
  font:
    14px/1.3 'PT Sans',
    Arial,
    sans-serif;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: transparent;
  color: #777;
}
.admin-video-services [aria-selected='true'] {
  background: #111;
  color: #fafafa;
  border-color: #111;
}
.admin-video-input-label {
  display: block;
  font:
    13px/1.3 'PT Sans',
    Arial,
    sans-serif;
  color: #888;
  margin: 0 0 10px;
}
#admin-video-source {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: transparent;
  padding: 16px;
  resize: vertical;
  font:
    15px/1.4 'PT Sans',
    Arial,
    sans-serif;
  color: #111;
}
.admin-video-error {
  min-height: 18px;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #a33;
  margin-top: 10px;
}
.admin-draft-block > .flow-video {
  margin-bottom: 0;
}
.admin-draft-block > .flow-video iframe {
  border-radius: 0;
}
.admin-draft-actions .admin-discard-draft {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.admin-discard-draft svg {
  width: 19px;
  height: 19px;
}
.admin-draft-actions .admin-discard-draft:hover {
  background: #111;
  color: #fff;
}
.admin-site-copy {
  position: relative;
}
.admin-site-pencil {
  top: 0;
}
.contact-links p {
  margin: 0;
}
.admin-contact-links-editor p {
  margin-bottom: 12px;
}
.admin-contact-links-editor a {
  display: inline-block;
}
.intro p {
  margin: 0;
}
.about-copy > .admin-site-copy > .admin-site-pencil {
  font-family: 'PT Sans', Arial, sans-serif;
}
.admin-mode .contact-links {
  overflow: visible;
}

#app.page-changing {
  pointer-events: none;
}

.admin-avatar-edit {
  position: absolute;
  left: 41px;
  bottom: 35px;
  width: 26px;
  height: 26px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fafafa;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 3px 10px #00000012;
}
.admin-avatar-edit svg {
  width: 15px;
  height: 15px;
}
.admin-avatar-edit:hover {
  background: #111;
  color: #fff;
}
.admin-author-photo-edit {
  right: 12px;
  top: 12px;
  opacity: 1;
  box-shadow: 0 4px 18px #00000012;
}
.content-language-flags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.content-language-flags button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  opacity: 0.45;
}
.content-language-flags button[aria-pressed='true'] {
  border-color: #999;
  background: #fafafa;
  opacity: 1;
}
.content-language-flags button:hover {
  opacity: 1;
}
.content-language-flags img {
  display: block;
  width: 20px;
  height: 16px;
  object-fit: contain;
}
.language-filled-dot {
  position: absolute;
  right: 1px;
  bottom: 0;
  width: 3px;
  height: 3px;
  background: #777;
  border-radius: 50%;
}
.admin-text-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-right: 20px;
}
.admin-text-heading .admin-modal-title {
  margin-bottom: 0;
}
.photo-meta-language-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.photo-meta-language-heading .content-language-flags {
  gap: 2px;
}
.photo-meta-language-heading .content-language-flags button {
  width: 26px;
}

/* Unequal cover heights form two independent columns. */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  columns: auto;
  gap: 64px 9vw;
  align-items: start;
}
.projects .project-card {
  display: block;
  width: 100%;
  margin: 0;
  min-width: 0;
}
.project-card figcaption {
  text-align: left;
}
.project-card-placeholder {
  display: block;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}
.project-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.project-content-block {
  position: relative;
  min-width: 0;
}
.project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.project-photo-slot {
  position: relative;
  min-width: 0;
  margin: 0;
}
.project-photo-slot img {
  width: 100%;
  height: auto;
}
.project-photo-slot figcaption {
  font:
    14px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #111;
  text-align: left;
  margin-top: 10px;
}
.project-text-block {
  width: 100%;
}
.project-text-block p:last-child {
  margin-bottom: 0;
}
.project-text-block:empty {
  display: none;
}
.admin-project-mode .project-page {
  width: min(calc(100% - 370px), 1080px);
  max-width: 1080px;
  margin-left: max(300px, calc((100vw - 1080px) / 2));
  margin-right: auto;
}
.project-editor-sidebar {
  position: fixed;
  left: 24px;
  top: 252px;
  bottom: 100px;
  width: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-width: thin;
  z-index: 8;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #555;
}
.project-cover-panel,
.project-meta-panel {
  border: 1px solid #e1e1e1;
  border-radius: 20px;
  padding: 16px;
  background: #fafafa;
}
.project-panel-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 14px;
}
.project-cover-drop {
  width: 100%;
  min-height: 100px;
  background: #f1f1f1;
  border: 1px dashed #ccc;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-cover-drop img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}
.project-cover-drop > span {
  font-size: 34px;
  font-weight: 400;
  color: #999;
}
.project-panel-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 12px;
}
.project-meta-panel {
  margin-top: 18px;
}
.project-meta-preview {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}
.project-meta-panel label {
  display: block;
  margin: 12px 0;
  font-size: 12px;
  color: #888;
}
.project-meta-panel input,
.project-meta-panel select {
  display: block;
  width: 100%;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-top: 5px;
  color: #333;
}
.project-meta-save {
  padding: 10px 14px;
  background: #111;
  color: #fafafa;
  font-size: 12px;
  width: 100%;
  margin-top: 8px;
}
.project-photo-empty {
  display: flex;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f3f3;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}
.project-columns .project-photo-empty {
  aspect-ratio: 3/2;
}
.project-photo-empty > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font:
    34px/1 'PT Sans',
    Arial,
    sans-serif;
}
.project-photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #888;
}
.project-photo-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-photo-actions svg {
  width: 13px;
  height: 13px;
}
.project-photo-replace {
  right: 12px;
  top: 12px;
  opacity: 1;
}
.project-meta-selected img {
  outline: 1px solid #aaa;
  outline-offset: 3px;
}
.project-insert {
  position: relative;
  margin: 0;
}
.project-block-menu {
  min-width: 430px;
}
.project-block-actions {
  position: absolute;
  right: -44px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.project-block-actions > .admin-post-pencil {
  position: static;
}
.project-block-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #aaa;
  background: #fafafae6;
}
.project-block-actions > button svg {
  width: 17px;
  height: 17px;
}
.project-block-actions > button:hover {
  color: #111;
  background: #eee;
}
.project-heading-editable {
  position: relative;
}
.project-heading-editable > .admin-post-pencil {
  left: -36px;
  right: auto;
  top: 0;
  width: 28px;
  height: 28px;
}
.project-heading-editable > .admin-post-pencil svg {
  width: 17px;
  height: 17px;
}
.project-heading .description {
  min-height: 30px;
}
.admin-project-mode .project-heading {
  gap: 48px;
}
.admin-project-mode .project-blocks {
  gap: 24px;
}
.project-drag-over {
  outline: 2px dashed #888 !important;
  outline-offset: 5px;
  background: #e8e8e8;
}
.project-text-block > button {
  color: #aaa;
  padding: 24px;
  border: 1px dashed #ddd;
  width: 100%;
  border-radius: 18px;
}
#new-project-modal {
  width: 420px;
  padding: 36px;
}
#new-project-modal label {
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #888;
  margin: 18px 0;
}
#new-project-modal input {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  background: transparent;
  padding: 12px 14px;
  border-radius: 16px;
  color: #111;
  margin-top: 8px;
  font-size: 16px;
}
@media (max-width: 650px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .projects .project-card {
    margin: 0;
  }
  .project-columns {
    gap: 6%;
  }
  .project-blocks {
    gap: 24px;
  }
  .project-photo-slot figcaption {
    font-size: 10px;
  }
}

.project-caption-text {
  color: #111;
}
.project-caption-year {
  color: #999;
  margin-left: 4px;
}
.project-photo-actions {
  border-top: 0.5px solid #ddd;
  padding-top: 10px;
  margin-top: 12px;
}
/* Project-wide save/revert and a quiet, logo-aligned sidebar. */
.admin-project-mode .project-page {
  width: min(calc(100% - 420px), 1080px);
  margin-left: max(350px, calc((100vw - 1080px) / 2));
}
.project-editor-sidebar {
  left: 5%;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 0;
  width: 230px;
}
.project-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 4px;
}
.project-cover-panel,
.project-meta-panel {
  border: 0;
  background: #f0f0f0;
  border-radius: 20px;
}
.project-cover-drop {
  background: #e8e8e8;
  border-color: #d4d4d4;
}
.project-meta-panel input,
.project-meta-panel select {
  background: #fafafa;
  border-color: #ddd;
}
.project-meta-save {
  display: none;
}
.project-save-actions {
  flex: none;
  margin-top: 14px;
  padding: 14px;
  background: #f0f0f0;
  border-radius: 20px;
}
.project-save-status {
  font-size: 11px;
  line-height: 1.35;
  color: #888;
  margin-bottom: 10px;
}
.project-save-actions button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font:
    12px/1.35 'PT Sans',
    Arial,
    sans-serif;
  border: 1px solid #d6d6d6;
  background: transparent;
  color: #555;
  border-radius: 22px;
}
.project-save-actions button + button {
  margin-top: 8px;
}
.project-save-actions .ui-primary {
  background: #111;
  border-color: #111;
  color: #fafafa;
}
.project-save-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}
.project-save-actions button:not(:disabled):hover {
  background: #e4e4e4;
  color: #111;
}
.project-save-actions .ui-primary:not(:disabled):hover {
  background: #333;
  color: #fff;
}
.project-dirty-marker {
  position: absolute;
  left: -30px;
  top: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffb000;
  color: #111;
  box-shadow: 0 2px 8px #e39d0026;
  font:
    bold 14px/1 'PT Sans',
    Arial,
    sans-serif;
  z-index: 4;
}
.project-heading-editable > .project-dirty-marker {
  left: -64px;
  top: 4px;
}
.project-cover-dirty {
  position: fixed;
  z-index: 12;
}
.project-draft-badge {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 7px;
  border-radius: 12px;
  background: #ebebeb;
  color: #999;
  font:
    10px/1.3 'PT Sans',
    Arial,
    sans-serif;
  vertical-align: middle;
}
.admin-project-order-mode main.content {
  width: min(calc(100% - 420px), 1080px);
  max-width: 1080px;
  margin-left: max(350px, calc((100vw - 1080px) / 2));
  margin-right: auto;
}
.project-order-sidebar {
  position: fixed;
  left: 5%;
  top: 252px;
  bottom: 100px;
  width: 230px;
  display: flex;
  flex-direction: column;
  z-index: 8;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
}
.project-order-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 16px 10px 12px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.project-order-panel > .project-panel-title,
.project-order-panel > .project-panel-hint {
  padding: 0 6px;
}
.project-order-panel > .project-panel-hint {
  margin: 0 0 14px;
}
.project-order-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.project-order-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 7px 5px;
  border-radius: 12px;
  cursor: grab;
  border: 1px solid transparent;
}
.project-order-row:hover {
  background: #e8e8e8;
}
.project-order-row img,
.project-order-empty {
  width: 42px;
  height: 44px;
  object-fit: contain;
  background: #e5e5e5;
  flex: none;
  border-radius: 4px;
}
.project-order-grip {
  font-size: 18px;
  color: #aaa;
  flex: none;
  user-select: none;
}
.project-order-name {
  min-width: 0;
  flex: 1;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.project-order-name .project-draft-badge {
  margin: 4px 0 0;
  display: table;
  font-size: 9px;
  padding: 1px 5px;
  background: #e3e3e3;
}
.project-order-moves {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: none;
}
.project-order-moves button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  color: #999;
  font-size: 13px;
}
.project-order-moves button:disabled {
  opacity: 0.2;
  cursor: default;
}
.project-order-moves button:not(:disabled):hover {
  background: #111;
  color: #fff;
}
.project-order-target {
  border-color: #aaa !important;
  background: #e2e2e2 !important;
}
.project-order-dragging {
  opacity: 0.4;
}
.project-order-sidebar .project-save-actions {
  flex: none;
}
/* Each project column is an independent sequence, with its own insertion controls. */
.project-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.project-column-label {
  font:
    12px/1.3 'PT Sans',
    Arial,
    sans-serif;
  color: #aaa;
  margin: 0;
}
.project-column .project-block-actions {
  position: static;
  flex-direction: row;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.project-column .project-block-menu {
  min-width: 0;
  width: max-content;
  max-width: calc(100% + 24px);
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
}
.project-column .project-block-menu button {
  font-size: 12px;
  padding: 7px 8px;
  gap: 5px;
}
.project-column .project-photo-empty {
  aspect-ratio: 4/3;
  min-height: 120px;
}
.project-column .project-text-block {
  overflow-wrap: anywhere;
}
.project-spacer {
  height: var(--spacer-height);
  width: 100%;
  box-sizing: border-box;
}
.project-spacer-editing {
  min-height: 48px;
  border: 1px dashed #d5d5d5;
  border-radius: 14px;
  background: #f1f1f180;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-spacer-label {
  font:
    12px/1.3 'PT Sans',
    Arial,
    sans-serif;
  color: #999;
  pointer-events: none;
}
.project-spacer-handle {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  height: 26px;
  width: 52px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 18px;
  color: #888;
  cursor: ns-resize;
  touch-action: none;
}
.project-spacer-controls {
  padding-top: 22px;
  color: #999;
  font:
    12px/1.3 'PT Sans',
    Arial,
    sans-serif;
}
.project-spacer-controls label {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) 60px auto;
  align-items: center;
  gap: 8px;
}
.project-spacer-controls input[type='range'] {
  width: 100%;
  min-width: 0;
  accent-color: #888;
}
.project-spacer-controls input[type='number'] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  padding: 5px;
  font: inherit;
  color: #555;
}
body:not(.admin-project-mode) .project-blocks > .project-type-spacer {
  margin-block: -16px;
}
body:not(.admin-project-mode) .project-column > .project-type-spacer {
  margin-block: -12px;
}

/* Publication type follows the date; it is edited with the project snapshot. */
.project-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.project-heading-meta .date { margin-top: 0; }
.project-type-badge, .project-type-control select {
  display: inline-block; font: 12px/1.35 'PT Sans', Arial, sans-serif;
  color: #888; background: transparent; border: 1px solid #dedede;
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.project-type-control { position: relative; }
.project-type-control select {
  cursor: pointer; max-width: 100%; appearance: none; -webkit-appearance: none;
  padding-left: 10px; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px;
}
.project-card figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.project-card figcaption .project-type-badge { margin-left: auto; flex-shrink: 0; }
.project-save-actions .admin-owner-delete { display: flex; margin-inline: auto; justify-content: center; align-items: center; align-self: center; gap: 6px; width: auto; padding: 6px 10px; border: 0; background: transparent; color: #888; font-size: 12px; line-height: 1.35; }
.admin-owner-delete svg { width: 14px; height: 14px; }
.project-save-actions .admin-owner-delete:hover { color: #a33; }
.project-heading .project-title-edit { transform: translateY(-0.32em); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.project-save-actions { text-align: center; }

/* Captions occupy the image-to-image gutter rather than increasing it. */
@media (min-width: 651px) {
  .projects { display: block; position: relative; column-gap: 9vw; }
  .projects .project-card { position: absolute; }
  .projects .project-card > a { display: block; position: relative; }
  .projects .project-card img { display: block; }
  .projects .project-card figcaption { position: absolute; top: 100%; left: 0; right: 0; }
}

.diary-description .date {
  margin: 0 0 28px;
}
.diary-description h1 {
  margin-bottom: 16px;
}
.diary-title-field,
.diary-date-field,
.diary-description-field {
  position: relative;
}
.admin-diary-mode .diary-description {
  padding-left: 30px;
  flex-basis: 370px;
}
.diary-description .admin-post-pencil {
  left: -28px;
  right: auto;
  top: 0;
  width: 24px;
  height: 24px;
}
.diary-description .admin-post-pencil svg {
  width: 16px;
  height: 16px;
}
.diary-view-toggle {
  display: inline-flex;
  border: 1px solid #e1e1e1;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 30px;
  background: #fafafa;
  box-shadow: 0 1px 4px #00000006;
}
.diary-view-toggle a {
  padding: 10px 18px;
  font:
    13px/1.3 'PT Sans',
    Arial,
    sans-serif;
  color: #888;
}
.diary-view-toggle a + a {
  border-left: 1px solid #e1e1e1;
}
.diary-view-toggle a[aria-current='page'] {
  background: #eee;
  color: #111;
}
.diary-save-actions {
  margin-top: 24px;
  max-width: 270px;
}
.diary-add-slide {
  height: calc(var(--strip-height) - 70px);
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ddd;
  border-radius: 22px;
  color: #888;
  background: #f3f3f3;
  margin-right: 40px;
}
.diary-add-slide span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 32px;
  background: #fafafa;
}
.diary-photo-caption {
  font:
    12px/1.35 'PT Sans',
    Arial,
    sans-serif;
  text-align: left;
  color: #111;
  margin-top: 10px;
}
.diary-caption-name {
  color: #111;
}
.diary-caption-year,
.diary-caption-number,
.diary-file-size {
  color: #999;
}
.diary-caption-number,
.diary-file-size {
  display: block;
  margin-top: 3px;
}
.diary-slide {
  width: calc((var(--strip-height) - 70px) * var(--ratio));
}
.diary-slide > a {
  height: calc(var(--strip-height) - 70px);
}
.diary-manage-page {
  margin: 64px 5% 90px;
}
.diary-edit-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.diary-edit-grid > .diary-description {
  height: auto;
  max-height: calc(100vh - 300px);
  position: sticky;
  top: 30px;
  padding-right: 8px;
  overflow-y: auto;
  margin: 0;
}
.diary-grid-content {
  min-width: 0;
}
.diary-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 0.5px solid #ddd;
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.diary-grid-toolbar p {
  font-size: 12px;
  line-height: 1.4;
  color: #999;
}
.diary-add-photos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fafafa;
  border-radius: 28px;
  padding: 11px 20px;
  font-size: 13px;
  white-space: nowrap;
}
.diary-add-photos svg {
  width: 16px;
  height: 16px;
}
.diary-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.diary-photo-card {
  position: relative;
  min-width: 0;
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 1px 3px #00000003;
}
.diary-edit-grid .diary-photo-card {
  cursor: grab;
}
.diary-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  height: 20px;
}
.diary-card-toolbar input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  margin: 0;
  cursor: pointer;
}
.diary-card-toolbar input:checked {
  background: #111;
  border-color: #111;
}
.diary-card-toolbar input:checked:after {
  content: '✓';
  display: block;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 16px;
}
.diary-card-toolbar button {
  font-size: 15px;
  color: #999;
  letter-spacing: 1px;
  padding: 6px;
}
.diary-photo-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}
.diary-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.diary-photo-card .diary-photo-caption {
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.diary-file-size {
  font-size: 11px;
  margin-top: 12px;
}
.diary-card-target {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}
.diary-card-dragging {
  opacity: 0.4;
}
.diary-photo-card > .project-dirty-marker {
  left: -10px;
  top: -10px;
}
.diary-empty-add {
  width: 100%;
  padding: 70px 24px;
  border: 1px dashed #ddd;
  border-radius: 24px;
  color: #999;
}
.diary-meta-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
#diary-meta-modal,
#new-diary-modal {
  width: 460px;
  padding: 30px;
  border-radius: 26px;
}
#diary-meta-modal label,
#new-diary-modal label {
  display: block;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #888;
  margin: 14px 0;
}
#diary-meta-modal input,
#diary-meta-modal select,
#new-diary-modal input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fafafa;
  font:
    15px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #111;
}
.diary-meta-preview {
  max-height: 160px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 18px;
}
.diary-meta-size {
  color: #aaa;
  font-size: 12px;
}
.admin-diary-mode .diary-gallery-actions {
  visibility: hidden;
  height: 0;
  margin-bottom: 0;
}
.admin-diary-mode .diary-scroll-page {
  margin-top: 64px;
}
@media (max-width: 1450px) {
  .diary-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .diary-edit-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 1100px) {
  .diary-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .diary-manage-page {
    margin-top: 36px;
  }
  .diary-slide {
    width: 100%;
  }
  .diary-slide > a {
    height: auto;
  }
}

.admin-diary-mode .diary-description {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.diary-copy-scroll {
  flex: 1;
  min-height: 70px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 0 30px;
  margin-left: -30px;
  scrollbar-width: thin;
}
.admin-diary-mode .diary-description > .diary-view-toggle {
  flex: none;
  align-self: flex-start;
  margin-top: 18px;
}
.admin-diary-mode .diary-description > .diary-save-actions {
  flex: none;
  margin-top: 14px;
  width: 100%;
  max-width: none;
}
.diary-edit-grid > .diary-description {
  height: calc(100vh - 300px);
  min-height: 330px;
  max-height: none;
}
.admin-diary-mode .diary-strip {
  --strip-height: 420px;
}
.diary-cover-placeholder {
  display: block;
  aspect-ratio: 4/3;
  background: #eee;
}
.admin-diary-mode .diary-date-field {
  min-height: 30px;
  margin-bottom: 20px;
}
.admin-diary-mode .diary-date-field .date {
  margin: 0;
}
.admin-diary-mode .diary-date-field .date:empty:before {
  content: 'Годы';
  color: #bbb;
}
.admin-diary-mode .diary-description-field {
  min-height: 45px;
}
.admin-diary-mode .diary-description-field .description:empty:before {
  content: 'Добавить описание';
  color: #bbb;
  font-size: 14px;
}

.diary-card-toolbar {
  position: relative;
}
.diary-photo-menu {
  position: absolute;
  right: -4px;
  top: 30px;
  min-width: 200px;
  background: #fafafa;
  color: #555;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 35px #00000012;
  z-index: 10;
  cursor: default;
}
.diary-photo-menu[hidden] {
  display: none;
}
.diary-photo-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  border-radius: 12px;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  letter-spacing: 0;
  color: #555;
  white-space: nowrap;
}
.diary-photo-menu button:hover {
  background: #eee;
  color: #111;
}
.diary-photo-menu svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.diary-photo-card.diary-cover-card {
  background: #111;
  border-color: #111;
  color: #fafafa;
}
.diary-cover-card .diary-caption-name {
  color: #fafafa;
}
.diary-cover-card .diary-caption-year,
.diary-cover-card .diary-caption-number,
.diary-cover-card .diary-file-size {
  color: #aaa;
}
.diary-cover-card .diary-card-toolbar > button {
  color: #ddd;
}
.diary-cover-card .diary-card-toolbar input {
  background: #333;
  border-color: #777;
}
.diary-cover-card .diary-card-toolbar input:checked {
  background: #fafafa;
  border-color: #fafafa;
}
.diary-cover-card .diary-card-toolbar input:checked:after {
  color: #111;
}
/* Keep the author text column identical across List and Grid. */
.admin-diary-mode .diary-edit-grid {
  margin-left: 24px;
  margin-right: 24px;
  grid-template-columns: 370px minmax(0, 1fr);
  column-gap: 64px;
}
.admin-diary-mode .diary-edit-grid > .diary-description {
  width: 370px;
  min-height: 0;
  max-height: none;
  padding: 0 20px 12px 30px;
  margin: 0;
}
.admin-diary-mode .diary-description > .diary-view-toggle {
  width: 100%;
  align-self: stretch;
}
.diary-view-toggle a {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.flow-image video,
.admin-draft-images video,
.project-photo-slot video,
.grid video {
  display: block;
  width: 100%;
  height: auto;
}
.diary-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.diary-photo-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.viewer-image video {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 190px);
  width: auto;
  height: auto;
}
.project-meta-preview video {
  max-height: 150px;
}
.flow-text {
  overflow-wrap: anywhere;
}
.project-heading h1,
.diary-title-field h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .diary-slide video {
    height: auto;
  }
  .viewer-image video {
    max-height: calc(100svh - 180px);
  }
}

.home-editor-note {
  color: #888;
  margin: 24px 0 36px;
}
.home-image-pools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.home-image-pool {
  background: #f0f0f0;
  border-radius: 24px;
  padding: 24px;
  min-width: 0;
}
.home-pool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-pool-heading h2 {
  font:
    24px/1.3 'PT Sans',
    Arial,
    sans-serif;
  margin: 0;
}
.home-image-pool > p {
  color: #888;
  font-size: 14px;
  margin: 10px 0 24px;
}
.home-images-editor button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: #fafafa;
  color: #333;
  padding: 10px 16px;
  font:
    16px/1.3 'PT Sans',
    Arial,
    sans-serif;
  cursor: pointer;
}
.home-images-editor button:disabled {
  opacity: 0.35;
  cursor: default;
}
.home-images-editor button svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.home-image-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-image-thumbs.mobile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-image-thumbs figure {
  margin: 0;
  min-width: 0;
}
.home-image-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.home-image-thumbs figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
  font-size: 14px;
  margin: 8px 0 12px;
}
.home-image-thumbs figcaption > div {
  display: flex;
  gap: 4px;
}
.home-image-thumbs figcaption button {
  padding: 7px;
  border: 0;
  background: transparent;
}
.home-images-editor .home-image-drop {
  width: 100%;
  min-height: 110px;
  border: 1px dashed #ccc;
  background: transparent;
  border-radius: 16px;
  color: #888;
  font-size: 14px;
  margin-top: 12px;
}
.home-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 28px 0;
}
.home-editor-actions > span {
  margin-right: auto;
  color: #888;
  font-size: 14px;
}
.home-images-editor .ui-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.admin-avatar-tools button[data-admin-action='home'] svg {
  width: 20px;
  height: 20px;
}
.admin-avatar-tools button[data-admin-action='add'] svg {
  width: 26px;
  height: 26px;
}
.admin-avatar-tools button[data-admin-action='add'] {
  background: #111;
  color: #fff;
}
.admin-avatar-tools button[data-admin-action='add']:hover {
  background: #333;
  color: #fff;
}
