/* Index page overrides - extends gear-common.css with rack, portfolio, layout */

.card {
  margin: 0 0 10px 0 !important;
  border-radius: 12px !important;
}

@media (max-width: 480px) {
  .card {
    margin: 0 0 6px 0 !important;
  }
}

.popover h3 {
  margin: 0 0 0.25em 0;
}

.rack-wing {
  background-color: var(--coffee-bean);
  width: 225px;
}

.rack-unit {
  background-color: #1a0700;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 0px;
}

@media (max-width: 767px) {
  .left-gear {
    margin-bottom: 10px;
  }
  .scrolling-column {
    max-height: none !important;
  }
  #gearContainer {
    max-height: 60vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1199px) {
  .rack-wing {
    width: 240px !important;
    margin: 0 auto;
  }
  .rack-unit {
    margin: 0 auto !important;
    width: 260px;
    padding-left: 10px;
    padding-right: 10px;
  }
  #zzracks {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: 10px;
  }
  #zzracks > .col-md-3 {
    flex: 0 0 260px;
    max-width: 260px;
    scroll-snap-align: center;
  }
  .rack500 {
    overflow-x: auto;
  }
}

@media (min-width: 768px) {
  .scrolling-column {
    max-height: 515px !important;
  }
  .left-gear {
    margin-bottom: 15px;
  }
}

@media (min-width: 1200px) {
  .rack-wing {
    width: 240px !important;
  }
  .rack-unit {
    margin-left: 25px !important;
  }
}

#subcategoriesRack {
  padding: 15px;
}

#zzracks {
  padding: 15px;
}

#zzracks::-webkit-scrollbar {
  height: 6px;
}

#zzracks::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#zzracks::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#zzracks::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.rack-wing img {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  display: block;
  max-width: 100%;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.25s ease;
}

.rack-wing img[data-toggle="popover-rack"]:hover {
  transform: scale(1.03);
  z-index: 2;
  position: relative;
  filter: grayscale(0%) brightness(1.08) !important;
  opacity: 1 !important;
}

.rack500 {
  white-space: nowrap;
  font-size: 0;
  padding-left: 12px;
  height: 66px;
  width: 100%;
  background-image: url(../gear/outboard-r10-small.png);
  display: block;
  transition: background-image 0.4s ease;
}

.rack500 img {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  display: inline;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.25s ease;
}

.rack500 img[data-toggle="popover-rack"]:hover {
  transform: scale(1.06);
  z-index: 2;
  position: relative;
  filter: grayscale(0%) brightness(1.08) !important;
  opacity: 1 !important;
}

.grayscale {
  filter: grayscale(100%);
  pointer-events: none;
}

img.outline {
  outline: 2px solid red;
  outline-offset: 5px;
}

#portfolio-more-div {
  margin-top: 15px;
}

.rack-scroll-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: none;
}

.rack-scroll-wrapper.rack-chevrons-visible {
  display: block;
}

.rack-scroll-chevron {
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rack-scroll-chevron i {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  animation: chevronPulse 2s ease-in-out infinite;
}

.rack-chevron-left {
  left: 0;
  background: linear-gradient(to right, rgba(34, 9, 1, 0.6), transparent);
  transition: opacity 0.3s ease;
}

.rack-chevron-right {
  right: 0;
  background: linear-gradient(to left, rgba(34, 9, 1, 0.6), transparent);
  transition: opacity 0.3s ease;
}

@keyframes chevronPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

#portfolioMoreModal .modal-body {
  padding: 24px 30px;
  max-height: 80vh;
  overflow-y: auto;
}

#portfolioMoreModal .modal-title {
  font-weight: 700;
  text-transform: uppercase;
}

iframe {
  border: 0;
}
