body[class*="template-home"]:has(.highlight_cards) #bannerholder { margin-bottom: 0 !important;}

.highlight_cards {

    padding: var(--outer-05) var(--outer-1);/*  max-width: calc(1200px + var(--outer-1) + var(--outer-1)); margin: 0 auto;*/
    --cardgap:32px;
    --cardpadding:24px;
    --cardheading:24px;
    --cardtext:16px;
}
.highlight_cards > div {

    display: flex; flex-wrap: wrap;

    gap:var(--cardgap);
}

.highlight_cards > div article { background-color: var(--green);

width:100%; min-height: 280px; min-height: 75vw;
    position: relative; border-radius: 16px; overflow: hidden;
display: flex; flex-direction: column; color: white;
}

@media all and (min-width:600px) {
    .highlight_cards > div article {
        min-height: 280px;
    }
}
@media all and (min-width:900px) {
    .highlight_cards > div article {
        min-height: 320px;
    }
}
@media all and (min-width: 1200px) {
    .highlight_cards > div article {
        min-height: 380px;
    }
}
@media all and (min-width: 1500px) {
    .highlight_cards > div article {
        min-height: 450px;
    }


}



.highlight_cards > div article:only-child {
    max-width: 800px; margin: 0 auto;

}

    .highlight_cards > div article > div {
    flex:1; /*background-color: rgba(0,0,0,0.1);*/

   display: flex; flex-direction: column;
        z-index: 2;
}

.highlight_cards > div article > div > div{
    margin-top: auto;    padding:64px var(--cardpadding) var(--cardpadding);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.50);

}
/*.highlight_cards > div article > div > div::before{
    display: block; width: 100%; height: 0; padding-bottom: 50%; content:""; background-color: red;
}*/


.highlight_cards > div article > div > div {
   /* display: block; content:""; height: calc(100% + 12px); position: absolute; width:100%;
    left: 0; bottom:0; z-index: -1;*/

    background:
            -webkit-linear-gradient(bottom,
            hsl(0, 0%, 0%) 0%,
            hsla(0, 0%, 0%, 0.738) 19%,
            hsla(0, 0%, 0%, 0.541) 34%,
            hsla(0, 0%, 0%, 0.382) 47%,
            hsla(0, 0%, 0%, 0.278) 56.5%,
            hsla(0, 0%, 0%, 0.194) 65%,
            hsla(0, 0%, 0%, 0.126) 73%,
            hsla(0, 0%, 0%, 0.075) 80.2%,
            hsla(0, 0%, 0%, 0.042) 86.1%,
            hsla(0, 0%, 0%, 0.021) 91%,
            hsla(0, 0%, 0%, 0.008) 95.2%,
            hsla(0, 0%, 0%, 0.002) 98.2%,
            hsla(0, 0%, 0%, 0) 100%
            );
    background:
            linear-gradient(bottom,
            hsl(0, 0%, 0%) 0%,
            hsla(0, 0%, 0%, 0.738) 19%,
            hsla(0, 0%, 0%, 0.541) 34%,
            hsla(0, 0%, 0%, 0.382) 47%,
            hsla(0, 0%, 0%, 0.278) 56.5%,
            hsla(0, 0%, 0%, 0.194) 65%,
            hsla(0, 0%, 0%, 0.126) 73%,
            hsla(0, 0%, 0%, 0.075) 80.2%,
            hsla(0, 0%, 0%, 0.042) 86.1%,
            hsla(0, 0%, 0%, 0.021) 91%,
            hsla(0, 0%, 0%, 0.008) 95.2%,
            hsla(0, 0%, 0%, 0.002) 98.2%,
            hsla(0, 0%, 0%, 0) 100%
            );

}

.highlight_cards > div article picture {
    position: absolute; width: calc(100% + 2px);
    height: calc(100% + 2px); left: -1px; top: -1px;
}

.highlight_cards > div article picture img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover; transition: all 0.25s ease-in-out;
}
.highlight_cards article:has(a:is(:hover,:focus-visible)) > picture img{
    transform: translate(-50%, -50%) scale(1.1);
}

/* WIDTHS */

@media all and (min-width: 1200px) {
    /* Exactly 2 articles */
    .highlight_cards > div:has(> article:nth-of-type(2)):not(:has(> article:nth-of-type(3))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }

    /* Exactly 3 articles */
    .highlight_cards > div:has(> article:nth-of-type(3)):not(:has(> article:nth-of-type(4))) > article {
        width: calc(33.333% - (var(--cardgap) * 0.6666));
    }

    /* Exactly 4 articles */
    .highlight_cards > div:has(> article:nth-of-type(4)):not(:has(> article:nth-of-type(5))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }

    /* Exactly 5 articles */
    .highlight_cards > div:has(> article:nth-of-type(5)):not(:has(> article:nth-of-type(6))) > article:nth-of-type(-n+3) {
        width: calc(33.333% - (var(--cardgap) * 0.6666));
    }

    .highlight_cards > div:has(> article:nth-of-type(5)):not(:has(> article:nth-of-type(6))) > article:nth-of-type(n+4) {
        width: calc(50% - (var(--cardgap) / 2));
    }

    /* Exactly 6 articles */
    .highlight_cards > div:has(> article:nth-of-type(6)):not(:has(> article:nth-of-type(7))) > article {
        width: calc(33.333% - (var(--cardgap) * 0.6666));
    }
}

