.gallery {
    padding: 35px 0px 140px;
}
.gallery h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: transform 0.5s ease;
    justify-content: center;
}

.gallery-item {
    position: relative;
    width: 358px; 
    height: 308px;
    overflow: hidden;
}

/* Gradient Overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50%; /* Adjust the gradient height if needed */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}


/* Date Label in Top-Left Corner */
.date-label {
    position: absolute;
    top: 10px;
    left: 30px;
    background-color: #CF002C;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
}

.text-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    z-index: 1;
}

.text-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.text-overlay p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Pagination styling remains unchanged */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.pagination button,
.pagination .page-number {
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
}

.pagination .page-number.active,
.pagination button.active {
    background: #CF002C;
    color: white;
}

.pagination button[disabled] {
    color: #ddd;
    cursor: not-allowed;
}

.pagination .ellipsis {
    padding: 8px 12px;
    color: #333;
}

.gallery-item.placeholder {
    background: transparent; /* or a subtle background color */
    height: 300px; /* Match real item height */
    visibility: hidden; /* Makes placeholder invisible but retains space */
}

/* Tabs Section */
.tabs-section {
    font-size: 18px;
    margin-top: 20px;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 30px;
}

.filter {
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.2rem;
    margin-right: 15px;
    cursor: pointer;
}

.filter.active {
    background-color: #CF002C;
    color: white
}