body {
  margin: 2rem 5rem;
  /* padding: 0 5%; */
}

.centre {
  text-align: center;
}

/* ------------------------ */

.thumb {
  display: inline-block;
  margin: 1rem 1rem;
  padding: 0;
  padding: 0.5rem;
  vertical-align: top;
  /* background: red; */
  border: 1px solid grey;
  border-radius: 1.0em;
}

.thumb figure {
  display: block;
  width: min-content;
  margin: 1em;
  margin: 0;
  padding: 0;
  vertical-align: top;
  word-break: break-word;
  /* background: blue; */
  border-radius: 1.0em;
}

/* Optional subtle hover feedback */
.thumb:hover {
  border-color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.thumb img {
  display: block;
  margin: 0;
  padding: 0;
  /* width: 24vw; three thumb across */
  height: 30vh;
  border-radius: 1.0em 1.0em 0 0;
}

.thumb figcaption {
  margin: 0;
  padding: 0.5em 0.5em;
  font-size: 0.9em;
  overflow-wrap: anywhere;   /* Breaks long filenames onto multiple lines */
  /* background: orange; */
  border-radius: 0 0 1.0em 1.0em;
}


.paged .thumb figure img {
  height: 80vh;
}

.paged .thumb {
  margin: 20vh auto;
}

figcaption.ellipsis {
  margin-top: 6px;
  font-size: 0.9rem;
  white-space: nowrap;     /* Keeps text on one line */
  overflow: hidden;        /* Clips text wider than the image */
  text-overflow: ellipsis;   /* Adds "..." at the cutoff point */
}

._thumbs_links {
  margin: 1em;
  padding: 0.5em;
  /* border: 1px solid grey; */
  /* background: #FFE; */
}

._container_thumbs_links {
  text-align: right;
  margin: 0 3em;
}

/* ------------------------ */





.squeeze {
  width: min-content;
  display: inline-block;
}

.squeeze .thumb {
  margin: 0;
}

/* ------------------------ */

._thumbs_links a {
  display: block;
}



/* ------------------------ */



a.tab {
  position: relative;
  top: 12em;
  /* left: 30px; */
}

h3,
pre {
  /* display: none; /* */
  text-align: left;
  white-space: preserve-breaks;
}

img[src*="copy"] {
  outline: 10px solid red;
}

/* --- collapsible containers --- */

.post-body .container,
.post-body .footer {
  margin: 1.0em 0;
  cursor: pointer;
  border-radius: 1em;
  border: 0.4em solid rgba(0, 0, 0, 0.06);
  /* box-shadow: 0 0.3em 0.4em rgba(0, 0, 0, 0.4) */
}

.post-body .container .content {
  padding: 1em 0;
  cursor: auto;
}

.post-body .container.section-collapsed .content {
  display: none;
}

/*
body.mobile .post-body .container,
body.mobile .post-body .footer {
  border: 0.1em solid rgba(0, 0, 0, 0.06);
}
*/
/* expanded containers have a wider bottom border */
body .post-body .container.section-expanded,
body .post-body .container .container.section-expanded {
  border-bottom: 0.8em solid rgba(0, 0, 0, 0.06);
}

/* nested containers have no top or bottom borders when collapsed */
/*
.post-body .container .container.section-collapsed,
.post-body .container .container.initially-collapsed {
  border-top: none;
  border-bottom: none;
}
*/
body:not(.mobile) .post-body .container .container {
  margin: 1em 0em;
  /* nested containers don&#39;t need much of parent .content side padding */
}

body.mobile .post-body .container .container {
  margin: 1em -0.2em;
  /* nested containers don&#39;t need much of parent .content side padding */
}

/* collapsible container headings */

.post-body .container> :first-child {
  margin: 0;
  background: #f8f8f8;
  color: #333;
  padding: 0.2em 0.4em;
  /* for heading backgrounds */
}

.post-body .container> :first-child::before {
  content: '\25BA';
  padding-right: 0.5em;
  font-size: 20px;
}

.post-body .container.section-expanded> :first-child::before {
  content: '\25BC';
}

.post-body .container>h4:first-of-type::before,
.post-body .container>h5:first-of-type::before {
  font-size: 12px;
}

.post-body .container.section-collapsed> :first-child,
.post-body .container.initially-collapsed> :first-child {
  border-radius: 0.3em;
}

.post-body .container.section-expanded> :first-child {
  border-radius: 0.3em 0.3em 0 0;
}
