/* internal nav */

.attractions-nav {
  padding: 1rem;
  margin-bottom: 2rem;
}

.attractions-nav ul {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  list-style: none;
}

.attractions-nav ul::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 100%;

  height: 3px;
  bottom: 3px;
  background-color: var(--darkColor);
}

.attractions-nav li::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--darkColor);
}

.attractions-nav li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  max-width: 120px;
}

/* main section */
.attraction-main {
  min-height: 100vh;
}

.attraction-main video {
  width: 100%;
  height: 60vh;

  object-position: center;
  object-fit: cover;
}

.info-wrapper {
  padding: 1rem;
}

.info-text-wrapper {
  padding: 0 1rem;
}

blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  max-width: 18.75rem;
}

blockquote p {
  margin: 0.5rem 0;
}

.info-text-wrapper a {
  display: inline-block;
  border-radius: 10px;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  color: var(--whiteColor);
  background-color: var(--highlightColor);
  box-shadow: var(--boxShadow);
}
.attraction-main h1 {
  font-family: "Taviraj", serif;
  font-style: normal;
  font-weight: 200;
  font-size: clamp(2.5rem, 1vw, 4rem);
}

.attraction-main h2 {
  font-weight: 200;
  font-size: 1.5rem;
}

/* recommended section */

.recommended {
  padding: 1rem;
}

.recommended h2 {
  margin-bottom: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}

.one,
.four {
  grid-column: span 2;
}

.placeholder {
  height: 150px;
  width: 100%;

  box-shadow: var(--boxShadow);
  border-radius: 10px;
}

figure {
  position: relative;
}

.overlay {
  position: absolute;
  bottom: 0;
  top: auto;
  rotate: 180deg;
  /* gradient blur referenced from 
  https://codepen.io/QuiteQuinn/pen/jOBxGjr
   */
  mask: linear-gradient(black, black, transparent);
  backdrop-filter: blur(1px);
  background-color: rgba(0, 0, 0, 0.5);
  height: 30%;
  width: 100%;
  border-radius: 10px;
}
figure img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

figcaption {
  position: absolute;
  font-size: clamp(1.5rem, 3vw, 4rem);
  color: var(--whiteColor);
  left: 0.5rem;
  bottom: 0.5rem;
}

/* colors */
.attraction-main,
.recommended,
#locations {
  color: var(--highlightColor);
}

#locations {
  margin: 1rem 0 1rem 1rem;
}
/* media query */
@media (min-width: 48em) {
  /* attraction main */
  .attraction-main video {
    position: relative;
    height: 100vh;
  }

  .info-wrapper,
  .info-text-wrapper {
    color: var(--whiteColor);
    position: absolute;
  }

  .info-wrapper {
    left: 1rem;
    bottom: 4rem;
  }
  .info-wrapper h1 {
    font-weight: 400;
    font-size: clamp(2.5rem, 10vw, 15rem);
    margin-bottom: -1.25rem;
  }

  .info-wrapper p {
    font-size: clamp(2rem, 1vw, 3rem);
  }

  .info-text-wrapper {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    border-radius: 10px;
    padding: 1rem;
    max-width: 300px;
    text-align: right;
    top: 2rem;
    right: 1rem;
  }

  /* recommended section */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(3, 15.625rem);
  }

  .placeholder {
    height: 100%;
  }

  .four {
    grid-column: 5 / 8;
    grid-row: 1 / 4;
  }

  .one {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
  }

  .two {
    grid-column: 1 / 3;
  }

  .three {
    grid-column: 3/5;
  }

  .recommended {
    margin: 5rem 0;
  }

  /* hover effect */

  .placeholder:hover {
    cursor: pointer;
    transform: scale(1.01);
  }
}
