/* Site specific fixes layered on top of the theme css */

/* flash messages */
.notifications {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 400px;
  max-width: calc(100% - 40px);
  z-index: 9999;
  overflow: hidden;
  border-radius: 4px;
  padding: 16px 17px;
  cursor: pointer;
  animation: show_toast 0.3s ease forwards;
  transition: opacity 0.3s ease;
}

.notifications.-is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes show_toast {
  0% { transform: translateX(100%); }
  40% { transform: translateX(-5%); }
  100% { transform: translateX(0); }
}

/* breadcrumbs */
.breadcrumbs a:hover {
  color: var(--color-blue-1);
}

/* the sticky section menu on trip pages wraps into several rows on small
   screens and covers the content, so only show it where it fits */
@media (max-width: 991px) {
  .singleMenu {
    display: none;
  }
}

/* rich text coming from ckeditor */
.rich-text p,
.rich-text ul,
.rich-text ol {
  margin-bottom: 12px;
}

.rich-text ul {
  list-style: disc;
  padding-left: 20px;
}

.rich-text ol {
  list-style: decimal;
  padding-left: 20px;
}

.rich-text img {
  max-width: 100%;
  height: auto;
}

.rich-text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 20px 0 10px;
}

/* images should never stretch their containers */
.about-image img,
.owner-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* portrait photo, keep it from towering over the text beside it */
.owner-image img {
  max-height: 560px;
  object-position: top;
}

/* trip gallery keeps a steady height on all screens */
.trip-gallery .swiper-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .trip-gallery .swiper-slide img {
    height: 260px;
  }
}

.trip-map img {
  max-width: 100%;
  height: auto;
}
