/* Resets */
body, h1, h2, h3, h4, h5, div, ul, p, figure { margin: 0; padding: 0; }
a { text-decoration: none; }

blockquote { font-style: italic; }

:root {
  font: 0.625em Arial,sans-serif;
  color: #fff;
  background-color: #000;
  --colour-gold: #aa9449;
  overflow-y: scroll; }
  

/* Top-level body settings */
body * + * { margin-top: 1.6rem; }
body .no-pad * + * { margin-top: 0; }
  
.container {
  width: 760px;
  margin: 0 auto;
  font-size: 1.4rem;
  line-height: 1.6rem;
  padding-bottom: 1.6rem; }


/* Header */
header { padding-top: 0.25rem; }
header ul.address {
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-weight: bold; }

header h1 {
  height: 90px;
  background: transparent url(../images/clubjesters.jpg) center / contain no-repeat; }

header h1 span { display: none; }
    
header ul.nav {
  list-style: none;
  font-weight: bold;
  display: flex;
  justify-content: space-evenly;
  background: url(../images/menu.jpg) top left repeat;
  padding: 0.25rem;
  border: 2px solid var(--colour-gold); }

header ul.nav a { color: #000; }


/* Headings */
h2 {
  font-size: 2.1rem;
  line-height: 2.6rem;
  color: var(--colour-gold);
  text-align: center;
  border: 2px solid var(--colour-gold);
  border-style: solid none; }

h3 { color: var(--colour-gold); }


/* Figure section */
section:not(.gallery):not(.gallery_image) div.figures { margin-top: 3.2rem; }

div.figures {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1.6rem;
  justify-content: space-around; }

figure img { border: 2px solid var(--colour-gold); }

figure figcaption {
  color: var(--colour-gold);
  font-weight: bold;
  border-bottom: 2px solid var(--colour-gold);
}


/* Homepage */
section.homepage.intro > div:first-of-type {
  text-align: center;
  min-height: 203px;
  padding: 0 150px;
  background: url(../images/homepage/jester.jpg) left center no-repeat,
              url(../images/homepage/dancefloor.jpg) right center no-repeat; }


/* Club Nemesis */
section.nemesis > div:first-of-type { text-align: center; }


/* The Legacy */
table {
  border: 2px solid var(--colour-gold);
  border-collapse: collapse; }

table thead tr {
  background: url(../images/menu.jpg) top left repeat;
  font-weight: bold;  color: #000; }

table td, table th {
  border: 1px solid var(--colour-gold);
  padding: 2px 5px; }

  
/* Galleries */
.pager { display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.pager .pager__nav { width: 25%; }
.pager a { padding: 0 1rem; color: #fff; display: inline-block; }
.pager .pager--prev a::before { content: '\0021E6'; padding-right: 1rem; font-size: 1.6rem; }
.pager .pager--next a::after  { content: '\0021E8'; padding-left: 1rem;  font-size: 1.6rem; }
.pager .pager--next { text-align: right; }

.gallery-list { list-style: none; }
.gallery-list a { color: var(--colour-gold); }

.gallery.active .figures img { cursor: pointer; }

.gallery .figures img {
  height: 128px;
  width: 128px;
  display: inline-block; }

.gallery-image {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: grid;
  justify-content: center;
  align-content: center; }

.gallery-image img {
  border: 2px solid var(--colour-gold);
  display: block; }
