/* Gallery Fix CSS */

/* Ensure gallery items are visible by default */
.Qw1FJM .fjCiLz {
    visibility: visible;
}

/* Show active gallery item */
.Qw1FJM .fjCiLz.gallery-active {
    display: block !important;
}

/* Hide inactive gallery items */
.Qw1FJM .fjCiLz.gallery-hidden {
    display: none !important;
}

/* Ensure navigation buttons are visible and clickable */
.Qw1FJM .dfLxYI {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.Qw1FJM .dfLxYI .Vf4Ttg {
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 0.4 !important;
}

.Qw1FJM .dfLxYI .Vf4Ttg:hover,
.Qw1FJM .dfLxYI .Vf4Ttg:focus {
    opacity: 1 !important;
}

/* Ensure the current item display area is visible */
.Qw1FJM .OSqXnG {
    visibility: visible !important;
}

/* Ensure gallery counter is visible */
.Qw1FJM .m6hPYv {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure gallery item panels are visible */
.Qw1FJM .pEGpWL {
    opacity: 1 !important;
    visibility: visible !important;
} 

/* Photo Modal Styles */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.photo-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10000;
}

.photo-modal-close:hover,
.photo-modal-close:focus {
    color: #ccc;
    transform: scale(1.1);
}

.photo-modal-close::before {
    content: '×';
}

/* Make gallery images clickable */
.gallery-image-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image-clickable:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .photo-modal-close {
        top: -35px;
        font-size: 30px;
    }
} 