/* ==========================================================================
   Gallery – Portfolio slider section
   ========================================================================== */

.gallery {
  position: relative;
  z-index: 5;
}

.gallery-viewport {
  position: relative;
  z-index: 3;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 25vh 2% 0;
  align-items: flex-start;
}

.slider-wrapper {
  display: flex;
  width: auto;
  height: auto;
  margin-block: auto;
  padding: 0;
  justify-content: center;
  align-items: flex-start;
}

.slider {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 1600px;
  margin: 0 auto;
  background-color: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mask {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100vh;
  max-width: none;
  transition: transform 1s ease;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  max-width: none;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.left-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  width: 50%;
  padding-left: 20px;
  justify-content: center;
  align-items: center;
  cursor: w-resize;
}

.right-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 4;
  display: flex;
  width: 50%;
  padding-right: 20px;
  justify-content: center;
  align-items: center;
  cursor: e-resize;
}

.subline-gallery-next,
.subline-gallery-previous {
  opacity: 0;
  font-family: var(--font-sans);
  color: var(--color-white);
  font-size: 12px;
  line-height: 30px;
  font-weight: 100;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.left-arrow:hover .subline-gallery-previous,
.right-arrow:hover .subline-gallery-next {
  opacity: 1;
}

.gallery-nav {
  display: flex;
  width: 100vw;
  max-width: 0;
  justify-content: center;
  align-items: flex-start;
}

/* Responsive – Gallery
   ========================================================================== */

@media (max-width: 991px) {
  .gallery-viewport {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .mask {
    height: 85vh;
    border-radius: 40px;
  }
}

@media (max-width: 479px) {
  .mask {
    height: 80vh;
    border-radius: 30px;
  }

  .gallery-viewport {
    padding: 10vh 3% 0;
  }

  .gallery-cta {
    padding-left: 0;
  }
}
