﻿/* ---------- 2019 style ---------- */



/* ---------- button ---------- */
a.keylink span.button,
a.keylink span.button:visited {
    position: absolute;
    bottom: 8px;
    right: 8px;
    height: 20px;
    line-height: 19px;
    font-size: 12px;
    color: white;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
    padding: 0 10px;
    border: 1px solid #444;
    background: #111111;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222222', endColorstr='#111111');
    background: -webkit-gradient(linear, left top, left bottom, from(#222222), to(#111111));
    background: -webkit-linear-gradient(top, #222222, #111111);
    background: -moz-linear-gradient(top, #222222, #111111);
    background: -ms-linear-gradient(top, #222222, #111111);
    background: -o-linear-gradient(top, #222222, #111111);
    background: linear-gradient(top, #222222, #111111);
    cursor: pointer;
}

    a.keylink span.button:hover {
        text-decoration: none;
        color: #aaa;
        background: black;
        border: 1px solid #333;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#111111', endColorstr='#000000');
        background: -webkit-gradient(linear, left top, left bottom, from(#111), to(#000000));
        background: -webkit-linear-gradient(top, #111, #000000);
        background: -moz-linear-gradient(top, #111, #000000);
        background: -ms-linear-gradient(top, #111, #000000);
        background: -o-linear-gradient(top, #111, #000000);
        background: linear-gradient(top, #111, #000000);
    }


    a.keylink span.button.white {
        color: #999;
        border: 1px solid #fff;
        background: #e3e3e3;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee');
        background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));
        background: -webkit-linear-gradient(top, #ffffff, #eeeeee);
        background: -moz-linear-gradient(top, #ffffff, #eeeeee);
        background: -ms-linear-gradient(top, #ffffff, #eeeeee);
        background: -p-linear-gradient(top, #ffffff, #eeeeee);
        background: linear-gradient(top, #ffffff, #eeeeee);
        text-shadow: 1px 1px 0px white;
        box-shadow: 1px 1px 2px rgba(0,0,0,.2);
    }

        a.keylink span.button.white:hover {
            color: #777;
            border: 1px solid #eee;
            background: #e3e3e3;
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#e2e2e2');
            background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#e2e2e2));
            background: -webkit-linear-gradient(top, #f2f2f2, #e2e2e2);
            background: -moz-linear-gradient(top, #f2f2f2, #e2e2e2);
            background: -ms-linear-gradient(top, #f2f2f2, #e2e2e2);
            background: -o-linear-gradient(top, #f2f2f2, #e2e2e2);
            background: linear-gradient(top, #f2f2f2, #e2e2e2);
        }



/* ---------- new keylink ---------- */


.thumbnail-link {
    display: inline-block;
    width: 234px;
    height: 150px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-radius: 4px;
    background-image: var(--imgurl);
}

    .thumbnail-link:hover {
        background-image: var(--imgurl-hover);
    }

    .thumbnail-link:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--imgurl); /* Replace with your image path */
        background-size: cover;
        background-position: center center;
        /*filter: grayscale(100%) brightness(0.7);*/
        transition: 0.15s linear;
    }

    .thumbnail-link:hover:before {
        filter: grayscale(0%) brightness(0.8);
    }

.thumbnail-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white; /* Adjust text color */
    transition: all 0.2s ease; /* Add transition for content background */
}

    .thumbnail-content p {
        margin: 0;
    }

.thumbnail-header-bg {
    width: 100%;
    height: 45px;
    background: #00000061;
    position: absolute;
}

.thumbnail-header {
    margin-top: 0;
    position: absolute;
    top: 16px;
    left: 16px;
    color: white;
    font-size: 12px;
    max-width: 90%;
}

.thumbnail-description {
    opacity: 0;
    transform: translateY(140%);
    transition: 0.15s linear;
}

.thumbnail-link:hover .thumbnail-description {
    opacity: 1;
    transform: translateY(0); /* Show content on hover */
}




/* ---------- keylink ---------- */

div.keylink-block {
    display: block;
    margin: 0 0 .9375rem 0;
    clear: both;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
}

a.keylink,
span.keylink {
    display: block;
    padding: 10px 10px 5px 10px;
    position: relative;
    width: 100%;
    min-height: 90px;
    height: auto;
    float: left;
    text-decoration: none;
    border: 0px;
    box-shadow: inset 1px 1px 1px 0px white;
    background: #fefefe;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee');
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eeeeee));
    background: -webkit-linear-gradient(top, #fff, #eeeeee);
    background: -moz-linear-gradient(top, #fff, #eeeeee);
    background: -ms-linear-gradient(top, #fff, #eeeeee);
    background: -o-linear-gradient(top, #fff, #eeeeee);
    background: linear-gradient(top, #fff, #eeeeee);
    cursor: pointer;
}

span.keylink {
    border-left: 1px solid #ddd;
    border-right: 1px solid transparent;
}

a.keylink:hover {
    background: #fefefe;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5e5e5', endColorstr='#ffffff');
    background: -webkit-gradient(linear, left top, left bottom, from(#e5e5e5), to(#fff));
    background: -webkit-linear-gradient(top, #e5e5e5, #fff);
    background: -moz-linear-gradient(top, #e5e5e5, #fff);
    background: -ms-linear-gradient(top, #e5e5e5, #fff);
    background: -o-linear-gradient(top, #e5e5e5, #fff);
    background: linear-gradient(top, #e5e5e5, #fff);
}



a.keylink h2 {
    display: block;
    margin-top: 5px;
    margin-left: 95px;
    margin-right: 0;
    margin-bottom: 8px;
    color: black;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
}

a.keylink:hover h2 {
    color: red;
}

a.keylink span.blurb,
a.keylink p {
    display: block;
    margin-left: 95px;
    margin-right: 5px;
    font-size: 11px;
    color: #888;
}



a.keylink span.image {
    display: block;
    height: 90px;
    width: 90px;
    position: absolute;
    top: 0px;
    left: 5px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

    a.keylink span.image.base {
        top: auto;
        bottom: 0px;
    }

    a.keylink span.image.center {
        margin: 0;
        position: absolute;
        top: 50%;
        transform: translate(0,-50%);
    }

    a.keylink span.image.fa,
    a.keylink span.image.fad,
    a.keylink span.image.fal,
    a.keylink span.image.fas,
    a.keylink span.image.fab {
        margin: 0;
        position: absolute;
        top: 50%;
        transform: translate(0,-50%);
        height: auto;
        text-align: center;
        color: #333;
    }

a.keylink div.image-border {
    display: block;
    width: 90px;
    height: 80px;
    position: absolute;
    top: 5px;
    left: 5px;
    border: 1px solid #ddd;
    background: #fff;
    background-repeat: no-repeat;
    background-position: top center;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}

    a.keylink div.image-border span.image {
        margin: 5px;
        width: 80px;
        height: 70px;
        position: absolute;
        top: 0px;
        left: 0px;
    }



.keylinks-blurb a.keylink,
.keylinks-blurb div.keylink-block span.keylink {
    min-height: 110px;
}

.keylinks-blurb-150 a.keylink,
.keylinks-blurb-150 span.keylink {
    min-height: 150px;
}

.keylinks-blurb-200 a.keylink,
.keylinks-blurb-200 span.keylink {
    min-height: 200px;
}


.keylinks-noimage a.keylink h2,
.keylinks-noimage a.keylink p {
    margin: 0.25rem;
}



.keylinks-main a.keylink,
.keylinks-main span.keylink {
    min-height: 220px;
}

    .keylinks-main a.keylink h2 {
        margin-left: 210px;
        font-size: 1.3rem;
    }

    .keylinks-main a.keylink span.blurb {
        margin-left: 210px;
        font-size: inherit;
    }

    .keylinks-main a.keylink span.image,
    .keylinks-main a.keylink div.image-border {
        height: 200px;
        width: 200px;
        top: 10px;
        left: 10px;
    }

        .keylinks-main a.keylink div.image-border span.image {
            margin: 8px;
            width: 184px;
            height: 184px;
            position: absolute;
            top: 0px;
            left: 0px;
        }

.keylinks-main .col-md-4 a.keylink,
.keylinks-main .col-md-4 span.keylink {
    min-height: 190px;
}

    .keylinks-main .col-md-4 a.keylink span.image,
    .keylinks-main .col-md-4 a.keylink div.image-border {
        height: 120px;
        width: 120px;
    }

        .keylinks-main .col-md-4 a.keylink div.image-border span.image {
            width: 104px;
            height: 104px;
        }

    .keylinks-main .col-md-4 a.keylink h2,
    .keylinks-main .col-md-4 a.keylink span.blurb {
        margin-left: 130px;
    }



.keylinks-brand-4 a.keylink,
.keylinks-product-4 a.keylink {
    display: flex;
    min-height: 100px;
    align-content: space-around;
    flex-direction: column;
    justify-content: center;
}

    .keylinks-brand-4 a.keylink h2 {
        margin: 0;
        text-align: center;
    }

    .keylinks-product-4 a.keylink h2 {
        margin: 0 0 0 100px;
    }

    .keylinks-brand-4 a.keylink p {
        margin: 0;
        text-align: center;
    }

    .keylinks-brand-4 a.keylink span.image,
    .keylinks-product-4 a.keylink span.image {
        top: inherit;
    }

.me-ui .grid-fluid.keylinks-brand-4 .row > div,
.me-ui .grid-fluid.keylinks-product-4 .row > div {
    margin-bottom: 1rem;
}

/* =============================================================================
   me-photo-tiles.css — Photo tile grid component

   ============================================================================= */


/* ============================================
   Variables
   ============================================ */
:root {
    --me-photo-tile-accent:  #CC1F1F;   /* ME brand red — override per section */
    --me-photo-tile-gap:     4px;
    --me-photo-tile-height:  320px;
    --me-photo-tile-spacer:  120px;
}


/* ============================================
   Grid container
   ============================================ */
.me-photo-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--me-photo-tile-gap);
}


/* ---- Column-count modifiers ---- */
.me-photo-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.me-photo-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.me-photo-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.me-photo-tiles--5 { grid-template-columns: repeat(5, 1fr); }
.me-photo-tiles--6 { grid-template-columns: repeat(6, 1fr); }


/* ============================================
   Tile
   ============================================ */
.me-photo-tile {
    position: relative;
    min-height: var(--me-photo-tile-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.me-photo-tile-spacer {
    height: var(--me-photo-tile-spacer);
}

.me-photo-tile .me-dark-cta__btn {
    margin-top: auto !important;
}

/* Accent bar — slides in from left on hover */
.me-photo-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--me-photo-tile-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
    z-index: 2;
}
.me-photo-tile:hover {
    text-decoration: none;
}
.me-photo-tile:hover::before {
    transform: scaleX(1);
}


/* ---- Photo ---- */
.me-photo-tile-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.me-photo-tile:hover .me-photo-tile-photo {
    transform: scale(1.04);
}


/* ---- Overlay ---- */
.me-photo-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.28) 52%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}


/* ---- Content ---- */
.me-photo-tile-content {
    position: relative;
    z-index: 2;
    padding: 18px;
    height: 100%;
}

.me-photo-tile-title {
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
}
.me-photo-tile-title--sm {
    font-size: calc(var(--legacy-rem) * 1.5px);
}

.me-photo-tile-desc {
    color: rgba(255,255,255,0.90);
    line-height: 1.6;
    margin-bottom: 8px;
    transition: color 0.16s;
}
.me-photo-tile-desc--sm {
    font-size: calc(var(--legacy-rem) * 1px);;
}


/* ---- Bullets (revealed on hover) ---- */
.me-photo-tile-bullets {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.me-photo-tile:hover .me-photo-tile-bullets {
    max-height: 160px;
    opacity: 1;
}
.me-photo-tile-bullets li {
    color: rgba(255,255,255,0.65);
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 2px 0 2px 16px;
    position: relative;
}
.me-photo-tile-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--me-photo-tile-accent);
}


/* ---- Link ---- */
.me-photo-tile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--me-photo-tile-accent);
    transition: color 0.16s;
}
.me-photo-tile:hover .me-photo-tile-link {
    color: #fff;
}
.me-photo-tile-link svg {
    width: 19px; height: 19px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.16s;
}
.me-photo-tile:hover .me-photo-tile-link svg {
    transform: translateX(3px);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet (<992px)
   default/--4 → 2 cols
   --3         → stays 3
   --5/--6     → drop to 3
   --2         → stays 2 (no change) */
@media (max-width: 991.98px) {
    .me-photo-tiles                             { grid-template-columns: repeat(2, 1fr); }
    .me-photo-tiles--3                          { grid-template-columns: repeat(3, 1fr); }
    .me-photo-tiles--5,
    .me-photo-tiles--6                          { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile (<768px): all collapse to 2 cols, tiles taller, content always visible */
@media (max-width: 767.98px) {
    .me-photo-tiles,
    .me-photo-tiles--3,
    .me-photo-tiles--5,
    .me-photo-tiles--6                          { grid-template-columns: repeat(2, 1fr); }
    .me-photo-tile                              { min-height: var(--me-photo-tile-height-mobile, 420px); }
    .me-photo-tile-bullets                      { max-height: 160px; opacity: 1; }
}

/* XS (<576px): all collapse to 1 col */
@media (max-width: 575.98px) {
    .me-photo-tiles,
    .me-photo-tiles--2,
    .me-photo-tiles--3,
    .me-photo-tiles--5,
    .me-photo-tiles--6                          { grid-template-columns: 1fr; }
}




@media screen and (min-width: 768px) {

    .keylinks-max320 .keylink-block {
        max-width: 320px;
    }

    .keylinks-image-border .col-md-2 a.keylink h2,
    .keylinks-image-border .col-md-2 a.keylink span.blurb,
    .keylinks-image-border .col-md-2 a.keylink h2,
    .keylinks-image-border .col-md-2 a.keylink span.blurb,
    .keylinks-blurb-150 .col-md-2 a.keylink h2,
    .keylinks-blurb-150 .col-md-2 a.keylink span.blurb,
    .keylinks-blurb-150 .col-md-2 a.keylink h2,
    .keylinks-blurb-150 .col-md-2 a.keylink span.blurb {
        margin-left: 0;
    }

    .keylinks-image-border .col-md-2 a.keylink,
    .keylinks-blurb-150 .col-md-2 a.keylink {
        min-height: 150px;
        padding: 5px;
    }

        .keylinks-image-border .col-md-2 a.keylink span.image,
        .keylinks-image-border .col-md-2 a.keylink div.image-border,
        .keylinks-blurb-150 .col-md-2 a.keylink span.image,
        .keylinks-blurb-150 .col-md-2 a.keylink div.image-border {
            position: relative;
            top: inherit;
            left: inherit;
            margin-bottom: 0.5rem;
        }

            .keylinks-image-border .col-md-2 a.keylink span.image.center,
            .keylinks-blurb-150 .col-md-2 a.keylink span.image.center {
                margin: 0;
                position: relative;
                top: inherit;
                transform: none;
            }
}

@media screen and (min-width: 568px) {

    .keylinks-brand-4 a.keylink,
    .keylinks-product-4 a.keylink {
        min-height: 120px;
        padding: 5px;
        height: 100%;
    }

        .keylinks-brand-4 a.keylink h2 {
            margin: 1rem 0;
            text-align: center;
        }

        .keylinks-product-4 a.keylink h2 {
            margin: 85px 0 0 0;
            text-align: center;
        }

        .keylinks-brand-4 a.keylink span.image,
        .keylinks-product-4 a.keylink span.image {
            left: calc(50% - 45px);
            top: 0;
        }

    .me-ui .grid-fluid.keylinks-brand-4 .row,
    .me-ui .grid-fluid.keylinks-product-4 .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .me-ui .grid-fluid.keylinks-brand-4 .keylink-block,
    .me-ui .grid-fluid.keylinks-product-4 .keylink-block {
        width: calc(25% - 1rem);
        margin: 0 0.5rem;
    }
}

}
/* MOBILE SITE */
@media screen and (max-width: 980px) {


    .mob a.keylink, .mob span.keylink {
        padding: 2%;
    }


        .mob a.keylink h2 {
            margin-top: 5px;
            margin-right: 0px;
            width: auto;
        }

        .mob a.keylink span.blurb {
            margin-right: 20px;
            width: auto;
        }

        .mob a.keylink span.img {
            left: 5px;
        }


    .mob .keylinks-main a.keylink h2,
    .mob .keylinks-main a.keylink span.blurb,
    .mob .keylinks-main .col-md-4 a.keylink h2,
    .mob .keylinks-main .col-md-4 a.keylink span.blurb {
        margin-left: 0;
    }

    .mob .keylinks-main a.keylink span.image,
    .mob .keylinks-main a.keylink div.image-border {
        position: relative;
        top: 0px;
        left: 0px;
        margin-bottom: 0.5rem;
    }

        .mob .keylinks-main a.keylink div.image-border span.image {
            position: relative;
        }
}

@media screen and (max-width: 960px) and (min-width: 768px) {
    .thumbnail-link:before {
        filter: grayscale(0%) brightness(0.8);
    }


    .thumbnail-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
        pointer-events: none; /* Ensure the pseudo-element does not intercept mouse events */
        z-index: 1;
    }

    .thumbnail-content {
        z-index: 100;
    }

    .thumbnail-description {
        z-index: 100;
        opacity: 1;
        transform: translateY(0);
    }


    .mob .keylinks-image-border a.keylink h2,
    .mob .keylinks-image-border a.keylink span.blurb,
    .mob .keylinks-image-border .col-md-4 a.keylink h2,
    .mob .keylinks-image-border .col-md-4 a.keylink span.blurb,
    .mob .keylinks-blurb-150 a.keylink h2,
    .mob .keylinks-blurb-150 a.keylink span.blurb,
    .mob .keylinks-blurb-150 .col-md-4 a.keylink h2,
    .mob .keylinks-blurb-150 .col-md-4 a.keylink span.blurb {
        margin-left: 0;
    }

    .mob .keylinks-image-border a.keylink span.image,
    .mob .keylinks-image-border a.keylink div.image-border,
    .mob .keylinks-blurb-150 a.keylink span.image,
    .mob .keylinks-blurb-150 a.keylink div.image-border {
        position: relative;
        top: inherit;
        left: inherit;
        margin-bottom: 0.5rem;
    }

        .mob .keylinks-image-border a.keylink span.image.center,
        .mob .keylinks-blurb-150 a.keylink span.image.center {
            margin: 0;
            position: relative;
            top: inherit;
            transform: none;
        }
}

@media only screen and (max-width: 567px) {
    .thumbnail-link:before {
        filter: grayscale(0%) brightness(0.8);
    }

    .thumbnail-header {
        font-size: 16px;
    }

    .thumbnail-header-bg {
        height: auto;
    }

    .thumbnail-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
        pointer-events: none; /* Ensure the pseudo-element does not intercept mouse events */
        z-index: 1;
    }

    .thumbnail-content {
        z-index: 100;
    }

    .thumbnail-description {
        z-index: 100;
        opacity: 1;
        transform: translateY(0);
    }

    .thumbnail-link {
        height: 210px;
        width: 48%;
        margin: 2px;
    }

    .mob div.keylink-block {
        display: block;
        margin: 4% 1% !important;
    }

        .mob div.keylink-block a.keylink {
            display: block;
            width: 100% !important;
        }

    .mob a.keylink,
    .mob span.keylink {
        width: 93% !important;
        padding: 2% !important;
        margin: 1% !important;
    }

    .mob div.keylink-block a.keylink {
        margin: 0 !important;
    }


    .keylinks-main div.keylink-block {
        margin: 1rem 0;
    }

    .keylinks-main a.keylink h2,
    .keylinks-main a.keylink span.blurb {
        margin: 0.5rem;
    }

    .keylinks-main a.keylink span.image {
    }

    .keylinks-main a.keylink div.image-border {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        margin: 0.5rem;
    }

    .keylinks-main a.keylink span.button,
    .keylinks-main a.keylink span.button:visited {
        position: relative;
        display: block;
        bottom: auto;
        right: auto;
        height: 3rem;
        text-align: center;
        line-height: 1rem;
        font-size: 1.1rem;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 0.5rem;
    }
}
