/**
 * GLightbox Custom Styles
 * Lightbox関連のカスタムスタイル
 */

/* ==========================================================================
   Lightbox Links
   ========================================================================== */

/* GLightbox対応のリンク要素（全体共通） */
a.glightbox {
    cursor: zoom-in;
    display: block;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

/* GLightbox Hover Effect - 虫眼鏡アイコン */
a.glightbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    
    /* Magnifier icon with + */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    background-position: center;
    background-repeat: no-repeat;
}

a.glightbox:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Legacy Lightbox Adjustments (Luminous互換)
   ========================================================================== */

/* 旧luminousライブラリのクラス名に対応 */
.lum-lightbox {
    z-index: 10000;
}

.lum-lightbox-inner img {
    max-width: 90%;
    max-height: 90%;
}

/* ==========================================================================
   GLightbox Custom Overrides
   ========================================================================== */

/* GLightboxのz-index調整 */
.glightbox-container {
    z-index: 10000 !important;
}

/* GLightboxの画像サイズ調整 */
.gslide-image img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}