*{
    margin: 0%;
    padding: 0px;
    overflow-x: hidden;
    
}
/* head of our page */
.container1{
    background-color: #1B3358;
    padding: 20px;
}

h2{
    font-family:"Roboto";
    text-align: center;
    font-size: 40px;
    color: whitesmoke;
    padding-top: 30px;
}
p{
    font-family:"Roboto";
    text-align: center;
    color: rgb(184, 181, 181);
    padding-top: 20px;
    font-style: italic;
}
.search{
    display: flex;
    width: 40%;
    padding-top: 30px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30%;
}
#search-icon{
    width: 20px;
    position: absolute;
    padding-left: 20px;
}
#search-bar{
    width: 100%;
    height: 100%;
    padding: 15px 30px;
    background-color: #fff;
    border: none;
    border-radius: 10px;
    text-indent: 30px; /* Adjust the position of the placeholder text */
    
}
#search-bar::placeholder {
    color: #999;
    font-style: italic; 
}

/* image gallery */
.gallery{
    margin-top: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery .images {
    columns: 3 340px;
    gap: 15px;
    max-width: 95%;
    
}
.images img{
    width: 100%;
    max-width: 100%;
    gap: 15px;
}
.images .cards{
    list-style: none;
    margin-bottom: 14px;
    border-radius: 4px;
    position: relative;
    display: flex;
    overflow: hidden;
}
.images .cards:hover img{
    cursor: pointer;
    opacity: 0.9;
    filter: brightness(1);
}

.images .cards .details{
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: -100px;
    width: 100%;
    padding: 10px 10px;
    transition: bottom 0.1s ease;
    background:linear-gradient(to top,  rgb(0,0,0,0.6), transparent);
    
}
.images .cards:hover .details{
    bottom: 0px;
}
.cards .details .photography{
    display: flex;
    color: #fff;
    align-items: center;
    
}
.details .photography{
    font-size: 1rem;
    margin-right: 10px;
    
}
.details .photography span{
    font-family:"Lato";
    margin-left: 5px;
}
.downloadBtn{
    padding: 8px 10px 8px 10px;
    border: none;
    margin-right: 20px;
    border-radius: 5px;
    background-color: #fff;
}
.downloadBtn:hover{
    opacity: 90%;
    cursor: pointer;
}

/* load-more button  */
.loadMore{
    text-align: center;
}
.loadMore .loadbtn{
    background-color: #ae445a;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    /* color: #1B3358; */
    color:#fff;
    font-size: 15px;
    font-family:"Roboto";
    font-style: bold;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 20px;
}
.loadMore .loadbtn.disabled{
    opacity: 0.6;
    pointer-events: none;
}
.loadbtn:hover{
    opacity: 95%;
    cursor: pointer;
}

/* preview image */

.box{
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0,0.65);
    display: none;
}
.box.show{
    display: block;
}
.box .wrap{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

}
.wrap{
    background-color: aliceblue;
    padding: 20px;
    max-width: 850px;
    border-radius: 4px;
}
.wrap header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.box .wrap .photography{
    display: flex;
    align-items: center;
    
}
.wrap .photography{
    font-size: 1rem;
    margin-right: 10px;
    
}
.wrap .photography span{
    font-family:"Lato";
    margin-left: 7px;
}
.topButtons .fa-xmark{
    background-color: #f30131;
    padding: 3px 5px 3px 5px;
    color: white;
    border-radius: 4px;
}
.topButtons .fa-xmark:hover{
    opacity: 80%;
    cursor: pointer;
}
.topButtons .fa-download{
    background-color: #c5babd;
    padding: 3px 5px 3px 5px;
    color: rgb(0, 0, 0);
    border-radius: 4px;
    margin-right: 7px;
}
.topButtons .fa-download:hover{
        opacity: 80%;
        cursor: pointer;
}
.previewImg{
    display: flex;
    justify-content: center;
}
.previewImg .img img{
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

@media screen and (max-width: 730px) {
    .gallery .images {
        columns: 2;
    }
    #search-bar::placeholder {
        font-size: 12px; 
    }
    .search{
        padding-bottom: 15px;
        padding-left: 18%;
        width: 60%;
    }
}
@media screen and (max-width: 515px) {
    h2{
        font-size: 30px;
    }
    p{
        font-size: 15px;
    }
    #search-icon{
        width: 15px;
        position: absolute;
        padding-left: 11px;
    }
    #search-bar{
        padding: 10px 20px;
        border-radius: 5px;
        text-indent: 10px;
    }
    .search{
        padding-bottom: 15px;
        padding-left: 10%;
        width: 80%;
    }
    #search-bar::placeholder {
        font-size: 13px 
    }
}
@media screen and (max-width: 395px) {
    h2{
        font-size: 28px;
    }
    p{
        font-size: 11px;
    }
    #search-icon{
        width: 15px;
        position: absolute;
        padding-left: 11px;
    }
    #search-bar{
        padding: 10px 20px;
        border-radius: 5px;
        text-indent: 10px;
    }
    .search{
        padding-bottom: 20px;
        padding-left: 10%;
        width: 80%;
    }
    #search-bar::placeholder {
        font-size: 12px 
    }
    .loadMore .loadbtn{
        padding: 5px 20px;
        border-radius: 4px;
        font-size: 13px;
    }
}
@media screen and (max-width: 371px) {
    h2{
        font-size: 25px;
    }
    p{
        font-size: 11px;
    }
    #search-icon{
        width: 12px;
        position: absolute;
        padding-left: 9px;
    }
    #search-bar{
        padding: 8px 20px;
        border-radius: 5px;
        text-indent: 10px;
    }
    .search{
        padding-bottom: 16px;
        padding-left: 10%;
        width: 80%;
    }
}
@media screen and (max-width: 335px) {
    h2{
        font-size: 23px;
    }
    p{
        margin-top: -5px;
        font-size: 11px;
    }
    #search-bar{
        padding: 5px 20px;
        border-radius: 5px;
        text-indent: 10px;
    }
}
    @media screen and (max-width: 312px) {
        h2{
            font-size: 20px;
        }
        p{
            margin-top: -5px;
            font-size: 11px;
        }
        #search-bar{
            padding: 5px 20px;
            border-radius: 5px;
            text-indent: 10px;
        }
}
