@charset "UTF-8";

/* Shared stylesheet for interior portfolio pages.
   Uses the same colors, fonts and breakpoints as home-responsive.css
   (900px = tablet, 620px = phone). Replaces mycss2.css on converted pages. */

:root { --pad: 45px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #F2F2F2;
  color: #666;
  font-family: Verdana, Geneva, sans-serif;
}

a { color: #999; text-decoration: none; }
a:hover, a:focus-visible { color: #CC0000; }

.site-container {
  position: relative;
  overflow-x: clip;
  width: min(976px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 18px;
  background: #FFF;
  box-shadow: 1px 1px 4px 0 #ccc;
}

/* ---------- Header ---------- */
.site-header { padding: 30px var(--pad) 0; }
.header-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.site-logo { display: block; width: 240px; max-width: 100%; line-height: 0; }
.site-logo img { display: block; width: 100%; height: auto; border: 0; }
.header-tools { display: flex; align-items: flex-start; gap: 14px; }
.email-link { display: block; line-height: 0; }
.email-link img { display: block; width: 37px; height: auto; border: 0; }

.page-title {
  margin: 18px 0 35px;
  font: normal 14px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  color: #CC0000;
}

/* Menu button: only shown on phones, and only when JavaScript is running. */
.menu-button {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0; cursor: pointer;
  border: 1px solid #ddd; background: #FFF;
}
.menu-button span { display: block; width: 18px; height: 2px; background: #666; }
.nav-open .menu-button { border-color: #CC0000; }

/* ---------- Slideshow (native scroll-snap = swipe on touch, drag/scroll on desktop) ---------- */
.content { padding: 0 var(--pad); }
.slideshow { max-width: 886px; margin: 0 auto; }
.stage { position: relative; }

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid #CC0000; outline-offset: 2px; }

.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slide picture { display: block; }
.slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 886 / 711;
  background: #F7F7F7;
}
.slide figcaption {
  padding: 10px 0 0;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  color: #666;
}
.slide figcaption a { font-size: inherit; color: #CC0000; }

/* Arrows sit over the image area only (box has the image's aspect ratio) */
.arrows {
  display: none;
  position: absolute; top: 0; left: 0; right: 0;
  aspect-ratio: 886 / 711;
  justify-content: space-between; align-items: center;
  pointer-events: none;
}
.js .arrows { display: flex; }
.slide-btn {
  pointer-events: auto;
  width: 44px; height: 44px; margin: 0 6px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.35); color: #FFF;
  font-size: 18px; line-height: 44px; cursor: pointer;
  transition: background-color 0.3s ease;
}
.slide-btn:hover, .slide-btn:focus-visible { background: #CC0000; }

.slide-nav { display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 2px; margin-top: 8px; }
.js .slide-nav { display: flex; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; }
.dot { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: #BBB; transition: background-color 0.3s ease;
}
.dot:hover::before, .dot.active::before { background: #717171; }
.dot:focus-visible { outline: 2px solid #CC0000; border-radius: 50%; }
.counter { margin-left: 10px; font: 12px Arial, Helvetica, sans-serif; letter-spacing: 0.1em; color: #999; }

/* ---------- Navigation + decorative art ---------- */
.site-lower {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 40px var(--pad) 0;
}
.site-nav h2 {
  margin: 0;
  font: normal 14px/2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  color: #CC0000;
}
.site-nav h2 + ul { margin-bottom: 14px; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav li a {
  display: block;
  font: 13px/2 Verdana, Geneva, sans-serif;
  letter-spacing: 0.1em;
  color: #666;
}
.site-nav li a { white-space: nowrap; }
.site-nav li a::before { content: "+ "; color: #CC0000; font-size: 12px; }
.site-nav li a:hover, .site-nav li a:focus-visible,
.site-nav li a[aria-current="page"] { color: #CC0000; }

.edelweiss { justify-self: end; width: min(444px, 100%); height: auto; }

.site-footer { padding: 27px var(--pad) 0; text-align: right; }
.site-footer small { font: 9px/1.4 Arial, Helvetica, sans-serif; color: #999; }

/* Below 760px the nav and the art stack, so the nav can use the full width */
@media (max-width: 760px) {
  .site-lower { grid-template-columns: minmax(0, 1fr); }
  .edelweiss { justify-self: center; width: min(444px, 100%); }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  :root { --pad: 30px; }
}

/* ---------- Phone ---------- */
@media (max-width: 620px) {
  :root { --pad: 16px; }
  .site-header { padding-top: 22px; }
  .site-logo { width: min(220px, calc(100% - 112px)); }
  .email-link img { width: 32px; }
  .page-title { margin: 16px 0 20px; }
  .slide-btn { width: 38px; height: 38px; line-height: 38px; margin: 0 4px; }

  .site-lower { padding-top: 28px; }
  .site-nav li a { white-space: normal; }

  /* With JavaScript, the nav becomes a dropdown under the menu button.
     Without it, the nav simply stays as a list at the bottom of the page. */
  .js .menu-button { display: flex; }
  .js .site-nav {
    display: none;
    position: absolute; top: 66px; right: 16px; z-index: 20;
    width: min(300px, calc(100vw - 32px));
    max-height: min(70vh, 560px); overflow-y: auto;
    padding: 10px 16px;
    background: #FFF; border: 1px solid #E5E5E5;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.16);
  }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav li a { padding: 4px 0; line-height: 1.5; font-size: 12px; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-btn, .dot::before { transition: none; }
}

/* ======================================================================
   Added for bio, video and websites pages
   ====================================================================== */

/* ---------- Thumbnail grid (same look as the home page) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 35px;
  max-width: 886px;
  margin: 40px auto 0;
}
.portfolio-card { min-width: 0; margin: 0; }
.thumbnail-link {
  display: block; width: 100%; overflow: hidden; background: #FFF;
  box-shadow: 2px 2px 4px 0 #999; line-height: 0;
}
.thumbnail-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbnail-link:focus-visible { outline: 2px solid #CC0000; outline-offset: 4px; }
.card-caption { margin: 7px 0 0; font: 12px/1.4 Arial, Helvetica, sans-serif; color: #666; }

/* ---------- Lightbox (built by site.js from a[data-gallery]) ---------- */
.lightbox { padding: 0; border: 0; background: #FFF; width: min(960px, 96vw); max-height: 94vh; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.78); }
.lb-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; flex: 0 1 auto; min-height: 0;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; margin: 0; }
.lb-slide img { display: block; max-width: 100%; max-height: calc(94vh - 90px); width: auto; height: auto; object-fit: contain; }
.lb-caption { margin: 0; padding: 10px 56px 12px 14px; min-height: 52px; font: 12px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0.06em; color: #666; }
.lb-caption a { color: #CC0000; font-size: inherit; }
.lb-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #FFF; font-size: 24px; line-height: 40px; padding: 0; cursor: pointer; }
.lb-btn { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #FFF; font-size: 18px; padding: 0; cursor: pointer; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.lb-close:hover, .lb-btn:hover, .lb-close:focus-visible, .lb-btn:focus-visible { background: #CC0000; }
.lightbox.single .lb-btn { display: none; }

/* ---------- Bio ---------- */
.bio-layout { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 0 45px; max-width: 886px; margin: 0 auto; }
.bio-photo { position: relative; }
.bio-photo img { display: block; width: 156px; height: 156px; }
.cat { display: none; }
.bio-text { font: 12px/1.6 Verdana, Geneva, sans-serif; letter-spacing: 0.08em; color: #666; }
.bio-text p { margin: 0 0 1.3em; }
.bio-text h2 { margin: 1.8em 0 0.8em; font: normal 14px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0.1em; color: #666; }
@media (min-width: 901px) {
  /* The cat animation plays beside the photo, as on the original page */
  .cat { display: block; position: absolute; top: 41px; left: -45px; width: 248px; height: 327px; pointer-events: none; }
}

/* ---------- Video ---------- */
.media-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 30px; max-width: 886px; margin: 0 auto 32px; }
.media { flex: 1 1 300px; min-width: 0; max-width: 620px; }
.media video { display: block; width: 100%; height: auto; background: #000; }
.media-pair { display: flex; flex-wrap: wrap; gap: 20px; }
.media-pair video { flex: 1 1 280px; max-width: 300px; aspect-ratio: 6 / 5; }
.embed { position: relative; width: 100%; aspect-ratio: 606 / 340; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-caption { flex: 1 1 200px; max-width: 255px; margin: 0; font: 12px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0.1em; color: #666; }
.media-caption a { color: #CC0000; font-size: inherit; }

/* ---------- Phone additions ---------- */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
}
@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 420px; margin-top: 28px; }
  .bio-layout { grid-template-columns: minmax(0, 1fr); gap: 20px 0; }
  .media-caption { max-width: none; }
  .lb-slide img { max-height: calc(94vh - 110px); }
}

/* ======================================================================
   Banner pages (events, entertainment, ads, ...) and logos
   ====================================================================== */
.page-sub { margin-left: 0.6em; font-size: 12px; color: #666; }

.banner { position: relative; max-width: 886px; margin: 0 auto; container-type: inline-size; }
.banner picture { display: block; }
.banner-img { display: block; width: 100%; height: auto; aspect-ratio: 886 / 711; }
.anim { position: absolute; pointer-events: none; }
.anim.fill { inset: 0; }
.banner-text { margin: 10px 0 0; font: 12px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0.1em; color: #666; }
@media (min-width: 761px) {
  .banner-text { position: absolute; left: 11.2%; top: 3.1%; width: 77.8%; margin: 0; font-size: 1.58cqw; line-height: 1.5; color: #FFF; }
}

.projects { max-width: 886px; margin: 28px auto 0; }
.list-heading { margin: 0 0 6px; font: normal 14px/2 Arial, Helvetica, sans-serif; letter-spacing: 0.1em; color: #CC0000; }
.project-list { margin: 0; padding: 0; list-style: none; column-width: 250px; column-gap: 30px; }
.project-list li { break-inside: avoid; }
.project-list a { display: block; font: 13px/2 Verdana, Geneva, sans-serif; letter-spacing: 0.1em; color: #666; }
.project-list a:hover, .project-list a:focus-visible { color: #CC0000; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, 82px); gap: 18px; max-width: 886px; margin: 0 auto; }
.logo-tile { display: block; width: 82px; height: 82px; line-height: 0; }
.logo-tile img, .logo-tile .anim { display: block; width: 82px; height: 82px; border: 1px solid #CCC; }
.logo-tile:hover img, .logo-tile:focus-visible img { border-color: #CC0000; }
.logo-tile .anim { position: relative; border: 0; }

@media (max-width: 620px) {
  .project-list a { padding: 5px 0; line-height: 1.5; }
  .logo-grid { justify-content: space-between; gap: 16px 12px; }
}
