:root {
  --bg: #0e0e10;
  --surface: #161619;
  --text: #f4f0e8;
  --muted: #aaa6a0;
  --line: rgba(244, 240, 232, .14);
  --red: #d81f2a;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
a { color: inherit; }
.client-wrap { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }

.client-header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 70px);
  border-bottom: 1px solid var(--line);
}
.client-brand img { display: block; width: 132px; height: 54px; object-fit: contain; }
.client-header nav { display: flex; gap: 20px; }
.client-header nav a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.client-header nav a:hover { color: var(--text); }

.client-hero,
.gallery-title {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 50px;
  align-items: end;
  padding-block: clamp(64px, 10vw, 145px) clamp(44px, 7vw, 90px);
}
.client-hero h1,
.gallery-title h1,
.gallery-login h1 {
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(3.6rem, 10vw, 9rem);
  letter-spacing: -.035em;
  line-height: .86;
  text-transform: uppercase;
}
.client-hero > p:last-child,
.gallery-title__copy { max-width: 560px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }
.client-kicker { color: var(--red); font-family: "Courier New", monospace; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 110px;
}
.gallery-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #08080a; }
.gallery-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-card:hover .gallery-card__media img { transform: scale(1.025); }
.gallery-card__private { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, #202026, #08080a 68%); }
.gallery-card__private img { width: min(46%, 190px); height: auto; object-fit: contain; opacity: .78; }
.gallery-card:hover .gallery-card__private img { transform: none; }
.gallery-card__lock { position: absolute; right: 12px; top: 12px; padding: 7px 10px; background: rgba(0,0,0,.72); font-size: .7rem; text-transform: uppercase; }
.gallery-card__body { padding: 22px; }
.gallery-card__meta { display: flex; justify-content: space-between; color: var(--muted); font: .72rem "Courier New", monospace; text-transform: uppercase; }
.gallery-card h2 { margin: 18px 0 5px; font-size: 1.6rem; }
.gallery-card h2 a { text-decoration: none; }
.gallery-card p { margin: 0 0 22px; color: var(--muted); }
.gallery-card__link { color: var(--red); font-size: .78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.client-empty { grid-column: 1/-1; padding: 70px; border: 1px solid var(--line); text-align: center; color: var(--muted); }

.gallery-title { grid-template-columns: 1.6fr 1fr; }
.gallery-title h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); }
.gallery-title__copy strong { color: var(--text); }
.gallery-title__copy p { font-size: 1rem; }
.gallery-title__copy span { font: .75rem "Courier New", monospace; text-transform: uppercase; }

.photo-gallery { display: grid; gap: 10px; padding-bottom: 100px; }
.photo-row { display: flex; min-height: 150px; gap: 10px; }
.photo-item { position: relative; min-width: 0; overflow: hidden; background: #08080a; cursor: zoom-in; }
.photo-item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.photo-item:hover img { transform: scale(1.02); }
.photo-download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.photo-item:hover .photo-download, .photo-download:focus { opacity: 1; }

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .95);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox button, .lightbox__download {
  position: absolute;
  border: 0;
  background: rgba(20,20,22,.9);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.lightbox__close { right: 22px; top: 22px; width: 48px; height: 48px; font-size: 2rem; }
.lightbox__prev, .lightbox__next { top: 50%; width: 54px; height: 64px; font-size: 1.7rem; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__download { left: 50%; bottom: 18px; transform: translateX(-50%); padding: 11px 18px; font-size: .78rem; text-transform: uppercase; }

.gallery-login {
  display: grid;
  min-height: calc(100vh - 170px);
  grid-template-columns: 1.2fr 1fr;
}
.gallery-login__visual { display: grid; place-items: center; background: linear-gradient(140deg,#17171a,#09090b); }
.gallery-login__visual img { width: min(55%, 430px); }
.gallery-login__card { display: flex; max-width: 620px; justify-content: center; flex-direction: column; padding: clamp(30px,7vw,100px); }
.gallery-login h1 { margin-bottom: 18px; font-size: clamp(3rem,7vw,6rem); }
.gallery-login__card > p:not(.client-kicker), .gallery-login__card > a { color: var(--muted); }
.gallery-login form { display: grid; gap: 14px; margin: 25px 0; }
.gallery-login label { display: grid; gap: 8px; font-size: .8rem; font-weight: 700; }
.gallery-login input { width: 100%; padding: 13px; border: 1px solid var(--line); background: #0b0b0d; color: var(--text); }
.gallery-login button { padding: 13px; border: 0; background: var(--red); color: white; font-weight: 800; cursor: pointer; }
.gallery-error { padding: 12px; border: 1px solid rgba(216,31,42,.55); color: #ffb4b9; }

.client-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 900px) {
  .gallery-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .client-hero, .gallery-title, .gallery-login { grid-template-columns: 1fr; }
  .gallery-login__visual { min-height: 260px; }
}
@media (max-width: 620px) {
  .client-wrap { width: min(100% - 24px, 1440px); }
  .client-header nav a:last-child { display: none; }
  .gallery-list { grid-template-columns: 1fr; }
  .photo-row { gap: 5px; }
  .photo-gallery { gap: 5px; }
  .photo-download { opacity: 1; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
  .client-footer { flex-direction: column; }
}
