/* ============================================
   Horizon Product Gallery Carousel
   Mobile-first, responsive design
   ============================================ */

:root {
  --hgc-primary: #2ec4b6;
  --hgc-bg: #ffffff;
  --hgc-swiper-bg: #f1f1f1ef;
  --hgc-shadow: rgba(0, 0, 0, 0.12);
  --hgc-nav-bg: rgba(255, 255, 255, 0.95);
  --hgc-nav-hover: #2ec4b6;
  --hgc-arrow-btn-size: 42px;
  --hgc-arrow-icon-size: 22px;
  --hgc-arrow-stroke: 2.2;
  --hgc-dot-size: 10px;
  --hgc-dot-active: #2ec4b6;
  --hgc-border-radius: 16px;
  --hgc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wrapper */
.horizon-gallery-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto 0;
  background: var(--hgc-bg);
  border-radius: var(--hgc-border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--hgc-shadow);
}

/* Main Carousel Container */
.horizon-gallery-carousel {
  position: relative;
  width: 100%;
  background: var(--hgc-swiper-bg);
}

.horizon-gallery-carousel .swiper-wrapper {
  align-items: center;
}

/* Slides */
.horizon-gallery-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hgc-swiper-bg);
  aspect-ratio: 1 / 1;
  max-height: 600px;
}

/* Image Wrapper */
.horizon-gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Images */
.horizon-gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.swiper-slide-active .horizon-gallery-image {
  transform: scale(1.02);
}

/* Captions */
.horizon-gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.swiper-slide-active .horizon-gallery-caption {
  opacity: 1;
}

/* ============================================
   Navigation Arrows
   ============================================ */

.horizon-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--hgc-arrow-btn-size);
  height: var(--hgc-arrow-btn-size);
  background: var(--hgc-nav-bg);
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--hgc-transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  opacity: 0; /* Hidden by default, show on hover */
}

.horizon-gallery-wrapper:hover .horizon-gallery-nav {
  opacity: 1;
}

.horizon-gallery-nav:hover {
  background: var(--hgc-nav-hover);
  border-color: var(--hgc-nav-hover);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(46, 196, 182, 0.4);
}

