/* Keep the uploaded hero background flush with both edges of the viewport. */
.hero{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.hero-image{
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}

/* Use part of the former side whitespace for a more spacious tours grid. */
#tours{width:min(1400px,96%);}

/* Display eight tours as two rows of four on desktop. */
.tour-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;align-items:stretch;}
.tour{height:100%;display:flex;flex-direction:column;min-width:0;overflow:visible;position:relative;cursor:pointer;transform-origin:center center;transition:transform .35s ease;will-change:transform;}
.tour-img{height:auto;aspect-ratio:1.15/1;flex:none;}
.tour-body{flex:1;min-width:0;}
.tour-body{display:none;}
.tour p{min-height:0;overflow-wrap:anywhere;white-space:pre-line;}
.tour-img{background-size:cover;}
.tour.is-expanded{
  z-index:1000 !important;
}

.tour .tour-img{
  transform-origin:center center;
  transition:transform .35s ease;
  position:relative;
  z-index:1;
}

.tour.is-expanded .tour-img{
  transform:scale(1.6);
  z-index:1001;
}

@media(max-width:900px){
  .tour-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

@media(max-width:600px){
  .tour-grid{grid-template-columns:1fr !important;}
}
