FILE- In this Feb. 1, 2003 file photo, an American flag, along the base of the Washington Monument, flies at half-staff in memorial of those who died aboard space shuttle Columbia, in Washington. Lowering the flag for fallen astronauts is standard practice, as it would be for a war hero or politician but the list of those honored has grown to entertainers, sports heroes and even police dogs. (AP Photo/Pablo Martinez Monsivais, file)
FILE- In this Feb. 1, 2003 file photo, an American flag, along the base of the Washington Monument, flies at half-staff in memorial of those who died aboard space shuttle Columbia, in Washington. Lowering the flag for fallen astronauts is standard practice, as it would be for a war hero or politician but the list of those honored has grown to entertainers, sports heroes and even police dogs. (AP Photo/Pablo Martinez Monsivais, file) Credit: PABLO MARTINEZ MONSIVAIS

NEW YORK — Nearly every day, somewhere in the country, the Stars and Stripes was lowered to half-staff last year in one of the most significant official gestures of mourning and respect, an Associated Press analysis found.

Seeing half-staff flags on July Fourth last year jarred Amherst, Mass., resident Larry Kelley, who felt the tribute — part of a 13-day honor for a state senator — “sends the wrong message” on the nation’s birthday.

“It just seemed to me to take away from the whole idea of lowering the flag,” said Kelley, adding that he’d have felt differently if the state were mourning a line-of-duty death or major public trauma. He initially didn’t even realize what the occasion was, until a reader of his local-issues blog filled him in.

The centuries-old practice can be a visible, public answer to extraordinary loss, as when more than four dozen people were killed last month at a gay nightclub in Florida. But as the nation marks Independence Day on Monday, flag buffs have noted that the honor has been extended more widely over time, including to celebrities and police dogs. And some have questioned whether the country has lowered the bar on the lowering of the flag.

“It can be a very powerful symbol, but it can also be overdone to the point that it loses its significance,” said John Hartvigsen, president of the North American Vexillological Association, a flag aficionados’ group. “You can’t spell everything out about this in rules and regulations, because it has so much to do with emotion.”

The U.S. Flag Code allows presidents and governors to lower flags for officials, military members and certain occasions, though some states have their own broader policies. And even as some states have moved to tighten their rules, others faced criticism for withholding the tribute.

The AP’s analysis of proclamations from 50 state governors and the federal government found the Stars and Stripes were lowered at least someplace in the country on 328 days during 2015.

Eight states had orders lowering the U.S. flag in effect over more than 30 days; Massachusetts led all others, keeping the flag at half-staff for over a quarter of the year, including on the Fourth of July.

Among the hundreds honored were victims of extremist attacks, fallen soldiers, long-serving politicians and such celebrities as baseball legend Yogi Berra.

Those honored last year alone with a half-staff U.S. flag include five Georgia Southern University nursing students killed in a car wreck and a Downey, Calif., police officer shot in his car in a police parking lot in an alleged robbery attempt. Flags were lowered for a Missouri state official who was running for governor when he killed himself after a radio ad mocked his appearance, and for an Oklahoma state road worker who died helping to fill a sinkhole. One honoree was a police dog shot in Ohio.

Who gets honored, and when, can be controversial. Recent years saw tension over lowering flags nationwide for former South African President Nelson Mandela and in New Jersey for the singer Whitney Houston.