/* WIDTHS */



@media all and (min-width: 900px) and (max-width: 1199.98px) {

    /* Exactly 2 articles */
    .highlight_cards > div:has(> article:nth-of-type(2)):not(:has(> article:nth-of-type(3))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }

    /* Exactly 3 articles */
    .highlight_cards > div:has(> article:nth-of-type(3)):not(:has(> article:nth-of-type(4))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }
    .highlight_cards > div:has(> article:nth-of-type(3)):not(:has(> article:nth-of-type(4))) > article:nth-child(3) {
        width: 100%;
    }

    /* Exactly 4 articles */
    .highlight_cards > div:has(> article:nth-of-type(4)):not(:has(> article:nth-of-type(5))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }

    /* Exactly 5 articles */
    .highlight_cards > div:has(> article:nth-of-type(5)):not(:has(> article:nth-of-type(6))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }

    .highlight_cards > div:has(> article:nth-of-type(5)):not(:has(> article:nth-of-type(6))) > article:nth-of-type(n+5) {
        width: 100%;
    }

    /* Exactly 6 articles */
    .highlight_cards > div:has(> article:nth-of-type(6)):not(:has(> article:nth-of-type(7))) > article {
        width: calc(50% - (var(--cardgap) / 2));
    }

}
@media all and (min-width: 600px) and (max-width: 899.98px) {


    .highlight_cards > div > article {
        width: calc(50% - (var(--cardgap) / 2));
    }
    .highlight_cards > div > article:nth-child(odd):last-child {
        width: 100%
    }
}
@media all and (max-width: 899.98px) {

    .highlight_cards {

        padding: var(--outer-1);
        --cardgap:20px;
        --cardpadding:20px;
        --cardheading:20px;
        --cardtext:14px;
    }


}



/* END CAR WIDTHS */


.highlight_cards h3 { font-size: var(--cardheading); line-height:1.2; margin-bottom: 0.25em; font-weight: 900; max-width: 640px }
.highlight_cards h3+p { font-size: var(--cardtext); line-height:1.75;  margin: 0  }
.highlight_cards a { color:inherit;
    transition: all 0.2s ease; cursor: pointer; /*font-weight: 700;*/
    text-decoration: none;
    /* padding: 1px 0;*/
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat, no-repeat;
    background-size: 0 2px, 100% 2px;
    transition: background-size .3s;
}
.highlight_cards a:hover {
    background-size: 100% 2px, 100% 2px
}
.highlight_cards a:focus-visible {
    outline: 3px solid white;    box-shadow: 0 0 0 6px black;

}

.highlight_cards a::after {

    content:"\2192";
    margin-left: 0.25em;
    color:var(--hi_yellow);
    font-weight: 400;
}
.highlight_cards a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"])::after{
    content:"\2197";
}
.highlight_cards a[href*=".doc"]::after,
.highlight_cards a[href*=".docx"]::after,
.highlight_cards a[href*=".pdf"]::after {
    content:"\2193";
}



.highlight_cards a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

}
.highlight_cards .overline { font-size: 12px; line-height: 2; font-weight: 600; text-transform: uppercase;  }
.highlight_cards .overline span { background: var(--hi_goldlight); color:black; display: inline-block; padding: 0.6em 1.5em 0.4em var(--cardpadding); }

.highlight_cards .overline[data-colour="hi_yellow"] span{ background-color: var(--hi_yellow); }
.highlight_cards .overline[data-colour="hi_burgundy"] span{ background-color: var(--hi_burgundy); color:white; }
.highlight_cards .overline[data-colour="hi_lightblue"] span{ background-color: var(--hi_lightblue); }
.highlight_cards .overline[data-colour="hi_goldlight"] span{ background-color: var(--hi_goldlight); }
.highlight_cards .overline[data-colour="hi_lavender"] span{ background-color: var(--hi_lavender); color:white }

.highlight_cards> header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--outer-05);}
.highlight_cards> header h2 {
    font-size: 1.333333333333333rem;
    color:var(--green);
    line-height: 1.1111;
    margin-bottom:0;
    font-weight: 900;}
.highlight_cards> header p{ font-size:14px; }
.highlight_cards> header p a::after { color: inherit;}
@media all and (max-width:899px) {
    .highlight_cards > header {
        display: block;
    }

    .highlight_cards > header h2 {
        margin-bottom: 0.5em;
    }
}
@media all and (max-width:599px) {
    .highlight_cards> header h2 { font-size: 1rem; }

}