
body.hwt-gallery-page figcaption,
body.hwt-gallery-page .gallery-caption,
body.hwt-gallery-page .gallery-description,
body.hwt-gallery-page .hwt-hide-caption {
    display:none!important;
}

#hwtPhotoViewer {
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:65px 20px 25px!important;
    border:0!important;
    background:rgba(0,0,0,.94)!important;
    box-sizing:border-box!important;
    z-index:2147483647!important;
    overflow:hidden!important;
}

#hwtPhotoViewer:not([open]) {
    display:none!important;
}

#hwtPhotoViewer[open] {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

#hwtPhotoViewer::backdrop {
    background:rgba(0,0,0,.94);
}

#hwtPhotoViewer img {
    display:block!important;
    max-width:95vw!important;
    max-height:calc(100dvh - 100px)!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
    border-radius:8px!important;
    margin:auto!important;
}

#hwtPhotoClose {
    position:fixed!important;
    top:18px!important;
    right:22px!important;
    width:48px!important;
    height:48px!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#172e20!important;
    font:400 32px/1 Arial,sans-serif!important;
    cursor:pointer!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:2147483647!important;
    box-shadow:0 3px 14px rgba(0,0,0,.3)!important;
}

#hwtPhotoClose:hover {
    background:#e3eee5!important;
}

#hwtPhotoClose:focus-visible {
    outline:3px solid #80ad72!important;
    outline-offset:4px!important;
}

@media(max-width:650px) {
    #hwtPhotoViewer {
        padding:60px 8px 15px!important;
    }

    #hwtPhotoClose {
        top:12px!important;
        right:12px!important;
        width:44px!important;
        height:44px!important;
    }

    #hwtPhotoViewer img {
        max-width:96vw!important;
        border-radius:5px!important;
    }
}
