.lightbox-mask {
    background-color: rgba(0, 0, 0, 60%);
    position: fixed;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lightbox-content {
    overflow-y: auto;
    margin: 75px 40px 90px 75px;
    padding-right: 35px;
}

.lightbox-title~.lightbox-content {
    margin-top:40px;
}

.lightbox-content hr {
    border: none;
    border-top: 2px solid black;
    height: 1px;
    width: 100%;
}

.lightbox-title {
    text-decoration: underline;
    margin:75px 75px 0 75px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-underline-offset: 5px;
    text-decoration-color: #E54E26;
    line-height:1.3;
}

.lightbox-close-button,
.lightbox-close-button:focus,
.lightbox-close-button:hover {
    margin: 1px 1px;
    position: absolute;
    right: 0px;
    top: -40px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    outline: none;
    border: 0px solid;
    background-image: url("/images/lightbox/lightbox-close-button.svg");
    background-size: 24px;
    width: 32px;
    height: 32px;
      image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.lightbox-close-button:focus,
.lightbox-close-button:hover {
    border-radius: unset;

}

.lightbox-hidden {
    display: none;
}

.lightbox-dialog {
    /*
        background-size: contain;
        background-repeat:no-repeat;
        background-image: url("/images/lightbox/lightbox-bg.png");
        background-repeat: round;
        background-size: auto;*/
    --hmrdesktop-base-width: 101px;
    --hmrdesktop-base-height: 89px;
    --hmrdesktop-scale: 1;
    --hmrmobile-base-width: 176px;
    --hmrmobile-base-height: 150px;
    --hmrmobile-scale: 0.5;
    background-color: #FFFFFF;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    background-image: 
    url("/images/lightbox/lightbox-bg-bottom-mask.svg"),
    url("/images/lightbox/hmrdesktop.svg"),
        url("/images/lightbox/lightbox-bg-bottom.svg"),
        url("/images/lightbox/lightbox-bg-top.svg"),
        url("/images/lightbox/lightbox-bg-left.svg"),
        url("/images/lightbox/lightbox-bg-right.svg");
    background-size: 50px 50px, calc(var(--hmrdesktop-base-width) * var(--hmrdesktop-scale)) calc(var(--hmrdesktop-base-height) * var(--hmrdesktop-scale)), auto 30px, auto, auto, auto;
    background-position: left -5px bottom -22px,right 4px bottom -1px, bottom, top, left, right;
    background-repeat: no-repeat, no-repeat, repeat-x, repeat-x, repeat-y, repeat-y;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border-radius: 15px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    border-radius: inherit;
    min-width: 576px;
    min-height: 370px;
    max-width: calc(100vw * 11 / 15);
    max-height: calc(100vh * 10 / 15);
    font-family: Arial, Helvetica, sans-serif;
}

.lightbox-content img {
    background-color: #221F1F;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0
}

#lightbox a {text-decoration: underline;}

    @media screen and (max-width: 576px), screen and (max-height: 576px) {
    .lightbox-dialog {
        min-width: auto !important;
        min-height: auto !important;
        max-width: calc(100% - 30px) !important;
        max-height: calc(100vh * 95 / 165) !important;
        width: 100%;
        height: 100%;
        background-image: 
        
        url("/images/lightbox/lightbox-bg-bottom-mask.svg"),
        url("/images/lightbox/hmrmobile.svg"),
        url("/images/lightbox/lightbox-bg-bottom.svg"),
        url("/images/lightbox/lightbox-bg-top.svg"),
        url("/images/lightbox/lightbox-bg-left.svg"),
        url("/images/lightbox/lightbox-bg-right.svg");
        background-size: 40px 40px, calc(var(--hmrmobile-base-width) * var(--hmrmobile-scale)), auto 25px, auto, auto, auto;
        background-position: left 0px bottom -3px, right 0px bottom 13px, left 0 bottom 14px, top, left, top 0px right -6px;
    }
    @media screen and (max-width: 400px) {
        .lightbox-dialog {
        /*background-size: 50% auto,auto 18px , auto, auto, auto;*/
        }
    }
    @media screen and (max-height: 400px) {
        .lightbox-title{
        margin-top:40px;
          font-size:1.1rem;
        }
        .lightbox-content {
        margin-top: 10px !important;
        }
    }

    .lightbox-content {
        padding-right: 30px;
          margin-bottom: 85px;
    }
}

.lightbox-close-button:focus-visible {
    outline: auto;
    outline-color: #000;
    box-shadow: none;
}
