/* Custom Gallery Grid Stylesheet */
.unicamp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 30px;
}

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

@media (max-width: 575px) {
    .unicamp-gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.unicamp-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f7f7f7;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.unicamp-gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.unicamp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.unicamp-gallery-item:hover .unicamp-gallery-img {
    transform: scale(1.06);
}

.unicamp-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unicamp-gallery-item:hover .unicamp-gallery-overlay {
    opacity: 1;
}

.unicamp-gallery-overlay-content {
    text-align: center;
    color: #ffffff;
    padding: 15px;
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.unicamp-gallery-item:hover .unicamp-gallery-overlay-content {
    transform: translateY(0);
}

.unicamp-gallery-zoom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.unicamp-gallery-zoom-icon svg {
    color: #ffffff;
    display: block;
}

.unicamp-gallery-zoom-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.unicamp-gallery-item-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Pagination Customization */
.unicamp-gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.unicamp-gallery-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    color: #333333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
}

.unicamp-gallery-pagination .page-numbers:hover,
.unicamp-gallery-pagination .page-numbers.current {
    background-color: var(--unicamp-primary-color, #1a73e8);
    border-color: var(--unicamp-primary-color, #1a73e8);
    color: #ffffff;
    text-decoration: none;
}
