.tm-catalog-item {
    margin-bottom: 30px;
    max-width: 100%;
    transition: all 0.3s ease;
    padding-left: 10px;
    padding-right: 10px;
}

.tm-thumbnail-container {
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    margin-bottom: 15px;
    width: calc(100% - 20px);  /* Account for left and right padding */
    height: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.tm-catalog-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.tm-catalog-item:hover .tm-catalog-item-img {
    transform: scale(1.1);
    opacity: 0.7;
}

.tm-img-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: all 0.3s ease;
}

.tm-catalog-item:hover .tm-img-overlay {
    opacity: 1;
}

.filter-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.filter-list li {
    margin-right: 15px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-list li.active {
    background: #29BBCC;
    color: white;
}

.porto-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.porto-content.loading {
    opacity: 0.5;
}

.load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #29BBCC;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.load-more-btn:hover {
    background: #1a9ba9;
}

.porto-item {
    display: block; /* show items by default so CSS Grid can lay them out */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.porto-item iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure pagination is horizontal */
.tm-paging-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tm-paging-links li {
    margin: 0 5px;
}

.tm-paging-links a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

/* Add hover effect for yellow color */
.tm-paging-links a:hover {
    background-color: yellow;
    color: #000;
}

/* Active pagination styling */
.tm-paging-links .active a {
    background-color: #000;
    color: #fff;
}