* { box-sizing: border-box !important; }

.inst4_post_header {
  display: grid;  
  grid-template-columns: min-content auto;
  padding-bottom: 5px;
}

.inst4_post_header_avatar {
  grid-row: 1 / span 2;
  height: 40px;
  width: 40px;
}

.inst4_post_header_name {
  grid-row: 1;
  padding-left: 10px;
  font-weight: 600;
}

.inst4_post_header_date {
  grid-row: 2;
  text-align: right;
}

.inst4_post_img {
  cursor: pointer;
  max-width: 100%;
  height: auto;
}

.inst4_post_button {
  width: 5%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.inst4_avatar {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  margin-right: 5px;
}

.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;
}

.inst4-container { 
  height: auto;
  min-height: 300px;  
  float: left;  
  border: 1px solid #888;
  border-radius: 5px;
  padding: 10px;
  margin: 5px;  
  background-color: white;
}

.inst4-container-single
{
  width: 90% !important;
  max-width: 330px;
}

.grid-item-filler{
  width: 95% !important;
  min-height: 50px;
  display: flex;
  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;
  }

}

/* The Modal (background) */
.modal_joomst4 {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 998; /* Sit on top */
  justify-content: center;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  /*width: 100vw; /* Full width */
  /*height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  transition: 0.4s;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
      -moz-user-select: none; /* Firefox */
      -ms-user-select: none; /* Internet Explorer/Edge */
          user-select: none; 
}

/* Modal Content/Box */
.modal_content {
  z-index: 999;
  background-color: #fefefe;
  position: relative;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 25px;
  width: 50%;
  min-width: 320px;
  max-height: 0px;
  max-width: 735px;
  transition: max-height 2s ease-out;        
  overflow: hidden;
}

.modal_url {
  width: 90%;
  display: flex;
  justify-content: center;
}

.fa::before
{
  margin-right: 5px;
}
/* The back to top button */
.fa-angle-double-up:hover
{
  color: rgb(0, 165, 0);
  font-weight: bold;  
}
.fa-angle-double-up
{
  color: green;
  cursor: pointer;
}

/* The Close Button */
.close {
  color: #aaa;  
  font-size: 45px;
  font-weight: bold;  
  height: 28px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
  
.modal_media {
  max-width: 450px;
  height: auto;
}

.content {
grid-area: content;
display: flex;
flex-direction: column;
}
.main-nav {
grid-area: nav;
max-width: 450px;
display: flex;
justify-content: center;
}
.main-footer {
grid-area: footer;
display: flex;
}
.wrapper {
background-color: #fefefe;
position: fixed;
margin: 5% auto;
max-width: 850px;
padding: 20px;
border: 1px solid #888;
border-radius: 25px;
display: grid;
grid-gap: 20px;
grid-template-areas:     
"nav"
"content"    
"footer";
}

@media only screen and (max-width: 700px)
{
.modal_media {
  max-width: 300px;  
}
}

@media (min-width: 700px) {
  .wrapper {
  grid-template-areas:       
  "nav"
  "content"    
  "footer";
  }

  .close {
    color: red !important; 
    font-weight: bold !important;  
    opacity: 1 !important;  
  }  
}

@media (min-width: 700px) {
  .wrapper {
  grid-template-columns: 3fr 2fr;
  grid-template-areas:       
  "nav    content"
  "nav    content"
  "footer footer"
  }
  .close {
    color: red !important; 
    font-weight: bold !important;  
    opacity: 1 !important;     
  }
}

hr {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

/* Carousel */

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Limit slideshow video element size. */
.mySlides>.video_player {
  max-width: 450px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.active {
  background-color: #717171;
}

/* The dots/bullets/indicators */
.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;
}


/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}