/* Shared by the Photos landing page and its three albums. */
.backdrop { position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 26%, #2a1c38 0%, #150e1e 55%, #07040b 100%); }
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; }
.page { max-width: 1000px; margin: 0 auto; padding: 52px 20px 90px; position: relative; z-index: 2; text-align: center; }
.head h1 { font-family: var(--display); font-weight: 400; margin: 0;
           font-size: clamp(44px, 12vw, 74px); line-height: 1.02; }
.head .sub { margin: 16px auto 0; max-width: 42ch; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.head .credit { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.04em; color: var(--text-dim); }
.head .credit a { color: var(--moon); text-decoration: none; }
.head .credit a:hover, .head .credit a:focus-visible { color: var(--ember); }
.sitenav { margin-top: 40px; }

/* Back to the landing page, above each album's title. */
.back { display: inline-block; margin-bottom: 26px; font-size: 13px; color: var(--moon); text-decoration: none; }
.back:hover, .back:focus-visible { color: var(--ember); }

/* The landing page: one card per album. */
.albums { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 42px auto 0; max-width: 420px; }
@media (min-width: 760px) { .albums { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.album { display: block; overflow: hidden; border: 1px solid var(--hair); border-radius: 6px; color: inherit;
         text-decoration: none; background: rgba(11, 7, 18, .78); box-shadow: 0 6px 18px rgba(0,0,0,.35);
         transition: border-color .18s ease; }
.album:hover, .album:focus-visible { border-color: var(--moon); }
.album .cover { display: block; aspect-ratio: 4 / 3; background: #150e1e; }
.album .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album .cover.empty { display: grid; place-items: center; color: var(--moon); font-family: var(--display); font-size: 42px; }
.album .label { padding: 16px 16px 18px; }
.album h2 { font-family: var(--display); font-weight: 400; font-size: 25px; margin: 0; }
.album .note { display: block; margin-top: 5px; font-size: 13px; color: var(--text-dim); }

/* Justified rows: photos read left to right in order (CSS columns read top to
   bottom, which scrambles a numbered set), at their natural aspect ratio, no
   cropping. Each tile's --ar (width / height) is both its grow factor and its
   basis, so every tile in a row stretches to the same height. The ::after
   spacer soaks up the last row, so a short final row isn't blown up. */
.gallery { --row: 150px; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 560px) { .gallery { --row: 200px; } }
@media (min-width: 900px) { .gallery { --row: 240px; } }
.gallery::after { content: ''; flex-grow: 1000; }
.gallery a { --ar: 1.5; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); min-width: 0;
             display: block; border-radius: 6px; overflow: hidden;
             border: 1px solid var(--hair); box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; display: block; background: #150e1e; }
.gallery a.vid { position: relative; }
.gallery a.vid::after { content: '\25B6'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(7,4,11,.6); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 20px; display: grid; place-items: center; padding-left: 4px; box-sizing: border-box; }
.gallery a.noposter { --ar: 1.778; aspect-ratio: 16 / 9; background: #150e1e; }
.gallery .by { display: block; text-align: left; font-size: 12px; color: var(--text-dim); padding: 6px 10px 8px; background: #150e1e; }
.empty-note { margin: 40px auto 0; max-width: 42ch; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* Lightbox: click a photo to view it larger in-page. */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7,4,11,.94);
            display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 90vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox [hidden] { display: none; }
.lightbox button { position: absolute; background: rgba(0,0,0,.4); color: #fff;
                   border: 1px solid rgba(255,255,255,.25); width: 48px; height: 48px; border-radius: 50%;
                   font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(0,0,0,.7); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } }

.sharecta { margin: 22px 0 0; }
.sharebtn { display: inline-block; padding: 13px 22px; border-radius: 3px; background: var(--ember);
            color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.sharebtn:hover, .sharebtn:focus-visible { filter: brightness(1.08); }
