/*
 * Explore by Adventure — Section Styles  v1.1.0
 * Row 1: 5 category tiles   (class: eba-row-1)
 * Row 2: 2 editorial tiles  (class: eba-row-2)
 * Row 3: 4 activity tiles   (class: eba-row-3)
 * Images have text BAKED IN — no overlay text is added.
 * Full-tile click uses the .act-tile-link pseudo-element trick.
 */

/* =============================================
   SECTION WRAPPER
   ============================================= */

.eba-section { padding: 0; }

.eba-header { margin-bottom: 1rem; }

/* Consistent 12px gap and zero margins across all rows */
.eba-section .wp-block-columns {
    gap: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}
.eba-section .wp-block-columns:last-child {
    margin-bottom: 0 !important;
}
.eba-section .wp-block-column {
    margin: 0 !important;
}

/* =============================================
   CATEGORY TILES  (Rows 1 & 3)
   No overlay text — images are self-labelled.
   ============================================= */

.eba-cat-tile {
    border-radius: 3px;
    overflow: hidden;
    position: relative;          /* anchor for the full-tile link */
    cursor: pointer;
    transition: box-shadow 0.25s ease;
}

.eba-cat-tile:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

/* Image zoom on hover */
.eba-cat-tile img {
    transition: transform 0.35s ease;
    display: block;
}
.eba-cat-tile:hover img {
    transform: scale(1.06);
}

/* Subtle dark scrim — lifts slightly on hover */
.eba-cat-tile .wp-block-cover__background {
    transition: opacity 0.3s ease;
    opacity: 0 !important;        /* dimRatio:0 by default */
}
.eba-cat-tile:hover .wp-block-cover__background {
    opacity: 0.18 !important;
}

/* Inner container carries the full-tile link — collapse its size */
.eba-cat-tile .wp-block-cover__inner-container {
    position: absolute !important;
    inset: 0;
    padding: 0 !important;
    background: none !important;
    display: block !important;
}

/* ── Full-tile link ─────────────────────────────
   .act-tile-link  wraps a visually-hidden <a>
   that stretches across the entire cover block.
   Screen readers still announce the destination.
   ───────────────────────────────────────────── */
.act-tile-link {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}
.act-tile-link a {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    /* visually hidden — text is provided by the alt attribute */
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none !important;
}

/* Row 1 — square tiles */
.eba-row-1 .eba-cat-tile { aspect-ratio: 1 / 1; }

/* Row 3 — landscape tiles */
.eba-row-3 .eba-cat-tile { aspect-ratio: 4 / 3; }

/* =============================================
   EDITORIAL TILES  (Row 2)
   "Built for More" and "Camp Kitchen"
   ============================================= */

.eba-editorial-tile {
    border-radius: 3px;
    overflow: hidden;
}
.eba-editorial-tile img {
    transition: transform 0.4s ease;
}
.eba-editorial-tile:hover img {
    transform: scale(1.04);
}

.eba-editorial-tile .wp-block-cover__inner-container {
    padding: 1.5rem 1.75rem !important;
    max-width: 480px;
}

/* Kicker — "STORIES" / "RECIPES" */
.eba-editorial-kicker {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
    color: #c8a04a !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1 !important;
}

/* Heading */
.eba-editorial-heading {
    font-size: clamp(1rem, 2.2vw, 1.5rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.85rem 0 !important;
}

/* Body copy */
.eba-editorial-copy {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: 1.65 !important;
    margin: 0 0 0.4rem 0 !important;
}

/* CTA link */
.eba-editorial-link { margin: 0.85rem 0 0 0 !important; }
.eba-editorial-link a {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: #c8a04a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.eba-editorial-link a:hover { color: #ffffff !important; }

/* Row 2: tighten the column gap */
.eba-row-2 { gap: 12px !important; }
.eba-row-2 .wp-block-column { margin: 0 !important; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media only screen and (max-width: 900px) {
    .eba-row-1 .wp-block-column,
    .eba-row-3 .wp-block-column {
        flex-basis: calc(33.333% - 8px) !important;
        min-width: calc(33.333% - 8px) !important;
    }
    .eba-row-2 .wp-block-column {
        flex-basis: 100% !important;
        min-width: 100% !important;
    }
}

@media only screen and (max-width: 600px) {
    .eba-row-1 .wp-block-column {
        flex-basis: calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
    }
    .eba-row-3 .wp-block-column {
        flex-basis: calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
    }
    .eba-editorial-tile .wp-block-cover__inner-container {
        padding: 1.1rem !important;
    }
    .eba-editorial-heading { font-size: 1.1rem !important; }
}
