* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: unset;
}

.hero {
  height: 100vh;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 0;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero > * {
  z-index: 2;
}

.hero-content {
  padding: 50px;
  position: fixed;
  width: 300px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  transition: color 300ms;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-contacts {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 25px;
  mix-blend-mode: difference;
}

.hero-featured {
  margin-top: 2rem;
  text-align: center;
}

.gallery {
  width: 100%;
  padding: 25px;
  padding-left: 350px;
}

.gallery-section-header {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.gallery-section-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 25px;
}

.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    transform 300ms ease-out,
    opacity 300ms ease-out;
}

.gallery-media {
  width: 100%;
}

.preview-container {
  z-index: 1000;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.preview-media {
  transition: transform 300ms ease;
}

.preview-backdrop {
  z-index: -1;
  position: absolute;
  background-color: #000000;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  transition: opacity 300ms ease;
}

.hide {
  visibility: hidden;
}

.no-transition {
  transition: none;
}

@media screen and (max-width: 700px) {
  .hero-content {
    position: relative;
  }

  .gallery {
    padding-left: 25px;
  }
}
