/* ═══════════════════════════════════════════════════════
   Birds Eye Gallery Zoom — Styles
   ═══════════════════════════════════════════════════════ */

/* ─── 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: the zoom viewport ─── */
/* ─── Camera: just a marker class, styles applied by JS during animation ─── */
.beg-camera {
  /* no default styles — this is only a JS hook */
}

/* ─── 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: make items variable width ─── */
.beg-loop .elementor-loop-container.elementor-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  /* Override Elementor's grid template */
  grid-template-columns: none !important;
}

.beg-loop .e-loop-item {
  /* Don't stretch to fill grid column — size to content */
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

/* Make the image inside each loop item determine the width */
.beg-loop .e-loop-item img {
  height: 270px;
  width: auto !important;
  max-width: none !important;
  object-fit: cover;
}

/* Override any Elementor container min-height on loop items */
.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 — now inside each slide, fixed overlay hidden */
.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 ─── */
@media (max-width: 900px) {
  .beg-section__title {
    font-size: 10px;
  }
  .beg-item {
    height: 140px;
  }
}

@media (max-width: 600px) {
  .beg-section__title {
    padding: 0;
  }
  .beg-strip {
    padding: 0;
  }
  .beg-item {
    height: 120px;
  }
  .beg-viewer__title {
    width: 100px;
    min-width: 100px;
    font-size: 10px;
    padding: 20px 12px;
  }
  .beg-loop .e-loop-item img {
    height: 180px;
  }
}
