* { box-sizing: border-box !important; }

.grid {
  -webkit-column-count: 3;
  -webkit-column-gap:   0px;
  -moz-column-count:    3;
  -moz-column-gap:      0px;
  column-count:         3;
  column-gap:           0px;    
  max-width: 1200px;
  height: auto;
  overflow: none;  
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-sizer-single{
  width: 100%;  
}

.grid-sizer,
.grid-item { 
  width: 30%;
  min-width: 280px;
}

.grid-item-filler{
  width: 95% !important;
  min-height: 50px;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1200px) {
  .grid {
  -moz-column-count:    3;
  -webkit-column-count: 3;
  column-count:         3;
  }

  .grid-item { 
    width: 32%;
    min-width: 280px;
  }
}

@media (max-width: 900px) {
  .grid {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }

  .grid-item { 
    width: 42%;
    min-width: 280px;
  }
    
}

@media (max-width: 400px) {
  .grid {
  -moz-column-count:    1;
  -webkit-column-count: 1;
  column-count:         1;
  }

  .grid-item { 
    width: 97%;
    min-width: 280px;
  }

}

.grid-item {
  padding: 10px;
  margin: 5px;
  border: 1px solid lightgray;
  border-radius: 5px;
  display: inline-block;
  word-wrap: break-word; /* Firefox */
  word-break: break-word; /* Chrome */
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  background-color: white;
  color: black;
}
.grid-item a {
  color: #385898;
}
/* FB post */
.post_header {
  display: flex;
  flex-direction: column;
}

.post_header>a {
  font-weight: bold;
}

.counter_row,
.action_row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}

.description_element {
  margin-top: 10px;
  margin-bottom: 10px;
  border-left: 2px solid lightgray;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
}

.post_header a:hover, .description_element a:hover, .goto_top:hover {
  text-decoration: underline;
}

/* Video preview thumbnail & play icon */
.video_background {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.473) !important;
  font-size: 60px;
}

.video_background:hover {
  color: white !important;
}

.video_foreground {
  position: absolute;            
}

.fa::before {
  margin-right: 5px;
}
/* Slideshow dots */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

.fb_button {
  background-color: #4267b2;
  color: white !important;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:3px 6px 3px 6px;
  font-size: 12px;
  border-radius: 3px;
  width: 45%;
}

.fb_button:hover {
  background-color: #365899;
}

.fb_button span {
  font-family: Helvetica, Arial, sans-serif;  
}

/* Loading animation */
.loader_container  {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: #385898;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}
/* Filler item goto top button */
.goto_top {
  cursor: pointer;
  color: #385898;
}

.goto_top span {
  font-family: Helvetica, Arial, sans-serif;  
}
/* Slideshow element controls */
.slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slide_controls.next {
  right: 0px;
}

.slide_controls.prev {
  left: 0px;
}

.slide_controls {
  position: absolute;
  color: #ffffff9e !important;
  background: #3858989e;
  padding: 15px;
  cursor: pointer;
  font-size: 15px;
}

.slide_controls::before {
  margin: 0px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide_controls:hover {
  color: #ffffff !important;
  background: #385898;
}