/* Hallmark v2.0.0 · built: existing AKKO public theme · redesign: polish · brand: AKKO · copy: preserved */
/* Repair keyboard focus, form feedback, mobile photography and catalogue controls. */
:root {
  --akko-ui-ink: #111111;
  --akko-ui-paper: #ffffff;
  --akko-ui-error: #962525;
  --akko-ui-rule: #bebebe;
  --akko-ui-muted: #626262;
  --akko-ui-clear: transparent;
  --akko-ui-space-xs: 8px;
  --akko-ui-space-sm: 12px;
  --akko-ui-space-md: 16px;
  --akko-ui-space-lg: 24px;
}
body.shared-ui main form.akko-wp-form.home-contact-form .smartplaceholder :is(input, textarea):focus,
body.shared-ui .akko-wp-form :is(input, textarea, select):focus-visible,
body.shared-ui :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--akko-ui-ink) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 3px var(--akko-ui-paper) !important;
  transition: none !important;
}
body.shared-ui .akko-wp-form :is(input, textarea, select)[aria-invalid="true"] {
  border-bottom-color: var(--akko-ui-error) !important;
}
body.shared-ui .akko-wp-form .akko-client-error,
body.shared-ui .akko-wp-form .akko-form-feedback {
  display: block;
  color: var(--akko-ui-error) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: var(--akko-ui-space-xs) 0 0;
}
body.shared-ui .akko-wp-form .akko-client-error:empty,
body.shared-ui .akko-wp-form .akko-form-feedback[hidden] { display: none; }
body.shared-ui .akko-wp-form[aria-busy="true"] .akko-submit { cursor: progress; }
body.shared-ui .akko-wp-form :is(button, input, textarea):disabled {
  opacity: .55; cursor: not-allowed;
}
body.page-projects .project-page-body {
  display: grid;
  grid-template-columns: minmax(10rem, .3fr) minmax(0, 1fr);
  gap: var(--akko-ui-space-lg);
  align-items: start;
}
body.page-projects .project-page-body > .vertical-nav-wrap {
  position: static; grid-column: 1; grid-row: 1 / span 3;
  width: auto; height: auto;
}
body.page-projects .project-page-body > .grid-list-switch {
  position: static !important; inset: auto !important;
  grid-column: 2; grid-row: 1; justify-self: end;
  display: flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: var(--akko-ui-space-xs);
  width: auto; margin: 0; padding: 0;
}
body.page-projects .grid-list-switch button {
  width: 44px; height: 44px; min-height: 44px;
  background-size: 28px 28px; cursor: pointer;
}
body.page-projects .grid-list-switch button[aria-pressed="false"] { opacity: .65; }
body.page-projects .grid-list-switch button[aria-pressed="true"] {
  opacity: 1; outline: 1px solid var(--akko-ui-ink); outline-offset: 1px;
}
body.page-projects .project-page-body > .main-project-gallery {
  grid-column: 2; grid-row: 2; min-width: 0; width: 100%; margin: 0; padding: 0;
}
body.page-projects .main-project-gallery .ul-wrap { width: 100%; min-width: 0; }
body.page-projects .main-project-gallery #project-results {
  padding: 0 !important; margin: 0 !important; width: 100%; list-style: none;
}
body.page-projects .main-project-gallery[data-style="grid-style"] #project-results {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--akko-ui-space-lg);
}
body.page-projects .main-project-gallery #project-results > li {
  width: auto !important; min-width: 0; padding: 0; float: none;
}
body.page-projects .main-project-gallery[data-style="list-style"] #project-results { display: block; }
body.page-projects .main-project-gallery[data-style="list-style"] .list-header,
body.page-projects .main-project-gallery[data-style="list-style"] .list-details {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(5rem, .4fr);
  align-items: center; gap: var(--akko-ui-space-md);
  width: 100%; box-sizing: border-box;
}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header {
  position: static !important; height: auto !important; min-height: 44px;
  padding: 0 !important; margin: 0 0 var(--akko-ui-space-md); font-size: 12px;
}
body.page-projects .main-project-gallery[data-style="list-style"] .list-details {
  min-height: 64px; padding: var(--akko-ui-space-md) 0 !important;
  border-bottom: 1px solid var(--akko-ui-rule);
}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header > *,
body.page-projects .main-project-gallery[data-style="list-style"] .list-details > span {
  width: auto !important; min-width: 0; padding: 0 !important; margin: 0;
}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header button {
  min-height: 44px; min-width: 44px; font: inherit;
  background: var(--akko-ui-clear); color: inherit; border: 0; text-align: left; cursor: pointer;
}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header button:disabled {
  opacity: .6; cursor: not-allowed;
}
body.page-projects .main-project-gallery[data-style="list-style"] .list-details > .backing { display: none; }
body.page-projects .list-details .akko-year-missing { color: var(--akko-ui-muted); font-size: 12px; font-weight: 400; }
body.page-projects .akko-year-note { flex-basis: 100%; width: 100%; text-align: right; margin: var(--akko-ui-space-xs) 0; font-size: 12px; line-height: 1.5; }
body.page-projects .vertical-nav button { min-height: 44px; padding-block: var(--akko-ui-space-xs); }
.akko-gallery-hint { display: none; }
@media (hover: hover) {
  body.page-projects .list-details:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 767px) {
  body.page-projects .project-page-body { grid-template-columns: minmax(0, 1fr); }
  body.page-projects .project-page-body > .vertical-nav-wrap { grid-column: 1; grid-row: 1; }
  body.page-projects .project-page-body > .grid-list-switch { grid-column: 1; grid-row: 2; }
  body.page-projects .project-page-body > .main-project-gallery { grid-column: 1; grid-row: 3; }
  body.page-projects .vertical-nav ul { display: flex; flex-wrap: wrap; gap: var(--akko-ui-space-xs); padding: 0; }
  body.page-projects .vertical-nav li { margin: 0; }
  body.page-projects .main-project-gallery[data-style="grid-style"] #project-results { grid-template-columns: minmax(0, 1fr); }
  body.page-project-detail main .project-gallery-sticky { height: auto; display: block; }
  body.page-project-detail main .project-gallery-viewport {
    width: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--akko-ui-space-md);
    overscroll-behavior-x: contain; scroll-margin-top: 160px;
  }
  body.page-project-detail main .project-gallery-track {
    gap: var(--akko-ui-space-md); padding: 0 var(--akko-ui-space-md);
  }
  body.page-project-detail main .project-gallery-frame {
    flex: 0 0 auto; width: calc(100svw - 48px); max-width: calc(100svw - 48px);
    scroll-snap-align: start;
  }
  body.page-project-detail main .project-gallery-frame img {
    width: 100%; max-width: 100%; height: auto; max-height: 70svh; object-fit: contain;
  }
  body.page-project-detail main .project-gallery-frame figcaption {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: var(--akko-ui-space-sm); font-size: 12px; line-height: 1.5;
    white-space: normal; overflow-wrap: break-word;
  }
  body.page-project-detail .akko-gallery-hint {
    display: block; margin: 0 var(--akko-ui-space-md) var(--akko-ui-space-sm);
    font-size: 14px; line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.shared-ui :is(input, textarea, select, button) { transition: none !important; }
}

