/* BITE DATA - main page free gallery only. Fixed PC 3x3 picture grid. */
#btd_main .btd_top_area > .btd_gallery_section .btd_gallery_grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch;
}
#btd_main .btd_top_area .btd_gallery_tile {
    display: block !important;
    position: relative;
    width: 100% !important;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 2px;
    background: var(--hw-surface-hover, #25282b);
    overflow: hidden;
}
#btd_main .btd_top_area .btd_gallery_tile img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .24s ease;
}
#btd_main .btd_top_area .btd_gallery_tile:hover img {
    transform: scale(1.055);
}
#btd_main .btd_top_area .btd_gallery_tile:focus-visible {
    outline: 2px solid var(--hw-accent, #9dca42);
    outline-offset: -2px;
    z-index: 1;
}
#btd_main .btd_top_area .btd_gallery_empty {
    margin: 12px 0;
    font-size: 12px;
    color: var(--hw-muted, #8b949e);
    text-align: center;
}
/* YouTube-only fishing reports use a static image; the normal post link stays intact. */
#btd_main .btd_hf .btd_hf_video_mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 23px;
    padding-left: 2px;
    border-radius: 6px;
    background: rgba(10, 12, 13, .82);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
#btd_main .btd_hf .btd_hf_image { position: relative; }
#btd_main .btd_hf .btd_hf_panel--grid .btd_hf_video_mark { width: 29px; height: 21px; }
@media (prefers-reduced-motion: reduce) {
    #btd_main .btd_top_area .btd_gallery_tile img { transition: none; }
}

/* BITE DATA HOME FISHING v2.0.1 - YouTube thumbnails only.
 * YouTube hqdefault.jpg often contains baked-in top/bottom black bars
 * (a 16:9 scene inside a 4:3 JPEG). object-fit:cover alone cannot
 * remove those bars on a near-4:3 lead card. Zoom the *image only*;
 * preserve the fixed card dimensions and centered play marker.
 * Photo thumbnails, other widgets and PC-only layout stay untouched.
 */
#btd_main .btd_hf .btd_hf_image--youtube {
    overflow: hidden !important;
}
#btd_main .btd_hf .btd_hf_image--youtube > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    transform: scale(1.36) !important;
    transform-origin: 50% 50% !important;
}

/* BITE DATA HOME FISHING V1.2 — popular tab ONLY: subtle image zoom on hover.
 * Preserve 1 large + 4 small card layout, overlay text and play button.
 * Do not animate lure/fresh/salt (webzine) tabs.
 * YouTube baseline 1.36x removes built-in hqdefault letterboxing.
 */
#btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item .btd_hf_image > img {
    transform: scale(1) !important;
    transform-origin: center center !important;
    transition: transform .28s ease !important;
}
#btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item:hover .btd_hf_image > img,
#btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item:focus-visible .btd_hf_image > img {
    transform: scale(1.045) !important;
}
/* Higher-specificity YouTube rule: keep the original no-black-bars crop at rest. */
#btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item .btd_hf_image--youtube > img {
    transform: scale(1.36) !important;
}
#btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item:hover .btd_hf_image--youtube > img,
#btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item:focus-visible .btd_hf_image--youtube > img {
    transform: scale(1.42) !important;
}
@media (prefers-reduced-motion: reduce) {
    #btd_main .btd_hf .btd_hf_panel--popular .btd_hf_item .btd_hf_image > img {
        transition: none !important;
    }
}
