.pm-50-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pm-50-heading {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
    color: var(--e-global-color-primary, #092745);
}

.pm-50-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pm-50-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid #092745;
    color: #092745;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-50-filter-btn:hover,
.pm-50-filter-btn.active {
    background: #092745;
    color: #ffffff;
}

/* Masonry Layout */
.pm-50-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 991px) {
    .pm-50-grid {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .pm-50-grid {
        column-count: 1;
    }
}

.pm-50-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Used for filtering */
.pm-50-item.hidden {
    display: none; /* simple hide for css columns layout */
}

.pm-50-item img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

/* Hover Overlay */
.pm-50-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 39, 69, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.pm-50-item:hover .pm-50-overlay {
    opacity: 1;
}

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

.pm-50-overlay h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pm-50-item:hover .pm-50-overlay h3 {
    transform: translateY(0);
}

.pm-50-link {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
    transform: translateY(20px);
}

.pm-50-item:hover .pm-50-link {
    transform: translateY(0);
}

.pm-50-link:hover {
    background: #ffffff;
    color: #092745;
}
