/**
 * Custom GLightbox Styling
 * Clean, minimal lightbox design
 */

/* Lightbox overlay - white glass effect */
.goverlay {
    background: rgba(240, 240, 240, 0.90) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Lightbox container */
.glightbox-container {
    width: 100%;
    height: 100%;
}

/* Navigation arrows - white buttons with dark icons */
.gslide-description {
    background: transparent !important;
}

.gnext,
.gprev {
    background: rgba(255, 255, 255, 0.95) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.gnext:hover,
.gprev:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.gnext svg,
.gprev svg {
    width: 18px !important;
    height: 18px !important;
    color: #333 !important;
    fill: #333 !important;
}

.gnext svg path,
.gprev svg path {
    fill: #333 !important;
    stroke: #333 !important;
}

/* Close button */
.gclose {
    background: rgba(255, 255, 255, 0.95) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 20px !important;
    right: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.gclose:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.gclose svg {
    width: 16px !important;
    height: 16px !important;
    color: #333 !important;
    fill: #333 !important;
}

.gclose svg path {
    fill: #333 !important;
    stroke: #333 !important;
}

/* Fullscreen button */
.gfullscreen-btn {
    position: absolute !important;
    background: rgba(255, 255, 255, 0.95) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 20px !important;
    right: 70px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    z-index: 99999 !important;
}

.gfullscreen-btn:focus {
    outline: none !important;
}

.gfullscreen-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.gfullscreen-btn svg {
    width: 18px !important;
    height: 18px !important;
    color: #333 !important;
}

.gfullscreen-btn svg path {
    stroke: #333 !important;
}


/* Image counter */
.gslide-title {
    color: #fff !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 20px !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
}

/* Image description/caption - Right side */

/* Ensure parent containers have proper height */
.gslide.desc-right {
    height: 100% !important;
}

.gslide.desc-right .gslide-inner-content {
    height: 100% !important;
}

.glightbox-clean .gslide-description {
    background: #fff !important;
    height: 100% !important;
}

.glightbox-clean .gdesc-inner {
    padding: 30px !important;
    background: #fff !important;
    height: 100% !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.gslide-description.description-right {
    position: relative !important;
    max-width: 275px !important;
    width: 275px !important;
    background: #fff !important;
    min-height: 100% !important;
    height: auto !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
}

.glightbox-clean .description-right .gdesc-inner {
    position: relative !important;
    height: 100% !important;
    padding: 30px !important;
    background: #fff !important;
    overflow-y: auto !important;
}

.gslide-desc {
    color: #333 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.gslide-desc p {
    margin: 0 0 1em 0 !important;
    color: #333 !important;
}

.gslide-desc p:last-child {
    margin-bottom: 0 !important;
}

.gslide-desc a {
    color: #0066cc !important;
    text-decoration: underline !important;
}

.gslide-desc a:hover {
    color: #004499 !important;
}

.ginner-container.desc-right {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    max-width: 100% !important;
    gap: 0 !important;
    height: 100% !important;
}

.desc-right .gslide-image {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

.desc-right .gslide-image img {
    max-width: calc(100vw - 275px) !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    box-shadow: none !important;
}

/* Remove box shadow from image */
.gslide-image img {
    box-shadow: none !important;
    max-height: 90vh !important;
    object-fit: contain !important;
}

/* Full height lightbox option - images take full screen height */
body.lightbox-fullheight .gslide-image img {
    max-height: 100vh !important;
}

body.lightbox-fullheight .desc-right .gslide-image img {
    max-height: 100vh !important;
}

/* Smooth transitions */
.gslide-media {
    transition: opacity 0.3s ease !important;
}

/* ==========================================
   Minimale navigatie modus
   ========================================== */

body.lightbox-minimal-nav .gnext,
body.lightbox-minimal-nav .gprev {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0;
    transition: opacity 0.25s ease !important;
}

body.lightbox-minimal-nav .glightbox-container:hover .gnext,
body.lightbox-minimal-nav .glightbox-container:hover .gprev {
    opacity: 0.6;
}

body.lightbox-minimal-nav .gnext:hover,
body.lightbox-minimal-nav .gprev:hover {
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.lightbox-minimal-nav .gnext svg,
body.lightbox-minimal-nav .gprev svg {
    color: #333 !important;
    fill: #333 !important;
}

body.lightbox-minimal-nav .gnext svg path,
body.lightbox-minimal-nav .gprev svg path {
    fill: #333 !important;
    stroke: #333 !important;
}

body.lightbox-minimal-nav .gclose {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.6;
    transition: opacity 0.25s ease !important;
}

body.lightbox-minimal-nav .gclose:hover {
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.lightbox-minimal-nav .gclose svg {
    color: #333 !important;
    fill: #333 !important;
}

body.lightbox-minimal-nav .gclose svg path {
    fill: #333 !important;
    stroke: #333 !important;
}

/* Schaduw uitschakelen */
body.lightbox-no-shadow .glightbox-clean .gslide-media {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

body.lightbox-minimal-nav .gfullscreen-btn {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.6;
    transition: opacity 0.25s ease !important;
}

body.lightbox-minimal-nav .gfullscreen-btn:hover {
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.lightbox-minimal-nav .gslide-title {
    background: transparent !important;
    border-radius: 0 !important;
    color: rgba(0, 0, 0, 0.45) !important;
    font-size: 12px !important;
    padding: 0 !important;
    top: 24px !important;
    left: 24px !important;
    letter-spacing: 0.03em !important;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .gnext,
    .gprev {
        width: 50px !important;
        height: 50px !important;
    }

    .gclose {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 10px !important;
    }

    .gfullscreen-btn {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 60px !important;
    }

    .gslide-title {
        top: 10px !important;
        left: 10px !important;
        font-size: 12px !important;
        padding: 8px 15px !important;
    }

    .ginner-container.desc-right {
        flex-direction: column !important;
    }

    .gslide-description.description-right {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }

    .desc-right .gslide-image img {
        max-width: calc(100vw - 20px) !important;
        padding: 0 10px !important;
    }

    .gslide-image img {
        max-width: calc(100vw - 20px) !important;
        padding: 0 10px !important;
    }
}
