/*
 * Gear Section — "Gear I Use, Tested in the Real World"
 * 5 equal tiles in one row. Text is baked into the tile images.
 * A "VIEW GEAR →" link sits below each tile.
 */

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

.gear-section { padding: 0; }

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

/* =============================================
   TILE ROW
   ============================================= */

.gear-row {
    gap: 12px !important;
    margin: 0 !important;
    align-items: stretch !important;
}
.gear-row .wp-block-column {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

/* =============================================
   INDIVIDUAL GEAR TILE
   Text baked into image — no overlay needed.
   ============================================= */

.gear-tile {
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.25s ease;
    aspect-ratio: 3 / 2;       /* consistent height across all tiles */
}

.gear-tile:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* No overlay by default — lift slightly on hover */
.gear-tile .wp-block-cover__background {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}
.gear-tile:hover .wp-block-cover__background {
    opacity: 0.15 !important;
}

/* Inner container — collapses to house the full-tile link */
.gear-tile .wp-block-cover__inner-container {
    position: absolute !important;
    inset: 0;
    padding: 0 !important;
    background: none !important;
    display: block !important;
}

/* Full-tile invisible link (same act-tile-link trick as EBA tiles) */
.gear-tile .act-tile-link {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}
.gear-tile .act-tile-link a {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none !important;
}

/* =============================================
   "VIEW GEAR →" LABEL BELOW EACH TILE
   ============================================= */

.gear-tile-link {
    margin: 0.5rem 0 0 0 !important;
    text-align: center;
    flex: 1;                    /* pushes all links to the same vertical position */
}
.gear-tile-link a {
    font-size: 0.72rem !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;
}
.gear-tile-link a:hover {
    color: #1a1a1a !important;
}

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

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

@media only screen and (max-width: 600px) {
    .gear-row .wp-block-column {
        flex-basis: calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
    }
    .gear-row { flex-wrap: wrap !important; }
}
