#gallerySection {
  position: relative;

  @media screen and (min-width: 200px) and (max-width: 990px) {
	margin: 80px 0 140px 0;
  }

  &:after {
	content: '';
	z-index: -1;
	width: 100vw;
	height: 1030px;
	position: absolute;
	left: -13vw;
	top: 310px;
	background: url(../../images/mock/gallery/logo-cadbury-xl.png) no-repeat center center;
	background-size: cover;
	pointer-events:none;
  }

  h1 {
	font-size: 79px;
	font-weight: 600;
	font-family: GibsonSemiBold;

	@media screen and (min-width: 200px) and (max-width: 990px) {
	  font-size: 30px;
	}
  }

  p.gallery-desc {
	width: 560px;
	font-family: GillSansHeavy;
	font-size: 20px;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
	margin: 0;

	@media screen and (min-width: 200px) and (max-width: 990px) {
	  font-size: 16px;
	  line-height: 22px;
	}
  }

  .gallery-hub-header-container {
	text-align:center;

	p {
	  text-align:center;
	  width: 100%;
	  margin: 0 0 30px 0;
	}
  }

  .gallery-hub-verity-container {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 20px;
	justify-content: center;

	p {
	  font-family: GillSansBold;
	  position: relative;
	  display: flex;
	  justify-content: center;
	  cursor:pointer;
	  text-transform:uppercase;

	  -webkit-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	  -khtml-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	  -moz-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	  transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;

	  &:after {
		content: '';
		background-image: linear-gradient(90deg, #e7cb7a 2.2%, #fbecb3 41.95%, #c4a557 70.64%, #fbecb3 100%);
		width: 100%;
		height: 0;
		position: absolute;
		bottom: -5px;
	  }

	  &.active, &:hover {
		background-image: linear-gradient(90deg, #e7cb7a 2.2%, #fbecb3 41.95%, #c4a557 70.64%, #fbecb3 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;

		&:after {
		  height: 2px;
		}
	  }
	}
  }

  .gallery-hub-masonry {
	width: 100%;
	position: relative;
	z-index: 2;
	columns: 3;
	gap:20px;
	column-gap: 0;
	padding: 60px 0 60px 0;

	.gallery-item {
	  background: #ffffff;
	  padding: 0;
	  overflow: hidden;
	  cursor: pointer;
	  opacity:0;
	  margin-bottom: 30px;
	  position: relative;
	  border-radius:30px;
	  width:95%;

	  -webkit-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	  -khtml-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	  -moz-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	  transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;

	  @media screen and (min-width: 200px) and (max-width: 990px) {
		width: 88%;
		padding: 20px;
	  }
	  @media screen and (min-width: 200px) and (max-width: 520px) {
		width: 91%;
	  }
	  @media screen and (min-width: 200px) and (max-width: 430px) {
		width: 90%;
	  }
	  @media screen and (min-width: 200px) and (max-width: 414px) {
		width: 89%;
	  }
	  @media screen and (min-width: 200px) and (max-width: 375px) {
		width: 88%;
	  }


	  .media-holder {
		max-height: 16.667vw;
		min-height: 11.667vw;
		min-width: 21.5vw;
		position: relative;
		overflow: hidden;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #3B0073 url('../../images/mock/gallery/logo-cadbury.png') no-repeat center center;
		background-size: cover;

		@media screen and (min-width: 1921px) and (max-width: 9000px) {
		  min-width: 15.3vw;
		}
		@media screen and (min-width: 991px) and (max-width: 1800px) {
		  min-width: 22.85vw;
		}
		@media screen and (min-width: 991px) and (max-width: 1440px) {
		  min-width: 27.5vw;
		}
		@media screen and (min-width: 200px) and (max-width: 990px) {
		  max-height: 50vw;
		  min-height: 50vw;
		  min-width: 100%;
		  width: 100%;
		}
		@media screen and (min-width: 520px) and (max-width: 990px) {
		  max-height: 320px;
		  min-height: 170px;
		  min-width: 30vw;
		}
		@media screen and (min-width: 200px) and (max-width: 520px) {
		  max-height: 45vw;
		  min-height: 45vw;
		  min-width: 100%;
		  width: 100%;
		}

		audio, p {
		  display: none;
		}

		img {
		  border-radius: 0;
		  object-fit: cover;
		  height: 100%;
		  width: 100%;
		  object-position: center;
		}


		&:after {
		  content: '';
		  position: absolute;
		  width: 9.375vw;
		  height: 9.375vw;
		  ponter-events: none;
		  background-size: contain !important;
		  will-change: transform;

		  @media screen and (min-width: 200px) and (max-width: 990px) {
			width: 120px;
			height: 120px;
		  }
		  @media screen and (min-width: 520px) and (max-width: 990px) {
			width: 120px;
			height: 120px;
		  }

		}

	  }

	  .title-area {
		display: flex;
		align-items: center;
		flex-direction: column;
		color: #301E64;
		font-family: UberHandProRegular;
		padding: 20px;

		strong {
		  color: inherit;
		  font-size: 22px;
		  line-height: 22px;
		}
	  }

	  &.audio {


		.media-holder {

		  .audio-holder {
			display: none;
		  }

		  &:after {
			background: transparent url('../../images/mock/gallery/badge-audio.png') no-repeat center center;
		  }
		}
	  }

	  &.video {

		.media-holder {
		  pointer-events: none;

		  &:after {
			background: transparent url('../../images/mock/gallery/badge-video.png') no-repeat center center;
		  }
		}
	  }

	  &.image {

		.media-holder {
		  &:after {
			background: transparent url('../../images/mock/gallery/badge-image.png') no-repeat center center;
		  }
		}
	  }

	  &.text {

		.media-holder {

		  &:after {
			background: transparent url('../../images/mock/gallery/badge-text.png') no-repeat center center;
		  }
		}
	  }

	  &:hover, &:focus {
		transform: scale(0.97);

		.media-holder {

		}
	  }
	}

	.gallery-item.image:nth-child(3n) {

	  .media-holder {
		max-height: 450px;
		//min-height:400px;
	  }
	}
  }
}

#gallery-pop-out {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 25, 98, 0.8);

  // remove below if no blur and transparency needed
  background: rgba(62, 25, 98, 0.8);
  //backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  clip-path: inset(90vw);
  opacity: 0;
  pointer-events: none;
  will-change: background, clip-path, opacity;


  -webkit-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
  -khtml-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
  -moz-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
  transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;


  .close-icon-container {
	text-align: right;
	position: absolute;
	top: 3vw;
	right: 22vw;
	z-index: 9;
	text-decoration: none;
	background-size:contain;
	cursor: pointer;

	@media screen and (min-width: 200px) and (max-width: 990px) {
	  top: 4vw;
	  right: 4vw;
	}
	@media screen and (min-width: 20px) and (max-width: 430px) {
	  top: 4vw;
	  right: 4vw;
	}

	.fa-xmark {
	  color: var(--white-color);
	  background-color: #d3b565;
	  padding: 12px 15px;
	  border-radius: 50%;
	  margin: 0;
	  font-size: 15px;
	  cursor: pointer;

	  -webkit-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
	  -khtml-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
	  -moz-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
	  transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.6s;
	}

	&:hover {

	  .fa-xmark {
		transform:scale(1.15)
	  }
	}
  }



  #pop-out-content {
	display: flex;
	align-items: center;
	width: 50vw;
	height: 70vh;
	padding: 40px;
	transform: scale(0);
	will-change: transform;
	//background:#2B1149;
	overflow:hidden;

	-webkit-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	-khtml-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	-moz-transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;
	transition: all cubic-bezier(0.34, 0.57, 0.21, 0.99) 0.8s;

	@media screen and (min-width: 200px) and (max-width: 990px) {
	  width: 100%;
	  padding: 5vw;
	}
	@media screen and (min-width: 520px) and (max-width: 990px) {
	  //padding: 10vw;
	}

	.title-area {
	  display: none;
	}

	.media-holder {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  height: 100%;
	  width: 100%;
	  background:#2B1149;

	  img {
		border-radius: 0;
		object-fit: cover;
		height: 100%;
		width: 100%;
		object-position: center;
	  }

	  p {
		font-family: UberHandProRegular;
		color: #ffffff;
		font-size: 26px;
		line-height: 28px;

		@media screen and (min-width: 20px) and (max-width: 520px) {
		  font-size: 5vw;
		  line-height: 6vw;
		}
	  }

	  &.image {
		overflow:hidden;

		@media screen and (min-width: 20px) and (max-width: 520px) {
		  height:auto;
		}
	  }
	  &.audio {
		font-family: GillSansLight;

	  }
	  &.image, &.video {
		border:30px solid #ffffff;

		@media screen and (min-width: 20px) and (max-width: 520px) {
		  border:15px solid #ffffff;
		}

	  }
	  &.video {
		height:auto;
	  }
	  &.text {
		height: auto;
		background: #C39EEC;
		border: 30px solid #ffffff;
		padding: 30px;

		@media screen and (min-width: 20px) and (max-width: 520px) {
		  border:15px solid #ffffff;
		}
	  }

	  &.audio {

		@media screen and (min-width: 20px) and (max-width: 520px) {
		  height:auto;
		}
		.audio-container {
		  text-align: center;
		  display: flex;
		  flex-direction: column;
		  justify-content: center;
		  min-height: 300px;
		  width: 400px;

		  @media screen and (min-width: 50px) and (max-width: 520px) {
			width: 240px;
		  }
		}

		.record-play-btn {
		  background-color: transparent;
		  border: 0;
		  cursor: pointer;

		  .fa-play {
			font-size: 50px;
			color: #d3b565;
		  }

		  .fa-pause {
			font-size: 50px;
			color: #d3b565;
		  }

		  &.active {
			.fa-play {
			  display: none !important
			}

			.fa-pause {
			  display: block !important
			}
		  }
		}

		.audio-time {
		  display: flex;
		  justify-content: space-between;
		  padding: 0 10px 0 0;
		}

		.time-line-range {
		  position: relative;
		  margin: 40px 0 20px 0;

		  .full-line {
			max-width: 98%;
			height: 2px;
			background-color: #ffffff;
			box-shadow: 0px 5px 11px 0px #0000001a, 0px 21px 21px 0px #00000017, 0px 46px 28px 0px #0000000d, 0px 82px 33px 0px #00000003, 0px 129px 36px 0px #00000000;
		  }

		  .time-line {
			position: absolute;
			left: 0;
			top: -2px;
			height: 6px;
			transition: 0.5s;
			background: linear-gradient(90deg, #f3d085 0.07%, #fee8a8 49.11%, #d3aa5f 100%);
			box-shadow: 0px 5px 11px 0px #0000001a, 0px 21px 21px 0px #00000017, 0px 46px 28px 0px #0000000d, 0px 82px 33px 0px #00000003, 0px 129px 36px 0px #00000000;
		  }
		}
	  }
	}
  }

  &.active {
	clip-path: inset(0);
	opacity: 1;
	z-index: 9;
	pointer-events: all;

	#pop-out-content {
	  transition-delay: 0.6s;
	  -webkit-transform: cale(1);
	  -moz-transform: scale(1);
	  -ms-transform: scale(1);
	  -o-transform: scale(1);
	  transform: scale(1);

	  img {
		//width: auto;
		//height: 100%;

		@media screen and (min-width: 200px) and (max-width: 990px) {
		  object-fit: contain;
		  width: 100%;
		}
	  }

	  video {
		width: 100%; height:100%;
	  }
	}
  }
}

