/* === Devblogs Lightbox Styles === */
.devblogs-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
  cursor: zoom-out;
	box-sizing: border-box;
}

/* visible state */
.devblogs-lightbox-overlay.active {
	display: flex;
}

.devblogs-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  animation: lightboxZoomIn 0.25s ease;
}

/* lightbox image */
.devblogs-lightbox-img {
	display: block;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  cursor: auto;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* close button */
.devblogs-lightbox-close {
  background-color: transparent;
  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E);
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-size: 100% auto;
  background-size: 100% auto;
  border: 0;
  cursor: pointer;
  display: block;
  height: 30px;
  opacity: .6;
  overflow: hidden;
  padding: 0;
  position: fixed;
  right: 25px;
  text-align: center;
  text-indent: 100%;
  top: 25px;
  white-space: nowrap;
  width: 30px;
  z-index: 9999;
}

.devblogs-lightbox-close:hover {
  opacity: 1;
}

button.devblogs-lightbox-close:focus {
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, .8);
}

.lightbox-link img, a[data-featherlight] img {
  cursor: zoom-in;
}

/* Keep scrollbar width visible (prevent layout shift) */
body.lightbox-open {
  overflow: auto;
  padding-right: var(--scrollbar-width, 0px);
}

/* Zoom animation */
@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}