/* Photo Lightbox Modal - Modern Frosted Glass Aesthetic */
.rcdk-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000000;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}
.rcdk-lightbox-overlay.is-active {
  display: flex;
}
.rcdk-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rcdk-lightbox-img {
  max-width: 90vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 43, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rcdk-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 43, 0, 0.12);
  color: #002b00;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000002;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 43, 0, 0.1);
  padding: 0;
  box-sizing: border-box;
}
.rcdk-lightbox-close svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: #002b00;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}
.rcdk-lightbox-close:hover {
  background: #002b00;
  border-color: #002b00;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 43, 0, 0.22);
}
.rcdk-lightbox-close:hover svg {
  stroke: #ffffff;
}

.rcdk-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 43, 0, 0.12);
  color: #002b00;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000002;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 43, 0, 0.1);
  padding: 0;
  box-sizing: border-box;
}
.rcdk-lightbox-nav svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: #002b00;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}
.rcdk-lightbox-nav:hover {
  background: #002b00;
  border-color: #002b00;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 43, 0, 0.25);
}
.rcdk-lightbox-nav:hover svg {
  stroke: #ffffff;
}
.rcdk-lightbox-prev {
  left: 28px;
}
.rcdk-lightbox-next {
  right: 28px;
}
.rcdk-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 43, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  z-index: 1000002;
}

/* Cursor pointer on gallery items with lightbox */
.gallery .gallery-item a,
.wp-block-gallery .wp-block-image a,
.rcdk-prose a > img {
  cursor: zoom-in;
}
