.superGallery-module {
    padding: 50px 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* center the items */
}

.filter {
    flex: 0 1 300px; /* each item is max 300px wide, flexible */
    transition: opacity 0.5s, transform 0.5s;
}

.filter-hidden {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    pointer-events: none;
}

.filter-buttons {
    margin-bottom: 20px;
    text-align: center;
}
.filter-button {
    background-color: #d3d3d3;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.filter-button.active {
    background-color: #6aaf08;
    color: white;
}
.filter-button:hover {
    background-color: #5f9d07;
    color: #fff;
}

/* Fancybox navigation arrows */
.fancybox-button--arrow_left,
.fancybox-button--arrow_right {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}
.fancybox-button--arrow_left::before,
.fancybox-button--arrow_right::before {
    font-size: 30px;
    color: white;
}

/* Scrollable content for tall images */
.fancybox-content {
    max-height: 95vh;
    overflow-y: auto;
}

/* Images */
.filter img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
    min-height: 225px;
}

/* Post content */
.post-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(106,175,8,0.9);
    padding-top: 3px;
    padding-bottom: 3px;
    transition: all 0.8s ease;
    -webkit-transition: all 0.8s ease;
    -moz-transition: all 0.8s ease;
    -ms-transition: all 0.8s ease;
    -o-transition: all 0.8s ease;
}
.post-content h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: #f0f0f0;
}
.gallery-hover-wrap {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    height: 225px;
}
.gallery-hover-wrap .post-content-hover {
    position: absolute;
    text-align: center;
    margin: 0 auto;
    background: linear-gradient(to bottom,rgba(0,0,0,0.7) 0%,rgba(17,30,87,0.8) 100%);
    opacity: 0;
    height: 100%;
    width: 100%;
    transition: all 0.8s ease;
    border-radius: 4px;
    -webkit-transition: all 0.8s ease;
    -moz-transition: all 0.8s ease;
    -ms-transition: all 0.8s ease;
    -o-transition: all 0.8s ease;
}
.gallery-hover-wrap:hover .post-content-hover {
    background: linear-gradient(to bottom,rgba(0,0,0,0.7) 0%,rgba(17,30,87,0.8) 100%);
    height: 100%;
    border-radius: 4px;
}
.gallery-hover-wrap:hover .post-content {
    opacity: 0;
}
.gallery-hover-wrap:hover .post-content-hover {
    opacity: 1;
    transition: all 1s ease;
}
.gallery-hover-wrap:hover .post-content-hover h4 {
    color: #fff;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}
/* Responsive columns */
@media (max-width: 1100px) {
    .filter-container { column-count: 3; }
}

@media (max-width: 760px)  {
    .filter-container { column-count: 2; }
}

@media (max-width: 480px)  {
    .filter-container { column-count: 1; }
}