.horizon-gallery-nav.is-disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.horizon-gallery-nav svg {
  width: var(--hgc-arrow-icon-size);
  height: var(--hgc-arrow-icon-size);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.horizon-gallery-nav svg path {
  stroke-width: var(--hgc-arrow-stroke);
}

.horizon-gallery-prev {
  left: 16px;
}

.horizon-gallery-next {
  right: 16px;
}

/* Always show arrows on touch devices */
@media (hover: none) and (pointer: coarse) {
  .horizon-gallery-nav {
    opacity: 1;
    width: 44px;
    height: 44px;
  }
  
  .horizon-gallery-prev {
    left: 10px;
  }
  
  .horizon-gallery-next {
    right: 10px;
  }
}

/* ============================================
   Pagination Dots
   ============================================ */

.horizon-gallery-pagination {
  position: relative;
  bottom: 0;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: var(--hgc-swiper-bg);
}

.horizon-gallery-dot {
  width: var(--hgc-dot-size);
  height: var(--hgc-dot-size);
  background: #bdbfc2;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
}

.horizon-gallery-dot:hover {
  background: #b0b2b6;
}

.horizon-gallery-dot.is-active {
  background: #36bdb4;
  box-shadow: 0 0 0 6px rgba(188, 229, 224, 0.95);
}

/* Dynamic bullet style for many images */
.horizon-gallery-dot.swiper-pagination-bullet-active-main {
  background: #36bdb4;
  box-shadow: 0 0 0 6px rgba(188, 229, 224, 0.95);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet */
@media (min-width: 768px) {
  .horizon-gallery-wrapper {
    border-radius: 24px;
    margin-bottom: 0;
  }

  .horizon-gallery-carousel .swiper-slide {
    max-height: 700px;
    aspect-ratio: 4 / 3;
  }

  .horizon-gallery-image-wrapper {
    padding: 40px;
  }

  .horizon-gallery-nav {
    width: 56px;
    height: 56px;
  }

  .horizon-gallery-prev {
    left: 24px;
  }

  .horizon-gallery-next {
    right: 24px;
  }

  .horizon-gallery-pagination {
    padding: 24px 0;
    gap: 10px;
  }

  :root {
    --hgc-dot-size: 12px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .horizon-gallery-wrapper {
    max-width: 900px;
    border-radius: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  }

  .horizon-gallery-carousel .swiper-slide {
    max-height: 800px;
    aspect-ratio: 16 / 10;
  }

  .horizon-gallery-image-wrapper {
    padding: 60px;
  }

  .horizon-gallery-nav {
    width: 64px;
    height: 64px;
    opacity: 0;
  }

  .horizon-gallery-wrapper:hover .horizon-gallery-nav {
    opacity: 1;
  }

  .horizon-gallery-prev {
    left: 32px;
  }

  .horizon-gallery-next {
    right: 32px;
  }

  .horizon-gallery-nav svg {
    width: 28px;
    height: 28px;
  }

  /* Larger dots on desktop */
  :root {
    --hgc-dot-size: 14px;
  }

  .horizon-gallery-pagination {
    padding: 28px 0;
    gap: 12px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .horizon-gallery-wrapper {
    max-width: 1000px;
  }

  .horizon-gallery-carousel .swiper-slide {
    max-height: 900px;
  }
}

/* ============================================
   Mobile Optimizations
   ============================================ */

@media (max-width: 767px) {
  .horizon-gallery-carousel .swiper-slide {
    aspect-ratio: 1 / 1;
    max-height: 500px;
  }

  .horizon-gallery-image-wrapper {
    padding: 16px;
  }

  /* Swipe hint animation */
  .horizon-gallery-carousel::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translateY(-50%) translateX(0);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    animation: swipeHint 3s ease-in-out 1s 2;
  }

  @keyframes swipeHint {
    0%, 100% { opacity: 0; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(-10px); }
  }

  /* Hide hint after interaction */
  .horizon-gallery-wrapper.swiper-initialized::after {
    display: none;
  }
}

/* ============================================
   Loading State
   ============================================ */

.horizon-gallery-wrapper:not([data-initialized]) {
  min-height: 400px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.horizon-gallery-wrapper[data-initialized] {
  animation: none;
  background: var(--hgc-bg);
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .horizon-gallery-carousel,
  .horizon-gallery-image,
  .horizon-gallery-nav,
  .horizon-gallery-dot {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus styles for keyboard navigation */
.horizon-gallery-nav:focus-visible,
.horizon-gallery-dot:focus-visible {
  outline: 3px solid var(--hgc-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .horizon-gallery-nav {
    border-width: 3px;
  }
  
  .horizon-gallery-dot {
    border: 2px solid currentColor;
  }
}

/* ============================================
   Brizy Builder Compatibility
   ============================================ */

/* Ensure proper rendering in Brizy editor */
.brizy-editor .horizon-gallery-wrapper {
  pointer-events: none; /* Prevent interaction in editor */
}

.brizy-editor .horizon-gallery-carousel {
  min-height: 300px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brizy-editor .horizon-gallery-carousel::before {
  content: 'Gallery Carousel Preview';
  color: #999;
  font-family: sans-serif;
  font-size: 14px;
}

/* Keep arrows visible in Brizy preview; hide only dots */
.brizy-editor .horizon-gallery-nav {
  display: flex !important;
  opacity: 1 !important;
}

.brizy-editor .horizon-gallery-pagination {
  display: none !important;
}

/* ============================================
   Fixed Height Override (User Requested)
   ============================================ */
.horizon-gallery-carousel .swiper-slide {
  height: 530px !important;
  min-height: 530px !important;
  max-height: 530px !important;
  aspect-ratio: auto !important;
  box-sizing: border-box;
}

.horizon-gallery-image-wrapper {
  height: 100%;
}

/* Improve image fill inside the fixed-height frame */
.horizon-gallery-carousel .horizon-gallery-image-wrapper {
  padding: 10px !important;
}

.horizon-gallery-carousel .horizon-gallery-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Bottom controls: left arrow, center dots, right arrow */
.horizon-gallery-pagination {
  padding: 16px 92px !important;
  min-height: 84px;
  box-sizing: border-box;
  background: var(--hgc-swiper-bg) !important;
}

.horizon-gallery-nav {
  top: auto;
  bottom: 24px;
  transform: none;
  opacity: 1;
  width: calc(var(--hgc-arrow-btn-size) + 6px);
  height: calc(var(--hgc-arrow-btn-size) + 6px);
  z-index: 12;
  border-width: 1px;
}

.horizon-gallery-nav:hover {
  transform: scale(1.08);
}

.horizon-gallery-nav svg {
  width: var(--hgc-arrow-icon-size);
  height: var(--hgc-arrow-icon-size);
}

.horizon-gallery-prev {
  left: 28px;
}

.horizon-gallery-next {
  right: 28px;
}

/* Safety override: never fully hide arrow buttons */
.horizon-gallery-wrapper .horizon-gallery-nav {
  opacity: 1;
  visibility: visible;
  color: #222;
}

/* Swiper may apply lock class when slides are limited */
.horizon-gallery-wrapper .horizon-gallery-nav.swiper-button-lock {
  display: flex !important;
  opacity: 0.35 !important;
  pointer-events: none;
}

/* Force chevron icon rendering independent of SVG/theme overrides */
.horizon-gallery-wrapper .horizon-gallery-nav {
  color: #1f2937 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.horizon-gallery-wrapper .horizon-gallery-nav:hover {
  color: #ffffff !important;
}

.horizon-gallery-wrapper .horizon-gallery-nav svg {
  display: none !important;
}

.horizon-gallery-wrapper .horizon-gallery-nav::before {
  content: '';
  display: block;
  width: calc(var(--hgc-arrow-icon-size) * 0.55);
  height: calc(var(--hgc-arrow-icon-size) * 0.55);
  border-top: calc(var(--hgc-arrow-stroke) * 1px) solid currentColor;
  border-right: calc(var(--hgc-arrow-stroke) * 1px) solid currentColor;
  box-sizing: border-box;
}

.horizon-gallery-wrapper .horizon-gallery-prev::before {
  transform: rotate(-135deg);
}

.horizon-gallery-wrapper .horizon-gallery-next::before {
  transform: rotate(45deg);
}

/* ============================================
   Image Frame Fit (Reference Style)
   ============================================ */
.horizon-gallery-carousel {
  background: var(--hgc-swiper-bg) !important;
}

.horizon-gallery-carousel .swiper-slide {
  background: transparent !important;
  border-radius: 36px;
  padding: 22px;
  box-sizing: border-box;
}

.horizon-gallery-carousel .horizon-gallery-image-wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  box-sizing: border-box;
}

.horizon-gallery-carousel .horizon-gallery-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 32px;
}

@media (max-width: 767px) {
  .horizon-gallery-carousel .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 28px;
    padding: 16px;
  }

  .horizon-gallery-carousel .horizon-gallery-image-wrapper {
    border-radius: 0;
    padding: 0 !important;
  }

  .horizon-gallery-carousel .horizon-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.horizon-gallery-wrapper {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14) !important;
}

/* ============================================
   Product-Specific Color Selector Mode
   ============================================ */
.horizon-gallery-wrapper.is-color-gallery .horizon-gallery-pagination {
  gap: 0 !important;
}

.horizon-gallery-wrapper.is-color-gallery .horizon-gallery-dot {
  display: none !important;
}

.horizon-gallery-color-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(-7px);
}

.horizon-gallery-color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background: var(--hgc-color, #cccccc);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.horizon-gallery-color-swatch:hover {
  transform: scale(1.08);
}

.horizon-gallery-color-swatch.is-active {
  transform: scale(1.06);
  border-color: #36bdb4;
  box-shadow: 0 0 0 5px rgba(188, 229, 224, 0.95);
}

.horizon-gallery-color-swatch.is-white {
  border-color: rgba(0, 0, 0, 0.55);
}

.horizon-gallery-color-swatch.is-empty,
.horizon-gallery-color-swatch:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.horizon-gallery-color-swatch:focus-visible {
  outline: 3px solid #36bdb4;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .horizon-gallery-color-row {
    gap: 6px;
    flex-wrap: nowrap;
    transform: translateY(-2px);
  }

  .horizon-gallery-color-swatch {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1 / 1;
    flex: 0 0 32px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    padding: 0 !important;
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-pagination {
    position: relative;
    padding: 0 20px 14px !important;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0 !important;
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-pagination::before {
    content: '~ Swipe ~';
    display: block;
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #5f6672;
    transform: translateY(-8px);
    margin-bottom: 12px;
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-color-row {
    transform: translateY(4px);
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-nav {
    display: none !important;
  }

  /* Mobile: keep arrows on screen edges for all gallery modes */
  .horizon-gallery-wrapper .horizon-gallery-prev {
    left: calc(env(safe-area-inset-left, 0px) + 2px) !important;
  }

  .horizon-gallery-wrapper .horizon-gallery-next {
    right: calc(env(safe-area-inset-right, 0px) + 2px) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-pagination {
    position: relative;
    padding: 0 24px 16px !important;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0 !important;
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-pagination::before {
    content: '~ Swipe ~';
    display: block;
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #5f6672;
    transform: translateY(-6px);
    margin-bottom: 12px;
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-color-row {
    gap: 8px;
    flex-wrap: nowrap;
    transform: translateY(4px);
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-color-swatch {
    -webkit-appearance: none;
    appearance: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    aspect-ratio: 1 / 1;
    flex: 0 0 36px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    padding: 0 !important;
    border-radius: 50%;
  }

  .horizon-gallery-wrapper.is-color-gallery .horizon-gallery-nav {
    display: none !important;
  }
}

/* ============================================
   Frame Removal (Image-Only View)
   ============================================ */
.horizon-gallery-wrapper {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.horizon-gallery-carousel,
.horizon-gallery-pagination {
  background: transparent !important;
}

.horizon-gallery-carousel .swiper-slide {
  border-radius: 0 !important;
  padding: 0 !important;
}

.horizon-gallery-carousel .horizon-gallery-image {
  border-radius: 22px !important;
}

/* ============================================
   Non-Color Products: Thumbnail Strip
   ============================================ */
.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-pagination,
.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-nav {
  display: none !important;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs {
  display: block !important;
  margin-top: 22px;
  padding: 0 46px 8px;
  position: relative;
  overflow: hidden;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-slide {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #ffffff;
  cursor: pointer;
  opacity: 0.85;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-slide:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-slide.is-active {
  border-color: #36bdb4;
  opacity: 1;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .hgc-thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #d7dde3;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  padding: 0;
  box-sizing: border-box;
  z-index: 2;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .hgc-thumbs-prev {
  left: 6px;
}

.horizon-gallery-wrapper:not(.is-color-gallery) .hgc-thumbs-next {
  right: 6px;
}

@media (max-width: 767px) {
  .horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs {
    margin-top: 16px;
    padding: 0 36px 6px;
  }

  .horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-wrapper {
    gap: 8px;
  }

  .horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs .swiper-slide {
    width: 62px;
    height: 62px;
    border-radius: 10px;
  }

  .horizon-gallery-wrapper:not(.is-color-gallery) .hgc-thumbs-nav {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    aspect-ratio: 1 / 1;
    font-size: 16px;
    padding: 0;
  }
}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  body.single-product .horizon-gallery-wrapper {
    position: relative !important;
    transform: translateY(-60px) !important;
    margin-bottom: -60px !important;
  }
}

@media (min-width: 768px) and (max-width: 1194px) and (orientation: landscape) and (min-height: 501px) and (hover: none) and (pointer: coarse) {
  body.single-product .horizon-gallery-wrapper:not(.is-color-gallery) .horizon-gallery-thumbs {
    margin-top: -38px !important;
  }
}
