
#pageheader.cardheader  {  --h1_size:40px; }
#pageheader.cardheader div#sectionmenu { background: none;
    position: relative;
    z-index: 1; }
#pageheader.cardheader .banner{ top:0; left:0; }

#pageheader.cardheader header>div {
    --margin: 64px; margin-top: var(--outer-05); margin-bottom: var(--margin); border-radius: 16px;
    background-color:var(--hi_burgundy);
    box-shadow: none; color: white;


}


#pageheader.cardheader header div h1 {
    font-size: var(--h1_size);
}
@media all and (min-width: 900px) and (max-width: 1199px) {

    #pageheader.cardheader picture {

        padding-bottom: 80%;
    }
}
body.visit-template-template-heritagecard #pageheader figure::before { display: none !important;

/*    opacity: 0;
    opacity: 0.6666;
    opacity: 0.85;

    transition: all 0.2s ease;
    content: "";
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(72px + 10vh);
    pointer-events: none;
    position: absolute;
    z-index: 90;
    box-sizing: content-box;

    background: -webkit-linear-gradient(top,
    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(top,
    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%
    );*/

}



.feature_box {display: flex; justify-content: space-between; margin:var(--outer-05) var(--outer-1) var(--outer-05) ; background-color: var(--hi_goldlight); border-radius: 16px; overflow: hidden;

--h2_size:40px;
}

.feature_box h2 { font-size: var(--h2_size);  line-height: 1.3;  margin-bottom: 1em; font-weight: 800;}

.feature_box .bodytext {margin:0 !important;}
.feature_box table ,.feature_box table th, .feature_box table td {
    border: 2px solid var(--hi_black);
}
.feature_box table th {
    background: rgba(0, 0, 0, 0.666);
}
.feature_box table td {
    background: none;
}
.feature_box table tr:nth-child(even) td {
    background: rgba(255, 255, 255, .25);
}


#pageheader.cardheader p:last-child  ,
.feature_box p:last-child   {

    margin-bottom: 0;
}

p.cta_lozenge > a,
#pageheader.cardheader p:last-child > a:first-child:last-child,
.feature_box .bodytext > p:last-child > a:first-child:last-child {


    border-bottom: none;
    background: var(--hi_yellow);
    color: var(--hi_black);
    white-space: nowrap;
    transition: all .2s ease;
    border-radius: 300px;
    display: inline-flex;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    padding: 0.5em 1em;margin-top: 1em;
}

.callout p.cta_lozenge > a,
#pageheader.cardheader.yellow p:last-child > a:first-child:last-child,
.feature_box.yellow  .bodytext > p:last-child > a:first-child:last-child {
    background: white;
}


.callout p.cta_lozenge > a::after,
#pageheader.cardheader p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:after,
.feature_box p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child::after{
    content:"\2197"; margin-left: 0.33em; transition:all 0.2s ease-out;
}

.callout p.cta_lozenge > a:is(:hover,focus-visible)::after,
#pageheader.cardheader p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:is(:hover,focus-visible):after,
.feature_box p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:is(:hover,focus-visible)::after {
    margin-left: 1em;

}
.callout p.cta_lozenge > a:is(:hover),
#pageheader.cardheader p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:is(:hover),
.feature_box p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:is(:hover) {

    background: var(--green);
}


.callout p.cta_lozenge > a::after { content:"\2192"; }
.callout p.cta_lozenge > a:is(:hover) { background: var(--hi_yellow);}
.callout:is(.yellow,.gold) p.cta_lozenge > a:is(:hover) {  background: var(--green); color: white;}


#pageheader.cardheader.plum p:last-child > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:is(:hover),
.feature_box p:last-child.plum > a[href*="//"]:not([href*="//www.heritageireland.ie"]):not([href*="//heritageireland.ie"]):first-child:last-child:is(:hover) {
    background: white; color: var(--hi_black);
}



.feature_box.plum {     background-color:var(--hi_burgundy);  color: white; }
.feature_box.blue {     background-color:var(--hi_lightblue);    }
.feature_box.yellow {     background-color:var(--hi_yellow);   }

.feature_box>div { flex:1; /*max-width: 850px;*/}
.feature_box>figure { display:block;   width: 50%}

.feature_box>div:first-child{padding:var(--outer-05);  display: flex; flex-direction:column; }


.feature_box>div:first-child h1{
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 900; margin-bottom: 1em; }

.feature_box dt,
.feature_box>div:first-child p,
.feature_box>div.bodytext:not(.larger_lists) li
{
    font-size: 0.8333333333333333rem;
    margin-bottom: 1rem;

    font-weight: 400;
}
.feature_box>div.bodytext:not(.larger_lists) li {
    margin-bottom: .5em;
}

