
/* Colorbox Custom Styles */
#colorbox {
    background-color: rgba(0, 0, 0, 0.9); /* Darker overlay */
}

#colorbox .cboxLoading {
    background-color: rgba(0, 0, 0, 0.9);
}

#colorbox .cboxSlideshow {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Navigation Buttons */
#colorbox .cboxPrevious,
#colorbox .cboxNext {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    position: absolute; /* Ensure they're positioned absolutely */
    z-index: 9999; /* Ensure they're above other elements */
}

#colorbox .cboxPrevious {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#colorbox .cboxNext {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#colorbox .cboxPrevious::before,
#colorbox .cboxNext::before {
    font-weight: bold;
    font-family: Arial, sans-serif;
    content: attr(data-content); /* Use data-content for the symbols */
}

#colorbox .cboxPrevious::before {
    content: "<";
}

#colorbox .cboxNext::before {
    content: ">";
}

#colorbox .cboxPrevious:hover,
#colorbox .cboxNext:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Close Button */
#cboxClose {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 9999;
    padding: 5px;
}

#cboxClose::before {
    content: "×";
    font-size: 20px;
}

#cboxClose:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
}

/* Positioning */
#colorbox .cboxPrevious {
    left: 20px;
}

#colorbox .cboxNext {
    right: 20px;
}

#colorbox .cboxClose {
    top: 20px;
    right: 20px;
}
/* Image Counter */
#cboxCurrent {
    position: absolute;
    bottom: 4px;
    left: 58px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

#cboxTitle {
    position: absolute;
    bottom: 4px;
    left: 0;
    text-align: center;
    width: 100%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
