:root {
  --background-color-accent: #c7a785;
  --text-color-light: antiquewhite;
  --text-color-link: rgb(246 247 249);
  --body-background-color: #3f3f4b;
  --gradient-start: rgb(103 114 152);
  --gradient-end: var(--background-color-accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--body-background-color);
  color: var(--text-color-light);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--text-color-link);
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  margin: 3rem 0 2rem 3rem;
  align-self: flex-start;
  max-width: fit-content;
  font-size: clamp(2.3rem, 5vw, 3rem);
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.tour-title,
.tour-details {
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  width: 100%;
}

.tour-card {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.tour-card {
  transition: transform 0.4s ease-in-out;
}

.tour-card:hover {
  transform: scale(1.05);
  position: relative;
  z-index: 2;
}

.tour-card img {
  width: 100%;
  max-height: 600px;
  margin-bottom: 2rem;
  display: block;
  max-width: 100%;
  height: auto;
}

.tour-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.tour-details h2 {
  margin-bottom: 0.25rem;
}

@media screen and (min-width: 1024px) {
  .tour-card {
    flex-direction: column;
  }
}
