/* Banner slider styles */
.banner-sec {
  width: 100%;
}

.slider {
  position: relative;
  overflow: hidden;
  /* height: 500px; */
}

.slides {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  background-color: var(--primary-black);
  /*
  background-image: url("/assets/images/banners/Auction-banner-14.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: relative;
  display: flex;
  align-items: end;
  padding: 2rem; */
  > a {
    flex: 0 0 100%;

    > img {
      width: 100%;
      height: auto;
      object-fit: cover;
      object-position: center;
    }
  }
}

/* .slide::before {
  content: "";
  position: absolute;
  inset: 0;
} */

/* .slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 1rem;
  color: var(--primary-white);
  background-color: var(--grey-see-through);

  display: flex;
  flex-direction: column;
}

.slide-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.slide-content p {
  margin-bottom: 1rem;
  color: var(--primary-white);
  opacity: 0.95;
} */

.arrow-div {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.arrow {
  background-color: var(--grey-see-through);
  position: absolute;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.25rem;
  > img {
    width: 1.5rem;
    height: auto;
  }
}

.arrow.prev {
  right: 4rem;
  transform: rotate(180deg);
}

.arrow.next {
  right: 1rem;
}

/* marketing section */

.marketing-sec {
  background-image: url("/assets/images/bg-pattern-light.png");
  background-color: var(--primary-black);
  background-size: cover;
}

.marketing-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 7.5rem;

  > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;
  }
}

.auth-img {
  height: 2rem;
}

/* latest auctions section */
.latest-auctions-sec {
  background-color: var(--primary-black);
  padding: 7.5rem;
}

.auctions {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.auctions-desc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 2.5rem;

  grid-column: span 2;
}

.auction-card {
  padding: 1rem;
  color: var(--light-grey);
  height: 16rem;
}

/* Prevent long, unbreakable content from forcing the grid to overflow */
.auction-card,
.card-contents,
.card-contents > div {
  min-width: 0;
  box-sizing: border-box;
}

.lot-1 {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 79.33%),
    url("/assets/images/lots/Russia-Sealed-Package-of-100-Uncirculated-Banknotes-1937.jpg")
      center/cover;
}

.lot-2 {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 79.33%),
    url("/assets/images/custom/Russian-Empire-12-Roubles-1832 year-SPB-PCGS.png")
      center/cover;
}

.lot-3 {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 79.33%),
    url("/assets/images/custom/Sweden-Russian-Empire-5-Kopecks-1787-year-EM.png")
      center/cover;
}

.lot-4 {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 79.33%),
    url("/assets/images/custom/Russian-Empire-5-Kopecks-1838-year-SM-Novodel-From-the-collection-of-Count-Emeryk-Hutten-Czapski.png")
      center/cover;
}

.lot-5 {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 79.33%),
    url("/assets/images/custom/Russian-Empire-1-Rouble-1727-year-SPB.png")
      center/cover;
}

.lot-6 {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, #141414 79.33%),
    url("/assets/images/custom/Russian-Empire-1-Rouble-1907-year-\(EB\)-PF-63.png")
      center/cover;
}

.card-contents {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 6rem;
}

/* Ensure the title stays on one line and shows an ellipsis when overflowing */
.card-contents > div {
  max-width: 100%;
  overflow: hidden;
}

.card-contents > div > h4,
.auction-card h4 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0; /* keep spacing consistent */
  max-width: 100%;
  box-sizing: border-box;
}

.card-contents > .btn {
  width: 100%;
}

.date {
  font-size: 0.875rem;
}

.bids-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* highest bids section */
.highest-bids-sec {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 2rem;
  > h3 {
    white-space: nowrap;
  }
}

.bid-slider {
  max-width: 100%;
  overflow: hidden;
  display: flex;
  gap: 1rem;
}

.bid-card {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--grey-see-through);

  > img {
    height: 3rem;
  }
}

.lot-info {
  max-width: 10rem;
  overflow: hidden;

  > p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* company information section */
.company-info-sec {
  background-color: var(--dark-grey);
}

.info-row {
  width: 100%;
  height: 30rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.info-wrapper {
  padding: 2.5rem;
  max-width: 600px;
  > h3 {
    margin-bottom: 1rem;
  }
}

.left-aligned {
  /* padding-left: 5rem; */
  margin-left: auto;
}

.right-aligned {
  /* padding-right: 5rem; */
  margin-right: auto;
}

.info-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.info-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* youtube videos section */
.youtube-videos-sec {
  background-color: var(--primary-black);
  padding: 7.5rem;
}

.yt-videos-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.yt-desc-wrapper {
  grid-column: span 2;
  padding: 0 2.5rem 0 5rem;
}

.yt-desc-wrapper p {
  margin-bottom: 1rem;
}

.video-snippet-wrapper {
  width: 100%;

  > iframe {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 1000px) {
  .marketing-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-auctions-sec,
  .youtube-videos-sec {
    padding: 4rem 2rem;
  }

  .yt-desc-wrapper {
    padding: 0;
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .auctions {
    grid-template-columns: repeat(2, 1fr);
  }

  .auctions-desc {
    padding: 1rem 0;
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .card-contents {
    gap: 0.25rem;
  }

  .marketing-wrapper {
    /* grid-template-columns: 1fr; */
    padding: 2rem;
    align-items: end;
  }

  .marketing-wrapper > div {
    justify-content: center;
    text-align: center;
  }

  .auctions {
    grid-template-columns: 1fr;
  }

  .auctions-desc {
    grid-column: span 1;
  }

  .info-row {
    grid-template-columns: 1fr;
    height: auto;
    gap: 0m;
  }

  .info-wrapper {
    padding: 4rem 2rem;
  }

  .yt-videos-wrapper {
    grid-template-columns: auto;
    gap: 1.5rem;
  }

  .yt-desc-wrapper {
    grid-column: span 1;
  }
}
