/* Montana Wilderness Outfitters: site styles added when the site moved off WordPress (Nov 2026).
   The look itself comes from the original theme (wp-content/themes/montana/). Style changes go here. */

/* Slideshows (assets/slideshow.js): the home page banner, and the photo slideshows on the trip pages */
.mwo-slideshow {
  position: relative;
  overflow: hidden;
  background: #000;
  margin: 0 auto;
}
.mwo-slideshow > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.mwo-slideshow > img.on {
  opacity: 1;
}
.mwo-banner {
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 1600 / 725;
}
.mwo-banner > img {
  object-fit: cover;
}
.mwo-photos {
  width: 100%;
  aspect-ratio: 373 / 284;
  background: transparent;
}
.mwo-photos > img {
  object-fit: contain;
}
.mwo-slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}
.mwo-slideshow .mwo-ss-prev { left: 6px; }
.mwo-slideshow .mwo-ss-next { right: 6px; }

/* Larger view for photo links (assets/lightbox.js) */
.mwo-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.mwo-lb.open {
  display: flex;
}
.mwo-lb > img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 0 1px #fff;
}
.mwo-lb button {
  position: absolute;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  padding: 8px 16px;
  cursor: pointer;
}
.mwo-lb .mwo-lb-x { top: 12px; right: 12px; }
.mwo-lb .mwo-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.mwo-lb .mwo-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.mwo-lb.single .mwo-lb-prev,
.mwo-lb.single .mwo-lb-next { display: none; }
