/* gallery wrapper */
.gallery {
    width: 100%;
    display: block;
    min-height: 100vh;
    padding: 100px 0 0 0;
}

.gallery .gallery-filter {
    padding: 0 10px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.gallery .gallery-filter .filter-item {
    color: green;
    border-radius: 7px;
    padding: 5px 5px;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 2px;
    cursor: pointer;
    border: 1px solid green;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.gallery .gallery-filter .filter-item.active {
    color: #fff;
    border: 1px solid transparent;
    background-color: green;
}

.gallery .gallery-item {
    width: calc(100% / 4);
    padding: 15px;
}

.gallery .gallery-item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card.card-bg {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

/* Image wrapper and image styles */
.img-wrapper {
    height: 250px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Card body flex layout for uniform height */
/* .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    text-align: center;
} */

/* Animation */
.gallery .gallery-item.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.gallery .gallery-item.hide {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .gallery .gallery-item {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .gallery .gallery-item {
        width: 100%;
    }

    .gallery .gallery-filter .filter-item {
        margin-bottom: 10px;
    }
}

/* pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.custom-pagination .page-item {
    margin: 0 8px;
}

.custom-pagination .page-link {
    display: inline-block;
    padding: 6px 12px;
    color: #28a745;
    border: 1px solid #28a745;
    border-radius: 6px;
    text-decoration: none;
    min-width: 36px;
    text-align: center;
    transition: all 0.3s;
}

.custom-pagination .page-item.active .page-link {
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.custom-pagination .page-link:hover {
    background-color: #28a745;
    color: white;
}

.custom-pagination .page-item.disabled .page-link {
    border: none;
    color: #28a745;
    background: transparent;
    cursor: default;
}

.custom-pagination .dots {
    pointer-events: none;
}

.page-item:first-child .page-link {
    border-top-right-radius: var(--bs-pagination-border-radius);
    border-bottom-right-radius: var(--bs-pagination-border-radius);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.page-item:last-child .page-link {
    border-top-left-radius: var(--bs-pagination-border-radius);
    border-bottom-left-radius: var(--bs-pagination-border-radius);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.page-item:first-child .page-link {
    border: none;
}

.page-item:last-child .page-link {
    border: none;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: red;
    font-size: 1.2rem;
    pointer-events: none;
}

.form-control.pl-5 {
    padding-left: 2.25rem;
    /* enough space for the icon */
}
