/* ----- INTRO  ----*/

.endprod-intro-wrapper {
    width: 100%;
    height: 80vh;
    position: relative;
}

.endprod-intro-img {
    position:absolute;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.endprod-intro-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.endprod-intro-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(to right, black, transparent);
    z-index: 2;
}

.endprod-intro-write {
    font-family: "Poppins", san-serif;
    position: absolute;
    left:5%;
    top:50%;
    transform: translateY(-50%);
    padding: 20px;
    width: 30%;
    z-index: 3;
}

.endprod-intro-write p:nth-child(1){
    font-size: 30px;
    color: #fff;
}

.endprod-intro-write p:nth-child(2){
    font-size: 18px;
    color: #fff;
    text-align: justify;
}


/* gallery css */


.endprod-body {
	width: 100%;
    padding-top:30px;
    background:white;    /*#c21104;*/
    padding-bottom: 30px;
}

.endprod-container {
    width: 90%;
    margin:auto;
    padding-left: 10px;
    padding-right: 10px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    grid-auto-rows: 300px 300px;
    grid-gap: 10px;
    grid-auto-flow: dense;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
    background: #C6e2fc;
}


.gallery-item .image {
    width: 100%;
    height: 100%;
    overflow:hidden;
    position: relative;
}


.gallery-item .image img {
    width: 100%;
    height: 100%; 
    object-fit:cover;
    object-position: 50% 50%;
    cursor:pointer;
    transition:.5s ease-in-out;
    position: relative;
}

.gallery-item:hover .image img{
    transform:scale(1.1);
}

..xgallery-item .text {
    opacity: 0;
    position:absolute;
    padding:0;
    margin: 0;
    bottom:1px;
    width: 100%;
    left:0px;
    line-height: 40px;
    color:#000;
    font-family: "Montserrat", san-serif;
    font-weight: bold;
    font-size:16px;
    pointer-events:none;
    z-index:4;
    transition: .5s ease-in-out;
    background: rgba(0,0,0,.3);
  /*  -webkit-backdrop-filter: blur(5px) saturate(1.8);
    backdrop-filter: blur(5px) saturate(1.8);*/
}

.gallery-item p{
    text-align: center;
}


..xgallery-item:hover .text {
    opacity:1;

  /*  animation: move-down .3s linear;
    padding:1em;
    width: 100%;*/ 
}

.w-1{
    grid-column: span 1;
}
.w-2{
    grid-column: span 2;
}
.w-3{
    grid-column: span 3;
}
.w-4{
    grid-column: span 4;
}
.w-5{
    grid-column: span 5;
}
.w-6{
    grid-column: span 6;
}


.h-1 {
    grid-row: span 1;
}
.h-2 {
    grid-row: span 2;
}
.h-3 {
    grid-row: span 3;
}
.h-4 {
    grid-row: span 41;
}
.h-5 {
    grid-row: span 5;
}
.h-6 {
    grid-row: span 6;
}


@media screen and (max-width:500px) {
    .endprod-container {
        grid-template-columns: repeat(1,1fr);
        grid-auto-rows: 200px 200px;

    } 
    .w-1, .w-2, .w-3, .w-4, .w-5, .w-6 {
        grid-column:span 1;
    }


}

/*
.image:after {
    position:absolute;   
    top:50%; 
    left:50%;
    transform: translate(-50%, -50%);
    width:100%;
    padding:0px;
    opacity: 0;
    text-align: center;
    content: attr(data-text);
    
    transition: .5s;
    color: #fff;
    background-color: rgba(0,0,0,.5);
    padding:0;
    margin:0;
    height: 70px;
    border:1px solid red;
}


.image:hover:after {
    opacity: 1;
}

*/


/*--------- media query --- */

@media only screen and (max-width: 414px) {

    .endprod-intro-overlay {
        width: 90%;
    }

    .endprod-intro-write {
        padding: 10px;
        width: 50%;
    }

    .endprod-intro-write p:nth-child(1){
        font-size: 26px;
    }

    .endprod-intro-write p:nth-child(2){
        font-size: 15px;
    }

}

@media screen and (max-width:500px) {
    .endprod-container {
        grid-template-columns: repeat(1,1fr);
        grid-auto-rows: 200px 200px;

    } 
    .w-1, .w-2, .w-3, .w-4, .w-5, .w-6 {
        grid-column:span 1;
    }


}