@charset "UTF-8";
/*----------------------------------------------------------------------------
 * Angels, Inc - /public/lightbox.css
 * Version v1.1.0
 * Copyright(c) 2026 Angels, Inc
 * Author: Jacques Deguest <jacques.deguest@angels-inc.com>
 * Created 2026/10/15
 * Modified 2026/10/15
 * All rights reserved.
 * 
 * Permission to use, copy, modify,  and  distribute  this  software  and  its
 * documentation for any purpose is strictly forbidden. The name of the author
 * or the one of Angels, Inc may not  be  used  in  advertising  or  publicity
 * pertaining to distribution of the software without specific, written  prior
 * permission.
 * 
 * THE AUTHOR AND ANGELS, INC DISCLAIMS ALL WARRANTIES  WITH  REGARD  TO  THIS
 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND  FITNESS;
 * IN NO EVENT SHALL AUTHOR  NOR  ANGELS,  INC  BE  LIABLE  FOR  ANY  SPECIAL,
 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING  FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,  NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE  USE  OR
 * PERFORMANCE OF THIS SOFTWARE.
 *----------------------------------------------------------------------------*/
/* Image lightbox based on the native <dialog> element, see /public/lightbox.js */

/* The page behind does not scroll while an image is shown */
html.ai-lightbox-open
{
    overflow: hidden;
}

.ai-lightbox
{
    max-width: 94vw;
    max-height: 94vh;
    padding: 0;
    border: 0;
    -webkit-border-radius: 6px;
            border-radius: 6px;
    background: var(--secondary-bg);
    color: var(--text-color);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    /*
     * Horizontal gestures are handled by the script, which turns them into gallery
     * navigation, while vertical scrolling and pinch zoom continue to work.
     */
    -ms-touch-action: pan-y pinch-zoom;
        touch-action: pan-y pinch-zoom;
}

.ai-lightbox::backdrop
{
    background: rgba(0, 0, 0, 0.8);
}

.ai-lightbox-figure
{
    margin: 0;
    padding: 16px;
}

/*
 * The image keeps its proportions and never exceeds the viewport, the space left for
 * the padding and the caption being deducted
 */
.ai-lightbox-image
{
    display: block;
    width: auto;
    height: auto;
    max-width: calc(94vw - 32px);
    max-height: calc(94vh - 80px);
    margin: 0 auto;
}

.ai-lightbox-caption
{
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: var(--text-color-lighter);
}

.ai-lightbox-close
{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 34px;
    height: 34px;
    padding: 0;
    -webkit-border-radius: 17px;
            border-radius: 17px;
    font-size: 16px;
    line-height: 34px;
    text-align: center;
    background-color: rgba(55, 64, 69, 0.85);
}

/* Gallery navigation, hidden by the script when the image stands alone */
.ai-lightbox [hidden]
{
    display: none !important;
}

.ai-lightbox-nav
{
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    -webkit-border-radius: 20px;
            border-radius: 20px;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(55, 64, 69, 0.85);
}

.ai-lightbox-prev
{
    left: 8px;
}

.ai-lightbox-next
{
    right: 8px;
}

.ai-lightbox-counter
{
    position: absolute;
    left: 12px;
    top: 10px;
    padding: 2px 8px;
    -webkit-border-radius: 10px;
            border-radius: 10px;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    background-color: rgba(55, 64, 69, 0.85);
}
