/* Ana Bull — Art Portfolio: site styles. */
html, body { margin: 0; background: #fff; }

  #abp {
    --abp-bg: #ffffff;
    --abp-ink: #141414;
    --abp-muted: #8a8a8a;
    --abp-line: #e6e6e6;
    --abp-tile: #f5f5f3;
    background: var(--abp-bg);
    color: var(--abp-ink);
    /* Jost is a geometric sans in the Century Gothic family of looks. */
    font-family: "Jost", "Century Gothic", CenturyGothic, "Avenir Next", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 32px 96px;
    box-sizing: border-box;
  }
  #abp *, #abp *::before, #abp *::after { box-sizing: border-box; }
  #abp [hidden] { display: none !important; }

  #abp .abp-label {
    font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
    color: var(--abp-muted); margin: 0;
  }
  #abp .abp-display { font-weight: 300; letter-spacing: .04em; line-height: 1.05; margin: 0; }

  /* Buttons */
  #abp .abp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    font: inherit; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
    text-decoration: none; padding: 16px 30px; border-radius: 0; cursor: pointer;
    background: var(--abp-ink); color: #fff; border: 1px solid var(--abp-ink);
    transition: background .2s, color .2s;
  }
  #abp .abp-btn:hover { background: #fff; color: var(--abp-ink); }
  #abp .abp-btn.abp-ghost { background: transparent; color: var(--abp-ink); }
  #abp .abp-btn.abp-ghost:hover { background: var(--abp-ink); color: #fff; }
  #abp .abp-btn:focus-visible, #abp .abp-back:focus-visible { outline: 1px solid var(--abp-ink); outline-offset: 4px; }
  #abp .abp-back {
    text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 48px; color: var(--abp-ink);
  }
  #abp .abp-back:hover { color: var(--abp-muted); }

  /* ---------- Screen 1: home ---------- */
  #abp .abp-home { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; min-height: 70vh; }
  #abp .abp-home .abp-display { font-size: clamp(48px, 7vw, 96px); text-transform: uppercase; margin: 0 0 18px; }
  #abp .abp-role { margin-bottom: 56px; }
  #abp .abp-about .abp-label { color: var(--abp-ink); margin-bottom: 16px; }
  #abp .abp-about p { margin: 0 0 16px; max-width: 46ch; color: #444; }
  #abp .abp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
  #abp .abp-hero { overflow: hidden; background: var(--abp-tile); aspect-ratio: 4 / 5; }
  #abp .abp-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Screen 2: all work ---------- */
  #abp .abp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
  #abp .abp-head .abp-display { font-size: clamp(34px, 4.5vw, 56px); text-transform: uppercase; }
  #abp .abp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 28px; }
  #abp .abp-tile { display: block; color: inherit; text-decoration: none; }
  #abp .abp-thumb {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--abp-tile);
    display: flex; align-items: center; justify-content: center;
  }
  #abp .abp-thumb img, #abp .abp-thumb video {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s;
  }
  #abp .abp-thumb.abp-fit-contain img, #abp .abp-thumb.abp-fit-contain video { object-fit: contain; padding: 8%; }
  #abp .abp-tile:hover .abp-thumb img, #abp .abp-tile:hover .abp-thumb video { transform: scale(1.03); opacity: .92; }
  #abp .abp-tile:focus-visible .abp-thumb { outline: 1px solid var(--abp-ink); outline-offset: 4px; }
  #abp .abp-tile-title { font-size: 16px; font-weight: 400; margin: 18px 0 2px; }
  #abp .abp-count-badge {
    position: absolute; right: 12px; bottom: 12px; pointer-events: none;
    font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
    background: rgba(255,255,255,.92); color: var(--abp-ink); padding: 5px 10px;
  }
  #abp .abp-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--abp-muted); font-size: 12px; letter-spacing: .1em; text-align: center; padding: 16px; }
  #abp .abp-placeholder strong { font-size: 13px; font-weight: 400; letter-spacing: .22em; color: var(--abp-ink); }
  #abp .abp-thumb.abp-empty { border: 1px dashed #cfcfcb; }
  #abp .abp-play {
    position: absolute; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; pointer-events: none;
  }
  #abp .abp-play::after { content: ""; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--abp-ink); }

  /* ---------- Screen 3: one project ---------- */
  #abp .abp-piece { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
  #abp .abp-stage {
    background: var(--abp-tile); overflow: hidden;
    display: flex; align-items: center; justify-content: center; min-height: 320px;
  }
  #abp .abp-stage img, #abp .abp-stage video {
    display: block; max-width: 100%; max-height: min(78vh, 900px); width: auto; height: auto; object-fit: contain;
  }
  #abp .abp-stage video { width: 100%; }
  #abp .abp-stage .abp-frame { width: 100%; aspect-ratio: 16 / 9; }
  #abp .abp-stage .abp-frame.abp-pdf { aspect-ratio: auto; height: min(85vh, 960px); min-height: 520px; }
  #abp .abp-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
  #abp .abp-file-cap { margin: 12px 0 24px; color: var(--abp-muted); font-size: 13px; letter-spacing: .08em; }
  #abp .abp-file-cap:empty { display: none; }

  #abp .abp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  #abp .abp-strip a {
    cursor: pointer; aspect-ratio: 1 / 1; background: var(--abp-tile);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    outline: 1px solid transparent; outline-offset: 3px; opacity: .55; transition: opacity .2s, outline-color .2s;
  }
  #abp .abp-strip a:hover { opacity: .85; }
  #abp .abp-strip a[aria-current="true"] { opacity: 1; outline-color: var(--abp-ink); }
  #abp .abp-strip a:focus-visible { outline-color: var(--abp-ink); opacity: 1; }
  #abp .abp-strip img { width: 100%; height: 100%; object-fit: cover; }
  #abp .abp-strip span { font-size: 10px; letter-spacing: .18em; color: var(--abp-ink); }

  #abp .abp-info { position: sticky; top: 32px; padding-top: 8px; }
  #abp .abp-info .abp-label { margin-bottom: 14px; }
  #abp .abp-info .abp-display { font-size: clamp(28px, 3vw, 38px); margin-bottom: 24px; }
  #abp .abp-note { margin: 0 0 28px; color: #444; white-space: pre-line; }
  #abp .abp-link { color: var(--abp-ink); font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; text-underline-offset: 6px; }
  #abp .abp-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--abp-line); }
  #abp .abp-pager .abp-btn { padding: 12px 16px; font-size: 11px; }

  @media (max-width: 860px) {
    #abp .abp-home { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
    #abp .abp-hero { aspect-ratio: 4 / 3; order: -1; }
    #abp .abp-piece { grid-template-columns: 1fr; gap: 32px; }
    #abp .abp-info { position: static; }
  }
  @media (max-width: 600px) {
    #abp { padding: 32px 16px 64px; }
    #abp .abp-back { margin-bottom: 32px; }
    #abp .abp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
    #abp .abp-tile-title { font-size: 14px; }
    #abp .abp-count-badge { right: 8px; bottom: 8px; font-size: 10px; padding: 4px 7px; }
    #abp .abp-actions .abp-btn { flex: 1 1 100%; }
    #abp .abp-strip { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    #abp .abp-stage .abp-frame.abp-pdf { min-height: 440px; }
  }

  /* Things the Ruby pages add */
  #abp .abp-strip a span { font-size: 10px; letter-spacing: .18em; color: var(--abp-ink); }
  #abp .abp-strip a > span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
  #abp .abp-strip img, #abp .abp-strip video { width: 100%; height: 100%; object-fit: cover; display: block; }
  #abp .abp-pager .abp-btn[aria-disabled="true"] { visibility: hidden; }
  #abp .abp-notfound { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
  #abp .abp-notfound .abp-display { font-size: clamp(40px, 6vw, 72px); text-transform: uppercase; }
  #abp .abp-notfound .abp-btn { align-self: flex-start; }
