*,
*::before,
*::after,
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #3d804b;
  --secondary-color: #f7c86c;
  --tertiary-color: #49a8a0;
  --bg-color: #d1c9b4;
  --bg-color2: #544e38;
  --font-color: #544e38;
  --dark-color: #292929;
  --primary-font: 'Oswald', sans-serif;
  --secondary-font: 'Poppins', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  background-color: var(--dark-color);
  color: var(--font-color);
  font-family: var(--primary-font);
}

a {
  text-decoration: none;
}

/* unvisited link */
a:link {
  color: var(--secondary-color);
}

/* visited link */
a:visited {
  color: var(--secondary-color);
}

/* mouse over link */
a:hover {
  color: white;
}

/* selected link */
a:active {
  color: var(--primary-color);
}

header {
  height: 100px;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

header .back-btn {
  height: 48px;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 20px;
  opacity: 0.8;
  background-color: var(--primary-color);
  border-radius: 50%;
}

header .back-btn img {
  height: 28px;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 20px;
  margin: 0 20px;
  height: 100%;
  /* background-color: aqua; */
}

.header-text h4 {
  font-family: var(--secondary-font);
}

.map-page-body header {
  background-color: var(--secondary-color);
  padding: 20px;
  margin: 0px;
}

.map-photo-container {
  padding: 0 20px;
  margin-top: 20px;
  width: 100vw;
  height: 80vh;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 1fr 1.2fr;
}

#map {
  width: 100%;
}

/* PHOTO AREA */
figure {
  position: relative;
  /* background-color: aquamarine; */
  padding: 0;
  margin: 0;
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

figure img .loading {
  background: transparent url(./assets/icons/loader_a.gif) no-repeat scroll
    center center;
}

figure .img-caption {
  position: absolute;
  text-align: center;
  bottom: 0;
  padding: 16px;
  width: 100%;
  height: 10%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

figure .img-caption h4 {
  font-family: var(--secondary-font);
  font-weight: 200;
  color: var(--secondary-color);
}

@media (max-width: 768px) and (orientation: portrait) {
  .header-text h1 {
    font-size: 24px;
    font-family: var(--primary-font);
  }

  .header-text h4 {
    font-size: 12px;
    font-family: var(--primary-font);
  }

  .map-photo-container {
    height: 40vh;
    grid-template-columns: 1fr;
  }

  figure {
    height: 40vh;
  }

  #map {
    height: 220px;
  }

  figure .img-caption h4 {
    font-size: 12px;
  }
}
