/* Link Tiles - flex layout `link_tiles`
   Live .fanzone__links: 100px/150px padding, centred 48px heading + 19.2px intro
   (60px below), 3-up grid (gap 16px) of 4:3 sky tiles with sky glow and an inset
   white 20% outline, 40px Teko white labels; greyscale background at 10% with a
   white→sky overlay at 70%. */
.link_tiles {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--background);

    & > .container {
        position: relative;
        z-index: 10;
    }

    & .link_tiles_head {
        margin-bottom: 60px;
        text-align: center;
    }

    & .link_tiles_title {
        margin: 0;
        font-size: 48px;
        font-weight: 600;
        text-transform: none; /* live "Follow the Fanzones" is mixed case */;
        color: var(--headings);

        @media (max-width: 768px) { font-size: 32px; }
    }

    & .link_tiles_intro {
        margin: 0;
        font-size: 19.2px;
        color: var(--text);
    }

    & .link_tiles_list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 0;
        padding: 0 !important;
        list-style: none !important;

        @media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
        @media (max-width: 600px)  { grid-template-columns: 1fr; }
    }

    & .link_tiles_item {
        position: relative;
        aspect-ratio: 4 / 3;
        margin: 0;
        list-style: none;
        background: var(--secondary);
        box-shadow: 0 20px 80px rgba(0, 175, 240, .5);
        outline: 1px solid rgba(255, 255, 255, .2);
        outline-offset: -20px;
        transition: transform .3s var(--ease), background-color .3s var(--ease);

        &:hover,
        &:focus-within {
            transform: translateY(-4px);
            background: var(--secondary-hover);
        }

        & a {
            display: grid;
            place-items: center;
            width: 100%;
            height: 100%;
            color: var(--white);
            font-family: var(--font-display);
            font-size: 40px;
            text-decoration: none;

            & span {
                color: inherit;
                font-family: inherit;
                font-size: inherit;
                text-transform: none; /* live tile labels are mixed case */;
            }
        }
    }

    & .link_tiles_overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 80%, #00AFF0 100%);
        opacity: .7;
        pointer-events: none;
    }

    & .link_tiles_background {
        position: absolute;
        inset: 0;
        z-index: 0;
        opacity: .1;
        pointer-events: none;

        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            filter: grayscale(100%) brightness(2);
        }
    }
}
