html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", "Hiragino Gothic", "Yu Gothic", "Noto Sans JP", sans-serif;
  background-image: url("../img/e_bg1.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 10%;
  background-attachment: fixed;
  line-height: 1.5;
  font-size: 14px;
  background-color: #eef;
  color: #000;
  font-weight: 500;
}

*, *::after, *::before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* .item *:target, .enemy *:target {
  background-color: #ff4;
} */
/* JavaScript が有効な場合に非表示 */
html.enable-javascript .hide-enable-js {
  display: none;
}

/* JavaScript が無効な場合に非表示 */
html:not(.enable-javascript) .hide-disable-js {
  display: none;
}

main:not(.draftarticle) {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
}

header, footer, h1, h2, h3, h4, h5, h6, nav, ul, div, p {
  margin: 0;
}

header {
  padding-bottom: 20px;
  /* position: -webkit-sticky;
  position: sticky; */
  top: 0;
}

a {
  position: relative;
  top: -2px;
}

a:active {
  position: relative;
  top: 2px;
}

header a:not(.draft-id), aside a:not(.draft-id) {
  color: #000;
  text-decoration: none;
}

header a:hover, aside a:hover {
  text-decoration: underline;
}

img {
  vertical-align: bottom;
}

.slider {
  margin: 0;
  padding: 0;
}

.nodisp {
  display: none;
}

h1, nav ul li a {
  text-align: center;
}

h1, .articlehead {
  font-weight: 900;
}

h1 {
  margin: 0 auto;
  padding: 10px 0;
  font-size: 2em;
  background-image: linear-gradient(rgb(255, 255, 255) 80%, rgb(200, 200, 200) 100%);
  background-image: -webkit-linear-gradient(rgb(255, 255, 255) 80%, rgb(200, 200, 200) 100%);
}

h1 img {
  width: 1.5em;
}

.logo {
  display: block;
}

nav {
  background-color: #eee;
  padding: 18px 0 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: space-around;
}

nav ul li {
  width: 20%;
}

nav ul li a {
  border-top: 1px hidden #000;
  border-left: 1px hidden #000;
  border-right: 1px hidden #000;
  border-bottom: 3px solid #000;
  width: 100%;
  display: inline-block;
  padding: 10px 30px;
  background-color: #fff;
  -webkit-transition: ease 100ms;
  -o-transition: ease 100ms;
  transition: ease 100ms;
}

nav ul li a:hover {
  background-color: #ffa;
  -webkit-transition: ease 100ms;
  -o-transition: ease 100ms;
  transition: ease 100ms;
}

nav ul li a:active {
  background-color: #2d3;
  border-top: 3px solid #090;
  border-bottom: 1px hidden #000;
}

aside {
  padding-bottom: 3rem;
  text-align: center;
}

aside a {
  display: inline-block;
  text-align: center;
  margin: 30px auto;
  padding: 10px 20px;
  background-color: #edf;
  border-radius: 10px;
  border-width: 4px;
  border-color: #201;
  border-style: solid;
}

.top {
  position: fixed;
  bottom: 10%;
  right: 15%;
}

.top a {
  border-radius: 50%;
  padding: 5% 100%;
  background-color: rgba(255, 127, 255, 0.5);
  display: inline-block;
  font-size: 300%;
  color: #000;
  text-decoration: none;
}

.top a:hover {
  background-color: rgba(255, 196, 255, 0.5);
}

footer {
  background-color: #bebebe;
  text-align: center;
  width: 100%;
  vertical-align: bottom;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  /*	position: fixed;
	bottom: 0;
	left: 0;*/
}

table {
  margin: 0 auto;
  min-width: 400px;
}

th, td, table {
  border-collapse: collapse;
  border: 2px solid #000;
  background-color: #fff;
}

.spacewrap {
  white-space: normal;
}

