@import url("https://use.typekit.net/fwa3qxd.css");
    @import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@100;400;600;700&display=swap');

    
    * {
      margin: 0;
      padding: 0;
      box-sizing:  border-box;
      font-size: 100%;
      font-weight: normal;
    }

    body {
      background-color: whitesmoke;
      /*margin:  20px 50px;
      padding: 20px 20px;*/
      margin:  5vw;
      margin-top: 4vw; 
      font-family: freight-micro-pro, 'Gothic A1';
      font-variant-numeric: lining-nums;
      line-height: 1.5;
      word-break: keep-all;
    }

    h1 {
      font-style: font-family: freight-micro-pro, serif;
      font-weight: 700;
      font-style: italic;
      margin-bottom: 10px;
    }

    h2 {
      font-size: 22px;
    }

    h4 {
      font-size: 16px;
      margin-bottom: 30px;
      margin-left: 6px;
    }

    strong {
      font-style: font-family: freight-micro-pro, serif;
      font-weight: 700;
      font-style: italic;
    }

    a {
      color: olive;
      text-decoration: none;
    }

    a:hover {
      color: darkkhaki;

    }

    nav li a {
      display: inline;
      background-color: gainsboro;
      text-decoration: none;
      color: darkslategray;  
    }

    nav li a:hover {
      color: white;
      background-color: darkkhaki;
    }

    .active {
      color: white;
      background-color: darkslategray;
    }

    footer {
      font-size: 11px;
      margin-top: 40px;
      position: static;
      left: 20;
      bottom: 0;

    }

    article {
      font-size: 16px;
      max-width: 60ch;
      line-height: 1.5;
      border-top: solid 1px;
      padding-top: 20px;
      padding-bottom: 20px;
    }

    .logo {
      color: black;
      font-weight: 700;
      font-style: italic;
      text-decoration: none;
    }

    sup {
      font-size: x-small;
      color: orangered;
      font-weight: 500;
    }


    .numbers {
      color: orangered;
      font-size: x-large;
      opacity: 0.8;
      margin-left: 2px;
      margin-bottom: -24px;
    }


    b {
      font-weight: 600;
    }

    p {
      font-size: 15px;
      max-width: 68ch;
      line-height: 1.75;
      margin-left: 30px;
      margin-bottom: 30px;
    }

    
    body li {
      line-height: 1.6;
      margin-left: 30px;
      margin-bottom: 10px;
      list-style: none;
      font-weight: 600;

    }

    nav li {
      display: inline-block;
      margin-left: 0px;
      margin-right: 10px;
      margin-bottom: -10px;
    }
  
    h3 {
      background-color: silver;
    }



   /* ol a {
      color: olive;  
    }

    ol a:hover {
      color: darkkhaki; 
      background-color: none; 
    }*/


    iframe {
      position: fixed;
      bottom: 0;
      left: 0;;
      margin-left: 700px;
      margin-bottom: 70px;
      height: 504px;
      width: 504px;
      overflow-y: hidden;
      overflow-x: hidden;


    }

    footer {
      font-size: 11px;
      font-variant: small-caps;
      margin-top: 40px;
      position: fixed;
      text-align: right;
      right: 20px;
      bottom: 0;
      padding-bottom: 40px;
    }

    
/* =========================
   FILM ARCHIVE UI
   ========================= */

article.film-archive{
  max-width: 1200px;     /* wider than your default 60ch */
}

.film-sub{
  font-size: 12px;
  color: darkslategray;
  margin-left: 6px;
  margin-bottom: 14px;
}

.roll-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.roll-card{
  display: block;
  color: black; /* avoid olive inside cards */
  border: 1px solid rgba(0,0,0,0.55);
  background: whitesmoke;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.roll-card:hover{
  outline: 2px solid darkkhaki;
  outline-offset: 2px;
}

.roll-thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: gainsboro;
}

.roll-meta{
  border-top: 1px solid rgba(0,0,0,0.55);
  padding: 10px 10px 9px;
}

.roll-title{
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 4px;
}

.roll-date{
  font-size: 12px;
  color: darkslategray;
  line-height: 1.25;
}

.badge{
  position: absolute;
  top: 10px;
  left: 10px;

  background: rgba(255,255,255,0.15);      /* white translucent */
  border: 1px solid rgba(0,0,0,0.25);      /* dark grey border */
  color: rgba(0,0,0,0.35);                 /* dark grey text */

  font-size: 11px;
  font-weight: 700;
  padding: 5px 7px;
}

.roll-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.backlink{
  font-size: 12px;
  background: gainsboro;
  color: darkslategray;
  padding: 2px 6px;
}

.backlink:hover{
  color: white;
  background: darkkhaki;
}

/* thumbs */
.thumb-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 860px){
  .thumb-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .thumb-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

.thumb{
  border: 1px solid rgba(0,0,0,0.55);
  aspect-ratio: 1 / 1;
  overflow:hidden;
  background:gainsboro;
  cursor:pointer;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* modal */
.modal{ position: fixed; inset: 0; display:none; z-index: 9999; }
.modal.on{ display:block; }
.modal-bg{ position:absolute; inset:0; background: rgba(0,0,0,0.95); }
.modal-ui{ position:absolute; inset: 0; display:flex; flex-direction:column; padding: 14px; }

.modal-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  margin-bottom: 8px;
}

.modal-btn, .navbtn{
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: rgba(255,255,255,0.9);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.navbtn{ width: 42px; height: 42px; padding: 0; font-size: 22px; }

.modal-main{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  min-height: 0;
}

.big{
  max-width: min(920px, 92vw);
  max-height: min(70vh, 640px);
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  object-fit: contain;
}

.filmstrip{
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.frame{
  display:inline-block;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,0.35);
  margin-right: 8px;
  overflow:hidden;
  cursor:pointer;
  vertical-align: top;
  opacity: 0.65;
}
.frame img{ width:100%; height:100%; object-fit: cover; display:block; }
.frame.active{ opacity: 1; border-color: rgba(255,255,255,0.95); }

/* private gate */
.gatebox{
  max-width: 420px;
  border: 1px solid rgba(0,0,0,0.55);
  padding: 16px;
  background: whitesmoke;
  margin-left: 6px;
}

.gate-title{
  font-weight: 700;
  font-style: italic;
  margin-bottom: 8px;
}

.gatebox input{
  width:100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid rgba(0,0,0,0.55);
  background: white;
}

.gatebox button{
  margin-top: 10px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.55);
  background: gainsboro;
  color: darkslategray;
  cursor: pointer;
}

.gatebox button:hover{
  color: white;
  background: darkkhaki;
}

.err{ margin-top:10px; color: orangered; display:none; font-size: 12px; }
.note{ margin-top:10px; color: darkslategray; font-size: 12px; opacity: 0.8; }


/* Blur thumbnails for locked/private rolls on the index */
.roll-card.locked .roll-thumb{
  filter: blur(17px);
  transform: none;
}


/* Optional: make it extra "strong" / milky */
.roll-card.locked::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245,245,245,0.20);
  pointer-events: none;
  z-index: 1; /* overlay layer */
}

.roll-card .badge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2; /* above overlay */
}




    