/* ================================================================================================ */
/*  The :target lightbox used by the generated gallery_*.html pages and by the chart on the press    */
/*  kit. Each one opens a full picture with a download link underneath.                              */
/*                                                                                                  */
/*  Pure CSS on purpose: a gallery is served inside a sandboxed iframe, so it cannot rely on the     */
/*  host page's scripting.                                                                          */
/* ================================================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 8, 4, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  z-index: 99;
}

.lightbox:target { display: flex !important; }

.lightbox-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Centred close control above the picture. */
.close-top {
  display: inline-block;
  padding: .6rem 1.2rem;
  border: 1px solid rgba(247, 233, 210, 0.35);
  border-radius: 999px;
  color: #f7e9d2;
  font-family: 'Roboto Mono', ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.close-top:hover { border-color: #f3c77a; color: #f3c77a; text-decoration: none; }

.lightbox-inner img,
.lightbox-inner video {
  max-width: 90%;
  max-height: 76vh;
  border-radius: 10px;
  border: 1px solid #4d3423;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.download-link {
  color: #f3c77a;
  text-decoration: underline;
  font-family: 'Roboto Mono', ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.download-link:hover { color: #ffd894; }

/* The generator emits an unused .close anchor alongside .close-top. */
.lightbox .close { display: none; }

/* Used by the chart thumbnail on press_kit.html. */
.thumbnail-border {
  display: block;
  margin: 2rem auto;
  border: 1px solid #dccbb5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(60, 38, 20, 0.14);
}
