/* Image Viewer Modal */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.image-viewer-content {
    position: relative;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

.image-container {
    width: 100%;
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

#currentImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 20px;
}

.race-navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.race-navigation-buttons .nav-button {
    border-radius: 20px;
    width: auto;
    padding: 0 15px;
    font-size: 14px;
}

.nav-button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#imageCounter,
#raceCounter {
    color: white;
    font-size: 16px;
}

/* Race Info Container Styles */
.race-info-container {
    color: white;
    margin-bottom: 15px;
    padding-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#raceMarathonNumber {
    font-weight: bold;
    color: #ffdd57;
}

#raceName {
    font-style: italic;
}

#raceDate {
    font-weight: normal;
}