/* Trigger Button Container Overrides */
.pg-trigger-container-e3f21ef7 {
    display: block !important;
    width: 100 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    position: relative !important;
    margin: 20px 0 !important;
}

/* Trigger Button */
.pg-trigger-btn-e3f21ef7 {
    display: inline-block !important;
    padding: 12px 24px !important;
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
@media (min-width: 768px) {
    .pg-trigger-btn-e3f21ef7 {
        width: auto !important;
    }
}
.pg-trigger-btn-e3f21ef7:hover {
    background-color: #005177 !important;
}

/* 
 * CRITICAL FIX FOR MOBILE VISIBILITY
 * Use max possible z-index to stay above Elementor headers/footers
 * Use position: fixed and full viewport dimensions 
 */
.pg-popup-overlay-e3f21ef7 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0,0,0,0.85) !important;
    z-index: 2147483647 !important; /* Max z-index to overlay EVERYTHING */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    padding: 15px !important; /* Prevent content touching screen edges on mobile */
    box-sizing: border-box !important;
    pointer-events: none;
}

.pg-popup-overlay-e3f21ef7.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Popup Content Container */
.pg-popup-content-e3f21ef7 {
    position: relative !important;
    width: 100% !important;
    max-width: 900px !important;
    max-height: 95vh !important;
    background: transparent !important; /* Changed to transparent */
    padding: 40px 10px 10px !important; /* Adjusted padding */
    border-radius: 0 !important; /* Removed border radius */
    box-shadow: none !important; /* Removed shadow */
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 2147483647 !important;
}

@media (min-width: 768px) {
    .pg-popup-content-e3f21ef7 {
        padding: 40px 20px 20px !important;
    }
}

/* Close Button */
.pg-close-btn-e3f21ef7 {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important; /* Moved to right for typical lightbox feel */
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    font-size: 32px !important;
    cursor: pointer !important;
    color: #fff !important; /* White color */
    width: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s !important;
}

.pg-close-btn-e3f21ef7:hover {
    background: rgba(255,255,255,0.4) !important;
}

/* Main Image */
.pg-main-image-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    position: relative !important;
    background-color: transparent !important;
    overflow: hidden !important;
    cursor: zoom-in !important; 
    min-height: 50vh !important;
}

.pg-main-image-e3f21ef7 {
    min-height: 50vh !important; 
    max-height: 75vh !important; 
    height: auto !important;
    width: 100% !important; 
    object-fit: contain !important; /* Contain is safer */
    user-select: none !important;
    -webkit-user-drag: none !important;
    transition: transform 0.3s ease !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5) !important;
}
@media (min-width: 768px) {
    .pg-main-image-e3f21ef7 {
        max-height: 80vh !important; 
    }
}

.pg-main-image-container:hover .pg-main-image-e3f21ef7 {
    transform: scale(1.02) !important;
}

/* Lightbox specific styles */
.pg-lightbox-overlay-e3f21ef7 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0,0,0,0.95) !important;
    z-index: 2147483647 !important; /* Max z-index */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    cursor: zoom-out !important;
}

.pg-lightbox-overlay-e3f21ef7.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.pg-lightbox-img-e3f21ef7 {
    max-width: 95vw !important;
    max-height: 95vh !important;
    object-fit: contain !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5) !important;
    border-radius: 4px !important;
}

.pg-lightbox-close-e3f21ef7 {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.pg-lightbox-close-e3f21ef7:hover {
    background: rgba(255,255,255,0.4) !important;
}

/* Thumbnails Grid */
.pg-thumbnails-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.pg-thumb-item {
    width: calc(20% - 7px) !important; 
    max-width: 70px !important;
    aspect-ratio: 1 / 1 !important;
}
@media (min-width: 480px) {
    .pg-thumb-item {
        max-width: 90px !important;
    }
}

.pg-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    box-sizing: border-box !important;
    opacity: 0.7 !important;
}

.pg-thumb-item img:hover {
     opacity: 1 !important;
}

.pg-thumb-item img.active-thumb {
    border-color: #fff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    opacity: 1 !important;
}
