/*
Theme Name: SF Art Map: Lightbox
Theme URI: https://artmapsf.com
Description: Lightbox CSS
Version: 1.0.0
Author: Michael Divine
*/
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  z-index: 1000000;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover {
  transform: scale(1.1);
}
.lightbox-close svg {
  stroke: #333;
}
.lightbox-prev, .lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox-prev {
	left: 20px;
}
.lightbox-next {
	right: 20px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background: var(--dark-red);
	transform: translateY(-50%) scale(1.1);
}
.lightbox-prev svg,
.lightbox-next svg {
	stroke: #333;
}
.lightbox-counter {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
/* Hide body scroll when lightbox is open */
body.lightbox-open {
	overflow: hidden;
}

@media (max-width: 768px) {
.lightbox-close {
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
}
.lightbox-close svg {
  width: 24px;
  height: 24px;
}
.lightbox-prev, .lightbox-next {
  width: 50px;
  height: 50px;
}
.lightbox-prev {
  left: 10px;
}
.lightbox-next {
  right: 10px;
}
.lightbox-prev svg, .lightbox-next svg {
  width: 32px;
  height: 32px;
}
.lightbox-counter {
  bottom: -50px;
}
}