/* Additions to the original site stylesheets (southmedia-style.css and
   menuChildren.css, both carried over unchanged).

   The only thing that needed new CSS is the screenshot gallery: fotorama and
   its jQuery dependency are gone, replaced by a scroll-snap strip. The class
   name stays .fotorama so the surrounding layout rules still apply. */

.gallery {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 0;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-thumb {
  scroll-snap-align: start;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}
.gallery-thumb:hover { border-color: #e75023; }
.gallery-thumb img { max-height: 320px; width: auto; border-radius: 3px; }

.gallery-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 64px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f6f6f6;
  color: #555;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.gallery-nav:hover { background: #e75023; color: #fff; border-color: #e75023; }

/* --- lightbox --- */

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .85); }

dialog.lightbox img {
  display: block;
  margin: 0 auto;
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  border-radius: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  border-radius: 4px;
}
.lightbox-nav:hover,
.lightbox-close:hover { background: #e75023; }

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  font-size: 36px;
}
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.lightbox-close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 26px;
}

.lightbox-count {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 640px) {
  .gallery-nav { display: none; }
  .lightbox-nav { width: 36px; height: 56px; font-size: 26px; }
}

/* The mobile menu used jQuery's slideToggle; the replacement toggles [hidden],
   which needs to beat the stylesheets' display rules. */
nav.mainMenu ul[hidden] { display: none; }

/* Google Translate used to sit to the left of the search box, so the search
   reserved 90px for it. With translate gone it can use the full width. */
#___gcse_0 {
  width: 100%;
  float: none;
}

/* Store buttons on a product page: badge with its price underneath. */
.store-buttons { list-style: none; margin: 15px 0 0; padding: 0; }
.store-buttons li { display: inline-block; margin: 0 25px 10px 0; text-align: center; vertical-align: top; }
.store-buttons img { display: block; height: 53px; width: auto; }
.store-buttons .price { display: block; margin-top: 4px; font-weight: bold; }
