/*
 
All grid code is placed in a 'supports' rule (feature query) at the bottom of the CSS (Line 310). 
         
The 'supports' rule will only run if your browser supports CSS grid.
 
Flexbox and floats are used as a fallback so that browsers which don't support grid will still recieve a similar layout.
 

 
/* Gallery Section */
 
 
 .insta_container{
 overflow: hidden; 
    height: 346px;
 } 
 
.insta_title {
  width: 100%;
    -webkit-box-pack: center;
    justify-content: center;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;  
     
 }
 
 .insta_title h2{
    font-size: var(--box-font-size); 
    color: var(--box-font-color);
 }
 
 .insta_profimage{
    border-radius: 50%;
    height: 50px;
    margin-right: 10px;
    margin-bottom: 5px;
 }
 
.insta_left{
    min-width: 33px;
    max-width: 45px;
    height: 261px;
    position: absolute;
    background: #9e9e9eed;
    left: 15px;
    z-index: 10;
    border-radius: var(--img-responsive-border-radius);
opacity: .5;
}
.insta_left:hover {
  opacity: .8;
}
.insta_right{
    min-width: 33px;
    max-width: 45px;
    height: 261px;
    position: absolute;
    background: #9e9e9eed;
    right: 15px;
    z-index: 10;
    margin-top: 14px;
    border-radius: var(--img-responsive-border-radius);
    opacity: .5;
}
.insta_right:hover {
  opacity: .8;
}
.insta_gallery {
    /* flex-wrap: wrap;*/
    margin: -1rem -1rem;
    display: flex;
    width: auto;
    /* grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));*/
    height: 310px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    
}

 
.gallery-item {
    position: relative;
    flex: 1 0 14rem;
    margin: 0.5rem;
    color: #fff;
    cursor: pointer;
    scroll-snap-align: center;
}
 
.gallery-item:hover .gallery-item-info,
.gallery-item:focus .gallery-item-info {
    display: inline-block;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}
.gallery-item-info ul {
    text-align: center;
    position: relative;
    top: 7%;
    transform: translateY(-50%);
    padding-left: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}
.gallery-item-info p {
    position: relative;
    top: 7%;
    text-align: center;
    margin-top: 0px;
    padding-left: 10px;
    padding-right: 10px;
}
 
.gallery-item-info {
    display: none;
}
 
.gallery-item-info li {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 600;
}
 
.gallery-item-likes {
    margin-right: 2.2rem;
}
 
.gallery-item-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    text-shadow: 0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.1);
}
 
.fa-clone,
.fa-comment {
    transform: rotateY(180deg);
}
 
.gallery-image {
    width: 100%;
    height: 100%;
     object-fit: cover; 
    display: block;
    border-radius: var(--img-responsive-border-radius);
}
 
.instaimage {
    box-sizing: border-box;
    margin: 0px;
    min-width: 0px;
    position: absolute;
    opacity: 1;
    z-index: 2;
    top: 0.6em;
    right: 0.6em;
    /* transition: all 0.3s ease 0s; */
}

@media only screen and (max-width: 600px) {
    .gallery-item {
        flex: 1 0 10rem;
    }
    
    .insta_gallery {
        height: 230px;
        margin: 1rem 0rem;
    }
    
    .insta_left{
   display:none;
    }
    .insta_right{
        display:none;
    }
}