:root{
  --bg:#000;
  --fg:#fff;
  --muted:rgba(255,255,255,.75);
  --accent:#ff2a2a;
  --panelGap:28px;
  --max:1200px;
}

*{ box-sizing:border-box }

body{
  margin:0;
  font-family:'Allison', cursive;
  background:var(--bg);
  color:var(--fg);
  padding-bottom:92px;
}

/* legacy helpers */
tbody{ font-size:medium; font-family:Trebuchet MS }
.title{ font-size:large; font-family:Trebuchet MS; font-weight:bold }

a,
a:hover,
a:visited,
a:active{
  color:#fff;
  text-decoration:none;
}
a:focus{ outline:none; }

/* ================================
   LAYOUT
================================ */
.wrap{
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
}
.layout{
  width:min(var(--max), 100%);
  display:grid;
  grid-template-columns:320px 1fr;
  gap:var(--panelGap);
  align-items:start;
}

/* ================================
   LEFT COLUMN
================================ */
.left{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.contact{ line-height:1.15; }
.contact .email{
  font-size:88px;
  font-weight:300;
  opacity:.95;
}

.qrBlock{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.qrLabel{
  font-size:48px;
  opacity:.92;
  text-transform:lowercase;
}
.qrCard{
  width:220px;
  background:#000;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  padding:10px;
}
.qrCard img{
  width:100%;
  display:block;
  border-radius:6px;
}

/* ================================
   HERO / SLIDESHOW
================================ */
.hero,
.slideshow{
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero img{
  width:100%;
  max-width:860px;
  filter:drop-shadow(0 20px 35px rgba(0,0,0,.55));
  transform:translateY(120px);
  padding-top:60px;
}

.slideshow{
  padding-top:120px;
  padding-bottom:30px;
}

.heroSlideshow{
  max-width:860px;
  max-height: 620px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
  box-shadow:0 20px 35px rgba(0,0,0,.55);
  display:grid;
}

.afSlide{
  grid-area:1/1;
  opacity:0;
  transition:.85s;
  pointer-events:none;
  position:relative;
}
.afSlide.is-active{
  opacity:1;
  pointer-events:auto;
}
.afSlide img{
  width:100%;
  cursor:zoom-in;
}

.afSlide::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow:
    inset 0 0 70px rgba(255,42,42,.3),
    0 0 45px rgba(255,42,42,.22);
}

/* ================================
   SLIDESHOW CONTROLS + THUMBS
================================ */
.afNav{
  position:absolute;
  top:45%;
  transform:translateY(-50%);
  z-index:5;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.afNav:hover{ background:rgba(0,0,0,.75); }

.afPrev{ left:12px; }
.afNext{ right:12px; }

.afThumbs{
  display:flex;
  gap:10px;
  padding:12px;
  overflow-x:auto;
  border-top:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.45);
}
.afThumb{
  flex:0 0 auto;
  width:70px;
  height:48px;
  padding:0;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  overflow:hidden;
  cursor:pointer;
}
.afThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.85;
}
.afThumb.is-active{
  border-color:rgba(255,42,42,.85);
  box-shadow:0 0 0 2px rgba(255,42,42,.25);
}
.afThumb.is-active img{ opacity:1; }

/* ================================
   RESPONSIVE
================================ */
@media (max-width:900px){
  .layout{
    grid-template-columns:1fr;
    text-align:center;
  }
  .left{ align-items:center; }
  .qrCard{ width:min(260px,100%); }
  .slideshow{
    padding-top:35px;
    padding-bottom:20px;
  }
}

/* ================================
   STICKY PROJECT NAV
================================ */
.project-nav{
  position:fixed;
  left:0;
  bottom:0;
  width:100%;
  z-index:1000;
  background:rgba(0,0,0,.92);
  backdrop-filter:blur(6px);
  border-top:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 -10px 22px rgba(255,42,42,.22),
    0 -2px 0 rgba(255,42,42,.30);
}

.project-nav::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:10px;
  background:radial-gradient(
    ellipse at center,
    rgba(255,42,42,.45) 0%,
    rgba(255,42,42,.18) 45%,
    transparent 75%
  );
}