/* Existing legacy rules use important declarations inside this cascade layer. */
@layer akko-legacy {
body.shared-ui main form.akko-wp-form.home-contact-form .smartplaceholder :is(input, textarea):focus,
body.shared-ui .akko-wp-form :is(input, textarea, select):focus-visible,
body.shared-ui :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible{
  outline: 3px solid var(--akko-ui-ink) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 3px var(--akko-ui-paper) !important;
  transition: none !important;}
body.shared-ui .akko-wp-form :is(input, textarea, select)[aria-invalid="true"]{
  border-bottom-color: var(--akko-ui-error) !important;}
body.shared-ui .akko-wp-form .akko-client-error,
body.shared-ui .akko-wp-form .akko-form-feedback{
  color: var(--akko-ui-error) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;}
body.page-projects .project-page-body > .grid-list-switch{
  position: static !important; inset: auto !important;}
body.page-projects .main-project-gallery #project-results{
  padding: 0 !important; margin: 0 !important;}
body.page-projects .main-project-gallery #project-results > li{
  width: auto !important;}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header,
body.page-projects .main-project-gallery[data-style="list-style"] .list-details{
  display: grid !important;}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header{
  position: static !important; height: auto !important;
  padding: 0 !important;}
body.page-projects .main-project-gallery[data-style="list-style"] .list-details{ padding: var(--akko-ui-space-md) 0 !important;}
body.page-projects .main-project-gallery[data-style="list-style"] .list-header > *,
body.page-projects .main-project-gallery[data-style="list-style"] .list-details > span{
  width: auto !important; padding: 0 !important;}
@media (prefers-reduced-motion: reduce){body.shared-ui :is(input, textarea, select, button){ transition: none !important;}
}
}
