@import url(fonts.css);
@import url(font-awesome-6.7.2/css/all.min.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*====== Common Styles for all sections ======*/
input, button, i {
    outline: none;
    border: none;
    border-radius: 5px;
}


/*====== Search section ======*/
.search {
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.search .content {
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.search h1 {
    font-size: 2.65rem;
    font-weight: 600;
}

.search p {
    font-size: 1.5rem;
    font-weight: 8px;
    margin-top: 20px;
}

.search .search-box {
    height: 55px;
    margin: 45px 0;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    font-size: 1.4rem;
    color: #8d8d8d;
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    padding-left: 55px;
}

#logo {
    background-color: #6a5cff;
    color: white;
    padding: 8px;
    border: 2px #390a55 dotted;
    border-radius: 15px;
    -webkit-text-stroke: 0.01rem black;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/*====== Gallery section ======*/
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery .images {
    gap: 15px;
    max-width: 95%;
    margin-top: 40px;
    columns: 5 340px;
}

.images .card {
    display: flex;
    overflow: hidden;
    position: relative;
    list-style: none;
    margin-bottom: 14px;
    border-radius: 4px;
}

.images .card .details {
    position: absolute;
    bottom: -100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    transition: bottom 0.1s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.images .card:hover .details {
    bottom: 0;
}

.card .details .photographer {
    color: #fff;
    display: flex;
    align-items: center;
}

.photographer i {
    font-size: 1.4rem;
    margin-right: 10px;
}

.details .photographer span {
    font-size: 1.05rem;
}

.card .details button {
    cursor: pointer;
    padding: 3px 8px;
    font-size: 1.1rem;
    background: #fff;
}

.images img {
    width: 100%;
}

.gallery .load-more {
    margin: 50px 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 12px 27px;
    background: #6a5cff;
}

.gallery .load-more.disabled {
    opacity: 0.6;
    pointer-events: none;
}


/*====== LightBox Image Preview ======*/
.lightbox {
    position: fixed;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.65);
}

.lightbox.show {
    display: block;
}

.lightbox .wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    padding: 20px;
    max-width: 850px;
    background: #fff;
    border-radius: 5px;
    transform: translate(-50%, -50%);
}

.wrapper header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .photographer {
    color: #333;
}

header .photographer i {
    font-size: 1.7rem;
}

header .photographer span {
    font-size: 1.2rem;
}

header .buttons i {
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    background: #6a5cff;
    font-size: 1.2rem;
    display: inline-block;
}

.buttons i:last-child {
    margin-left: 10px;
    background: #6c757d;
}

.preview-img {
    display: flex;
    margin-top: 25px;
    justify-content: center;
}

.wrapper .preview-img .img {
    max-height: 65vh;
    max-width: 90vh;
}

.preview-img .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*=======Media query max-width 768px=======*/
@media screen and (max-width: 768px) {
    /*====== LightBox Image Preview ======*/
    .lightbox .wrapper {
        width: 95%;
    }
}

/*=======Media query max-width 425px=======*/
@media screen and (max-width: 425px) {
    /*====== Search section ======*/
    .search {
        height: 85vh;
    }

    .search h1 {
        font-size: 2.30rem;
    }
    
    .search p {
        font-size: 1.3rem;
    }

    .search-box input {
        width: 95%;
        font-size: 1rem;
    }

    /*====== Gallery section ======*/
    .gallery .images {
        columns: 5 150px;
    }
}

/*=======Media query max-width 320px=======*/
@media screen and (max-width: 320px) {
    /*====== Search section ======*/
    .search h1 {
        font-size: 2.20rem;
    }
    
    .search p {
        font-size: 1.2rem;
    }

    /*====== Gallery section ======*/
    .gallery .images {
        columns: 5 100px;
    }

    /*====== LightBox Image Preview ======*/
    header .photographer i {
        font-size: 1.5rem;
    }
    
    header .photographer span {
        font-size: 0.8rem;
    }

    header .buttons i {
        font-size: 1rem;
    }
}