.feature_box>div:first-child blockquote { margin:0; }
.feature_box>div:first-child blockquote cite {  font-style: italic; }
/*.feature_box>div:first-child blockquote p:is(:first-child,:nth-child(2))*/
.feature_box>div:first-child blockquote p
{ font-size: 1rem; }
.bodytext blockquote>p:nth-child(2)::before {content: "\201C"; }
.bodytext blockquote>p:first-child::before,
.bodytext blockquote>p:first-child::after {     content: "";}
.bodytext blockquote>p:nth-last-child(2)::after {     content: "\201D";}


.feature_box>figure {  position: relative; display: block;    }
.feature_box>figure picture { display: block;  height: 100%; width: 100%; position: absolute;  }
.feature_box>figure img{display: block;  height: 100%; width: 100%; object-fit:cover; position: absolute; z-index: 1;   }

.feature_box>figure figcaption { color: white; position: absolute; font-weight: 500; font-size: 0.75rem; z-index: 99;  /*background: rgba(255,0,255,0.5);*/ width: 100%; width: 100%; padding: var(--outer-05); bottom:0; left: 0;}



@media all and (min-width:900px) {
    #pageheader.cardheader div#sectionmenu,
    #pageheader.cardheader header>div ,
    .feature_box {  margin-left: var(--outer-05) ;  margin-right: var(--outer-05) ; }

}
@media all and (min-width:1500px) {
    #pageheader.cardheader div#sectionmenu,
    #pageheader.cardheader header>div ,
    .feature_box {  margin-left: var(--outer-05) ;  margin-right: var(--outer-05) ; }


}

p.cta_lozenge > a {
    font-size: 0.8333333333333333rem;
    white-space: normal; align-items: center;
}


@media all and (max-width: 1199px) {
    .callout p.cta_lozenge > a:is(:hover,focus-visible)::after {  margin-left: 0.33em; }
    #pageheader.cardheader header {

        background: none; padding:0; margin: calc(0px - var(--outer-4)) 0 0;
    }
    #pageheader.cardheader header>div { margin-bottom: 0;}

    p.cta_lozenge > a  {

        font-size: 0.666rem;
    }


}
@media all and (max-width: 899px) {
    #pageheader.cardheader header>div { --margin: 48px; }

    #pageheader.cardheader  {  --h1_size:28px; }
    .feature_box  {
        --h2_size:28px; margin: var(--outer-05);
    }

    .feature_box>div:first-child blockquote p
    { font-size: 0.75rem; }

    #pageheader.cardheader header {

        background: none; padding:0; margin: calc(0px - var(--outer-4)) var(--outer-05) var(--outer-1);
    }
    #pageheader.cardheader header>div { padding:var(--outer-1); }

    .feature_box { display: block;}
    .feature_box>div:first-child{padding:var(--outer-1); }
    .feature_box > figure { height:0; padding-bottom: 56.25%;  width: 100%;}


}
@media all and (max-width: 599px) {
    .feature_box>figure figcaption { padding: var(--outer-1);  font-size: 0.5833333333333333rem}

    .feature_box  {
        --h2_size:24px;
    }


    #pageheader.cardheader p:last-child > a:first-child:last-child,
    .feature_box .bodytext > p:last-child > a:first-child:last-child {

           font-size: 0.666rem;
    }


    .feature_box dt,
    .feature_box>div:first-child p,
    .feature_box>div.bodytext:not(.larger_lists) li {

        font-size: .6666666666666667em;
    }
}

.feature_box>figure figcaption::before {
    opacity: 0.666;opacity: 0.85;

    transition:all 0.2s ease;
    content:""; display:block;  bottom:0; left:0; width:100%; height: calc(100% + 64px); pointer-events: none;
    position:absolute; z-index: -10;
    box-sizing: content-box;

    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%
            );


}


dl#anchors {display: flex; flex-wrap: wrap; align-items: center;

    margin: var(--outer-05);
    position: relative;
    z-index: 1;
}
dl#anchors dt,
dl#anchors dd { font-size: 16px; margin:4px 8px 4px 0; }

dl#anchors dt {font-weight: 800;



    color: var(--hi_black);}

dl#anchors dd{
    font-weight:700;
    font-size: 16px;
    line-height: 20px;
}
dl#anchors dd a{
    background: rgba(0,0,0,.4); transition: all 0.2s ease;         border-radius: 300px;
    border: 1px solid #B09F6B;
    color: white; padding: 0.5em 0.75em; display: block;
}

dl#anchors dd a:is(:hover,:focus-visible){
    background: var(--green); color: white;
}