/* Photo slideshow (Ranch Management). Kept in its own file so it is always fetched fresh. */
.slideshow { position: relative; margin: 18px 0 8px; border-radius: var(--radius, 14px); overflow: hidden; box-shadow: var(--shadow, 0 10px 30px rgba(20,42,30,.10)); background: var(--pine-deep, #142a1e); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.slideshow:focus-visible { outline: 3px solid var(--wheat, #c9a05c); outline-offset: 3px; }
.ss-track { display: flex; transition: transform .5s ease; will-change: transform; }
/* 4:3 frame built with padding so it works on older phones too */
.ss-slide { position: relative; flex: 0 0 100%; min-width: 0; padding-top: 75%; }
.ss-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20,42,30,.62); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.ss-btn:hover { background: rgba(20,42,30,.88); }
.ss-btn:focus-visible, .ss-toggle:focus-visible, .ss-dot:focus-visible { outline: 3px solid var(--wheat, #c9a05c); outline-offset: 2px; }
.ss-prev { left: 12px; }
.ss-next { right: 12px; }
.ss-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(20,42,30,.72), transparent); }
.ss-toggle { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(253,251,247,.92); color: var(--pine, #1e3a2a); font-size: .72rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ss-dots { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; flex: 1; }
.ss-dot { width: 12px; height: 12px; border: 0; border-radius: 50%; padding: 0; background: rgba(253,251,247,.55); cursor: pointer; }
.ss-dot[aria-current="true"] { background: var(--wheat, #c9a05c); transform: scale(1.25); }
.ss-count { display: none; margin-left: auto; color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.slideshow:not(.is-ready) .ss-btn, .slideshow:not(.is-ready) .ss-bar { display: none; }
/* phones: a counter instead of thirteen dots, bigger tap targets */
@media (max-width: 560px) {
  .ss-dots { display: none; }
  .ss-count { display: block; }
  .ss-btn { width: 46px; height: 46px; }
  .ss-toggle { width: 40px; height: 40px; font-size: .8rem; }
  .ss-prev { left: 8px; }
  .ss-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ss-track { transition: none; } }
/* many photos: always a counter, never a row of dots; and no extra margin inside a sidebar */
.slideshow.ss-compact .ss-dots { display: none; }
.slideshow.ss-compact .ss-count { display: block; }
.svc-side .slideshow { margin: 0; }
/* a slideshow in its own band under a page's main section */
.photo-band { padding: 0 0 72px; }
.photo-band .section-title { text-align: center; }
.photo-band .slideshow { max-width: 880px; margin: 22px auto 0; }
@media (max-width: 560px) { .photo-band { padding-bottom: 48px; } }
