/* public_html/blog/Styles/animated_gallery.css */

/* =========================================================
   SIDEBAR ANIMATED GALLERY — BIOJOURNAL STYLE
========================================================= */

.animated-gallery-sidebar {
  padding: 18px;
}

/* =========================================================
   CONTAINER
========================================================= */
.animated-gallery-container {
  position: relative;
  width: 100%;
  padding: 0;
}

/* =========================================================
   GALLERY CORE
========================================================= */
.animated-gallery {
  position: relative;
  width: 100%;
}

/* =========================================================
   VIEWPORT (SCROLL-SNAP WINDOW)
========================================================= */
.animated-gallery-window {
  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;          /* Firefox */
}

.animated-gallery-window::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

/* =========================================================
   TRACK
========================================================= */
.animated-gallery-track {
  display: flex;
  gap: 16px;
  padding: 4px 2px 8px;
}

/* =========================================================
   CARD (GALLERY ITEM)
========================================================= */
.gallery-item {
  flex: 0 0 85%;
  scroll-snap-align: center;

  background: rgba(20, 24, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);

  padding: 14px;
  cursor: pointer;

  display: flex;
  flex-direction: column;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.gallery-item:hover {
  border-color: rgba(123,181,255,0.35);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.5),
    0 0 0 1px rgba(123,181,255,0.08);
}

.gallery-media {
  position: relative;
}

.gallery-chevron {
  position: absolute;
  transform: translateY(-30px);

  width: 34px;
  height: 34px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0, 0, 0, 0);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.gallery-chevron:hover {
  background: rgba(123,181,255,0.25);
  border-color: rgba(123,181,255,0.45);
}

.gallery-prev { left: -10px; }
.gallery-next { right: -10px; }


/* =========================================================
   IMAGE
========================================================= */
.gallery-item img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* =========================================================
   TITLE
========================================================= */
.gallery-item h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 500;
  color: #eef3f9;

  margin: 0;
}

/* =========================================================
   ARROWS (DESKTOP ONLY)
========================================================= */
.animated-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #e8ecf3;

  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;

  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 2;
}

.animated-left-arrow  { left: -6px; }
.animated-right-arrow { right: -6px; }

.animated-arrow:hover {
  background: rgba(123,181,255,0.25);
  border-color: rgba(123,181,255,0.45);
}

/* Hide arrows on touch devices */
@media (hover: none) {
  .animated-arrow {
    display: none;
  }
}

/* =========================================================
   PAGINATION DOTS
========================================================= */
.animated-pagination-dots {
  margin-top: 10px;
  text-align: center;
}

.animated-pagination-dot {
  display: inline-block;

  width: 6px;
  height: 6px;
  margin: 0 4px;

  border-radius: 50%;
  background: rgba(255,255,255,0.35);

  transition: background 0.25s ease, transform 0.25s ease;
}

.animated-pagination-dot.active {
  background: #7bb5ff;
  transform: scale(1.25);
}

/* =========================================================
   CAPTION
========================================================= */
.welcome {
  margin-top: 10px;

  font-family: "Fira Code", monospace;
  font-size: 11px;
  line-height: 1.4;

  color: rgba(232,236,243,0.7);
  text-align: center;
}

/* =========================================================
   MOBILE SAFETY
========================================================= */
@media (max-width: 900px) {
  .animated-gallery-sidebar {
    padding: 16px 0;
  }

  .gallery-item {
    flex: 0 0 90%;
  }
}
@media (hover: none) {
  .gallery-chevron {
    display: none;
  }
}
