/* Gallery grid layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery item */
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    transition: all 0.45s;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.gallery-img-wrap:hover {
    transform: translateY(-10px);
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.gallery-img-wrap:hover img {
    transform: scale(1.1);
}

.gallery-img-wrap a {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(16, 12, 8, 0.6);
    color: #ffffff;
    text-align: center;
    font-family: var(--font-rubik);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.6px;
    flex-direction: column;
    transition: all 0.45s;
    transform: scale(0.4);
    opacity: 0;
}

.gallery-img-wrap a i {
    color: var(--primary-color2);
    font-size: 35px;
    margin-bottom: 10px;
}

.gallery-img-wrap:hover a {
    transform: scale(1);
}

/* Pagination styling */
.pagination-area {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.inner-pagination-area {
    margin: 0 auto;
}

.pagination-list {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-list li {
    margin: 0 5px !important;
    padding: 0 !important;
}

.pagination-list li a,
.pagination-list li span {
    height: 45px;
    width: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background-color: var(--white-color);
    color: var(--title-color);
    font-family: var(--font-rubik);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    transition: 0.5s;
    text-align: center;
}

.pagination-list li a:hover,
.pagination-list li span:hover {
    background-color: var(--primary-color2);
    color: var(--white-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pagination-list li.active a,
.pagination-list li.active span {
    background-color: var(--primary-color2);
    color: var(--white-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pagination-list li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation for gallery items */
.gallery-grid-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for gallery items */
.gallery-grid-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-grid-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-grid-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-grid-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-grid-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-grid-item:nth-child(9) { animation-delay: 0.9s; }
