/* ═══════════════════════════════════════════════════════
   Birds Eye Gallery Zoom — Styles (Responsive v3)
   ═══════════════════════════════════════════════════════ */

/* ─── Custom Cursor ─── */
.beg-cursor {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  font-family:'Manrope';
  font-size: 16px;
  font-weight: 300;
  text-transform: none;
  color: white!important;
  background-color: #5A462E!important;
  padding:10px;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  line-height: 1.4;
}
.beg-cursor.is-visible {
  opacity: 1;
}

body.beg-hide-cursor,
body.beg-hide-cursor * {
  cursor: none !important;
}

/* ─── Camera ─── */
.beg-camera {
  /* JS hook only */
}

/* ─── Gallery Layout ─── */
.beg-gallery {
  width: 100%;
  padding: 0 20px;
}

.beg-section {
  margin-bottom: 60px;
}
.beg-section:last-child {
  margin-bottom: 0;
}

.beg-section__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.beg-section__title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-align: left;
  padding: 0;
  line-height: 1.5;
}

.beg-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.beg-item {
  flex: 0 0 auto;
  height: 180px;
  overflow: hidden;
  cursor: none;
  position: relative;
}
.beg-item img {
  height: 100%;
  width: auto !important;
  max-width: none;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.beg-item:hover img {
  transform: scale(1.03);
}

/* ─── Loop Grid overrides ─── */
.beg-loop .elementor-loop-container.elementor-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  grid-template-columns: none !important;
}

.beg-loop .e-loop-item {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

.beg-loop .e-loop-item img {
  height: 270px;
  width: auto !important;
  max-width: none !important;
  object-fit: cover;
}

.beg-loop .e-loop-item .e-con {
  min-height: auto !important;
}

/* ─── Fullscreen Viewer ─── */
.beg-viewer {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #fff;
  display: none;
  overflow: hidden;
}
.beg-viewer.is-active {
  display: block;
}

.beg-viewer__layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.beg-viewer__title {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.4s 0.3s;
}
.beg-viewer__layout.has-title .beg-viewer__title {
  display: flex;
  opacity: 1;
}

.beg-viewer__slides-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.beg-viewer__track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  height: 100%;
  will-change: transform, opacity;
  gap: 6px;
  padding: 20px;
}
.beg-viewer__layout.has-title .beg-viewer__track {
  padding-left: 0;
}

.beg-viewer__slide {
  flex: 0 0 auto;
  height: calc(100vh - 40px);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: none;
  border-radius: 2px;
}
.beg-viewer__slide img {
  width: 100%;
  height: calc(100vh - 100px);
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 2px;
}
.beg-viewer__slide-caption {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  line-height: 1.5;
  padding: 8px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Caption overlay (hidden, per-slide captions used instead) */
.beg-viewer__caption {
  display: none;
}

/* Footer */
.beg-viewer__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99995;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s 0.3s;
}
.beg-viewer.is-active .beg-viewer__footer {
  opacity: 1;
}

.beg-viewer__btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.beg-viewer__btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

/* ─── Zoom Clone ─── */
.beg-zoom-clone {
  position: fixed;
  z-index: 99998;
  overflow: hidden;
  pointer-events: none;
  will-change: transform, width, height, top, left;
}
.beg-zoom-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .beg-section__title {
    font-size: 10px;
  }
  .beg-item {
    height: 140px;
  }
  .beg-viewer__title {
    width: 160px;
    min-width: 160px;
    font-size: 11px;
    padding: 30px 16px;
  }
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
   Swipeable horizontal slider per section
   ══════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ─── Hide custom cursor on touch ─── */
  .beg-cursor { display: none !important; }
  body.beg-hide-cursor,
  body.beg-hide-cursor * { cursor: auto !important; }

  /* ─── Gallery padding ─── */
  .beg-gallery {
    padding: 0 0 0 16px;
  }

  .beg-section {
    margin-bottom: 36px;
  }

  .beg-section__row {
    gap: 8px;
  }

  .beg-section__title {
    padding: 0;
    font-size: 10px;
  }

  /* ─── Strip becomes a horizontal slider ─── */
  .beg-strip {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 4px;
    padding: 0 16px 12px 0;
    margin: 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .beg-strip::-webkit-scrollbar {
    display: none;
  }

  .beg-item {
    flex: 0 0 auto;
    height: 160px;
    scroll-snap-align: start;
    cursor: pointer;
    border-radius: 4px;
  }
  .beg-item img {
    height: 100%;
    width: auto !important;
    border-radius: 4px;
  }
  /* No hover zoom on touch */
  .beg-item:hover img {
    transform: none;
  }

  /* ─── Loop Grid → horizontal slider ─── */
  .beg-loop .elementor-loop-container.elementor-grid {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 4px !important;
    padding-right: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .beg-loop .elementor-loop-container.elementor-grid::-webkit-scrollbar {
    display: none;
  }
  .beg-loop .e-loop-item {
    scroll-snap-align: start;
  }
  .beg-loop .e-loop-item img {
    height: 160px;
    border-radius: 4px;
  }

  /* ─── Viewer: full-screen, single image ─── */
  .beg-viewer__layout {
    flex-direction: column;
  }

  .beg-viewer__title {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 16px;
    font-size: 10px;
    justify-content: flex-start;
    text-align: left;
  }
  .beg-viewer__layout.has-title .beg-viewer__title {
    display: flex;
  }

  .beg-viewer__track {
    padding: 8px;
    gap: 4px;
  }
  .beg-viewer__layout.has-title .beg-viewer__track {
    padding-left: 8px;
  }

  .beg-viewer__slide {
    height: calc(100vh - 120px);
    cursor: pointer;
  }
  .beg-viewer__slide img {
    height: calc(100vh - 160px);
    border-radius: 4px;
  }
  .beg-viewer__slide-caption {
    font-size: 10px;
    padding: 6px 4px 0;
  }

  /* Footer buttons */
  .beg-viewer__footer {
    padding: 10px 0;
    gap: 6px;
  }
  .beg-viewer__btn {
    font-size: 9px;
    padding: 7px 14px;
  }

  /* ─── Mobile progress dots (injected by JS) ─── */
  .beg-mobile-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
  }
  .beg-mobile-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: background 0.25s ease, transform 0.25s ease;
    border: none;
    padding: 0;
  }
  .beg-mobile-dot.is-active {
    background: rgba(0,0,0,0.6);
    transform: scale(1.3);
  }
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL  (≤ 380px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .beg-gallery {
    padding: 0 0 0 12px;
  }
  .beg-item {
    height: 130px;
  }
  .beg-loop .e-loop-item img {
    height: 130px;
  }
  .beg-section {
    margin-bottom: 28px;
  }
  .beg-viewer__slide {
    height: calc(100vh - 100px);
  }
  .beg-viewer__slide img {
    height: calc(100vh - 140px);
  }
}
