/* *********GENERAL STYLING******** */
/* ******************************** */
::-webkit-scrollbar {
  height: 0;
}

section {
  width: calc(var(--mobile-unit-width) * 13);
  transform: translateX(var(--mobile-unit-width));
  margin-top: 3.5rem;
}

.article-img {
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

.article {
  font-size: 1.5em;
}

.detail-boxes * {
  animation: toTop 0.8s linear;
}

.word-img {
  width: 100%;
  height: 100%;
  margin-bottom: 1rem;
}

.next-detail-box,
.next-detail-box *,
.img-composition,
.img-composition * {
  animation-delay: 1s;
}

/* *********TYPOGRAPHY********* */
.article-title {
  /* font-size: 0.7em; */
  color: var(--mid-gray);
  letter-spacing: 1px;
  margin-bottom: 1em;
}

.article-title::before {
  content: "";
  width: calc(var(--mobile-unit-width) * 12);
  display: block;
  height: 0.8px;
  background-color: green;
  margin-top: 1em;
  margin-bottom: 1em;
}

.article-title-desc {
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--mid-gray);
  margin-bottom: 0.7em;
}

.article-desc {
  font-size: 1.5em;
  color: var(--mid-gray);
  margin-bottom: 5rem;
}

h3 {
  letter-spacing: 1px;
}

/* *****LAYOUT******* */
.article-img {
  height: 25vh;
  background-color: green;
  margin-bottom: 0.7em;
}

.article-desc {
  width: calc(var(--mobile-unit-width) * 12);
}

