/**
 * MetaSlider Lightbox Pro - Public Styles
 * Combined styles for tooltips and share customizations
 */

/* ==========================================================================
   Tooltip Styles
   ========================================================================== */

/* Ensure buttons can contain positioned tooltips */
.lg-toolbar button {
    position: relative;
    border-radius: 0;
}

/* Base tooltip styles */
.lg-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out, transform 0.25s ease-in-out;
}

/* Show tooltip on hover */
.lg-tooltip.lg-tooltip-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip arrow pointing up to button */
.lg-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.75);
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .lg-tooltip {
        white-space: normal;
        max-width: 120px;
        text-align: center;
    }
}

/* Prevent close button tooltip from overflowing right edge on desktop and iPad */
@media screen and (min-width: 769px) {
    .lg-toolbar .lg-close .lg-tooltip {
        left: -80%;
        transform: translateX(0) translateY(-5px);
    }

    .lg-toolbar .lg-close .lg-tooltip.lg-tooltip-show {
        transform: translateX(0) translateY(0);
    }

    .lg-toolbar .lg-close .lg-tooltip::after {
        left: 75%;
        transform: translateX(-50%);
    }
}

/* Ensure tooltips work with all button types */
.lg-toolbar .lg-icon {
    position: relative;
}

/* Prevent tooltip from blocking clicks */
.lg-tooltip * {
    pointer-events: none;
}

/* Hide buttons when not in use */
.lg-single-item .lg-autoplay-button {
    display: none;
}

/* Hide actual size button when image is already at actual size */
.lg-hide-actual-size {
    display: none !important;
}

/* ==========================================================================
   Share Plugin Customizations
   ========================================================================== */

/* Base styling for all share dropdown icons */
.lg-toolbar .lg-share .lg-dropdown .lg-icon {
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 20px;
    height: 20px;
    padding: 12px;
    border-radius: 100%;
}

/* Hide default icon fonts */
.lg-outer .lg-share-facebook .lg-icon::after,
.lg-outer .lg-share-twitter .lg-icon::after,
.lg-outer .lg-share-pinterest .lg-icon::after {
    content: none !important;
}

/* Social platform SVG icons */
.lg-outer .lg-share-facebook .lg-icon {
    background-image: url('../images/facebook.svg') !important;
    background-size: 20px !important;
}

.lg-outer .lg-share-twitter .lg-icon {
    background-image: url('../images/twitter-x.svg') !important;
    background-size: 15px !important;
}

.lg-outer .lg-share-pinterest .lg-icon {
    background-image: url('../images/pinterest.svg') !important;
    background-size: 20px !important;
}

/* ==========================================================================
   Pager Plugin Customizations
   ========================================================================== */

.lg-outer .lg-pager-cont:hover .lg-pager-thumb-cont {
    opacity: 0 !important;
}
