.gallery {
  background: #402379;
  /* min-height: 1550px; */
  position: relative;
}
.gallery-left-side-bg {
  position: absolute;
  left: 0;
  top: 360px;
}
.gallery-right-side-bg {
  position: absolute;
  right: 0;
  top: 210px;
}
.gallery-left-side-bg-sm {
  position: absolute;
  left: 0;
  bottom: 110px;
  display: none;
}
.gallery-right-side-bg-sm {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
}
.gallery-text-box {
  border-radius: 20px;
  border: 2px solid var(--cadbury-gradient-logo, #E7CB7A);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  background: #402379;
  overflow: hidden;
}
.gallery-text-box > div {
  width: 100%;
  text-align: center;
}
.gallery-text-box > div:first-of-type {
  padding-top: 35px;
}
.gallery-text-box > div:last-of-type {
  padding-bottom: 35px;
}
.gallery-text-title {
  color: var(--cadbury-gold-secondary-500, #E1B970);
  font-family: "Gill Sans Nova";
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  line-height: 26px;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: inline-block;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}
.gallery-text-title-box {
  display: flex;
  flex-direction: column;
}
.gallery-text-sub-title {
  color: var(--cadbury-neutral-white, #FFF);
  font-family: "Gill Sans Nova";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 180%;
  margin-top: 5px;
  text-align: center;
}
.read-message-btn {
  margin-top: 20px;
  color: var(--cadbury-neutral-white, #FFF);
  text-align: center;
  font-family: "Gill Sans Nova";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  /* 12px */
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 14px 20px;
  margin-left: auto;
  margin-right: auto;
}
.text-white {
  color: #fff;
}
.gallery-img-box {
  border-radius: 20px;
  overflow: hidden;
  margin: 10px;
}
.gallery-img {
  height: 279px;
  position: relative;
  background-color: #402379;
}
.gallery-img img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  object-position: top;
}
.gallery-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #522E91;
  opacity: 0.5;
  /* Apply the opacity */
  pointer-events: none;
  border-radius: 20px 20px 0 0;
  /* Allow interactions through the mask */
}
.gallery-img {
  height: 279px;
}
.gallery-loader {
  min-height: 100%;
}
.white-bg {
  background: #fff;
  text-align: center;
  width: 100%;
}
.white-bg .gallery-text-sub-title {
  color: #301E64;
  margin-bottom: 24px;
}
.white-bg img {
  margin: 0 auto;
}
.gallery-img-title-box {
  padding: 8px 0 17px 0;
  text-align: center;
}
.gallery-img-title {
  color: #fff;
  font-family: "Gill Sans Nova";
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  line-height: 26px;
  display: inline-block;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}
.gallery-img-sub-title {
  color: #fff;
  font-family: "Gill Sans Nova";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 180%;
}
@media screen and (min-width: 200px) and (max-width: 990px) {
  .gallery-left-side-bg-sm {
    display: block;
  }
  .gallery-right-side-bg-sm {
    top: 390px;
    display: block;
  }
  .gallery-left-side-bg {
    display: none;
  }
  .gallery-right-side-bg {
    display: none;
  }
  .gallery {
    min-height: auto;
  }
}
/* gallery-container  */
.gallery-container {
  display: flex;
  padding-top: 20px;
  gap: 98px;
  justify-content: center;
  align-items: center;
}
.gallery-container p {
  text-decoration: none;
  color: #FFFFFF;
  line-height: 160%;
  cursor: pointer;
  padding: 0px 3px;
  font-size: 18px;
  font-family: Gill Sans Nova;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.gallery-container p:hover {
  color: #D3B565;
}
.gallery-container p.active {
  font-weight: bold;
  font-size: 20px;
  color: #D3B565;
  position: relative;
}
.gallery-container p.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 3.17px;
  background-color: #CB9F52;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.Heartfelt-messages {
  line-height: 114%;
  margin-top: 0px;
}
.message-text-more {
  margin: 21px 0px;
}
.studio-link-mobile {
  display: none;
}
.gallery-hub-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 40px 60px 40px;
  max-width: 1140px;
  margin: auto;
}
.gallery-hub-masonry .gallery-item {
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
}
.gallery-hub-masonry .gallery-item:before {
  border-radius: 5px;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.gallery-hub-masonry .gallery-item img {
  width: 100%;
  border-radius: 5px;
}
.gallery-hub-masonry .gallery-item video {
  width: 100%;
  border-radius: 5px;
}
.gallery-div {
  margin-bottom: 67px !important;
}
.show-more-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main-container {
  max-width: 1148px;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 200px) and (max-width: 1100px) {
  .gallery-container {
    padding-top: 0px;
    gap: 70px;
  }
}
@media screen and (min-width: 20px) and (max-width: 990px) {
  .gallery-hub-masonry {
    display: flex;
    flex-direction: column;
  }
  .gallery-img-box {
    margin-left: 50px;
    margin-right: 50px;
  }
  .gallery-text-box {
    margin-left: 50px;
    margin-right: 50px;
  }
}
@media screen and (min-width: 768px) and (max-width: 990px) {
  .gallery-container {
    gap: 58px;
  }
}
@media screen and (min-width: 640px) and (max-width: 768px) {
  .gallery-container {
    gap: 35px;
  }
}
@media screen and (min-width: 510px) and (max-width: 640px) {
  .gallery-container {
    gap: 15px;
  }
  .gallery-container p {
    font-size: 15px;
  }
  .gallery-container p.active {
    font-size: 17px;
  }
}
@media screen and (min-width: 200px) and (max-width: 510px) {
  .gallery-container {
    gap: 15px;
  }
  .gallery-container p {
    font-weight: 300;
    font-size: 13px;
  }
  .gallery-container p.active {
    font-weight: 300;
    font-size: 13px;
  }
  .studio-link-desktop {
    display: none;
  }
  .studio-link-mobile {
    display: block;
  }
  .Heartfelt-messages {
    line-height: 130%;
  }
}
@media (max-width: 1148px) {
  .gallery-main-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
  }
}
@media (max-width: 768px) {
  .gallery-hub-masonry {
    grid-template-columns: 100%;
  }
}
/* image-preview-modal */
.image-preview-modal {
  width: 100vw;
  height: 100vh;
  top: 0;
  position: fixed;
  background: rgba(62, 25, 98, 0.8);
  box-shadow: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-preview-modal {
  width: 100vw;
  height: 100vh;
  top: 0;
  position: fixed;
  background: rgba(62, 25, 98, 0.8);
  box-shadow: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content-image {
  background: #190A47;
  border-radius: 30px;
  position: relative;
  text-align: center;
  width: 898px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.25);
  max-height: 87vh;
  overflow: auto;
}
.img-preview-head {
  display: flex;
  justify-content: center;
  padding: 30px 32px;
}
.img-preview-head h2 {
  text-align: center;
  font-family: "Gill Sans Nova";
  font-size: 25px;
  font-style: normal;
  font-weight: 700;
  line-height: 25px;
  text-transform: uppercase;
  color: #D3B565;
}
.img-preview-subhead {
  padding: 17px 17px 88px;
}
.audio-preview-subhead {
  padding: 17px 17px 0px;
}
.img-preview-subhead > span {
  font-family: "Gill Sans Nova";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  color: #D3B565;
}
.img-preview-subhead > P {
  font-family: "Gill Sans Nova";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 28px;
}
.close-modal {
  position: absolute;
  top: 29px;
  right: 32px;
  width: 36px;
  height: 36px;
  font-size: 23px;
  color: white;
  background-color: transparent;
  cursor: pointer;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal-header {
  color: #F5E050;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}
.modal-title {
  color: white;
  font-size: 18px;
}
.modal-author {
  color: white;
  font-size: 14px;
  margin-bottom: 20px;
}
.modal-image-container {
  width: 100%;
  margin-bottom: 20px;
}
.modal-image {
  width: 100%;
  height: 464px;
  border-radius: 0px 0px 30px 30px;
  object-fit: contain;
}
.text-preview-box {
  text-align: center;
  font-family: Gill Sans Nova;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  margin-top: 19px;
  padding: 0 75px;
}
@media (max-width: 768px) {
  .text-preview-box {
    text-align: center;
    font-family: Gill Sans Nova;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    margin-top: 19px;
    padding: 0 22px;
  }
}
.modal-video-preview-container {
  border-radius: 0 0 30px 30px;
}
@media (max-width: 1140px) {
  .modal-content,
  .modal-content-image,
  .video-modal-content {
    margin: 0 20px;
  }
}
.audio-loader-div-sm {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 70px;
  margin-top: 35px;
}
.timeline {
  margin-left: 20px;
  color: #FFE9AC;
  font-family: "Gill Sans Nova";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.timeline-sm {
  display: none;
}
.timeline-md {
  display: block;
}
.timeline div {
  color: #FFE9AC !important;
  font-family: "Gill Sans Nova";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.audio-pre-loader {
  height: 5px;
  background-color: #00f;
  /* Example: Blue color for the progress bar */
  width: 0;
  /* Initially 0 width */
  transition: width 0.1s linear;
  /* Smooth transition for width changes */
}
.audio-pre-main-loader {
  width: 228px;
  height: 0.5px;
  background: #fff;
  position: relative;
}
.audio-pre-loader {
  max-width: 228px;
  height: 3px;
  background: #ffe9ac;
  position: absolute;
  top: -1px;
}
@media (max-width: 600px) {
  .timeline-sm {
    display: block;
    margin-left: 0;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .timeline-md {
    display: none;
  }
  .audio-loader-div-sm {
    display: flex;
    flex-direction: column-reverse;
  }
}
