/** categories for four types of design with flexbox properties*/
.gallery
{
    width: 100%;
    height: auto;
}

.gallery .row
{
    margin:30px;
    margin-left: 60px;
    margin-right: 60px;
}

#Menu1
{
    width: 100%; 
}
#Menu2, #Menu3, #Menu4
{
   width: 100%;
     display: none;
}
.inner_div
{
    width: 100%;
}


/** CATEGORIES MENU WITH FLEX* -------------------*/
.categories
{
    width: 60%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-around;
}

.categories a
{
    background-color: white;
    border: 1px solid #575653;
    text-decoration: none;
    color: #575653;
    border-radius: 5px;
    height: 35px;
    width: 200px;
    text-align: center;
    
}
.categories a:hover
{
    background-color: #575653;
    color: white;
}
.categories a:active{
    background-color:#cc9706;
    color: white;
}

/** POPUP MODAL ---------------------------------- **/
.modal-body iframe
{
    height: 700px;
    width: 100%;
}

.modal-dialog 
{
    margin: 20px;
    padding: 20px;
    max-width: 100%;
}


.modal-section
{
    background-color: white;
    max-width: 100%;
    text-align: center;
}

.modal-section .row
{
    margin-left:0;
    margin-right: 0;
    padding-bottom: 50px;
}

.modal-section h1 
{
    font-size: 130%;
    line-height: 100%;
    font-weight: 400;
    color: var(--darkgray);
    padding-bottom: 20px;
}

.modal-section h3
{
    color: var(--orange);
    font-weight: 300;
    font-size: 80%;
}

.modal-section p
{
    color: var(--darkgray);
    line-height: 20px;
    font-weight: 200;
    font-size: 80%;
    text-align: left;
}

.full-img
{
    width: 100%;
}

.half-img
{
    width: 100%;
}

.full-80-img
{
    width: 70%;
}

.col-color
{
    background-color:#e6e6e6; 
}

.col-color1
{
    background-color: #cfcfcf;
}

.col-color2
{
    background-color: #ebeced;
}

/**  MEDIA QUERIES -------------------------------**/
@media screen and (max-width: 1024px ){
    
    .gallery
    {
    flex-direction: column;
    }
    .categories a{
        width: 80%;
        text-align: center;
        margin: 2px;
        padding: 5px;
    }
    .gallery .row{
    margin-left: 0;
    margin-right: 0;
}
    
    .modal-dialog {
        margin: 0;
        padding: 0;
    }
}


/** HOVER EFFECT ON EACH GALLERY PROJECT IMAGE **/


/*Reference from https://miketricking.github.io/bootstrap-image-hover/*/

.hovereffect 
{
  width: 100%;
  height: 100%;
  float: left;
  overflow: hidden;
  position: relative;
  text-align: center;
  cursor: default;
}

.hovereffect .overlay 
{
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-bottom: 1px solid #FFF;
  border-top: 1px solid #FFF;
  transition: opacity 0.35s, transform 0.35s;
  transform: scale(0,1);  
}

.hovereffect:hover .overlay 
{
  opacity: 11;
  filter: alpha(opacity=100);
  transform: scale(1);
    
}

.hovereffect img 
{
  display: block;
  position: relative;
  transition: all 0.35s;
    width: 100%;
}

.hovereffect:hover img 
{
  filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="linear" slope="0.6" /><feFuncG type="linear" slope="0.6" /><feFuncB type="linear" slope="0.6" /></feComponentTransfer></filter></svg>#filter');
  filter: brightness(0.4);
}

.hovereffect h2 
{
  text-transform: uppercase;
  text-align: center;
  position: relative;
  font-size: 17px;
  background-color: transparent;
  color: #FFF;
  padding: 1em 0;
  opacity: 0;
  filter: alpha(opacity=0);
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(0,-100%,0);
}

.hovereffect a, .hovereffect p 
{
  color: #FFF;
  padding: 1em 0;
  opacity: 0;
  filter: alpha(opacity=0);
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(0,100%,0);
}

.hovereffect:hover a, .hovereffect:hover p, .hovereffect:hover h2 
{
  opacity: 1;
  filter: alpha(opacity=100);
  transform: translate3d(0,0,0);
    
}

/** MEDIA QUERIES FOR HOVER EFFECT ON EACH GALLERY PROJECT IMAGE **/

@media screen and (max-width: 800px ) {
 
    .hovereffect h2{
        padding: 0;
    }
     .hovereffect p{
        padding: 0;
        line-height: 17px;
    }
    .inner_div .row .col-sm{
    padding: 10px;
}
}
@media screen and (max-width: 414px ) {
   .hovereffect h2{
        padding: 0;
    }
    .hovereffect p{
        padding: 0;
        font-size: 17px;
    }
}

@media screen and (max-width: 1024px ){
     .hovereffect h2{
        padding: 0;
         
    }
    .hovereffect p{
        padding: 0;
        font-size: 17px;
    }
}
@media screen and (max-width: 320px ) {
   .hovereffect h2{
        padding: 0;
    }
    .hovereffect p{
        padding: 0;
        font-size: 17px;
    }
}
@media screen and (max-width: 1112px ) {
   .hovereffect h2{
        padding: 0;
    }
    .hovereffect p{
        padding: 0;
        font-size: 17px;
    }
}



