/* ============================================================
   RW Franchise Posts — Static Grid (1–3 posts)
   Applied when post count is 3 or fewer (no slider needed).
   ============================================================ */

.rw-franchise-posts-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0 20px;
}

/* 1 post — single centered card, capped width */
.rw-franchise-posts-grid--1 {
    grid-template-columns: 1fr;
    max-width: 400px;
}

/* 2 posts — two equal columns */
.rw-franchise-posts-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 posts — three equal columns */
.rw-franchise-posts-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   Responsive
   ============================================================ */

@media ( max-width: 1024px ) {
    .rw-franchise-posts-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media ( max-width: 640px ) {
    .rw-franchise-posts-grid--2,
    .rw-franchise-posts-grid--3 {
        grid-template-columns: 1fr;
    }

    .rw-franchise-posts-grid--1 {
        max-width: 100%;
    }
}

/* ============================================================
       CARD STYLES
   ============================================================ */

.rw-franchise-posts-grid .rw-grid-item,
.rw-franchise-posts-slider .rw-slide {
    background: #fff;
    border: 3px solid #ffffff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0px 2px 15px rgb(0 0 0 / 10%);
}

.rw-franchise-posts-grid .rw-grid-item:hover,
.rw-franchise-posts-slider .rw-slide:hover {
    border: 3px solid var(--blue);
    box-shadow: none;
}
.rw-franchise-posts-slider {
    margin: 0 20px;
}

.rw-franchise-posts-slider .rw-slide {
    margin: 0 10px;
}

.rw-franchise-posts-slider .slick-track {
    display: flex !important;
}

.rw-franchise-posts-slider .slick-slide {
    height: inherit !important;
}

div#rw-franchise-jacksonville-fl {margin: 0 20px;}


.rw-franchise-posts-slider .slick-dots {
    bottom: -40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rw-franchise-posts-slider .slick-dots li {
    margin: 0;
}

.rw-franchise-posts-slider .slick-dots li button:before {
    font-size: 1px;
    color: transparent;
    opacity: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-blue);
    border: 2px solid var(--blue);
    top: auto;
    left: auto;
    line-height: inherit;
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

.rw-franchise-posts-slider .slick-dots li.slick-active button:before {
    color: transparent;
    background: var(--blue);
}