﻿/* =========================
   PAGE
========================= */

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg,#F8F4E9,#F3E8FF);
    font-family: 'Segoe UI', sans-serif;
}

/* =========================
   HEADER SECTION
========================= */

.gallery-container {
    text-align: center;
    padding: 50px 20px 30px;
}

    .gallery-container h2 {
        color: #5B21B6;
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* =========================
   SEARCH
========================= */

    .gallery-container form {
        max-width: 600px;
        margin: auto;
    }

.search-box {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    font-size: 16px;
    box-sizing: border-box;
}

    .search-box:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(91,33,182,.15);
    }

.search-container {
    margin-top: 15px;
}

.search-btn {
    background: linear-gradient(135deg,#5B21B6,#7C3AED);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

    .search-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(91,33,182,.3);
    }

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 30px;
}

/* =========================
   CARD
========================= */

.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    transition: all .35s ease;
    position: relative;
}

    .gallery-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 35px rgba(0,0,0,.15);
    }

    /* =========================
   IMAGE
========================= */

    .gallery-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: .5s;
    }

    .gallery-card:hover img {
        transform: scale(1.08);
    }

/* =========================
   CONTENT
========================= */

.card-body {
    padding: 22px;
    text-align: center;
}

.gallery-title {
    color: #5B21B6;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Category Badge */

.gallery-category {
    display: inline-block;
    background: #F3E8FF;
    color: #5B21B6;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Location Badge */

.gallery-location {
    display: inline-block;
    background: #ECFDF5;
    color: #10B981;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   TOP BORDER
========================= */

.gallery-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient( 90deg, #5B21B6, #7C3AED, #A855F7 );
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    .gallery-container h2 {
        font-size: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .gallery-card img {
        height: 240px;
    }
}
/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #5B21B6;
    background: white;
}

    .page-link:hover {
        background: #f3f4f6;
    }

    .page-link.active {
        background: #5B21B6;
        color: white;
        border-color: #5B21B6;
    }
