.community-showcase-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(5, 25, 19, .72);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition: opacity .28s ease;
}
.community-showcase-backdrop[hidden], .community-showcase[hidden] { display: none; }
.community-showcase-backdrop.is-visible { opacity: 1; }
.community-showcase {
    position: fixed;
    z-index: 10021;
    left: 50%;
    top: 50%;
    width: min(1040px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    box-sizing: border-box;
    overflow: auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(214, 177, 101, .7);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 0, rgba(202, 164, 83, .2), transparent 29%),
        linear-gradient(145deg, #fbf8ee 0%, #f3eddd 100%);
    box-shadow: 0 32px 90px rgba(0, 18, 12, .48);
    opacity: 0;
    transform: translate(-50%, -47%) scale(.97);
    transition: opacity .28s ease, transform .28s ease;
    color: #173c31;
}
.community-showcase.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.community-showcase-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(26, 74, 58, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .66);
    color: #214b3d;
    font: 300 27px/1 system-ui, sans-serif;
    cursor: pointer;
}
.community-showcase-heading { max-width: 790px; margin: 0 auto 24px; text-align: center; }
.community-showcase-heading > span { color: #a06f22; font: 800 .72rem/1.2 Inter, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.community-showcase-heading h2 { margin: 8px 0 10px; color: #123f31; font: 500 clamp(30px, 4.7vw, 50px)/1.04 Georgia, serif; }
.community-showcase-heading p { margin: 0; color: #526a61; font: 500 clamp(14px, 1.8vw, 17px)/1.55 Inter, system-ui, sans-serif; }
.community-showcase-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.community-showcase-card { min-width: 0; overflow: hidden; border: 1px solid #ddd1b8; border-radius: 13px; background: rgba(255, 255, 255, .8); color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(37, 50, 40, .08); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.community-showcase-card:hover { transform: translateY(-4px); border-color: #b88a3d; box-shadow: 0 12px 25px rgba(37, 50, 40, .16); }
.community-showcase-image { display: flex; align-items: center; justify-content: center; height: 150px; padding: 10px; background: linear-gradient(150deg, #e9e5da, #f9f7f0); }
.community-showcase-image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(30, 37, 30, .18)); }
.community-showcase-card-copy { display: grid; gap: 4px; padding: 11px; }
.community-showcase-card-copy strong { overflow: hidden; color: #173f32; font: 750 13px/1.3 Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.community-showcase-card-copy small { overflow: hidden; color: #68786f; font: 600 11px/1.35 Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.community-showcase-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; color: #60736a; font: 600 13px/1.4 Inter, system-ui, sans-serif; }
.community-showcase-footer button { min-height: 42px; padding: 0 18px; border: 1px solid #1b5744; border-radius: 8px; background: #174a3a; color: #fff; font: 750 13px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.community-showcase button:focus-visible, .community-showcase-card:focus-visible { outline: 3px solid #d0a450; outline-offset: 3px; }
body.community-showcase-open { overflow: hidden; }
@media (max-width: 900px) {
    .community-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .community-showcase-image { height: 135px; }
}
@media (max-width: 560px) {
    .community-showcase { width: calc(100vw - 18px); max-height: calc(100vh - 18px); padding: 19px 13px 15px; border-radius: 16px; }
    .community-showcase-heading { margin-bottom: 13px; padding: 0 13px; }
    .community-showcase-heading > span { font-size: .61rem; }
    .community-showcase-heading h2 { margin: 5px 0 7px; font-size: 27px; }
    .community-showcase-heading p { font-size: 13px; line-height: 1.38; }
    .community-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .community-showcase-card[data-mobile-visible="0"] { display: none; }
    .community-showcase-image { height: min(15vh, 108px); padding: 7px; }
    .community-showcase-card-copy { gap: 2px; padding: 7px 8px; }
    .community-showcase-card-copy strong { font-size: 12px; }
    .community-showcase-card-copy small { font-size: 10px; }
    .community-showcase-footer { align-items: stretch; flex-direction: column; gap: 8px; margin-top: 12px; text-align: center; }
    .community-showcase-footer span { display: none; }
    .community-showcase-footer button { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .community-showcase, .community-showcase-backdrop, .community-showcase-card { transition: none; }
}
