@charset "UTF-8";
/* ==========================================================================
   Arlo Lightbox
   Full-screen image viewer for gallery pages. Behaviour lives in
   /assets/js/arlo-lightbox.js. CSS handles layout, transitions, and
   responsive adjustments only.
   ========================================================================== */

/* Layout (1.3.3 / 2026-05-24): flex column stacks image + credit + counter
   so the caption always sits below the image, never overlaps it. Close X and
   prev/next arrows stay absolutely positioned — they're viewport-anchored. */
.arlo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.arlo-lightbox[aria-hidden="false"] {
  pointer-events: auto;
}

.arlo-lightbox.is-open {
  opacity: 1;
}

.arlo-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-width: 100%;
  flex: 0 1 auto;
}

.arlo-lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Close (X) — top right */
.arlo-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: transparent;
  border: 0;
  color: #3d3730;
  font-size: 38px;
  font-family: serif;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  padding: 4px 12px;
  z-index: 1;
}

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

/* Prev / Next arrows — vertically centered, edges */
.arlo-lightbox-prev,
.arlo-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #3d3730;
  font-family: serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease;
  padding: 14px 24px;
  z-index: 1;
}

.arlo-lightbox-prev:hover,
.arlo-lightbox-next:hover {
  opacity: 1;
}

.arlo-lightbox-prev {
  left: 18px;
}

.arlo-lightbox-next {
  right: 18px;
}

/* Photo credit — sits below the image in normal flow (G2 / 2026-05-02 mock).
   Hidden when both data-credit-name + data-credit-handle are absent. */
.arlo-lightbox-credit {
  text-align: center;
  font-family: 'Muli', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #3d3730;
  letter-spacing: 0;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}
.arlo-lightbox-credit-name {
  font-weight: 700;
}
.arlo-lightbox-credit-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}
.arlo-lightbox-credit-link:hover {
  text-decoration: underline;
}

/* Counter — sits below the credit in normal flow */
.arlo-lightbox-counter {
  color: rgba(61, 55, 48, 0.6);
  font-family: 'Muli', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
  flex: 0 0 auto;
  margin-top: -4px;
}

@media (max-width: 767px) {
  .arlo-lightbox {
    padding: 50px 10px 22px;
    gap: 10px;
  }

  .arlo-lightbox-img {
    max-width: 96vw;
    max-height: calc(100vh - 150px);
  }

  .arlo-lightbox-close {
    top: 14px;
    right: 14px;
    font-size: 32px;
  }

  .arlo-lightbox-prev,
  .arlo-lightbox-next {
    font-size: 44px;
    padding: 8px 14px;
    opacity: 0.6;
  }

  .arlo-lightbox-prev { left: 4px; }
  .arlo-lightbox-next { right: 4px; }

  .arlo-lightbox-counter {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .arlo-lightbox-credit {
    font-size: 13px;
  }
}