.project-links{
  list-style:none;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  gap:16px;
  justify-content:center;
  align-items:center;
  max-width:1200px;
  overflow-x:auto;
}
.project-links li{ flex:0 0 auto; }

.project-nav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:12px;
  font-size:30px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  transition:.2s;
}
.project-nav a:hover{
  background:rgba(255,255,255,.1);
  transform:translateY(-1px);
}
.project-nav img{
  width:20px;
  height:20px;
}

/* ================================
   MOBILE NAV TWEAK ✅ FIXED
================================ */
@media (max-width:520px){
  body{ padding-bottom:84px; }
  .project-nav a{
    font-size:26px;
    padding:6px 10px;
  }
  .project-nav img{
    width:18px;
    height:18px;
  }
}

/* =========================================================
   FORCE SLIDESHOW LAYOUT (prevents vertical stacking)
   Paste at END of style.css so it overrides older rules
========================================================= */

/* 1. Lock total slideshow size */
.heroSlideshow{
  position: relative;
  width: 100%;
  max-width: 860px;

  /* Total height INCLUDING thumbnails */
  height: 1620px;

  display: grid;
  grid-template-rows: 1fr auto; /* slides | thumbs */

  overflow: hidden;
}

/* 2. Slides get ONLY the top area */
.afSlide{
  grid-row: 1;
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden; /* ✅ CRITICAL */
}

.afSlide.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* 3. Images shrink to fit, never crop */
.afSlide img{
  max-width: 100%;
  max-height: 100%;

  width: auto !important;
  height: auto !important;

  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* glow overlay (you had this in earlier CSS) */
.afSlide::after{
  content:"";
  position:absolute;
  inset:0;

  pointer-events:none;

  /* stays inside the slide viewport now */
}
``

/* =========================================================
   ARROWS
========================================================= */
.afNav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:50;
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.afNav:hover{ background:rgba(0,0,0,.75); }
.afPrev{ left:12px; }
.afNext{ right:12px; }

/* =========================================================
   THUMBNAILS (always show below slideshow)
========================================================= */
.afThumbs{
	
  position: relative;
  z-index:40;
  grid-row:2;                   /* sits below slides */
  display:flex;
  gap:10px;
  padding:12px;
  overflow-x:auto;
  background:rgba(0,0,0,.55);
  border-top:1px solid rgba(255,255,255,.14);
  height: auto;
}

.afThumb{
  flex:0 0 auto;
  width:74px;
  height:52px;
  padding:0;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  overflow:hidden;
  cursor:pointer;
}

.afThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.85;
}
.afThumb.is-active{
  border-color:rgba(255,42,42,.85);
  box-shadow:0 0 0 2px rgba(255,42,42,.22);
}
.afThumb.is-active img{ opacity:1; }

/* =========================================================
   LIGHTBOX
========================================================= */
.afLightbox{
  position:fixed;
  inset:0;
  display:none;                 /* hidden by default */
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(6px);
  z-index:3000;
  padding:24px;
}

.afLightbox.is-open{
  display:flex;                 /* show when open */
}

#afLbImg{
  max-width:min(1200px, 96vw);
  max-height:92vh;
  width:auto;
  height:auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 25px 60px rgba(0,0,0,.7);
}

.afLbClose{
  position:absolute;
  top:16px;
  right:16px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.afLbClose:hover{ background:rgba(0,0,0,.75); }

/* =========================================================
   FIX SLIDESHOW FIT + RESTORE THUMBNAILS
   ========================================================= */



.heroSlideshow{
  position: relative;

  width: 100%;
  max-width: 860px;
  height: 620px;

  display: grid;
  grid-template-rows: 1fr auto;

  overflow: hidden;
}