.black-button:hover {
  filter: brightness(2);
}

#galleryLMBtn {

  &.loading {
	pointer-events: none;
	opacity:0.2;
  }
}

/* Define the keyframes for the fade-in animation */
@keyframes fadeIn {
  from {
	opacity: 0;
	-webkit-transform: translateY(20px) scale(0.85);
	-moz-transform: translateY(20px) scale(0.85);
	-ms-transform: translateY(20px) scale(0.85);
	-o-transform: translateY(20px) scale(0.85);
	transform: translateY(20px) scale(0.85);
  }
  to {
	opacity: 1;
	-webkit-transform: translateY(0) scale(1);
	-moz-transform: translateY(0) scale(1);
	-ms-transform: translateY(0) scale(1);
	-o-transform: translateY(0) scale(1);
	transform: translateY(0) scale(1);
  }
}

/* Class to trigger the animation */
.fade-in {
  -webkit-animation: fadeIn 0.5s ease-in-out 0.5s 1 forwards;
  -moz-animation: fadeIn 0.5s ease-in-out 0.5s 1 forwards;
  -ms-animation: fadeIn 0.5s ease-in-out 0.5s 1 forwards;
  -o-animation: fadeIn 0.5s ease-in-out 0.5s 1 forwards;
  animation: fadeIn 0.5s ease-in-out 0.5s 1 forwards;
}
