* {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

body {
  padding: 2rem;
  background-color: gainsboro;
  min-height: 100dvh;
  margin: 0;
  max-width: 84rem;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 2px solid black;
}

nav > ul {
  display: flex;
  padding: 0;
  list-style-type: none;
  gap: 2rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  padding: 1px 5px;
}

nav a:not(.current-page):hover {
  border-bottom: dashed 2px black;
}

.current-page {
  border: 1px solid black;
  background-color: black;
  color: white;
  border-radius: 10px 0px 10px 0px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-rows: minmax(100px, 250px);
  gap: 1em;
  grid-template-areas: 
  "box-1 box-1 box-2 box-3"
  "box-1 box-1 box-4 box-5"
  "box-6 box-7 box-7 box-8"
  "box-9 box-7 box-7 box-10";
}

.gallery-item {
  background-color: transparent; 
  border-radius: 5px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.gallery-item a {
  display: block;
  min-width: 100%;
  min-height: 100%;
  max-height:100%;
  text-align: center;
  align-content: center;
  color: rgba(255, 255, 255, 0%);
  text-decoration: none;
  font-style: italic;
  transition: background-color .25s, color .25s;
  overflow: hidden;
  text-overflow: clip;
}

.gallery-item a:hover, .gallery-item a:active {
  text-align: center;
  align-content: center;
  background-color: rgba(0, 0, 0, 50%);
  backdrop-filter: blur(2px);
  color: rgba(255, 255, 255, 100%);
  padding: 2em;
  
}

.pagination {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  grid-template-rows: 50px;
  gap: 1em;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 2rem;
}

#page-info {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.pagination button {
  background-color: inherit;
  border: none;
  transition: filter .25s;
}

button:not(:disabled):hover {
  cursor: pointer;
  filter: invert(50%)
}

@media(max-width: 56em) {
  .gallery-grid {
    grid-template-areas: 
    "box-1 box-1 box-2"
    "box-1 box-1 box-3"
    "box-5 box-4 box-4"
    "box-5 box-6 box-7"
    "box-8 box-9 box-10";
  }
}

@media(max-width: 45em) {
  .gallery-grid {
    grid-template-areas: 
    "box-1 box-1 box-1"
    "box-2 box-3 box-3"
    "box-4 box-4 box-5"
    "box-6 box-7 box-8"
    "box-9 box-7 box-10";
  }
}


/* Tour Grid */
.tour-grid {
  
  /* display: grid; */
  
  gap: 2em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, auto)); */
  /* place-items: center; */
}

.tour-card {
  box-shadow: 1px 3px 8px rgb(71, 71, 71);
  border-radius: 5px;
  position: relative;
  width: 250px;
  background-color: white;
  height: 400px;
  overflow: hidden;
  /* display: flex; */
  .card-details {
    overflow: hidden;
  }
  
}

.tour-card:hover, .tour-card:active {
  
  justify-self:  stretch;
  /* overflow: visible; */
  height: auto;
  .card-details {
    
    overflow: visible;
  }  

  p {
    min-height: max-content;
  }
}

.tour-card > a {
  /* display: block; */
  display: none;
  /* background-color: rgba(30, 144, 255, 10%); */
  position: absolute;
  top: 0;
  bottom: 0;
  left:0;
  right:0;
}



.tour-card > * {
  width: 100%;
}

.tour-card img {
  display: block;
  max-height: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* position:  */
}

.card-details {
  /* padding: 0em 1em 1em 1em; */
  padding: 1em;
}

.card-details > * {
  margin: 0;
  line-height: 1.5;
}

.card-details p {
  margin: 0;
  padding: 0;
  max-height: 50px;
  /* overflow: hidden; */
}



.hidden {
  display: none;
}