/* AG26 — rebuilt from the Adobe Portfolio "Marta" theme used on ag25.online */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #000;
  --text: #eee;
  --muted: #888;
  --footer: #555;
  --pad: 4vw;                        /* side margin (vw so full-bleed blocks can cancel it exactly) */
  --gutter: 8px;
  --rh: clamp(150px, 20vw, 340px);   /* target row height of the photo grids */
  --font: "Bebas Neue", "Bebas Kai", "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 160px;
  padding: 0 var(--pad) 10px;
}
.nav { display: flex; gap: 24px; flex: 1; }
.nav a, .mobile-nav a {
  font-size: 19px;
  line-height: 24px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: opacity .2s ease;
}
.nav a:hover { opacity: .6; }
.logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 150px;
}
.logo picture, .logo img { display: block; width: 150px; height: 150px; }
.hamburger { display: none; }

/* ---------- page header ---------- */
.page-header { padding: 30px var(--pad) 80px; text-align: center; }
.page-header h1 {
  margin: 0;
  padding-bottom: 14px;
  font-size: 30px;
  line-height: 40px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
}
.page-header p {
  margin: 0;
  padding-bottom: 14px;
  font-size: 20px;
  line-height: 22px;
  color: var(--muted);
  text-transform: uppercase;
}
.page-header p a { color: var(--text); }

/* ---------- justified photo grid ---------- */
main { padding: 0 var(--pad); overflow-x: hidden; overflow-x: clip; }
.page-header { margin: 0 calc(var(--pad) * -1); }
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--gutter) / -2) 0;
}
.grid + .grid { margin-top: 0; }
.grid-item {
  position: relative;
  display: block;
  width: calc(var(--a) * var(--rh));
  margin: 0 calc(var(--gutter) / 2) var(--gutter);
  background: rgba(255, 255, 255, .03);
  cursor: zoom-in;
  overflow: hidden;
}
.grid-item > span { display: block; }
.grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.grid-item img.loaded { opacity: 1; }
.grid-spacer { flex-grow: 1000000; height: 0; }
/* when JS has laid out the rows, sizes are exact */
.grid.justified .grid-item { flex: 0 0 auto; }

/* ---------- project covers ---------- */
.covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4px;
  row-gap: 5px;
}
.cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.cover img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: opacity 1.2s ease, filter .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.cover img.portrait { object-position: 50% 30%; }   /* keeps faces in frame when a vertical photo fills a wide cover */
.cover img.slide-next { opacity: 0; }
.cover-details {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8%;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .3s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
  transform: translateY(8px);
  pointer-events: none;
}
.cover-title {
  font-size: clamp(24px, 2.8vw, 48px);
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cover-date { padding-top: 10px; font-size: clamp(15px, 1.2vw, 20px); line-height: 1.2; letter-spacing: .12em; }

@media (hover: hover) {
  /* hover: the photo blurs and dims so the project name always reads, on light or dark photos */
  .cover:hover img, .cover:focus-visible img {
    filter: blur(8px) brightness(.55) saturate(.85);
    transform: translate(-50%, -50%) scale(1.07);   /* the zoom hides blurred edges */
  }
  .cover:hover .cover-details, .cover:focus-visible .cover-details { opacity: 1; transform: none; }
}
/* phones & tablets have no hover: show the name small in a corner over a soft shade */
@media (hover: none) {
  .cover-details {
    opacity: 1;
    transform: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 64px 14px 12px;
    text-align: left;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  }
  .cover-title { font-size: 20px; }
  .cover-date { padding-top: 2px; font-size: 13px; }
}

.other-projects { padding: 28px 0; }
.other-projects h2 {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text);
}

/* ---------- contact ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: #3a3a3a;
  color: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: .02em;
  outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9a9a9a; text-transform: uppercase; }
.contact-form input:focus, .contact-form textarea:focus { background: #474747; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  align-self: flex-start;
  padding: 8px 18px 6px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-form button:hover { background: #ddd; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer + back to top ---------- */
