:root {
  --prime: #3b0245;
	--button: #64055D;
  --text: black;
  --rev-text: white;
  --accent: black;
  --bg: #F3F3F3;
}
body {
  padding: .25rem;
  font-size: 18px;
  color: var(--text);
  background-color: var(--prime);
  margin: 0 auto;
}
i.fas i.far {
  padding: 0 .33em;
}
.topnav {
  margin-top: .25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1000;
  width: 100%;
}
.nav-item{
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: .25rem;
  padding-bottom: .25rem;

}
a.nav-item {
  top: 4px;

  text-align: center;
  margin: auto 0;
  color: var(--rev-text);
  transition: color 250ms ease-in-out;
}
a.nav-item:hover {
  text-decoration: underline;
  cursor: pointer;
}
.label {
  font-size: 1rem;
}
.nav-item.trigram {
  display: none;
  text-decoration: none;
  font-size: 2rem;
}

@media screen and (max-width: 767px) {
  .topnav a, .topnav span {display: none;}
  .topnav a.trigram {display:inherit; position:absolute; right:4%; font-size:2em; padding: .25em; background:var(--prime);}
}
@media screen and (max-width: 767px) {
  .topnav.responsive {align-items: center; border: 3px sold white; margin-bottom: 2rem;}
  .topnav.responsive a, .topnav.responsive span {display:inherit;}
  .topnav.responsive a:first-child {margin-top:1em;}
  .topnav.responsive a:not(:last-child) {display:inherit; padding-top:1em;}
  .topnav.responsive a.more {margin-bottom: 2em;}
  .topnav.responsive a.trigram {visibility:hidden; transition:none;}
  .topnav.responsive a.trigram:after {content:'\000D7'; visibility:visible; text-indent: -.5em;}
}
@media screen and (min-width: 768px) {
  .topnav {display: flex; flex-direction: row; justify-content: center;}
  a.nav-item {  border: .5px solid white; padding-left: 4rem; padding-right: 4rem;}

}
.slideshow {
  padding: 1em;
}
.slideshow-wrapper {
  position: relative;
  margin: auto; max-width: 100%;
}
.slideshow-wrapper img {
  width: 100%;
  border-top: 2px solid black;
  border-left: 2px solid black;
  border-top: 2px solid black;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.popup{
  display: none;
}
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
.caption {
  background: rgba(255,255,255,0.4);
  color: #04040;
  font-size: 22px;
  padding: 6px 12px;
  position: absolute;
  bottom: 8px;
  width: 98.25%;
  text-align: center;
}
.numberof {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
.indicator {
  cursor:pointer;
  height: auto;
  width: 25%;
  margin: 0 2px;
  background-color: #bbb;
  display: inline-block;
  transition: all 250ms ease-in-out;
  opacity: .5;
}
.indicator img {
  width: 100% !important;
}
.active, .indicator:hover {
  opacity: 1;
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.2s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
@media only screen and (max-width: 767px) {
  .slideshow {display: none;}
}

.main-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media screen and (min-width: 550px) {
  body {width: 96%;}
  .main-grid {grid-template-columns: repeat(2, 1fr);}
}
@media screen and (min-width: 768px) {
  body {width: 94%;}
  .main-grid {grid-template-columns: repeat(3, 1fr);}
}
@media screen and (min-width: 990px) {
  body {width: 92%;}
  .main-grid {grid-template-columns: repeat(4, 1fr);}
}
@media screen and (min-width: 1280px) {
  body {width: 90%;}
  .main-grid {grid-template-columns: repeat(4, 1fr);}
}

.grid-item {
  border-radius: 4px;
  padding: .5em;
  background-color: var(--bg);
}
.thumb {
  padding-bottom: 56%;
  background-size: cover;
  background-position: center center;
  border-radius: 4px 4px 0 0;
}

.one .thumb {background-image: url('https://picsum.photos/300/200/?image=10');}
.two .thumb {background-image: url('https://picsum.photos/300/200/?image=11');}
.three .thumb {background-image: url('https://picsum.photos/300/200/?image=12');}
.four .thumb {background-image: url('https://picsum.photos/300/200/?image=13');}
.five .thumb {background-image: url('https://picsum.photos/300/200/?image=14');}
.six .thumb {background-image: url('https://picsum.photos/300/200/?image=15');}
.seven .thumb {background-image: url('https://picsum.photos/300/200/?image=16');}
.eight .thumb {background-image: url('https://picsum.photos/300/200/?image=17');}
.nine .thumb {background-image: url('https://picsum.photos/300/200/?image=18');}
.ten .thumb {background-image: url('https://picsum.photos/300/200/?image=19');}
.eleven .thumb {background-image: url('https://picsum.photos/300/200/?image=20');}
.twelve .thumb {background-image: url('https://picsum.photos/300/200/?image=21');}

.card-content {
  padding: 0 .5em .7em .5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-title {
  margin: 1rem 0 0 0;
  text-transform: uppercase;
  align-self: flex-start;
  color: var(--text);
}
.card-text {
  font-family: 'Bitter', serif;
  font-size: .72em;
  line-height: 1.2;
  align-self: flex-start;
  color: var(--text);
}
button.card-more {
  background: transparent;
  padding: .45em .7em .4em .7em;
  border-radius: 200px;
  font-size: .7em;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
}
button.card-more, button.card-more:visited {
  color: var(--button);
  border: 1.5px solid var(--button);
  transition: all 250ms ease-in-out;
}
button.card-more:hover, button.card-more:active {
  font-weight: 600;
}

.modal {
   display: none;
   position: fixed;
   z-index: 1100;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(10, 10, 10, .4);
}
.modal-content {
   background-color: var(--bg);
   color: var(--text);
   margin: 1rem auto;
   padding: 1em;
   width: 92%;
   border-radius: 4px;
   animation: fadein .3s ease-in-out;
}
@keyframes fadein {
  from{transform:scale(.1);}
}
.close {
   color: var(--accent);
   font-size: 2.5em;
   font-weight: bold;
   position: absolute;
   top: 5px;
   right: 4.25%;
   transition: all .2s ease-in;
   text-shadow: 2px 2px 5px #FAFAFA,
               -2px -2px 5px #FAFAFA,
               2px -2px 5px #FAFAFA,
               -2px 2px 5px #FAFAFA;
}
.close:hover,
.close:focus {
   cursor: pointer;
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2em;
}
.eg-text {
  align-self: center;
}
.eg-text h3 {
  margin-top: 0;
  padding-top: 0;
}
.modal-body img {
  margin-bottom: 1.5em;
  width: 100%;
  height: auto;
}
@media screen and (min-width: 1280px) {
  .modal-body {grid-template-columns: 7fr 5fr; }

}

footer {
  background-color: var(--prime);
  padding: .25rem;
  color: var(--rev-text);
  text-align: center;
}
footer a {
  color: var(--rev-text);
}
footer a:hover {
  color: var(--rev-accent);
}
