/* Package 11 - card photo carousel (#specials and #communities cards).
   Loaded last on index.php. The .photo box keeps its fixed height from the
   existing CSS, so slides never change the card height (no layout shift). */
.card .photo .card-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card .photo .card-carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.card .photo .card-carousel-track::-webkit-scrollbar {
  display: none;
}
.card .photo .card-carousel-track:focus-visible {
  box-shadow: inset 0 0 0 3px #ffb400;
}
.card .photo .card-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: linear-gradient(135deg, #cfe9ff, #e7f4ff);
}
.card .photo .card-carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .photo .card-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #062b72;
  font: 800 24px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 18, 32, 0.30);
  transition: opacity .15s ease, background-color .15s ease;
}
.card .photo .card-carousel-prev { left: 8px; }
.card .photo .card-carousel-next { right: 8px; }
.card .photo .card-carousel-btn:hover { background: #fff; }
.card .photo .card-carousel-btn:focus-visible {
  outline: 3px solid #ffb400;
  outline-offset: 2px;
}
.card .photo .card-carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}
.card .photo .card-carousel-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 18, 32, 0.62);
  color: #fff;
  font: 800 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
  pointer-events: none;
}
.card .photo > .badge {
  z-index: 4;
}
/* Touch screens: swipe instead of arrows */
@media (hover: none) {
  .card .photo .card-carousel-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card .photo .card-carousel-track { scroll-behavior: auto; }
}
/* pkg11 specials-180 start */
/* Desktop specials cards use the same 180px photo height as community cards
   (phase165 set 145px). Phones/tablets keep their existing heights. */
@media (min-width: 901px) {
  #specials .card .photo { height: 180px !important; }
}
/* pkg11 specials-180 end */
