* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* #region EXERCISE 1 Styles */

/* === HERO LAYOUT CONTAINER === */

.hero-unit {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 760px;
}

/* === COMMON HERO PANELS === */

.hero-panel {
  position: relative;
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  max-width: 50%;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 1;
}

.hero-text {
  position: relative;
  padding: 2rem;
  z-index: 2;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 2.25rem;
  font-weight: 700;
  max-width: 20rem;
}

.hero-subtitle a {
  color: white;
  text-decoration: none;
}

.hero-subtitle a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
  .hero-unit {
    height: 960px;
    flex-direction: column;
  }

  .hero-panel {
    max-width: 100%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }
}

/* === HERO SECTION RESPONSIVE IMAGES === */

.hero-image-space {
  background-image: url(/images/final-frontier_large.jpg);
  background-size: 170% 760px;
}

.hero-image-moon {
  background-image: url(/images/luna_large.jpg);
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
  .hero-image-space {
    background-image: url(/images/final-frontier_large_2x.jpg);
  }

  .hero-image-moon {
    background-image: url(/images/luna_large_2x.jpg);
  }
}

@media (max-width: 1068px) {
  .hero-image-space {
    background-image: url(/images/final-frontier_medium.jpg);
  }

  .hero-image-moon {
    background-image: url(/images/luna_medium.jpg);
  }
}

@media (max-width: 1068px) and (min-resolution: 1.5dppx) {
  .hero-image-space {
    background-image: url(/images/final-frontier_medium_2x.jpg);
  }

  .hero-image-moon {
    background-image: url(/images/luna_medium_2x.jpg);
  }
}

@media (max-width: 768px) {
  .hero-image-space {
    background-image: url(/images/final-frontier_small.jpg);
  }

  .hero-image-moon {
    background-image: url(/images/luna_small.jpg);
  }
}

@media (max-width: 768px) and (min-resolution: 1.5dppx) {
  .hero-image-space {
    background-image: url(/images/final-frontier_small_2x.jpg);
    background-size: cover;
  }

  .hero-image-moon {
    background-image: url(/images/luna_small_2x.jpg);
  }
}

/* #endregion */

/* ==================================== */

/* #region EXERCISE 2 Styles */

/*
  HTML üzerinde class içerisinde bootstrap ifadeleri ile yapıldı.
  (d-none, d-lg-flex, d-lg-none)
*/

/* #endregion */

/* ==================================== */

/* #region EXERCISE 3 Styles */

@supports not (display: grid) {
  .gallery-grid {
    display: block;
    font-size: 0; /* boşlukları önle */
    overflow: hidden;
  }

  .gallery-photo {
    display: inline-block;
    vertical-align: top;
    font-size: initial;
  }

  .grid-third {
    width: 33.33%;
  }
  .grid-two-third {
    width: 66.66%;
  }
  .grid-half {
    width: 50%;
  }

  @media only screen and (max-width: 736px) {
    .gallery-photo {
      width: 100%;
    }

    .gallery-photo.small-hide {
      display: none;
    }
  }
}

/* #endregion */
