/* Company 51 — Community preview v0.3.3 */

.c51-community-preview {
    position: relative;
    background: #060606;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1);
    overflow: hidden;
}

.c51-community-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 7px);
}

.c51-community-preview__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 3rem), 96rem);
    margin-inline: auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.c51-community-preview__intro {
    min-width: 0;
}

.c51-community-preview__title {
    margin: 0;
    font-family: var(--c51-font-display);
    font-size: clamp(1.5rem, 2vw, 2.15rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.c51-community-preview__title span {
    display: block;
}

.c51-community-preview__title span:first-child {
    color: #cdf580;
}

.c51-community-preview__title span:last-child {
    color: #fff;
    margin-top: .18rem;
}

.c51-community-preview__copy {
    margin: .7rem 0 .75rem;
    color: #cfcfcf;
    font-size: .72rem;
    line-height: 1.35;
}

.c51-community-preview__actions {
    margin: 0;
}

.c51-community-preview__button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: .45rem .75rem;
    border: 1px solid #cdf580;
    border-radius: 0;
    background: transparent;
    color: #cdf580;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
}

.c51-community-preview__button .wp-block-button__link span {
    margin-left: .5rem;
    font-size: .82rem;
}

.c51-community-preview__button .wp-block-button__link:hover,
.c51-community-preview__button .wp-block-button__link:focus-visible {
    background: #cdf580;
    color: #060606;
}

.c51-community-preview__tiles {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1134 / 260;
    overflow: hidden;
    background: #050505;
}

.c51-community-preview__tile-picture,
.c51-community-preview__tile-picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.c51-community-preview__tile-strip {
    object-fit: cover;
}

.c51-community-preview__tile-overlays {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    padding: 0 0 .45rem;
    pointer-events: none;
}

.c51-community-preview__tile-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: .08rem;
    color: #fff;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 1px 8px #000, 0 1px 2px #000;
    text-transform: uppercase;
}

.c51-community-preview__tile-stat strong {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.75rem);
    font-weight: 900;
}

.c51-community-preview__tile-stat span {
    color: #fff;
    font-size: clamp(.52rem, .85vw, .75rem);
    letter-spacing: .045em;
}

@media (max-width: 1100px) {
    .c51-community-preview__inner {
        width: min(calc(100% - 2.5rem), 96rem);
        grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
        gap: 1.25rem;
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .c51-community-preview__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .c51-community-preview__tiles {
        width: min(676px, 100%);
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .c51-community-preview__inner {
        width: min(calc(100% - 2rem), 42rem);
        padding: 1.2rem 0 1.25rem;
    }

    .c51-community-preview__tiles {
        width: 100%;
        aspect-ratio: 1;
    }

    .c51-community-preview__tile-overlays {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        padding: 0 0 1rem;
    }

    .c51-community-preview__tile-stat strong {
        font-size: clamp(1.15rem, 6vw, 2rem);
    }

    .c51-community-preview__tile-stat span {
        font-size: clamp(.62rem, 2.7vw, .85rem);
    }
}

@media (min-width: 961px) {
  .c51-community-preview__inner {
    padding-block: 5rem;
  }
}
