.full-width-wrapper {
    width: 100%;
    position: relative;
}

/* Community Gallery */
.CommunityGallery__container {
    flex-direction: row;
    gap: 16px;
    width: 100%;
    display: flex;
    position: relative;
    overflow-x: hidden;
}

.CommunityGallery__animation-wrapper {
    z-index: 1;
    flex-direction: row;
    flex: none;
    align-items: center;
    min-width: auto;
    animation: 63.3s linear infinite communityGalleryScroll;
    display: flex;
}

.CommunityGallery__container:hover .CommunityGallery__animation-wrapper {
    animation-play-state: paused;
}

.CommunityGallery__grid-container {
    grid-template-rows: repeat(6, minmax(0, 1fr));
    grid-auto-flow: column dense;
    gap: 16px;
    display: grid;
}

.CommunityGallery__card {
    aspect-ratio: 0.95;
    border-radius: 10px;
    grid-row: span 6;
    height: 581px;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 10px 30px rgba(36, 60, 75, 0.08);
    padding: 32px;
}

.CommunityGallery__card__sm {
    aspect-ratio: 1.7;
    grid-row: span 2;
    height: 183px;
    padding: 24px;
}

.CommunityGallery__card__md {
    aspect-ratio: 1.7;
    grid-row: span 3;
    height: 282.5px;
}

.CommunityGallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.CommunityGallery__overlay {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    color: #fff;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(36, 60, 75, 0.15) 58%, rgba(36, 60, 75, 1) 80%) !important;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease-in;
    display: flex;
    padding: 1rem;
}

.CommunityGallery__overlay-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.CommunityGallery__overlay-copy {
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.CommunityGallery__panel {
    background: #ffffff;
    color: #243c4b;
    border: 1px solid rgba(36, 60, 75, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.CommunityGallery__panel--blue {
    background: linear-gradient(145deg, #243c4b, #0072ce, #243c4b);
    background-size: 240% 240%;
    color: #ffffff;
    border: none;
}

.CommunityGallery__panel--dark {
    background: #243c4b;
    color: #ffffff;
    border: none;
}

.CommunityGallery__panel--light {
    background: #243c4b;
    color: #58cae7;
    border: none;
}

.CommunityGallery__eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
}

.CommunityGallery__title {
    margin-top: 12px;
    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.12;
    font-weight: 700;
}

.CommunityGallery__copy {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.55;
    font-family: Arial, sans-serif;
}

.CommunityGallery__stat {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

@keyframes communityGalleryScroll {
    0% {
        transform: translate(0);
    }
    100% {
        transform: translate(calc(-100% - 8px));
    }
}

@media (max-width: 767.98px) {
    .pat-section {
        padding: 4rem 0;
    }

    .CommunityGallery__container {
        gap: 8px;
    }

    .CommunityGallery__grid-container {
        gap: 8px;
    }

    .CommunityGallery__card {
        height: 289px;
        padding: 16px;
    }

    .CommunityGallery__card__sm {
        height: 91px;
        padding: 8px;
    }

    .CommunityGallery__card__md {
        height: 140.5px;
    }

    .CommunityGallery__panel {
        padding: 16px;
    }

    .CommunityGallery__title {
        font-size: 18px;
    }

    .CommunityGallery__copy {
        font-size: 13px;
    }
}

.CommunityGallery__overlay:empty {
    display: none;
}