﻿:root {
    --lightbox-title-color: #000;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0
}

#lightbox {
    word-wrap: break-word;
}

.lightbox-title {
    font-family: GenathDisplay, Noto Serif TC, Noto Serif SC, MinionPro-bold, Kozuka Mincho Std, '小塚明朝 Pro R', '小塚明朝 Std R', Hiragino Mincho Pro, 'ヒラギノ明朝 Pro W3', 'ＭＳ Ｐ明朝', Times, Times New Roman, serif;
}

.lightbox-mask {
    position: fixed;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000000;
}

/* .lightbox-dialog {
    width: 90%;
    min-height: 380px;
    max-height: calc(100vh - 1em);
    min-width: 350px;
    max-width: calc(100vw - 1em);
    background-color: #ffffff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000001;
    border-radius: 0px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    background-image: url("/hkmoa-theme/images/lightbox-bg.jpg");
    background-repeat: no-repeat;
    background-position: top right;
} */

.lightbox-dialog {
      min-width: 550px;
    min-height: 350px;
    max-width: 630px;
    max-height: 470px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000001;
    border-radius: 0px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    background-image: url("../image/lightbox-bg.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center left;

}

.lightbox-dialog::before {
    content: "";
    display: block;
    background-image: url("../image/lightbox-logo.svg");
    background-repeat: no-repeat;
    background-position: top+7px left+15px;
    height: 100%;
    width: 100%;
    opacity: 0.6;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    /* background-size: contain; */
}


.lightbox-title {
    font-size: 1.5rem;
    /* font-weight: bold; */
    padding: 50px 30px 0px 30px;
    line-height: normal;
    color: var(--lightbox-title-color);
    background-color: transparent;
    border-radius: 0;
}

.lightbox-content {
    padding: 20px 30px;
    overflow-y: auto;
}

#lightbox hr {
    border: none;
    border-top: 1px solid black;
    background-color: unset;
    height: 1px;
    width: 100%;
    margin-bottom: 0rem;
    margin-top: 1.3rem;
}

#lightbox a {
    text-decoration: underline;
    color: var(--lightbox-title-color);
}

.lightbox-close-button,
.lightbox-close-button:focus,
.lightbox-close-button:hover {
    /* margin: 12px 30px; */
    position: absolute;
    right: -16px;
    top: -16px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    /*background-image: url("/hkmoa-theme/images/lightbox-close-button.svg");*/
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.0%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2232px%22%20height%3D%2232px%22%20viewBox%3D%220%200%2032%2032%22%20enable-background%3D%22new%200%200%2032%2032%22%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cpath%20fill%3D%22%23010101%22%20d%3D%22M31%2C16c0%2C8.284-6.716%2C15-14.999%2C15C7.716%2C31%2C1%2C24.284%2C1%2C16C1%2C7.716%2C7.716%2C1%2C16.001%2C1%20%20C24.284%2C1%2C31%2C7.716%2C31%2C16%22%2F%3E%0A%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M10.469%2C22.118c3.399-3.399%2C6.798-6.799%2C10.197-10.198c0.483-0.483%2C0.966-0.967%2C1.451-1.451%20%20c0.376-0.376-0.208-0.961-0.584-0.585c-3.399%2C3.399-6.799%2C6.798-10.198%2C10.197l-1.451%2C1.451%20%20C9.509%2C21.909%2C10.091%2C22.494%2C10.469%2C22.118%22%2F%3E%0A%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M22.117%2C21.532c-3.399-3.399-6.798-6.798-10.197-10.198l-1.451-1.451c-0.378-0.376-0.962%2C0.208-0.585%2C0.585%20%20c3.399%2C3.399%2C6.797%2C6.799%2C10.196%2C10.196c0.485%2C0.485%2C0.968%2C0.968%2C1.45%2C1.453C21.909%2C22.494%2C22.493%2C21.909%2C22.117%2C21.532%22%2F%3E%0A%3C%2Fsvg%3E');
    width: 32px;
    height: 32px;
}

.lightbox-close-button:focus {
    outline: 2px solid #000000;
    border-radius: unset;
}

.lightbox-close-button:focus,
.lightbox-close-button:hover {
    /*
    outline: 2px solid #6D6E70;
    border-radius: unset;
    */
    filter: brightness(2);
}

.lightbox-hidden {
    display: none;
}

@media screen and (max-width: 600px),
screen and (max-height: 600px) {
    #lightbox hr {
        margin-bottom: 0.8rem;
        margin-top: 0.8rem;
    }

    .lightbox-title {
        /* padding: 30px 30px 0px 30px; */
    }

    .lightbox-dialog {
        max-width: calc(100% - 30px) !important;
        max-height: calc(100% - 100px) !important;
        min-width: calc(100% - 30px) !important;
        min-height: calc(100% - 300px) !important;
    }

    .lightbox-dialog::before {
        background-size: 80%;
    }

      @media screen and (max-height: 600px) {
            .lightbox-dialog::before {
        background-size: 300px;
    }
    }
    
    @media screen and (max-width: 400px) {
            .lightbox-dialog::before {
        background-size: 300px;
    }
    }
  

    .lightbox-content {
        /* padding: 16px 60px 16px 60px; */
    }
}