/* On garantit que la navbar reste au-dessus */
.navbar {
  z-index: 1050;
}

html, body {
  overflow-x: hidden;
}

/* L'album ne doit jamais passer au-dessus */
#album-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  background: #000;
  min-height: 100vh;
  padding-top: 100px; /* hauteur navbar desktop */
}

.swiper-button-next, .swiper-button-prev {
    color : #fff !important;
}


/* ==============================
   COLONNE GAUCHE
============================== */

.album-left {
  flex: 1;
  background: #000;
  min-width: 0;
  display: flex;
  padding-top: 0px !important;
}

.main-swiper {
  width: 100%;
  height: calc(100vh - 74px);
}

.main-swiper .swiper-wrapper {
  height: 100%;
}

.main-swiper .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

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

.main-swiper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}





/* ==============================
   COLONNE DROITE
============================== */

.album-right {
  width: 360px;
  min-width: 360px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
}

.album-right #header {
  padding: 2em;
  border-bottom: 1px solid #eee;
  text-align: right;
}

.thumb-swiper {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding: 10px;
}

.thumb-item img {
  width: 100%;
  cursor: pointer;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 980px) {

  #album-wrapper {
    flex-direction: column;
  }

  .album-right {
    width: 100%;
    min-width: 0;
    height: auto;
    order: -1; /* passe au-dessus */
  }

  .thumb-swiper {
    display: none; /* cache la grille */
  }
  .message_album{
      display:none; 
  }

  .album-left {
    width: 100%;
  }

  .main-swiper {
    height: calc(100vh - 74px);
  }

}