.fp-2791a9c4-wrapper {
    width: 100%;
}

.fp-2791a9c4-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.fp-2791a9c4-filter-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.fp-2791a9c4-filter-btn:hover,
.fp-2791a9c4-filter-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.fp-2791a9c4-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fp-2791a9c4-item {
    transition: all 0.3s ease;
}

.fp-2791a9c4-item-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.fp-2791a9c4-item-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden;
    display: block;
    background-color: #f0f0f0;
}

/* Ensure the anchor tag takes up the full width/height for clicking */
.fp-2791a9c4-item-img-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
}

.fp-2791a9c4-item-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fp-2791a9c4-item-inner:hover .fp-2791a9c4-item-img-wrap img {
    transform: scale(1.05);
}

.fp-2791a9c4-item-cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    z-index: 2;
    pointer-events: none; /* Prevents blocking clicks on the image */
}

/* Gallery overlay indicator on hover */
.fp-2791a9c4-item-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none; /* Prevents blocking clicks on the image */
}

.fp-2791a9c4-item-gallery-overlay span.eicon-zoom-in {
    font-size: 24px;
}

.fp-2791a9c4-item-gallery-overlay span:last-child {
    font-size: 14px;
    font-weight: 500;
}

.fp-2791a9c4-item-inner:hover .fp-2791a9c4-item-gallery-overlay {
    opacity: 1;
}

.fp-2791a9c4-item-title {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    text-align: center;
}