/* PROJECT TITLE */

.single-project main {
  padding: 0;
}

.single-project h1 {
  font-size: 1.5em;
  text-align: center;
  padding: 40px 0;
}

/* PROJECT DETAILS */

.project-details {
  border: 1px solid rgba(7, 7, 7, 0.1);
}

.project-details div {
  flex: 1;
  border-right: 1px solid rgba(7, 7, 7, 0.1);
}

.project-details div:nth-child(1) {
  text-align: left;
  padding: 20px;
}

.project-details div:nth-child(2) {
  text-align: center;
  padding: 20px;
}

.project-details div:nth-child(3) {
  text-align: right;
  padding: 20px;
}

.project-details div:last-child {
  border-right: none;
}

.p-client a {
  text-decoration: none;
  color: #000;
  font-family: "avenir_heavy";
}

.team-member-item a {
  font-family: "avenir_heavy";
  color: #000;
  text-decoration: none;
}

/* PROJECT GALLERY */

/* Single Project Masonry Grid */

.gallery-grid {
  padding: 20px 0;
  column-count: 2;
  column-gap: 20px;
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Transition en fondu pour PhotoSwipe */
.pswp__zoom-wrap {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.pswp__zoom-wrap.active-slide {
  opacity: 1;
}

/* Ajuster la taille du contenu HTML dans PhotoSwipe */
.pswp__container {
  overflow: visible;
}

.pswp__item {
  overflow: visible;
}

/* PROJECT VIDEOS */

.swiper-container,
.swiper-videos {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.swiper-wrapper {
  height: 70dvh;
}

@media (max-width: 768px) {
  .swiper-wrapper {
    height: 40dvh;
  }
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.swiper-slide img {
  width: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #000;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  background-color: #000;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* PROJECT NAVIGATION */

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 600px;
}

.project-navigation .nav-prev,
.project-navigation .nav-next {
  /* width: 49%; */
  padding: 20px;
  flex: 1;
}

.project-navigation .nav-prev img,
.project-navigation .nav-next img {
  width: 100%;
  height: auto;
  display: block;
}

.project-navigation a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.project-navigation .nav-prev a {
  align-items: flex-start;
}

.project-navigation .nav-next a {
  align-items: flex-end;
}

.project-navigation h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #fff;
}

.project-navigation p {
  margin: 5px 0 0;
  font-size: 16px;
  color: #fff;
}

.single-project .project-navigation .pswp__button--arrow--left {
  display: block;
  position: relative !important;
  top: unset;
  left: unset;
  margin-top: unset;
  width: 32px !important;
  height: 30px !important;
}

.single-project .project-navigation .pswp__button--arrow--left:before,
.single-project .project-navigation .pswp__button--arrow--right:before {
  top: unset !important;
  left: unset !important;
}

@media (max-width: 1064px) {
  .project-navigation {
    /* flex-direction: column; */
    flex-direction: row;
    gap: unset;
  }
  .project-navigation .nav-prev,
  .project-navigation .nav-next {
    width: 100%;
    margin-bottom: 20px;
    font-size: 12px;
  }
  .project-navigation h3,
  .project-navigation p {
    font-size: 12px;
  }
}

/* Styles pour les vidéos dans PhotoSwipe */

.pswp__video {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.pswp__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 1064px) {
  .project-details {
    font-size: 12px;
  }
  .project-description {
    padding: 10px;
  }
  .project-description p {
    font-size: 12px;
    margin: 0;
  }
  .project-details div {
    padding: 10px !important;
  }
  .project-team {
    font-size: 12px;
  }
  .project-team li.team-member-item {
    padding: 10px;
  }
}

@media (max-width: 1064px) {
  .single-project main {
    padding: 100px 0 0;
  }
  .single-project h1 {
    padding: 20px 0;
  }
}

div#o_message {
  display: block;
  position: fixed;
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #fff;
  padding: 1em 2em;
  text-align: center;
}

div#o_message a {
  color: #000;
}

@media (max-width: 767px) {
  div#o_message {
    min-width: 90%;
    max-width: 90%;
  }
}
