:root {
    --blue: #003087;
    --green: #4A7043;
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 50;
    margin-top: 8px;
}
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:hover::after {
    display: block;
}

/* ============================================= */
/* Rollover enlarged photo for councillor tables */
/* Re-usable on any page that needs it          */
/* ============================================= */
.photo-cell {
    position: relative;
    z-index: 20;
}

.dg-rollover {
    position: absolute;
    bottom: 100%;              /* Positions directly above the small thumbnail */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 14px;       /* Small, clean gap – exactly what you asked for */
    width: 220px;
    height: 330px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 35px 60px -15px rgb(0 0 0 / 0.3);
    overflow: hidden;
    border: 6px solid #fff;
    z-index: 999999 !important;
    display: none;
    pointer-events: none;
}
.dg-rollover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-cell:hover .dg-rollover {
    display: block;
}

.rollover-wrapper {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}