/* ─────────────────────────────────────────────────────────────────────────────
   STORE SECTION — Shared
───────────────────────────────────────────────────────────────────────────── */
.store-section-subtitle {
    color: #6F6E6C;
    font-weight: 400;
    text-align: start;
    font-size: 1.3rem;
    line-height: 1.8rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ODD LAYOUT — image + text side by side, gallery row below
   oddLeft  → image LEFT  | text RIGHT
   oddRight → text LEFT   | image RIGHT  (--reversed)
───────────────────────────────────────────────────────────────────────────── */
.store-odd {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.store-odd-row {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    width: 100%;
}

.store-odd-row--reversed {
    flex-direction: row-reverse;
}

.store-odd-image {
    flex: 1;
    width: 50%;
    max-width: 576px;
    max-height: 576px;
    object-fit: cover;
    /* border-radius: 8px; */
}

.store-odd-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-odd-content h2 {
    text-align: start;
}

.store-odd-content p {
    text-align: start;
}

.store-odd-btn {
    margin-top: 1rem;
}

.store-odd-gallery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.store-odd-gallery img {
    flex: 1;
    width: 0;
    min-width: 0;
    object-fit: cover;
    /* border-radius: 8px; */
    aspect-ratio: 1 / 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EVEN LAYOUT — title on top, image + grid, button at bottom
   evenLeft  → main image LEFT  | grid column RIGHT
   evenRight → grid column LEFT | main image RIGHT  (--reversed)
───────────────────────────────────────────────────────────────────────────── */
.store-even {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.store-even h2 {
    text-align: center;
}

.store-even .store-section-subtitle {
    text-align: center;
}

.store-even-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    max-height: 600px;         /* ← caps row so grid can't grow taller than main image */
    align-items: stretch;
}

.store-even-row--reversed {
    flex-direction: row-reverse;
}

.store-even-image {
    flex: 1;
    min-width: 0;
    max-height: 600px;         /* ← matches row cap */
    width: 100%;
    object-fit: cover;
    /* border-radius: 8px; */
}

.store-even-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;   /* ← exactly 2 rows = 4 images */
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    max-height: 600px;             /* ← matches row cap */
}

.store-even-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 8px; */
    display: block;
}

.store-even-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLET — max-width: 1020px
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {

    /* Odd */
    .store-odd-row,
    .store-odd-row--reversed {
        flex-direction: column;
        align-items: center;
    }

    .store-odd-image {
        width: 100%;
        max-width: 100%;
        max-height: 400px;
    }

    .store-odd-content {
        align-items: center;
        width: 100%;
    }

    .store-odd-content h2,
    .store-odd-content p {
        text-align: center;
    }

    .store-odd-btn {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .store-odd-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .store-odd-gallery img {
        width: 100%;
        flex: unset;
    }

    /* Even */
    .store-even-row,
    .store-even-row--reversed {
        flex-direction: column;
        align-items: center;
        max-height: unset;     /* ← remove cap when stacked vertically */
    }

    .store-even-image {
        width: 100%;
        max-height: 400px;
    }

    .store-even-column {
        width: 100%;
        max-height: unset;     /* ← remove cap when stacked vertically */
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE — max-width: 700px
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {

    /* Odd — hide gallery, show only main image */
    .store-odd-gallery {
        display: none;
    }

    .store-odd-image {
        width: 100%;
        max-height: unset;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    /* Even — hide grid column, show only main image */
    .store-even-column {
        display: none;
    }

    .store-even-image {
        width: 100%;
        max-height: unset;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .store-even-btn {
        width: 100%;
    }
}