html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.memorial-hero {
  background-image: linear-gradient(rgba(24, 24, 24, 0.2), rgba(24, 24, 24, 0.38)), url("../../images/IMG_1383.jpg");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

.fade-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  background: #fff;
}

.gallery-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.83rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.glide__arrows {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lightbox-image {
  max-height: 85vh;
  object-fit: contain;
}

.memorial-video-player {
  aspect-ratio: 9 / 16;
  width: min(100%, 320px);
  max-height: 520px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}

@media (max-width: 768px) {
  .memorial-hero {
    background-attachment: scroll;
  }

  .lightbox-image {
    max-height: 80vh;
  }

  .memorial-video-player {
    width: min(100%, 280px);
    max-height: 460px;
  }
}
