
.gallery-main {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fafafa;
    margin: 0;
    padding: 20px;
    color: #3C0145;
}

.header-section {
    text-align: center;
    /* margin-bottom: 40px; */
}

/* Filter Styling */
.filter-container {
    margin-top: 20px;
    margin-bottom: 2%;
    display: flex;
    justify-content: center;
}

.header-section-gallery h1{
    text-align: center;
}
.btn {
    background: white;
    border: 2px solid #3C0145;
    color: #3C0145;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    /* Professional square-ish look */
    transition: all 0.3s;
    margin: 5px;
}

.btn.active,
.btn:hover {
    background: #3C0145;
    color: white;
}

/* THE MASONRY CORE */
.gallery-columns {
    /* This creates the "Pinterest" effect */
    column-count: 4;
    column-gap: 15px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    /* Prevents image from being split between columns */
    break-inside: avoid;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* This keeps the image's original shape */
    display: block;
}

/* Hover Effect */
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(60, 1, 69, 0.2);
    z-index: 2;
}

/* Label styling */
.category-tag {
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    background: #3C0145;
    color: white;
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 3px;
}

/* Filter Hide Logic */
.hidden {
    display: none !important;
}

/* Responsive Columns */
@media (max-width: 1100px) {
    .gallery-columns {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .gallery-columns {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery-columns {
        column-count: 1;
    }
}