@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(90deg, rgb(198, 131, 214), rgb(247, 165, 219));
    position: relative;
    z-index: 10;
}

/* Logo */
.logo img {
    width: 120px;
    height: auto;
}

/* Navbar Links */
/* Style for the menu bar icon */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 25px;
    color: white;
}

/* Hide the navigation links initially on mobile */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    transition: all 0.5s ease;
}


.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #ffd700; /* Golden color on hover */
    transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon:hover {
    color: #ffd700;
    transform: scale(1.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .social-icons {
        margin-top: 10px;
    }
}

.search {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.search img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}
.search .content {
    color: black;
    text-align: center;
    position: relative;
    z-index: 2;
}
.search h1 {
    font-size: 50px;
    font-weight: 600;
}
.search p {
    font-size: 20px;
    margin-top: 8px;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%; /* Responsive width */
    max-width: 750px; /* Max width for larger screens */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin: 25px;
}

.search-box input {
    flex: 1; /* Fills remaining space */
    padding: 10px 10px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    outline: none;
    background: none;
}

.search-box input::placeholder {
    color: #b2bec3;
    font-style: italic;
}

.search-box .icon {
    margin-left: 10px;
    font-size: 20px;
    
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-box {
        max-width: 500px;
        padding: 8px;
    }
    .search-box input {
        font-size: 14px;
    }
    .search-box .icon {
        font-size: 18px;
    }
}
.search-box input {
    width: 100%;
    height: 100%;
    font-size: 15px;
    padding-left: 55px;
}
.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;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    list-style: none;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #f2f2f2;
}
.images .card .details {
    position: absolute;
    bottom: -100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content:space-between;
    padding: 15px 20px;
    transition: bottom 0.4s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.images .card:not(.loading):hover .details{
    bottom: 0;
}
.images .card.loading img {
    width: 80px;
    height: 80px;
    
}
.card .details .photographer {
    color: #fff;
    display: flex;
    align-items: center;
}
.details .photographer svg {
    font-size: 20px;
    margin-right: 10px;
}
.details .photographer span {
    font-size: 18pxpx;
    margin-right: 10px;
}
.card .details button {
    cursor: pointer;
    padding: 2px 6px;
    font-size: 8px;
    background: white;
}
.images img {
    width: 100%;
}
.gallery .load-more {
    margin: 50px 0;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    padding: 12px 27px;
    background: #8a6cff;
}
.gallery .load-more.disabled {
    opacity: 0.6;
    pointer-events: none;
}
.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: 750px;
    background: #fff;
    border-radius: 15px;
    transform: translate(-50%, -50%);
}
.wrapper header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .buttons svg {
    cursor: pointer;
}
.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 screen and (max-width: 768px) {
    .search h1{
        font-size: 35px;
    }
    .search p {
        font-size: 15px;
        margin-top: 8px;
    }
    .search .search-box {
        height: 55px;
        margin: 45px 0;
    }
    .lightbox .wrapper {
        max-width: 450px;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .search h1 {
        font-size: 40px;
    }
    .search p {
        font-size: 18px;
    }
    .gallery .images {
        columns: 4 340px;
    }
    .lightbox .wrapper {
        max-width: 600px;
    }
}

@media screen and (max-width: 760px) {
    .search h1 {
        font-size: 35px;
    }
    .search p {
        font-size: 15px;
        margin-top: 8px;
    }
    .search .search-box {
        height: 55px;
        margin: 45px 0;
    }
    .gallery .images {
        columns: 2 200px;
    }
    .lightbox .wrapper {
        max-width: 450px;
    }
}

@media screen and (max-width: 480px) {
    .search h1 {
        font-size: 28px;
    }
    .search p {
        font-size: 14px;
    }
    .search .search-box {
        height: 50px;
        margin: 30px 30px;
    }
    .search-box input {
        padding-left: 45px;
    }
    .gallery .images {
        columns: 1 100px;
    }
    .lightbox .wrapper {
        max-width: 350px;
    }
    .preview-img .img {
        max-height: 50vh;
        max-width: 70vh;
    }
}
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        font-size: 25px;
        right: 30px;
        top: 50px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0;
        top: 70px;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .social-icons {
        display: none;
    }
}