/* examples page customized layout */
.examples-page {
  background-color: #F4F1EA;
  color: #1B1B18;
  overflow-x: hidden;
}

/* Header details */

.examples-header {
  min-height: 260px;
  background-image:
    url("imgs/exampleshp3.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.examples-title {
  font-family: "Newsreader", serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 86px;
  letter-spacing: 1px;
  margin-left: 54px;
  margin-top: 45px;
}

/* Carousel */

.examples-main {
  background-color: #FFFFFF;
}

.archive-carousel {
  position: relative;
  background-color: #F4F1EA;
  min-height: 610px;
  padding-top: 55px;
  overflow: hidden;
  border-top: 28px solid #F4F1EA;
  border-bottom: 28px solid #F4F1EA;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 500px;
}

.archive-slide {
  position: absolute;
  top: 0;
  width: 430px;
  height: 500px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  transition:
    left 0.45s ease,
    right 0.45s ease,
    transform 0.45s ease,
    opacity 0.45s ease,
    filter 0.45s ease,
    z-index 0.45s ease;
}

.archive-slide:focus {
    outline: none;
}

.archive-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Carousel slide positions */

.archive-slide.position-far-left {
  left: -90px;
  transform: scale(0.94);
  opacity: 0.15;
  filter: grayscale(15%);
  z-index: 1;
}

.archive-slide.position-left {
  left: 180px;
  transform: scale(0.96);
  opacity: 0.45;
  filter: grayscale(10%);
  z-index: 3;
}

.archive-slide.position-center {
  left: 50%;
  transform: translateX(-50%) scale(1.04);
  opacity: 1;
  filter: none;
  z-index: 5;
}

.archive-slide.position-right {
  right: 180px;
  transform: scale(0.96);
  opacity: 0.45;
  filter: grayscale(10%);
  z-index: 3;
}

.archive-slide.position-far-right {
  right: -90px;
  transform: scale(0.94);
  opacity: 0.15;
  filter: grayscale(15%);
  z-index: 1;
}

.archive-slide.position-hidden {
    display: none;
}

/* Vinyl and sound carousel slider */

.vinyl-control-section {
  position: relative;
  min-height: 180px;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sound-wave {
  position: absolute;
  /* moves wave upward to align with vinyl center */
  top: -35px; 
  left: 0;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  z-index: 1;
}

.wave-bar {
  width: 5px;
  height: 32px;
  background-color: #1B1B18;
  border-radius: 999px;
  transform-origin: center;
  transition: height 0.12s ease;
}

.sound-wave.is-playing .wave-bar {
  animation: waveBounce 0.35s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.02s);
}

@keyframes waveBounce {
  from {
    height: 18px;
  }

  to {
    height: var(--bar-height);
  }
}

.vinyl-controller {
  position: relative;
  z-index: 5;
  margin-top: -110px;
  width: 260px;
  height: 260px;
}

.vinyl-controller img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Rotating the vinyl to left or right */
.vinyl-controller.spin-right img {
  animation: spinRight 0.6s ease;
}

.vinyl-controller.spin-left img {
  animation: spinLeft 0.6s ease;
}

@keyframes spinRight {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spinLeft {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Invisible hit box for binyl */
.vinyl-hit {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}

.vinyl-hit-left {
  left: 0;
}

.vinyl-hit-right {
  right: 0;
}

/* Custom audio control buttons */
.audio-controls {
  position: absolute;
  top: 105px;
  display: flex;
  gap: 80px;
  z-index: 6;
}

.audio-btn {
  border: none;
  background: none;
  cursor: hand;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.audio-btn img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.audio-btn:hover {
  transform: scale(1.08);
}

.audio-btn.active {
  opacity: 1;
}

/* Making full screen popup modal when an outfit image is clicked */

.archive-modal {
  position: fixed;
  inset: 0;
  z-index: 999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;
}

.archive-modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(142, 138, 130, 0.72);
  backdrop-filter: blur(7px);
}

.archive-modal-content {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  border: none;
}

.modal-main-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Close button for modal*/

.close-archive-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 20;
  border: none;
  background: none;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  cursor: hand;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.close-archive-modal:hover {
  color: var(--red);
}

.date-ticket {
  position: absolute;
  top: 6px;
  left: calc(50% + 120px);
  z-index: 10;
  width: 200px;
  height: 140px;
  background-image: url("imgs/stamp.png");
  background-size: 115% auto;
  background-repeat: no-repeat;
  background-position: center;
  color: #FFFFFF;
  font-family: "Newsreader", serif;
  font-size: 27px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  transform: none;
  pointer-events: none;
}

#dateTicket {
  display: inline-block;
  font-size: 23px;
  letter-spacing: 1px;
  transform: rotate(10deg) translateX(-14px);
  white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .archive-slide.position-left,
  .archive-slide.position-right,
  .archive-slide.position-far-left,
  .archive-slide.position-far-right {
    opacity: 0.15;
  }

  .examples-title {
    font-size: 52px;
    margin-left: 50px;
    margin-top: 20px;
  }
  .archive-slide {
    width: 270px;
    height: 380px;
  }

  .archive-carousel {
    min-height: 470px;
  }

  .carousel-track {
    height: 380px;
  }

  .date-ticket {
    display: none;
  }

  .audio-controls {
    gap: 45px;
  }

  .audio-btn {
    font-size: 36px;
  }

  .archive-modal-content {
    overflow-y: auto;
    height: 92vh;
  }

  .modal-main-image {
    height: auto;
  }
}

/* Tablet Responsiveness */
@media (min-width: 601px) and (max-width: 1100px) {
  .examples-title {
    font-size: 70px;
    margin-left: 50px;
  }

  .archive-slide {
    width: 330px;
    height: 430px;
  }

  .archive-carousel {
    min-height: 530px;
  }

  .carousel-track {
    height: 430px;
  }

  .vinyl-controller {
    width: 165px;
    height: 165px;
  }
}

