/**
 * Footer column — Local Photos lightbox (full-size view).
 *
 * @package LocalNewsMinneapolis
 */

/* Thumbnail link */
a.lnm-footer-local-photo-link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: zoom-in;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

a.lnm-footer-local-photo-link:hover,
a.lnm-footer-local-photo-link:focus-visible {
	opacity: 0.92;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
	outline: none;
}

a.lnm-footer-local-photo-link:focus-visible {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

/* Overlay */
.lnm-footer-photo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: min(4vw, 1.5rem);
	box-sizing: border-box;
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(2px);
	cursor: zoom-out;
}

.lnm-footer-photo-lightbox[hidden] {
	display: none !important;
}

.lnm-footer-photo-lightbox__close {
	position: absolute;
	top: min(3vw, 1rem);
	right: min(3vw, 1rem);
	z-index: 2;
	margin: 0;
	padding: 0.35rem 0.55rem;
	min-width: 2.25rem;
	min-height: 2.25rem;
	font: inherit;
	font-size: 1.35rem;
	line-height: 1;
	color: #f9fafb;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.lnm-footer-photo-lightbox__close:hover,
.lnm-footer-photo-lightbox__close:focus-visible {
	background: rgba(220, 38, 38, 0.95);
	border-color: transparent;
	color: #fff;
	outline: none;
}

.lnm-footer-photo-lightbox__close:active {
	transform: scale(0.96);
}

.lnm-footer-photo-lightbox__img {
	position: relative;
	z-index: 1;
	display: block;
	max-width: min(96vw, 1400px);
	max-height: min(92vh, 1200px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	cursor: default;
}
