/* Layout Styles
======================================= */
.hn-main-container {
  padding: 0;
}

.apple-hero img {
    width: 100%;
}

.apple-menu {
  display: flex;
  justify-content: center;
  margin: 32px 0 8px 0;
}

.apple-menu-items {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.apple-menu-item {
  scroll-snap-align: start;
  padding: 16px;
}

.apple-menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #000000;
  transition: scale 200ms ease;
  min-width: 48px;
  flex: 1;
}
.apple-menu-item img {
  width: 72px;
  transition: scale 200ms ease-in-out;
}

.apple-menu-item span {
  max-width: 100px;
  line-height: 1.4;
  text-align: center;
}

.apple-menu-item {
  opacity: 0;
  transform: translateY(12px);
  animation: appleMenuItemFade 800ms ease forwards;
}

.apple-menu-item span {
    opacity: 0;
    transform: translateY(12px);
    animation: appleMenuItemFade 800ms ease forwards;
    color: rgba(0,0,0,.6);
    font-weight: 600;
    transition: color 300ms ease;
}

.apple-menu-item:hover img {
    scale: 1.04;
}

.apple-menu-item:hover span {
    color: rgba(0,0,0,.9);
}

.apple-menu-item:nth-child(1) { animation-delay: .08s; }
.apple-menu-item:nth-child(2) { animation-delay: .16s; }
.apple-menu-item:nth-child(3) { animation-delay: .24s; }
.apple-menu-item:nth-child(4) { animation-delay: .32s; }
.apple-menu-item:nth-child(5) { animation-delay: .40s; }
.apple-menu-item:nth-child(6) { animation-delay: .48s; }
.apple-menu-item:nth-child(7) { animation-delay: .56s; }
.apple-menu-item:nth-child(8) { animation-delay: .64s; }
.apple-menu-item:nth-child(9) { animation-delay: .70s; }

.apple-menu-item:nth-child(1) span { animation-delay: .16s; }
.apple-menu-item:nth-child(2) span { animation-delay: .24s; }
.apple-menu-item:nth-child(3) span { animation-delay: .32s; }
.apple-menu-item:nth-child(4) span { animation-delay: .40s; }
.apple-menu-item:nth-child(5) span { animation-delay: .48s; }
.apple-menu-item:nth-child(6) span { animation-delay: .56s; }
.apple-menu-item:nth-child(7) span { animation-delay: .64s; }
.apple-menu-item:nth-child(8) span { animation-delay: .70s; }


@keyframes appleMenuItemFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframe fadeInImage {
  from {
    opacity 0;
    transform: translateY(12px);
  }
  to {
    opacity 1;
    transform: translateY(0);
  }
}


/* Grid */
.apple-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
  
}

.apple-grid-item {
  background: #f5f5f7;
  padding: 64px 16px 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  
}

.apple-grid-item:hover img {
  scale: 1.03;
}

.apple-collection-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.apple-grid-item h2 {
  font-size: 36px;
}

.apple-collection-img {
  transition: scale 300ms ease-in-out;
  height: 300px;
  min-width: 400px;
  aspect-ratio: 4/3;
  opacity: 0;
  animation: appleMenuItemFade 800ms ease forwards;
  animation-delay: .30s;
}

.apple-collection-iphone {
  padding-bottom: 0px;
  grid-column: 1 / 3;
}

.apple-accessories {
  grid-column: 1/3;
}

.apple-show-now {
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 6px;
}

.apple-accessories-items {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  gap: 48px;
}

.apple-accessories-items li {
  flex: 1;
}

/* Font Styles
======================================= */

/* Media Queries
======================================= */
@media (max-width: 990px) {
    .apple-menu {
        margin: 8px 0;
    }

  .apple-collection-grid {
    grid-template-columns: 1fr;
  }

  .apple-collection-iphone,
  .apple-accessories {
    grid-column: auto;
  }
}
