.gallery {
  width: 100%;
  overflow-x: hidden;
  position: absolute;
  margin-top: -20.3rem;
  max-height: 48.6rem;
}

.gallery-container {
  align-items: center;
  display: flex;
  height: 48.6rem;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.gallery-item {
  height: 37.4rem;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 66.4rem;
  z-index: 0;
}

.gallery-item-1 {
  left: 15%;
  transform: translateX(-50%);
}

.gallery-item-2,
.gallery-item-4 {
  
  opacity: 1;
  z-index: 1;
}

.gallery-item-2 {
  left: 30%;
  transform: translateX(-50%);
}

.gallery-item-3 {
  height: 48.6rem;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 86.2rem;
  z-index: 4;
}

.gallery-item-4 {
  left: 70%;
  transform: translateX(-50%);
}

.gallery-item-5 {
  left: 85%;
  transform: translateX(-50%);
}

.gallery-item span
{
  display: none;
}

.gallery-item-3 span
{
  display: block;
  position: absolute;
  z-index: 3;
  bottom: 3.2rem;
  left: 1.6rem;

  color: #FFF;
  font-size: 3.3rem;
  font-family: Poppins;
  font-weight: bold;
  line-height: 1.3;
}

.gallery-item img
{
  width: 100%;
  height: 100%;
  opacity: 0.3;
  object-fit: cover;
}

.gallery-item .black-mask
{
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;

  background-color: #000;
}

.gallery-item-3 .black-mask::after
{
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0) 100%);
  z-index: 2;
  left: 0;
  top: 0;
}

.gallery-item-3 img
{
  opacity: 1;
}

.gallery-item img.play
{
  position: absolute;
  display: none;
  height: unset;
  width: unset;
  opacity: unset;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gallery-item-3 img.play
{
  display: block;
  opacity: 1;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  width: 48rem;
  z-index: 3;

  position: absolute;
  height: 40rem;
  
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.gallery-controls button {
  border: 0;
  cursor: pointer;
  font-size: 1.6rem;
  margin: 0 2rem;
  padding: 0 1.2rem;
  text-transform: capitalize;
}

.gallery-controls button:focus {
  outline: none;
}

.gallery-controls-previous, .gallery-controls-next {
  position: absolute;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-controls-previous:hover, .gallery-controls-next:hover
{
  transform: translateY(-50%) scale(1.2);
}

.gallery-controls-previous
{
  right: 72rem;
}

.gallery-controls-next
{
  left: 72rem;
}

.gallery-nav {
  bottom: -1.5rem;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.gallery-nav li {
  background: #ccc;
  border-radius: 50%;
  height: 1rem;
  margin: 0 1.6rem;
  width: 1rem;
}

.gallery-nav li.gallery-item-selected {
  background: #555;
}