.large-img {
  width: calc(var(--mobile-unit-width) * 9);
  height: calc(var(--mobile-unit-width) * 9);
  background-color: green;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

.img-composition {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
}

.small-imgs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mb-5 {
  margin-bottom: 40px
}

.small-img {
  width: calc(var(--mobile-unit-width) * 3.8);
  height: calc(var(--mobile-unit-width) * 9 / 2.037);
  background-color: green;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

.next-detail-slider .right,
.next-detail-slider .left {
  width: 30px;
  opacity: 0.6;
  /* position: absolute; */
  z-index: 10;
}

.detail-boxes {
  margin-bottom: 5rem;
}

/* new-detail */
.next-detail-list {
  display: flex;
  overflow: hidden;
}

.next-detail-box {
  /* overflow: hidden; */
  width: calc(var(--mobile-unit-width) * 12);
}

.next-detail-desc {
  position: relative;
  /* margin-bottom: 5.5rem; */
}

.next-detail-desc p {
  margin-bottom: 1rem;
}

.next-detail-title {
  width: calc(var(--mobile-unit-width) * 12);
  margin-bottom: 1rem;
}

.next-detail-list {
  height: 100%;
  width: 100%;
  /* overflow: hidden; */
}

.next-detail-slide {
  /* width: 100%; */
  transition: transform 0.3s;
  padding: 10px;
}

.next-detail-img-wrapper {
  /*
    background-repeat: no-repeat !important;
  background-size: 100% 100% !important;*/
  height: 100%;
  width: 93%;
  background-color: var(--img-yellow);
  /* margin-bottom: 0.3rem; */
}

.next-detail-slider-arrows .right,
.next-detail-slider-arrows .left {
  position: absolute;
  bottom: calc(calc((35vh + 0.3rem) / 2.5));
  transform: translate(0, 50%);
}

.next-detail-slider-arrows .right {
  right: 10px;
}

.next-detail-slider-arrows .left {
  left: 10px;
  transform: translate(0, 50%) rotate(180deg);
}

@media screen and (min-width: 300px) {
  .next-detail-list {
    background-color: yellow;
  }
}

@media screen and (min-width: 800px) {

  /* *****GENERAL STYLING ********** */
  /* ******************************** */
  section {
    width: calc(var(--desktop-unit-width) * 32);
    transform: translateX(calc(var(--desktop-unit-width) * 11));
    position: relative;
  }

  .section-title {
    right: calc(var(--desktop-unit-width) * 35);
  }

  .next-detail-box {
    margin-bottom: 0;
  }

  .next-detail-list {
    width: calc(var(--desktop-unit-width) * 40);
    position: relative;
    right: calc(var(--desktop-unit-width) * 9);
    background-color: yellow;
    overflow: scroll;
  }

  .next-detail-slide p,
  .next-detail-list .next-detail-title,
  .next-detail-img-wrapper {
    width: calc(var(--desktop-unit-width) * 40);
    position: relative;
    right: calc(var(--desktop-unit-width) * -9);
    top: 3rem;
  }

  .next-detail-img-wrapper {
    width: calc(var(--desktop-unit-width) * 29);
  }

  .next-detail-box {
    width: calc(var(--desktop-unit-width) * 32);
  }

  /* Typography */
  .next-detail-slide .section-title {
    /* right: calc(var(--desktop-unit-width) * 35); */
    right: initial;
    margin-bottom: 0;
    background-color: var(--light-gray);
    color: yellow;
    border: none;
    letter-spacing: 2px;
  }

  .article-title-desc {
    font-size: 1.4rem;
    color: var(--mid-gray);
    margin-bottom: 0.7em;
  }

  .article {
    margin-top: 5rem;
    position: relative;
  }

  .article-show-desc {
    position: absolute;
    width: 10vw;
    top: 0;
    right: calc(var(--desktop-unit-width) * 35);
  }

  .article-title {
    font-size: 1.2rem;
  }

  .article-title::before {
    width: 100%;
    margin-top: 0;
  }

  .article-desc {
    width: calc(var(--desktop-unit-width) * 22);
    margin-bottom: 5rem;
  }

  .article-img {
    height: 100vh;
    width: 100%;
    /*    width: calc(var(--desktop-unit-width) * 30);*/
    background-color: green;
    margin-bottom: 5rem;
  }

  .img-composition {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
    /* background-color: #fff; */
    width: calc(var(--desktop-unit-width) * 30);
  }

  .large-img {
    width: calc(var(--desktop-unit-width) * 21);
    height: calc(var(--desktop-unit-width) * 21);
    background-color: green;
  }

  .small-imgs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .small-img {
    width: calc(var(--desktop-unit-width) * 8.65);
    height: calc(var(--desktop-unit-width) * 21 / 2.037);
    background-color: green;
  }

  .next-detail-img-wrapper {
    height: 100%;
  }

  .next-detail-slider-arrows .right,
  .next-detail-slider-arrows .left {
    top: 0;
  }

  .next-detail-slider-arrows .right {
    right: calc(var(--desktop-unit-width) * 4);
  }

  .next-detail-slider-arrows .left {
    left: initial;
    right: calc(var(--desktop-unit-width) * 5);
    top: 20px;
    transform: translate(0, 50%) rotate(180deg);
  }
}

/* Back Button */
.back-button {
  background-color: var(--bold-gray);
  right: calc(var(--desktop-unit-width) * 41);
  padding: 0.3rem;
}

/* Ensure the image takes full width and height */
.mfp-img {
  /* max-width: 100% !important;
  max-height: 100% !important; */
  padding: 25px 0px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* Ensure modal container is fullscreen */
.mfp-container {
  width: 100vw !important;
  height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  /* Dark overlay */
}

/* General styling for navigation buttons */
.mfp-arrow {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  font-size: 30px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

/* Positioning arrows */
.mfp-arrow-left {
  left: 20px;
}

.mfp-arrow-right {
  right: 20px;
}

/* Close Button Hover Effect */
.mfp-close:hover {
  background: darkred !important;
}

.mfp-arrow-left {
  background: url('../imgs/arrow.svg') no-repeat center center;
  width: 40px;
  height: 40px;
  transform: rotate(180deg);
}

.mfp-arrow-right {
  background: url('../imgs/arrow.svg') no-repeat center center;
  width: 40px;
  height: 40px;
}

.custom-close-icon {
  background: url('../imgs/close.svg') no-repeat center center;
  background-size: contain;
  width: 30px;
  height: 30px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 1;
}
