/* Client components and their responsive rules.
 * Keep ordered overrides intact; see web/static/styles/README.md. */

.client-page {
  background: #f7f5ef;
}
.unlock-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 100vh;
}
.unlock-photo {
  position: relative;
  color: white;
}
.unlock-photo > img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.unlock-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(19, 23, 18, 0.65), transparent 55%);
}
.client-brand {
  position: absolute;
  left: 40px;
  top: 30px;
  z-index: 2;
  font:
    700 23px Georgia,
    serif;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
}
.client-brand .brand-mark {
  font:
    700 16px Georgia,
    serif;
}
.unlock-photo > div {
  position: absolute;
  z-index: 2;
  left: 60px;
  bottom: 65px;
}
.unlock-photo small,
.unlock-panel small,
.client-cover small {
  font-size: 8px;
  letter-spacing: 0.24em;
}
.unlock-photo h1 {
  font-size: 54px;
  margin: 10px 0;
}
.unlock-panel {
  display: grid;
  place-items: center;
  padding: 55px;
  min-width: 0;
}
.unlock-panel form {
  width: min(380px, 100%);
}
.unlock-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  font:
    28px Georgia,
    serif;
  margin-bottom: 45px;
}
.unlock-panel h2 {
  font-size: 42px;
  margin: 13px 0 20px;
}
.unlock-panel > form > p {
  font:
    14px/1.7 Georgia,
    serif;
  color: var(--muted);
  margin-bottom: 28px;
}
.unlock-panel label {
  margin-bottom: 16px;
}
.privacy-note {
  text-align: center;
  font-size: 8px;
  color: var(--muted);
  margin-top: 28px;
}
.client-header {
  display: grid;
  align-items: center;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
  background: #f7f5ef;
  height: auto;
  min-height: 74px;
  gap: 16px;
  padding-block: 12px;
  grid-template-columns: minmax(86px, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.client-wordmark {
  font:
    700 23px Georgia,
    serif;
  font-size: 0;
  line-height: 0;
  display: flex;
  align-items: center;
}
.client-header > div {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.client-header > div span {
  font:
    14px Georgia,
    serif;
}
.client-header > div small {
  font-size: 8px;
  color: var(--muted);
}
.client-header nav {
  justify-self: end;
  display: flex;
  gap: 14px;
  font-size: 9px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.client-header button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.client-download-options,
.client-download-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.download-note [data-save-device] {
  display: block;
  margin: 16px 0;
}
.download-note [data-device-status] {
  font-size: 12px;
}
.download-note {
  scroll-margin-top: 20px;
  width: min(720px, calc(100% - 30px));
  margin: 90px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px;
}
.client-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #20241f;
  color: white;
  text-align: center;
}
.client-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 18, 14, 0.28);
  pointer-events: none;
}
.client-cover > .cover-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.client-cover > div {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 24px;
  overflow-wrap: anywhere;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
}
.client-cover h1 {
  font-size: clamp(55px, 8vw, 104px);
  margin: 15px 0;
}
.client-cover p {
  font:
    italic 18px Georgia,
    serif;
}
.client-cover span {
  font-size: 9px;
  letter-spacing: 0.18em;
}
.masonry {
  columns: 2;
  column-gap: 10px;
  padding: 0 10px;
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 10px;
  position: relative;
  background: #e3e0d7;
}
.masonry img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.photo-actions {
  position: absolute;
  display: flex;
  gap: 7px;
  top: auto;
  bottom: 4px;
  right: 4px;
  height: min(44px, calc(100% - 8px));
}
.photo-actions a,
.heart {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
}
.heart {
  color: #7e817b;
}
.heart.selected {
  background: var(--rust);
  color: white;
}
.download-note > span {
  font-size: 28px;
}
.download-note strong {
  font:
    18px Georgia,
    serif;
}
.download-note p {
  font-size: 9px;
  color: var(--muted);
  margin: 3px 0;
}
.client-footer {
  background: #20241f;
  color: white;
  padding: 45px;
  display: flex;
  justify-content: space-between;
}
.client-footer div {
  display: flex;
  flex-direction: column;
}
.client-footer strong {
  font:
    18px Georgia,
    serif;
}
.client-footer span,
.client-footer a {
  font-size: 8px;
  color: #abb1a9;
  letter-spacing: 0.12em;
}
@media (max-width: 1000px) {
  .unlock-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .unlock-layout {
    grid-template-columns: 1fr;
  }
  .unlock-photo > div {
    left: 25px;
    bottom: 25px;
  }
  .unlock-panel {
    padding: 50px 25px;
  }
  .unlock-mark {
    margin-bottom: 25px;
  }
  .client-header {
    height: auto;
    min-height: 74px;
  }
  .client-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .client-header nav button {
    min-height: 44px;
  }
  .client-header > div {
    display: none;
  }
  .client-cover h1 {
    font-size: 54px;
  }
  .masonry {
    columns: 2;
  }
  .masonry .photo-actions {
    gap: 4px;
  }
  .photo-actions a,
  .heart {
    width: 44px;
    height: 44px;
  }
  .client-footer {
    padding: 35px 20px;
    gap: 20px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }
}
.client-brand img {
  width: 115px;
  height: 40px;
}
.client-wordmark img {
  width: 86px;
  height: 30px;
}
.delivered-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivered-brand > span {
  font-size: 8px;
  color: #abb1a9;
  letter-spacing: 0.12em;
}
.delivered-brand img {
  width: 75px;
  height: 27px;
}
.client-footer .delivered-brand span {
  font-size: 8px;
  color: #abb1a9;
  letter-spacing: 0.12em;
}
.masonry figure[hidden] {
  display: none !important;
}
.client-header [data-client-filter] {
  border-radius: 2px;
  padding: 6px 9px;
}
.client-header [data-client-filter].active {
  background: var(--ink);
  color: white;
}
.client-filter-empty {
  text-align: center;
  padding: 65px 20px 110px;
}
.client-filter-empty strong {
  font:
    24px Georgia,
    serif;
}
.client-filter-empty p {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 480px) {
  .client-cover h1 {
    font-size: clamp(32px, 10vw, 48px);
  }
}
@media (min-width: 721px) {
  .masonry {
    columns: 3;
  }
}
@media (min-width: 1200px) {
  .masonry {
    columns: 4;
  }
}
.photo-open {
  display: block;
}
.photo-open:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
.photo-actions form {
  height: 100%;
}
.photo-actions a,
.photo-actions .heart,
.viewer-close {
  width: 44px;
  height: 100%;
  color: white;
  background: rgba(20, 24, 22, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.photo-actions .heart.selected {
  background: rgba(156, 65, 44, 0.8);
}
.photo-actions :focus-visible,
.viewer-close:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}
.photo-actions [role="status"]:not(:empty) {
  position: absolute;
  right: 0;
  top: 100%;
  width: 180px;
  padding: 8px;
  background: #20241f;
  color: white;
  font-size: 12px;
  z-index: 3;
}
.photo-viewer {
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  max-width: 100vw;
  max-height: 100svh;
  overflow: visible;
}
.photo-viewer::backdrop {
  background: rgba(10, 12, 11, 0.92);
  backdrop-filter: blur(8px);
}
.viewer-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 120px;
}
.viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 100px);
  object-fit: contain;
}
.viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}
.viewer-actions {
  top: auto;
  bottom: 8px;
  right: 8px;
  height: 44px;
}
.viewer-status {
  margin: 0;
}
.client-description {
  white-space: pre-line;
  max-width: 650px;
  margin-inline: auto;
  max-height: 35svh;
  overflow: auto;
}
html:has(.photo-viewer[open]) {
  overflow: hidden;
}
.scroll-to-top {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(20, 24, 22, 0.65);
  color: white;
  font-size: 24px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.scroll-to-top:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.client-page) {
    scroll-behavior: smooth;
  }
}
.client-header,
.unlock-photo h1,
.client-footer {
  overflow-wrap: anywhere;
}
.client-header .mobile-menu-panel {
  display: block;
  text-align: left;
  font-size: 15px;
  color: var(--ink);
}
.client-header .mobile-menu-panel button {
  border: 1px solid var(--ink);
  background: transparent;
}
.unlock-navigation {
  position: absolute;
  z-index: 3;
  top: 30px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.unlock-navigation .client-brand {
  position: static;
}
.unlock-navigation .mobile-menu {
  color: var(--ink);
  background: var(--paper);
  border-radius: 3px;
}
.client-header button,
.client-header a {
  min-height: 44px;
}
.download-note > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .client-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px 15px;
  }
  .client-header nav {
    font-size: 12px;
    gap: 4px 8px;
  }
  .client-header nav button {
    font-size: 12px;
    padding: 8px;
  }
  .client-brand {
    left: 25px;
    top: 20px;
  }
  .unlock-navigation {
    left: 25px;
    right: 25px;
    top: 20px;
  }
  .unlock-photo {
    height: max(260px, 43svh);
  }
  .unlock-photo > img {
    height: 100%;
  }
  .unlock-photo > div {
    right: 25px;
    max-height: calc(100% - 110px);
    overflow-y: auto;
  }
  .unlock-photo h1 {
    font-size: clamp(28px, 9vw, 40px);
  }
  .unlock-panel h2 {
    font-size: 36px;
  }
  .download-note {
    align-items: flex-start;
    gap: 12px;
    padding: 24px 12px;
    margin-block: 55px;
  }
  .download-note p {
    font-size: 12px;
  }
  .client-footer span,
  .client-footer a,
  .client-footer .delivered-brand span {
    font-size: 10px;
  }
}
