h1 {
  color: var(--Brand-Purple-60);
  text-align: center;
  font-family: Literata;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 50px; /* 125% */
  padding-bottom: 24px;
}

.gallery-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.memoriam-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-inline: 16px;
}

.memoriam-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-inline: 27px;
  max-width: 1258px;
  margin-inline: auto;
  width: 100%;
  padding-bottom: 20px;
  justify-content: center;
}

.single-memoriam-img {
  position: relative;
  overflow: hidden;
}
.single-memoriam-img img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 285px;
  height: 285px;
  border-radius: 3px;
  transition: 0.3s;
}

.single-memoriam-img:hover .memoriam-content {
  visibility: visible;
  opacity: 1;
}
.vbox-child img {
  max-height: 100dvh;
}
.view-more-btns {
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-more-btns a {
  padding: 15px 40px;
}
.memoriam-content.active {
  visibility: visible;
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  z-index: 9999;
  padding-top: 85px;
  padding-inline: 25px;
}

.lightbox-container {
  position: relative;
  max-width: 1300px;
  max-height: 600px;
  text-align: center;
  width: 100%;
  background: #0b0a0a;
  padding: 24px 40px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 400px;
}

.lightbox-controls {
  margin-top: 10px;
}

.lightbox-controls button {
  background: white;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

.lightbox-close {
  transform: none;
  position: unset;
  background: transparent;
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
}

.lightbox-controls a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 142.857%;
  letter-spacing: 0.16px;
}

.lightbox-title {
  color: #fff;
  font-size: 16px;
  line-height: 150%;
}

.single-memoriam-img:hover img {
  opacity: 0.7;
}
.single-memoriam-img:hover .action-buttons {
  visibility: visible;
  opacity: 1;
}

.single-memoriam-img .action-buttons {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: 0.3s;
  visibility: hidden;
}

.action-buttons button {
  background: transparent;
  border: none;
}

.single-memoriam-img:hover img {
  opacity: 0.7;
}
.single-memoriam-img:hover .action-buttons {
  visibility: visible;
  opacity: 1;
}

@media screen and (min-width: 801px) {
  .gallery-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1 {
    padding-bottom: 40px;
  }
}

@media screen and (max-width: 644px) {
  .view-more-btns button {
    width: 100%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1280px) {
  .about-hero-wrapper {
    gap: 80px;
    padding: 0;
  }
  .single-memoriam-img {
    width: calc(33.33% - 16px);
  }
}

@media screen and (min-width: 801px) and (max-width: 1024px) {
  .memoriam-images {
    max-width: 586px;
    padding-inline: 0;
  }

  .single-memoriam-img {
    width: calc(50% - 16px);
  }

  .lightbox-overlay {
    padding-top: 50px;
  }
}

@media screen and (max-width: 800px) {
  .memoriam-images {
    max-width: 586px;
    padding-inline: 0;
    gap: 9px;
  }
  .view-more-btns a {
    width: 100%;
  }
  .memoriam-gallery {
    padding-top: 0;
    padding-bottom: 64px;
  }
  .memoriam-gallery-wrapper {
    padding-inline: 0;
  }

  .lightbox-prev {
    left: 30%;
    top: unset;
    bottom: 20px;
    transform: none;
  }
  .lightbox-next {
    right: 30%;
    top: unset;
    bottom: 20px;
    transform: none;
  }
  .lightbox-container {
    height: fit-content;
    padding-bottom: 70px;
    padding-inline: 20px;
    padding-top: 10px;
  }
  .lightbox-image {
    max-width: 100%;
    max-height: 300px;
    height: 300px;
    object-fit: cover;
  }
}

@media screen and (max-width: 712px) {
  .memoriam-images {
    width: 329px;
    padding-left: 0;
    padding-right: 0;
  }

  .single-memoriam-img img {
    width: 160px;
    height: 160px;
  }
}

@media screen and (max-width: 644px) {
  h1 {
    font-size: 34px;
    line-height: 44px;
  }

  .memoriam-images {
    padding-bottom: 0px;
  }
}
