/* Yellowstone Mountain Guides: site styles added when the site moved off WordPress (Nov 2026).
   The look itself comes from the original theme (wp-content/themes/rider/). Style changes go here. */

/* Photo galleries: thumbnails; click one for a larger view with previous/next (no script needed) */
.ymg-gallery {
  text-align: center;
}
.ymg-gallery > a {
  display: inline-block;
  width: 180px;
  height: 90px;
  margin: 4px;
  overflow: hidden;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.ymg-gallery > a:hover {
  transform: scale(1.1);
  position: relative;
  z-index: 2;
}
.ymg-gallery > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ymg-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.ymg-lb:target {
  display: flex;
}
.ymg-lb > img {
  max-width: 88vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.ymg-lb a {
  color: #fff;
  text-decoration: none;
  font-size: 48px;
  line-height: 1;
  z-index: 2;
}
.ymg-lb .ymg-lb-close {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
}
.ymg-lb .ymg-lb-x,
.ymg-lb .ymg-lb-prev,
.ymg-lb .ymg-lb-next {
  position: absolute;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
}
.ymg-lb .ymg-lb-x { top: 12px; right: 12px; }
.ymg-lb .ymg-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ymg-lb .ymg-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .ymg-gallery > a { width: 150px; height: 75px; margin: 3px; }
}

/* Home page slideshow: the photos fade one into the next (assets/slideshow.js) */
.ymg-slideshow {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 10 / 7;
  margin: 0 auto 20px;
  background: #000;
  overflow: hidden;
}
.ymg-slideshow > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}
.ymg-slideshow > img.on {
  opacity: 1;
}