.nowrap {
  white-space: nowrap;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.large {
  font-size: large;
}

.bold {
  font-weight: 900;
}

.overflow {
  overflow-x: auto;
}

.articlehead {
  font-size: 2.5em;
  text-align: center;
  margin: 40px auto;
  border-top: 3px solid #aaa;
  border-left: 3px solid #aaa;
  border-right: 3px solid #000;
  border-bottom: 6px solid #000;
  background-color: #fff;
}

.pixel img {
  image-rendering: optimizeSpeed;
  /*                     */
  image-rendering: -moz-crisp-edges;
  /* Firefox             */
  image-rendering: -o-crisp-edges;
  /* Opera               */
  image-rendering: -webkit-optimize-contrast;
  /* Chrome (and Safari) */
  image-rendering: pixelated;
  /* Chrome as of 2019   */
  image-rendering: optimize-contrast;
  /* CSS3 Proposed       */
  -ms-interpolation-mode: nearest-neighbor;
  /* IE8+                */
}

.note {
  border-top: 1px solid #000;
  font-size: 0.8rem;
  margin: 0 20px 0 0;
  padding-bottom: 30px;
  -webkit-column-width: 50%;
  -moz-column-width: 50%;
  column-width: 50%;
}

.note li {
  page-break-inside: avoid;
}

.box-e {
  background-color: #f0f0f0;
}

.box-n {
  background-color: #60ff60;
}

.box-s {
  background-color: #FFf0FF;
}

.box-v {
  background-color: #a0a060;
}

.box-y {
  background-color: #c0ffc0;
}

.box-007 {
  background-color: #f0f050;
}

.unused {
  color: #555 !important;
  font-style: italic;
}

.unused td {
  background-color: #ccc !important;
}

.greyback .redback, .greyback .yellowback, .greyback .greenback, .greyback .blackback {}

/*parameter color*/
.hp {
  color: #000;
  /*hit point*/
}

.cp {
  color: #08f;
  /*concentration point*/
}

.atk {
  color: #800;
  /*attack*/
}

.def {
  color: #080;
  /*defense*/
}

.matk {
  color: #808;
  /*magic attack*/
}

.mdef {
  color: #404;
  /*magic defense*/
}

.agil {
  color: #088;
  /*agility*/
}

.acu {
  color: #f48;
  /*accuracy*/
}

.eva {
  color: #880;
  /*evasion*/
}

.crit {
  color: #000;
  /*critical hit rate*/
}

/*end parameter color*/
/*attribute color*/
.fire {
  color: #000;
  background-color: #f88;
}

.ice {
  color: #000;
  background-color: #8ff;
}

.thunder {
  color: #000;
  background-color: #ff8;
}

.wind {
  color: #000;
  background-color: #8f8;
}

.dark {
  color: #f4f;
  background-color: #408;
}

.void {
  color: #fff;
  background-color: #888;
}

/*end attribute color*/
.red {
  color: #c00 !important;
}

.blue {
  color: #00c !important;
}

.green {
  color: #0c0 !important;
}

.redback {
  background-color: #f99;
}

.yellowback {
  background-color: #ffc;
}

.greenback {
  background-color: #dfd;
}

.greyback {
  background-color: #ccc;
}

.blackback {
  color: #fff;
  background-color: #000;
}

.blackback .matk, .blackback .mdef {
  text-shadow: #fff 0 0 1px;
}

/*free space from here*/
.update-notification {
  border: 1px solid #000000;
  border-radius: 0;
  background-color: transparent;
  padding: 0.5em 1em;
  margin-bottom: 60px;
  max-height: 500px;
  overflow-y: auto;
  max-width: 640px;
}

.update-notification-header {
  background-image: #FFFFFF;
  padding: 10px 0 15px;
}

.update-date, .update-desc {
  text-align: left;
  border: none;
  background-color: transparent;
  vertical-align: top;
}

.update-date {
  border-width: 0 1px 0 0;
  border-style: solid;
  padding: 3px 0.5em 10px 0.5em;
}

.update-desc {
  padding: 3px 0.5em 10px 0.5em;
}

.thankyou {
  text-align: center;
}

.thankyou h2 {
  margin: 30px auto;
  font-size: 2em;
}

.home .sliderbox {
  max-width: 650px;
  margin: 0 auto;
}

.home .welcometext {
  max-width: 640px;
  margin: 0 auto 2em;
}

.home .text, .home .download, .home .update-notification {
  margin: 0 auto 3em;
  padding: 10px;
}

.home .text {
  background-color: #aff;
  border-radius: 10px;
  border-width: 5px;
  border-color: #000;
  border-style: double;
  max-width: 780px;
}

.home .text img {
  max-width: 100%;
  height: auto;
}

.home .download {
  background-color: #000;
  border-width: 20px;
  border-color: #888;
  border-style: outset;
  color: #fff;
  max-width: 600px;
}

.home .download p {
  text-align: center;
}

.home .download a {
  border: 1px solid lime;
  display: inline-block;
  text-align: center;
  font-size: 2em;
  color: lime;
  margin: 0 auto;
  padding: 5px 10px;
  text-decoration: none;
  -webkit-transition: ease 200ms;
  -o-transition: ease 200ms;
  transition: ease 200ms;
}

.home .download a:hover {
  border-color: #ff0;
  background-color: #800;
  -webkit-transition: ease 200ms;
  -o-transition: ease 200ms;
  transition: ease 200ms;
}

.home .download .box {
  margin-bottom: 40px;
}

.home article p {
  margin: 10px 18px;
}

.home article h2 {
  text-align: center;
}

.character .bgi {
  background-repeat: no-repeat;
  -webkit-background-origin: padding-box;
  background-origin: padding-box;
}

.character .e {
  background-image: url(../img/big-e.png);
  background-position: left -80px bottom;
}

.character .n {
  background-image: url(../img/big-n.png);
  background-position: right -100px bottom;
}

.character .s {
  background-image: url(../img/big-s.png);
  background-position: left -60px bottom;
}

.character .v {
  background-image: url(../img/big-v.png);
  background-position: right -100px bottom;
}

.character .table {
  margin: 0 auto 30px;
  max-width: 1120px;
  opacity: inherit;
}

.character .status {
  align-items: center;
  justify-content: space-around;
  padding-top: 14px;
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.character article img {
  width: 48px;
}

.character .table h2 {
  padding: 10px 10px 0 20px;
  border-left-width: 10px;
  border-left-style: solid;
  font-size: 2em;
  /* transform: rotate(2deg); */
}

.character .table h3 {
  text-align: center;
  max-width: 300px;
  margin: 20px auto;
  padding: 16px 24px;
  border: 6px groove #444;
  background-color: #fff;
  font-size: 1.7em;
}

.character .bgwhite {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 20px;
}

.character .table .name-e {
  border-left-color: #C0C0C0;
  background-color: #e0e0e0;
}

.character .table .name-n {
  border-left-color: #00A000;
  background-color: #40e040;
}

.character .table .name-s {
  border-left-color: #FFC4FF;
  background-color: #FFE0FF;
}

.character .table .name-v {
  border-left-color: #404000;
  background-color: #808040;
}

.character .table .name-y {
  border-left-color: #80FF00;
  background-color: #a0ffa0;
}

.character .table .name-007 {
  border-left-color: #C0C000;
  background-color: #e0e020;
}

.character th, .character td {
  padding: 6px 10px;
  font-size: 0.9rem;
}

.character .status td {
  text-align: center;
  width: 100px;
}

.character .status td:first-of-type {
  background-color: rgba(100, 220, 255);
}

.character .status td:last-of-type {
  background-color: rgba(255, 220, 100);
}

.character .skill {
  padding: 0 10px;
}

.character .skill td:first-of-type {
  text-align: right;
}

.character .skill tr {
  text-align: left;
}

.character .skill tr:first-of-type {
  text-align: center;
}

.character .regis {
  padding: 0 10px;
}

.enemy .table {
  max-width: 1120px;
  margin: 0 auto;
}

.enemy .table img {
  max-width: 100%;
  min-width: 64px;
  min-height: auto;
}

.enemy th, .enemy td {
  padding: 5px 10px;
  font-size: 1.1em;
}

.enemy td:nth-of-type(n+3) {
  text-align: right;
}

.enemy td:nth-of-type(n+11) {
  text-align: left;
}

.enemy .cev td {
  background-color: #dfd;
}

.enemy .khaft td {
  background-color: #ffc;
}

.enemy .malay td {
  background-color: #f88;
}

.enemy .lozabel td {
  background-color: #000;
  border-right-color: #fff;
  color: #fff;
}

.enemy .lozabel td:last-of-type {
  border-right-color: #000;
}

.item .table {
  max-width: 1120px;
  margin: 0 auto;
  background-color: #ddf;
}

.item .table h2 {
  padding: 10px 10px 0 20px;
  border-left-width: 10px;
  border-left-style: solid;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-size: 2em;
  background-color: #ddd;
}

.item .table h3 {
  text-align: center;
  max-width: 300px;
  margin: 20px auto;
  padding: 16px 24px;
  border: 6px groove #444;
  background-color: #fff;
  font-size: 1.7em;
}

.item th, .item td {
  padding: 6px 10px;
  font-size: 1rem;
}

.item td img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.item h3 img {
  width: 2rem;
  height: auto;
  vertical-align: bottom;
}

.unitalic {
  font-style: normal !important;
}

.consumable, .material, .other, .weapon, .armor, .accesory {
  padding: 0 5px;
}

.item .consumable td:nth-of-type(n+6) {
  font-style: italic;
}

.item .material td:nth-of-type(n+3) {
  font-style: italic;
}

.item .other td:nth-of-type(n+6) {
  font-style: italic;
}

.item .weapon td:nth-of-type(n+7) {
  font-style: italic;
}

.item .armor td:nth-of-type(n+8) {
  font-style: italic;
}

.item .accesory td:nth-of-type(n+8) {
  font-style: italic;
}

.chart .articlenav {
  margin: 0 auto;
  text-align: center;
}

.chart .articlenav ul {
  padding: 10px;
  list-style-type: none;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.chart .topnote {
  margin-left: 40px;
}

.chart .articlenav ul li {
  margin: 0 auto;
  width: 20%;
}

.chart .articlenav ul li a {
  width: 100%;
  display: inline-block;
  padding: 20px 10px;
  border: 2px solid #ddc;
  text-decoration: none;
  color: #000;
  background-color: #ccc;
}

.chart .articlenav ul li a:hover {
  background-color: #aaa;
}

.chart .articlenav ul li a:active {
  background-color: #888;
  border-top-color: #aaa;
  border-bottom-color: #fff;
}

.chart hr {
  margin: 40px 20%;
  background-color: rgb(200, 200, 200);
}

.chartcontent h2 {
  text-align: left;
  text-indent: 0.5em;
  margin-bottom: 1em;
}

.chartcontent .spacewrap {
  margin: 0 30px;
}

.chartcontent .spacewrap a {
  white-space: nowrap;
}

.chart, .side {
  max-width: 1000px;
  margin: 0 auto;
}

.chart .imgbox, .side .imgbox {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: space-between;
  max-width: 640px;
  margin: 0 auto;
}

.chart .imgbox p, .side .imgbox p {
  margin: 0;
  padding: 0;
}

.chart .imgbox a, .side .imgbox a {
  display: block;
}

.chart .imgbox a img, .side .imgbox a img {
  width: 160px;
  height: auto;
  -webkit-transition: ease 200ms;
  -o-transition: ease 200ms;
  transition: ease 200ms;
}

.imgbox {
  padding-top: 3em;
  padding-bottom: 3em;
}

.imgbox a img:hover {
  -webkit-transition: ease 200ms;
  -o-transition: ease 200ms;
  transition: ease 200ms;
  filter: brightness(200%);
}

.modal {
  max-width: 700px;
}

.modal img {
  width: 100%;
}

.modal p:nth-of-type(n+2) {
  text-align: center;
}

.chart p, .side p {
  margin: 0 5%;
  padding-bottom: 1em;
}

.chart h2, .side h2 {
  background-color: #ccc;
  border-left: 10px solid #000;
  border-right: 10px solid #000;
  font-size: 2em;
  margin-bottom: 20px;
  padding: 5px 0;
}

.side h2 {
  padding: 5px 0 5px 20px;
}

.chart h3, .side h3 {
  background-color: #fff;
  border-left: 5px solid #000;
  border-right: 1px solid #ccc;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: 1.2em;
  margin: 1em 0;
  padding: 0.3em 0;
}

.side h3 {
  padding: 0.3em 0 0.3em 1em;
}

.sidecontent {
  background-color: #edc;
}

.chartcontent, .sidecontent {
  margin: 0 auto;
  width: 80%;
}

.chartcontent ol, .chartcontent ul {
  padding-left: 5%;
  margin-bottom: 1em;
}

.chartcontent h2 {
  margin: 1em 0;
}

.chartcontent h3 {
  text-align: center;
  font-size: 1.2em;
  border-width: 3px 0;
  border-style: solid;
}

.chartcontent .greenback, .chartcontent .yellowback, .chartcontent .redback, .chartcontent .blackback {
  padding-bottom: 2em;
}

.enemypic {
  padding: 0 2%;
}

.enemypic img {
  max-width: 640px;
  width: 100%;
}

.chart .enemydesc {
  text-align: center;
  margin: 0 auto;
}

.chart .enemydesc p.enemypic {
  margin: 0;
}

.chart .enemydesc ul {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.chart .cev {
  background-color: #dfd;
  border-color: #8d8;
}

.chart .khaft {
  background-color: #ffc;
  border-color: #dd7;
}

.chart .malay {
  background-color: #f88;
  border-color: #d77;
}

.chart .lozabel {
  background-color: #000;
  color: #fff;
  border-color: #999;
}

.chart .end-of-hope .imgbox {
  margin-bottom: 2em;
}

.sideaside {
  margin: 2em auto;
  width: 80%;
}

.mapbox {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.mapbutton {
  text-align: center;
  width: 25%;
  display: block;
  position: relative;
  margin-bottom: 10px;
}

.mapbutton:hover {
  opacity: 0.8;
}

.mapbutton:active {
  border-bottom: 5px solid rgba(0, 0, 0, 0);
  position: relative;
  top: 3px;
}

.mapbutton a {
  color: #000;
  text-decoration: none;
  display: block;
  padding: 20px 0;
  background-color: inherit;
}

.field, .base, .mateu, .shrine, .mountain, .haia, .building, .another, .underworld {}

.field {
  background-color: #6EFF7A;
  border-bottom: 5px solid #01681A;
}

.base {
  background-color: #aaaaaa;
  border-bottom: 5px solid #595959;
}

.mateu {
  background-color: #090084;
  border-bottom: 5px solid #000757;
}

.shrine {
  background-color: #FFECB7;
  border-bottom: 5px solid #87764D;
}

.mountain {
  background-color: #606060;
  border-bottom: 5px solid #242424;
}

.haia {
  background-color: #8E0002;
  border-bottom: 5px solid #5A0001;
}

.building {
  background-color: #000000;
  border-bottom: 5px solid #fff;
}

.another {
  background-color: #CB2DD0;
  border-bottom: 5px solid #618BA6;
}

.underworld {
  background-color: #A05EFF;
  border-bottom: 5px solid #7300A6;
}

.mateu a, .mountain a, .haia a, .building a {
  color: #fff;
}

.draft {
  background-color: #000;
  margin: 0;
}

.draft header, .draft h1, .draft nav {
  background-color: #222;
  background-image: none;
}

.draft h1 a {
  color: #fff;
}

.draft aside {
  background-color: #222;
}

.draft aside a {
  background-color: #444;
  color: #fff;
}

.draft .map {
  text-align: center;
  margin: 0 auto 1em;
}

.draft .map img {
  border: 5px outset #cc0;
  max-width: 800px;
  width: 100%;
}

.draft .draftarticle p:not(.map), .draft q {
  margin: 0 5% 2em;
  color: #ff0;
  text-indent: 1em;
}

.draft q {
  font-style: italic;
}

.draft .articlehead {
  background-color: #6100FF;
  border-width: 3px;
  border-style: solid;
  border-right-color: #21005E;
  border-bottom-color: #21005E;
  border-top-color: #7F3BFF;
  border-left-color: #7F3BFF;
  color: #fff;
}

.draft div h2 {
  background-color: #502EFF;
  border-bottom: 10px solid #013FBB;
  font-size: 2em;
  margin-bottom: 20px;
  padding: 5px 0 5px 20px;
  color: #fff;
}

.draft h3 {
  background-image: -webkit-linear-gradient(left, #5669FF, #002288);
  background-image: -o-linear-gradient(left, #5669FF, #002288);
  background-image: linear-gradient(to right, #5669FF, #002288);
  /*  background-color: #5669FF;
    border-left: 1px solid #013FBB;
  border-right: 1px solid #000;
  border-top: 1px solid #000;
*/
  border-bottom: 8px solid #028;
  font-size: 1.2em;
  margin: 0 0 1em;
  padding: 0.3em 0 0.3em 0;
  color: #fff;
  text-indent: 1em;
}

.draft h4 {
  font-size: 1.1em;
  background-image: linear-gradient(to right, #D7D7FF, #7F3BFF);
  color: #000;
  margin-bottom: 1rem;
  text-indent: 1em;
}

.draftarticle {
  background-color: #003;
  border: 4px outset #000C6C;
}

.draftmenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  -ms-align-items: center;
  align-items: center;
}

.draftmenu li {
  text-align: center;
  margin-bottom: 1rem;
  width: 17%;
}

.draftmenu li a {
  display: block;
  background-color: #ddf;
  border-top: 3px solid #eef;
  border-left: 3px solid #eef;
  border-right: 3px solid #88f;
  border-bottom: 3px solid #88f;
  width: 100%;
  margin: 0 auto;
  padding: 14px 0;
  text-decoration: none;
  color: #000;
}

.draftmenu li a:active {
  border-top: 3px solid #888;
  border-left: 3px solid #888;
  border-right: 3px solid #eee;
  border-bottom: 3px solid #eee;
}

.draftcontent {
  margin: 0 auto;
  width: 80%;
  margin-bottom: 1rem;
}

.draft div.b {
  width: 33%;
  border-width: 1px;
  border-style: solid;
  border-image-slice: 1;
  /* flex: 33%; */
}

.draftflex {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin-bottom: 60px;
}

#draftworld .draftflex div {
  border-image-source: linear-gradient(to right, #5669FF, #002288);
}

#draftworld .b {
  background-image: linear-gradient(135deg, #003300, #000000);
}

#draftcharacter .draftflex div {
  border-image-source: linear-gradient(to right, #D7D7FF, #7F3BFF);
  border-image-source: -webkit-linear-gradient(to right, #D7D7FF, #7F3BFF);
}

.draft .b {
  background-image: linear-gradient(135deg, #000033, #000000);
}

.draft .end-of-revenge {
  background-image: linear-gradient(135deg, #003333, #000000);
}

.draft .end-of-hope {
  background-image: linear-gradient(135deg, #330033, #000000);
}

.draft .end-of-ewohna {
  background-image: linear-gradient(135deg, #330000, #000000);
}

.draft .oldidea {
  color: #aaa;
}

.draft .oldidea h3 {
  color: #aaa;
}

.gallery {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-bottom: 2em;
  border: 1px solid #333300;
  align-items: flex-end;
  align-content: flex-end;
}

.gallery a {
  display: block;
  color: #ff0;
  text-decoration: none;
  text-align: center;
}

.gallery a img {
  max-width: 320px;
  max-height: 320px;

}

.gallery figcaption {
  padding-top: 0.5em;
  color: #FFFF00;
  text-align: center;
}
