/* Heritage 2019 / Smart Slider 3 rebuilt without legacy JavaScript.
   Layer positions come from Joomla SQL, relative to its 1200x600 canvas. */
.ma-heritage-slot,.ma-heritage-widget,.ma-heritage-widget>.elementor-widget-container,.ma-heritage-widget .elementor-shortcode{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;display:block!important}
.ma-heritage-slot.e-con{--padding-block-start:0;--padding-inline-start:0;--padding-block-end:0;--padding-inline-end:0;--gap:0px}
.ma-heritage-slider{position:relative;isolation:isolate;overflow:hidden;width:100%;height:clamp(485px,47vw,660px);background:#132b3d;color:#fff;outline-offset:-4px}
.ma-heritage-slider *{box-sizing:border-box}.ma-heritage-track{height:100%;display:flex;transition:transform 800ms cubic-bezier(.22,.68,.16,1);will-change:transform}
.ma-heritage-slide{flex:0 0 100%;min-width:0;height:100%;position:relative;isolation:isolate;overflow:hidden}
.ma-heritage-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3}
.ma-heritage-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(4,25,39,.64),rgba(4,25,39,.25) 54%,rgba(4,25,39,.04) 100%)}
.ma-heritage-stage{position:relative;margin:0 auto;width:min(1200px,100%);height:100%;}
.ma-heritage-layer{position:absolute;left:var(--ma-left);top:var(--ma-top);width:var(--ma-width);color:#fff;text-shadow:0 2px 15px #02152277;max-width:85%;font-weight:600;line-height:1.23}
.ma-layer-heading{font-size:clamp(24px,2.3vw,33px);font-weight:800;text-wrap:balance;letter-spacing:-.02em}
.ma-layer-text{font-size:clamp(18px,1.55vw,24px);font-weight:600;line-height:1.32;white-space:normal}
.ma-layer-image{display:flex;align-items:center;justify-content:flex-start;height:auto;max-width:85%;}
.ma-layer-image img{display:block;width:100%;height:auto;object-fit:contain;object-position:left;max-height:min(40vw,510px);filter:drop-shadow(0 8px 19px #07192328)}
.ma-layer-button{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:12px 18px;background:#007bb9;color:#fff!important;text-decoration:none!important;font-size:clamp(15px,1.3vw,18px);font-weight:800;width:max-content;max-width:min(460px,90%);border:1px solid #ffffff42;box-shadow:0 12px 29px #001c336b;transition:background .2s,transform .2s}
.ma-layer-button:hover{background:#024e7d;color:#fff!important;transform:translateY(-2px)}
.ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3){background:#ffffffeb;padding:9px 13px;border-radius:2px}
.ma-heritage-slide[data-source-id="23"] .ma-layer-heading:last-child{font-size:clamp(22px,2vw,29px);max-width:500px;}
.ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{font-size:clamp(18px,1.55vw,22px);line-height:1.28}
.ma-heritage-slide[data-source-id="32"] .ma-layer-text,.ma-heritage-slide[data-source-id="33"] .ma-layer-text{font-size:clamp(16px,1.65vw,21px);line-height:1.34}
.ma-heritage-slide[data-source-id="27"] .ma-layer-text,.ma-heritage-slide[data-source-id="29"] .ma-layer-text,.ma-heritage-slide[data-source-id="30"] .ma-layer-text{font-size:clamp(19px,1.6vw,23px);line-height:1.36}
.ma-heritage-slide.is-active .ma-heritage-layer{animation:ma-heritage-rise 720ms both;animation-delay:120ms}
.ma-heritage-slide.is-active .ma-motion-from-right{animation-name:ma-heritage-right;animation-duration:950ms}
.ma-heritage-slide.is-active .ma-motion-from-left{animation-name:ma-heritage-left;animation-duration:930ms}
.ma-heritage-slide.is-active .ma-motion-flip-up{animation-name:ma-heritage-flip;animation-duration:1000ms}
.ma-heritage-slide.is-active .ma-heritage-layer:nth-child(2){animation-delay:240ms}.ma-heritage-slide.is-active .ma-heritage-layer:nth-child(3){animation-delay:360ms}.ma-heritage-slide.is-active .ma-heritage-layer:nth-child(4){animation-delay:500ms}
@keyframes ma-heritage-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@keyframes ma-heritage-left{from{opacity:0;transform:translateX(-95px)}to{opacity:1;transform:translateX(0)}}
@keyframes ma-heritage-right{from{opacity:0;transform:translateX(125px)}to{opacity:1;transform:translateX(0)}}
@keyframes ma-heritage-flip{from{opacity:0;transform:perspective(600px) rotateX(-55deg) translateY(15px)}to{opacity:1;transform:perspective(600px) rotateX(0) translateY(0)}}
.ma-heritage-controls{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);z-index:3;display:flex;gap:9px;padding:9px 12px;background:#0b2238a1;backdrop-filter:blur(5px)}
.ma-heritage-dot{border:0;border-radius:1px;background:#ffffff80;width:28px;height:6px;cursor:pointer;padding:0;transition:background .2s}.ma-heritage-dot:hover{background:#dceffa}.ma-heritage-dot.is-active{background:#fff}
.ma-heritage-pause{position:absolute;bottom:14px;right:25px;width:36px;height:36px;z-index:3;background:#0b2238a1;color:#fff;border:1px solid #ffffff70;cursor:pointer}
.ma-heritage-slider :is(button,a):focus-visible{outline:3px solid #ffc64d;outline-offset:3px}
/* Historical desktop positions can't be used literally on a narrow screen. The content, order and pictures are unchanged. */
@media(max-width:900px){.ma-heritage-slider{height:clamp(580px,77vw,750px)}.ma-heritage-stage{width:100%;height:100%;padding:50px 6% 72px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:clamp(13px,2.5vw,25px)}.ma-heritage-shade{background:linear-gradient(90deg,#06263fe5,#052d44b5)}.ma-heritage-layer{position:static;max-width:94%;width:auto;font-size:clamp(18px,2.8vw,26px);line-height:1.24}.ma-layer-heading{font-size:clamp(27px,4.7vw,42px)}.ma-layer-text{font-size:clamp(18px,2.75vw,24px)}.ma-layer-image{max-width:min(450px,80%)}.ma-layer-image img{max-height:175px}.ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(2){position:absolute;right:-14%;top:8%;opacity:.37;width:48%;max-width:none}.ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3){max-width:290px}.ma-heritage-slide[data-source-id="23"] .ma-layer-heading{position:relative;z-index:1}.ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{font-size:clamp(18px,2.7vw,25px)}.ma-heritage-slide[data-source-id="32"] .ma-layer-text,.ma-heritage-slide[data-source-id="33"] .ma-layer-text{font-size:clamp(16px,2.5vw,21px)}.ma-heritage-slide[data-source-id="27"] .ma-layer-text,.ma-heritage-slide[data-source-id="29"] .ma-layer-text,.ma-heritage-slide[data-source-id="30"] .ma-layer-text{font-size:clamp(20px,2.8vw,26px)}.ma-layer-button{font-size:17px;min-height:45px}.ma-heritage-controls{bottom:11px}}
@media(max-width:540px){.ma-heritage-slider{height:clamp(650px,85dvh,830px)}.ma-heritage-stage{padding:43px 7% 79px;justify-content:center;gap:clamp(14px,3.1vh,24px)}.ma-heritage-bg{object-position:55% center}.ma-heritage-layer{max-width:100%;overflow-wrap:anywhere}.ma-layer-heading{font-size:clamp(26px,7vw,36px)}.ma-layer-text{font-size:clamp(17px,4.4vw,22px)}.ma-layer-image{max-width:90%}.ma-layer-image img{max-height:145px}.ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{font-size:clamp(16px,3.9vw,20px);line-height:1.3}.ma-heritage-slide[data-source-id="32"] .ma-layer-text,.ma-heritage-slide[data-source-id="33"] .ma-layer-text{font-size:clamp(16px,3.85vw,19px);line-height:1.3}.ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(2){right:-19%;top:8%;width:70%;opacity:.3}.ma-heritage-slide[data-source-id="23"] .ma-layer-image:nth-child(3){max-width:230px}.ma-heritage-dot{width:21px;height:7px}.ma-heritage-controls{left:43%;gap:6px}.ma-heritage-pause{right:9px;bottom:10px}}
@media(prefers-reduced-motion:reduce){.ma-heritage-track{transition:none}.ma-heritage-slide.is-active .ma-heritage-layer{animation:none}}
/* V15 legibility corrections: retain original artwork and language, change only the placement
   needed for the source illustrations to stay visible at present-day viewport sizes. */
@media(min-width:901px){
 .ma-heritage-slide[data-source-id="31"] .ma-layer-heading:nth-child(2){left:10%;top:30%;width:50%;}
 .ma-heritage-slide[data-source-id="31"] .ma-layer-heading:last-child{left:10%;top:42%;width:52%;font-size:clamp(19px,1.5vw,24px);line-height:1.36;text-shadow:0 2px 14px #031625;}
 .ma-heritage-slide[data-source-id="31"] .ma-layer-button:first-child{left:10%;top:78%;}
 .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-image:first-child{left:10%;top:24%;width:31%;padding:10px 18px;background:#ffffffed;box-shadow:0 13px 35px #0002;}
 .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-text:last-child{left:10%;top:42%;width:49%;font-size:clamp(17px,1.45vw,22px);line-height:1.38;}
 .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-image:first-child{left:10%;top:24%;width:37%;padding:12px 20px;background:#ffffffed;box-shadow:0 12px 30px #0002;}
 .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-text:last-child{left:10%;top:52%;width:44%;font-size:clamp(20px,1.6vw,26px);line-height:1.33;}
 .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-button:nth-child(2){left:10%;top:79%;}
}
@media(max-width:900px){
 .ma-heritage-slide[data-source-id="31"] .ma-heritage-stage{gap:20px}
 .ma-heritage-slide[data-source-id="31"] .ma-layer-heading{order:0}
 .ma-heritage-slide[data-source-id="31"] .ma-layer-button{order:3}
 .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-image:first-child,
 .ma-heritage-slide:is([data-source-id="32"],[data-source-id="33"]) .ma-layer-image:first-child{background:#fffffff0;padding:12px 16px;box-shadow:0 10px 25px #00192830;max-width:min(440px,87%)}
 .ma-heritage-slide:is([data-source-id="27"],[data-source-id="29"],[data-source-id="30"]) .ma-layer-button{order:3}
}
