/*
 * Image Grid Layout
*/
.htmegavc-image-gridstyle-4 .htb-row > [class*="htb-col"] {
  padding-left: 10px;
  padding-right: 10px;
} 

.htmegavc-singleimage-grid .thumb img {
    width: 100%;
}

.htmegavc-singleimage-gridstyle-1 {
    width: 100%;
    height: 100%;
    float: left;
    overflow: hidden;
    position: relative;
    text-align: center;
    cursor: default;
    margin-top: 30px;
    overflow: hidden;
}

.htmegavc-singleimage-gridstyle-1 .thumb {
    overflow: hidden;
}

.htmegavc-singleimage-gridstyle-1 .thumb a {
    position: relative;
    display: block;
    z-index: 2;
}

.htmegavc-singleimage-gridstyle-1 .thumb a::before {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    content: "";
    z-index: 1;
}

.htmegavc-singleimage-gridstyle-1 .thumb a img {
    display: block;
    position: relative;
    -webkit-transition: all .4s linear;
    transition: all .4s linear;
}

.htmegavc-singleimage-gridstyle-1:hover .thumb a::before {
    opacity: 1;
}

.htmegavc-singleimage-gridstyle-1:hover .thumb a img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.htmegavc-singleimage-gridstyle-1 .image-grid-content h2 {
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    position: absolute;
    font-size: 17px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-transform: translateY(-100px);
    transform: translateY(-100px);
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    padding: 10px;
    width: 100%;
    top: 0;
    z-index: 3;
}

.htmegavc-singleimage-gridstyle-1 .image-grid-content a.read-btn {
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    margin: 50px 0 0;
    padding: 7px 14px;
    position: absolute;
    top: 50%;
    margin: 0;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-70%);
    transform: translateX(-50%) translateY(-70%);
}

.htmegavc-singleimage-gridstyle-1 .image-grid-content a.read-btn:hover {
    -webkit-box-shadow: 0 0 5px #fff;
    box-shadow: 0 0 5px #fff;
}

.htmegavc-singleimage-gridstyle-1:hover .image-grid-content {
    opacity: 1;
    filter: alpha(opacity=100);
}

.htmegavc-singleimage-gridstyle-1:hover .image-grid-content h2 {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.htmegavc-singleimage-gridstyle-1:hover .image-grid-content a.read-btn {
    opacity: 1;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    -webkit-transition-delay: .2s;
    transition-delay: .2s;
    z-index: 4;
}

/*Image Grid style 2*/
@media (min-width: 1400px){
	.custom-col-5 {
	    padding-left: 0px;
	    padding-right: 0px;
	    -webkit-box-flex: 0;
	    -ms-flex: 0 0 20%;
	    flex: 0 0 20%;
	    max-width: 20%;
	}
}
.htmegavc-singleimage-gridstyle-2 {
    width: 100%;
    height: 100%;
    float: left;
    overflow: hidden;
    position: relative;
    text-align: center;
    cursor: default;
}

.htmegavc-singleimage-gridstyle-2 .thumb {
    overflow: hidden;
}

.htmegavc-singleimage-gridstyle-2 .thumb a {
    position: relative;
    display: block;
    z-index: 2;
}

.htmegavc-singleimage-gridstyle-2 .thumb a::before {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform: translate(460px, -100px) rotate(180deg);
    transform: translate(460px, -100px) rotate(180deg);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    content: "";
    z-index: 1;
}

.htmegavc-singleimage-gridstyle-2 .thumb a img {
    display: block;
    position: relative;
    -webkit-transition: all .4s linear;
    transition: all .4s linear;
    width: 100%;
}

.htmegavc-singleimage-gridstyle-2:hover .thumb a::before {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
}

.htmegavc-singleimage-gridstyle-2:hover .thumb a img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.htmegavc-singleimage-gridstyle-2 .image-grid-content h2 {
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    position: relative;
    font-size: 17px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: 0.4s ease-in-out;
    margin-bottom: 0;
    margin-top: 0;
}

.htmegavc-singleimage-gridstyle-2 .image-grid-content a.read-btn {
    display: inline-block;
    text-decoration: none;
    padding: 7px 14px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    z-index: 4;
    left: 50%;
    position: absolute;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-80%);
    transform: translateX(-50%) translateY(-80%);
    opacity: 0;
}

