.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-item {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.blog-item a {
    text-decoration: none;
    color: #000;
}

.blog-item img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
}

.blog-item h5 {
    margin-top: 10px;
    line-height: 1.5em;
    font-weight: 500;
}
.zoom {
  padding: 2px;
  background: currentColor;
  transition: transform .5s;
  margin: 0 auto;
  width: 24%;
  display: inline-block;
}

.zoom:hover {
  -ms-transform: scale(2.0); /* IE 9 */
  -webkit-transform: scale(2.0); /* Safari 3-8 */
  transform: scale(2.0); 
}

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
      border: 5px solid #000;
    padding: 3px;
}

#myImg:hover {opacity: 0.7;}
#myImg1 {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
      border: 5px solid #000;
    padding: 3px;
}

#myImg1:hover {opacity: 0.7;}
#myImg6{
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
      border: 5px solid #000;
    padding: 3px;
}

#myImg6:hover {opacity: 0.7;}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  z-index: 999999999999999;
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}
.glyphicon-chevron-right:before {
    content: "\2192"!important;
    color: #fff!important;
}
.glyphicon-chevron-left:before {
    content: "\2190"!important;
    color: #fff!important;
}
@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  opacity: 1;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.close1 {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close1:hover,
.close1:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.close2 {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close2:hover,
.close2:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.d{
    margin-left: 25%;
}
.dots{
  bottom: 0px;
}
.carousel-inner > .item.active, .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    left: 80px;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

.gallery_img img{
    width: 100%;
    height: 250px;
}
.event_gallery figure.effect-bubba img {
    width: 100%;
}

.event_gallery {
    position: relative;
    float: left;
    overflow: hidden;
    background: #de4726;
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;
    margin-bottom: 30px;
}

figure.effect-bubba img {
    -webkit-transition: opacity 0.50s;
    transition: opacity 0.50s;
}

figure.effect-bubba:hover img {
    opacity: 0.8;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.50s, -webkit-transform 0.50s;
    transition: opacity 0.50s, transform 0.50s;
}

figure.effect-bubba figcaption::before {
    border-top: 2px solid #eb9f19;
    border-bottom: 2px solid #eb9f19;
    -webkit-transform: scale(0,1);
    transform: scale(0,1);
}

figure.effect-bubba figcaption::after {
    border-right: 2px solid #eb9f19;
    border-left: 2px solid #eb9f19;
    -webkit-transform: scale(1,0);
    transform: scale(1,0);
}

figure.effect-bubba i {
    opacity: 0;
    color:#fff;
    padding-top: 35%;
    -webkit-transition: opacity 0.50s, -webkit-transform 0.50s;
    transition: opacity 0.50s, transform 0.50s;
    -webkit-transform: translate3d(0,-60px,0);
    transform: translate3d(0,-60px,0);
}

figcaption{
    position: absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
    margin-left: auto;
    margin-right: auto;
}

figure.effect-bubba p {
    color:#fff;
    padding: 20px 2.5em;
    opacity: 0;
    -webkit-transition: opacity 0.50s, -webkit-transform 0.50s;
    transition: opacity 0.50s, transform 0.50s;
    -webkit-transform: translate3d(0,60px,0);
    transform: translate3d(0,60px,0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

figure.effect-bubba:hover i,
figure.effect-bubba:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}