.site-footer {
  clear: both;
  padding: 60px var(--pad) 100px;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  color: var(--footer);
}
.back-to-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  background: rgba(255, 255, 255, .1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, background .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: rgba(255, 255, 255, .2); }
.back-to-top svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  fill: #fff;
  opacity: .3;
}
.back-to-top:hover svg { opacity: .5; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .96);
  opacity: 0;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; }
.lightbox:focus { outline: none; }
.lightbox img {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
.lightbox button {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 0;
  background: none;
  color: #fff;
  opacity: .6;
  cursor: pointer;
}
.lightbox button:hover { opacity: 1; }
.lightbox button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
.lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  color: #777;
  letter-spacing: .05em;
}

/* ---------- mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mobile-nav a { font-size: 30px; line-height: 34px; }
.mobile-nav-close {
  position: absolute;
  top: 40px;
  right: 5%;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
}
.mobile-nav-close::before, .mobile-nav-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 28px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.mobile-nav-close::after { transform: rotate(-45deg); }

/* ---------- tablets & small laptops ---------- */
@media (max-width: 932px) {
  :root { --pad: 5vw; --rh: clamp(170px, 30vw, 280px); }
  .nav { display: none; }
  .logo { top: 30px; width: 90px; }
  .logo picture, .logo img { width: 90px; height: 90px; }
  .hamburger {
    display: block;
    margin-left: auto;
    padding: 10px 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .hamburger i { display: block; width: 24px; height: 2px; margin-bottom: 4px; background: #fff; }
  .hamburger i:last-child { margin-bottom: 0; }
  .page-header { padding: 18px var(--pad) 40px; }
  .page-header h1 { font-size: 26px; line-height: 32px; }
  .page-header p { font-size: 18px; line-height: 22px; }
  .site-footer { padding: 28px var(--pad) 40px; font-size: 14px; line-height: 16px; }
  .back-to-top { display: none; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- phones: full-bleed photos, one cover per row ---------- */
@media (max-width: 600px) {
  /* ~2 portraits or 1 landscape per row, so every photo is big enough to read */
  :root { --gutter: 6px; --rh: 52vw; }
  .site-header { height: 140px; padding-bottom: 6px; }
  .logo { top: 40px; width: 60px; }
  .logo picture, .logo img { width: 60px; height: 60px; }
  .page-header { padding: 6px var(--pad) 26px; }
  .page-header h1 { font-size: 22px; line-height: 26px; padding-bottom: 8px; }
  .page-header p { font-size: 15px; line-height: 18px; padding-bottom: 0; }
  .grid { margin-left: calc(-1 * var(--pad) - var(--gutter) / 2); margin-right: calc(-1 * var(--pad) - var(--gutter) / 2); }
  .covers {
    grid-template-columns: 1fr;
    row-gap: 6px;
    margin: 0 calc(-1 * var(--pad));
  }
  .other-projects { padding: 22px 0 0; }
  .other-projects h2 { font-size: 16px; margin-bottom: 12px; }
  .site-footer { padding: 32px var(--pad) calc(40px + env(safe-area-inset-bottom)); }
  .lightbox img { max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); }
  .lb-count { bottom: calc(22px + env(safe-area-inset-bottom)); }
  .lb-prev, .lb-next { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .contact-form { gap: 18px; }
  .contact-form input, .contact-form textarea { font-size: 16px; } /* stops iOS from zooming into fields */
}

/* phones held sideways: keep rows short enough to see a full row on screen */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --rh: 38vh; }
  .site-header { height: 110px; }
  .logo { top: 25px; width: 60px; }
  .logo picture, .logo img { width: 60px; height: 60px; }
}

/* very large screens: let rows grow a little, but cap the page width so photos stay sharp */
@media (min-width: 1800px) {
  :root { --rh: clamp(340px, 17vw, 440px); }
  main { max-width: 2400px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