.htmegavc-singleimage-gridstyle-2 .image-grid-content a.read-btn:hover {
    -webkit-box-shadow: 0 0 5px #fff;
    box-shadow: 0 0 5px #fff;
}

.htmegavc-singleimage-gridstyle-2:hover .image-grid-content {
    opacity: 1;
    filter: alpha(opacity=100);
}

.htmegavc-singleimage-gridstyle-2:hover .image-grid-content h2 {
    position: absolute;
    top: 20px;
    z-index: 3;
    opacity: 1;
    margin-top: 0;
}

.htmegavc-singleimage-gridstyle-2:hover .image-grid-content a.read-btn {
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
}

/* Image Grid style 3 */
.htmegavc-image-gridstyle-3 .htb-row > [class*="htb-col"] {
  padding-left: 0;
  padding-right: 0;
}

.htmegavc-singleimage-gridstyle-3 .thumb {
    overflow: hidden;
}

.htmegavc-singleimage-gridstyle-3 .thumb a img {
    transition: 0.4s ease-in-out;
}

.htmegavc-singleimage-gridstyle-3:hover .thumb a img {
    transform: scale(1.1) rotate(3deg);
}

/*Image Grid style 4*/
.htmegavc-singleimage-gridstyle-4 {
    margin-top: 20px;
    position: relative;
}

.htmegavc-singleimage-gridstyle-4 .thumb a img {
    width: 100%;
}

.htmegavc-singleimage-gridstyle-4 .image-grid-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: 0.3s ease-out;
    transition-property: opacity, transform, filter;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
}

.htmegavc-singleimage-gridstyle-4 .image-grid-content .hover-action {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    padding: 0 80px;
}

.htmegavc-singleimage-gridstyle-4 .image-grid-content .hover-action h2{
	margin-top: 0px;
	margin-bottom: 15px;
	margin-top: 0;
}
.htmegavc-singleimage-gridstyle-4 .image-grid-content .hover-action h2 a {
    color: #18012c;
}

.htmegavc-singleimage-gridstyle-4 .image-grid-content .hover-action p {
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    margin: 0;
    line-height: 28px;
}

.htmegavc-singleimage-gridstyle-4:hover .image-grid-content {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Image Grid style 5 */
.htmegavc-singleimage-gridstyle-5 {
    margin-top: 50px;
    position: relative;
}

.htmegavc-singleimage-gridstyle-5 .thumb a img {
    width: 100%;
}

.htmegavc-singleimage-gridstyle-5 .image-grid-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: 0.3s ease-out;
    transition-property: opacity, transform, filter;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
}

.htmegavc-singleimage-gridstyle-5 .image-grid-content .hover-action {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    padding: 0 20px;
}

.htmegavc-singleimage-gridstyle-5 .image-grid-content .hover-action h2 {
    color: #ffffff;
    margin-top: 0px;
    margin-bottom: 5px;
    font-size: 23px;
}

.htmegavc-singleimage-gridstyle-5 .image-grid-content .hover-action h2 a {
    color: #ffffff;
}

.htmegavc-singleimage-gridstyle-5 .image-grid-content .hover-action p {
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    margin: 0;
    line-height: 26px;
    color: #ffffff;
}

.htmegavc-singleimage-gridstyle-5:hover .image-grid-content {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Tablet desktop :768px. */
@media (min-width: 768px) and (max-width: 991px) {
	.htmegavc-singleimage-gridstyle-4 .image-grid-content .hover-action {
		padding: 10px;
	}
	.htmegavc-singleimage-gridstyle-4 .image-grid-content h2 {
		font-size: 20px;
		margin-bottom: 10px;
	}
	.htmegavc-singleimage-gridstyle-5 .image-grid-content .hover-action h2 {
		font-size: 20px;
	}
	.htmegavc-singleimage-gridstyle-5 .image-grid-content .hover-action {
		padding: 0 10px;
	}
	.htmegavc-singleimage-gridstyle-1 .image-grid-content a.read-btn {
		width: 135px;
	}
}