/* Media Gallery Section */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    flex: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #1A2836;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 1px solid #058ED9;
}

.filter-btn.active {
    background-color: #058ED9;
}

.filter-btn:hover {
    background-color: #058ED9;
}

/* Media Gallery using CSS Columns for Masonry Effect */
.filtered-gallery {
    column-count: 3; /* Default number of columns */
    column-gap: 20px; /* Space between columns */
    max-width: 100%;
    margin: 0 auto;
}

.filtered-item {
    break-inside: avoid-column; /* Prevent items from breaking between columns */
    margin-bottom: 20px; /* Space between items */
}

.filtered-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.filtered-item:hover img {
    transform: scale(1.05);
}

/* Media Queries for responsive design */
@media (max-width: 991px) {
    .filtered-gallery {
        column-count: 2; /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .filtered-gallery {
        column-count: 1; /* 1 column on small screens */
    }

}

@media (max-width: 520px) {
    .filter-btn {
        flex: 100%;
    }
    #filtered-lightbox-content {
        max-width: 50%;
        max-height: 50%;
    }
}

@media (min-width: 320px) and (max-width: 520px) {
    #filtered-lightbox-content {
        max-width: 80%;
        max-height: 80%;
    }
}

@media (min-width: 520px) {
    #filtered-lightbox-content {
        max-width: 50%;
        max-height: 50%;
    }
}

@media (max-width: 320px) {
    #filtered-lightbox-content {
        max-width: 80%;
        max-height: 80%;
    }
}

/*@media (min-width: 320px) {
    #filtered-lightbox-content {
        max-width: 70%;
        max-height: 70%;
    }
}*/


/* Lightbox Overlay */
.filtered-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 6;
}

/*.filtered-lightbox-image {
    max-width: 90%;
    max-height: 90%;
}*/
#filtered-lightbox-content {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.filtered-lightbox-image {
    width: 100%;
    height: auto;
}

#filtered-lightbox-description {
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    bottom: 81px;
    padding: 10px;
    max-width: fit-content;
    margin: 0px auto;
}

/* Close button for lightbox */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
}
