.pagination-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    justify-content: center;
    font-family: 'Caveat', cursive; /* match polaroid font */
    font-size: 18px;
}

.pagination-container a,
.pagination-container select,
.pagination-container .ellipsis {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    text-decoration: none;
    background: #fff0f5;
    color: #333;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}


.pagination-container a:hover,
.pagination-container select:hover {
    background: #ffe6f0; /* soft hover highlight */
    transform: scale(1.05);
    cursor: pointer;
}

.pagination-container a.active {
    background: #1e90ff; /* boxing blue active */
    color: #fff;
    font-weight: bold;
    border-color: #1e90ff;
}

.pagination-container .ellipsis {
    border: none;
    background: none;
    cursor: default;
    box-shadow: none;
    padding: 6px 10px;
}


.polaroid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}
.polaroid {
    width: 170px;
    background: white;
    padding: 5px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: Arial, sans-serif;
    margin-bottom: 5px;
    position: relative;
    text-decoration: none;
    color: inherit;

    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}
.polaroid img {
    width: 170px;
    height: 137px;
    margin-bottom: 5px;
}
.polaroid .percentage {
    font-size: 14px;
    color: #333;
    padding: 5px 0;
}

.letter-heading {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 10px 10px;
    text-align: center;
    width: 100%;
}
.letter-nav {
    text-align: center;
    margin: 20px 0;
}
.letter-nav a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.letter-nav a:hover {
    background-color: #ddd;
}

.gallery-description {
    text-align: center;
    font-size: 15px;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #555;
}
.gallery-header {
    text-align: left;
    margin: 20px auto 5px;
    max-width: 1000px;
    padding: 0 10px;
}
.gallery-description {
    text-align: left;
    margin: 0 auto 20px;
    max-width: 1000px;
    padding: 0 10px;
    font-size: 15px;
    color: #333;
}
.rank-label {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #1e90ff;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Caveat', cursive;
    font-weight: bold;
    font-size: 16px !important; /* Force it to override theme/plugin conflicts */
    z-index: 10;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.gallery-link-container {
    text-align: center;
    margin-top: 20px;
}

.gallery-link-button {
    padding: 12px 24px;
    font-size: 1.3em;
    font-weight: bold;
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Sriracha', cursive;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.gallery-link-button:hover {
    background-color: #a80000;
}
