/* Portrait Navigation Buttons */
.portrait-nav-buttons {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    pointer-events: none; /* This ensures clicks pass through to elements underneath */
    z-index: 100; /* Higher z-index to ensure visibility */
    width: 100%;
    align-items: center;
    box-sizing: border-box;
}

.portrait-nav-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 9999px; /* Extremely large value ensures perfect circle */
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevent shrinking */
    min-height: 40px; /* Prevent shrinking */
    max-width: 40px; /* Prevent expanding */
    max-height: 40px; /* Prevent expanding */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto; /* This makes the buttons clickable */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Perfect circular appearance */
    padding: 0;
    margin: 0;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
    box-sizing: border-box; /* Include border in sizing */
}

.portrait-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.portrait-counter {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-height: 40px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 auto;
    pointer-events: none;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Hide navigation when no portraits are available */
.portrait-nav-hidden {
    display: none;
}
