.showcase-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.showcase-grid > .col-lg-3,
.showcase-grid > .col-md-4,
.showcase-grid > .col-sm-6 {
    padding: 15px;
}

.showcase-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 24px;
    cursor: pointer;
    display: grid;
    gap: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover,
.showcase-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    outline: none;
}

.showcase-card-image {
    width: 100%;
    min-height: 140px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #f9f9fb;
}

.showcase-card-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.showcase-card-fallback {
    width: 100%;
    height: 140px;
    display: grid;
    place-items: center;
    background: #0f3460;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.showcase-card-body h3 {
    font-size: 1rem;
    margin: 0;
}

.showcase-card-body p {
    margin: 0;
    font-size: 0.95rem;
}

.showcase-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.showcase-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.showcase-modal-open {
    display: flex;
}

.showcase-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 52, 96, 0.7);
}

.showcase-modal-content {
    position: relative;
    width: min(100%, 960px);
    max-height: min(100%, 90vh);
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    z-index: 2;
}

.showcase-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.showcase-modal-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
}

.showcase-modal-image img,
.showcase-modal-fallback {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: #0f3460;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
}

.showcase-modal-body {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.8;
}

.showcase-modal-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

body.showcase-modal-open {
    overflow: hidden;
}

#showcaseFilterForm {
    margin-bottom: 28px;
}

#showcaseFilterForm .form-control {
    min-height: 52px;
}

@media (max-width: 992px) {
    .showcase-modal-header {
        grid-template-columns: 1fr;
    }

    .showcase-card {
        padding: 20px;
    }
}
