/* GLightbox CSS overrides for portfolio gallery */

/* GLightbox overrides to ensure proper display */
.glightbox-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999 !important;
    overflow: hidden;
    touch-action: none;
    -webkit-text-size-adjust: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    outline: none;
}

.goverlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000000 !important;
    z-index: 9999;
}

.glightbox-mobile .glightbox-container {
    height: 100%;
}

.glightbox-clean .gslide-media {
    box-shadow: none;
    border-radius: 0;
}

.gslide-description {
    background: #000000 !important;
    padding: 20px;
    border-radius: 0;
}

.gslide-title {
    color: #FFFFFF !important;
    margin-bottom: 10px;
    font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: none;
}

.gslide-desc {
    color: #CCCCCC !important;
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: none;
}

/* Ensure gallery sections are always accessible to JavaScript filtering */
.category-section {
    /* Override AOS hiding behavior for filter functionality */
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Only apply AOS animations when not being filtered */
.category-section.aos-animate:not(.filtered) {
    opacity: 1;
    transform: translateY(0);
}

/* Dark theme enhancements */
body {
    background: #000000 !important;
}

main {
    background: #000000 !important;
}

.gallery-section {
    background: #000000 !important;
    background: linear-gradient(180deg, #0A0A0A 0%, #111111 100%) !important;
}

.main-footer {
    background: linear-gradient(180deg, #111111 0%, #000000 100%) !important;
    color: #E0E0E0;
}

.main-footer a {
    color: #D4AF37;
}

.main-footer a:hover {
    color: #F4E4BC;
}

/* GLightbox controls simplified */
.gslide-title + .gslide-desc {
    margin-top: 10px;
}

.glightbox-button-close {
    background: #FFFFFF !important;
    border-radius: 50%;
    width: 35px !important;
    height: 35px !important;
    opacity: 0.8;
}

.glightbox-button-close:hover {
    background: #FFFFFF !important;
    opacity: 1;
}

.glightbox-button-next,
.glightbox-button-prev {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
}

.glightbox-button-next:hover,
.glightbox-button-prev:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Gallery text contrast overrides */
.gallery-section h1,
.gallery-section h2,
.gallery-section h3,
.gallery-section h4,
.gallery-section h5,
.gallery-section h6 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gallery-section p,
.gallery-section .category-title p {
    color: #B8B8B8 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.category-section {
    background: transparent !important;
}
