/*
Theme Name: Photography
Author: Web & Médias
Description: Thème WordPress pour la photographie
Version: 1.0
*/

/* Styles CSS du thème */

@font-face {
    font-family: 'KabelLTLight';
    src: url('https://mariagecelinemanu.fr/wp-content/themes/Photography/fonts/KabelLTStd-Light.woff') format('woff'); /* Format WOFF */
    font-weight: normal;
    font-style: normal;
  }
@font-face {
    font-family: 'Hamilton';
    src: url('https://mariagecelinemanu.fr/wp-content/themes/Photography/fonts/Hamilton.ttf') format('truetype'); /* Format WOFF */
    font-weight: normal;
    font-style: normal;
  }  
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #688169;
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
  }
  
  h1, h2, h3 {
    color: #fff;
  }

  h1, h2, h3 {
    text-align: center;
    text-shadow: 2px 2px 2px black;
  }

  h1 {
    font-family: Hamilton;
    font-size : 45px;
  }
  h2 {
    font-family: kabelLTLight;
    font-size: 30px;
  }
  .h1 {
    font-family: Hamilton;
    font-size : 45px;
  }
  h3 {
    font-family: KabelLTLight;
    font-size : 17px;
  }
  p {
    font-family: KabelLTLight;
    text-align: center;
    font-size: 22px;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
  }
  a {
    color: #fff;
    text-decoration: none;
  }
  #logo {
    width: 200px;
    height: 100px;
    color: #fff;
    text-shadow: 2px 2px 2px black;
    background-image: url(https://mariagecelinemanu.fr/wp-content/themes/Photography/images/Logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 25px;
  }
    
/* Header */

header {
    background-color: #688169;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: 100px;
  }

  @media screen and (max-width: 500px){
    .logo{
      height: 70px;
      margin-left: 5px;
      width: 100px;
    }
  }

header h3 {
    margin-right: 25px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    font-size: 25px;
    text-shadow: 2px 2px 2px black;
  }

  /* menu-primary-menu-container */

  .menu-primary-menu-container {
    height: 0;
    width: 100%;
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    background-color: #688169;
    overflow: hidden;
    transition: height 0.5s ease; /* Utilisation de transition CSS pour l'animation */
    z-index: 99999;
    top: 120px;
  }
  
  .menu-primary-menu-container.active {
    height: calc(100vh - 120px); /* Hauteur complète du menu-primary-menu-container lorsque isActive est vrai */
  }
  
  .menu-primary-menu-container ul {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .menu-primary-menu-container ul li {
    list-style: none;
    font-family: KabelLTLight;
    font-size: 35px;
    line-height: 2;
    color: #fff;
    transition: 1s;
  }
  
  .menu-primary-menu-container ul li:hover {
    text-shadow: 2px 2px 2px black;
    transition: 1s;
  }
  
  .menu-primary-menu-container ul li {
    opacity: 0;
    transition: 0.25s;
  }
  
  .active ul li {
    opacity: 1;
    transition: 1s 0.5s;
  }

/* Hamburger */

.hamburger {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: 0.4s;
}

.active .bar:first-child {
  transform: rotate(45deg);
  transform-origin: left;
  margin-top: -2px;
}

.active .bar:last-child {
  transform: rotate(-45deg);
  transform-origin: left;
}

/* Index */

  .hero {
    width: 100vw;
    height: calc(100vh - 120px);
    background-color: #333;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items:flex-end;
    background-image: url(https://mariagecelinemanu.fr/wp-content/uploads/2023/10/Photos-Elvis-75.jpg);
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 120px;
    margin: 0;
    left: 0;
  }

.entry-content {
  width: 90vw;
  margin: auto;
}

/* Bas pages */

.content {
  width: 100vw;
  min-height: calc(100vh - 120px);
  margin-top: 120px;
}

/* Masonry grid */

/* Style de la galerie masonry */
#masonry {
  display: flex;
  flex-wrap: wrap;
  margin: 2em auto;
  width: 90vw!important;
  padding: 0;
}

.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* Style des éléments de la galerie */
.masonry-item {
  flex: 0 0 calc(33.33% - 20px); /* 33.33% de largeur pour 3 colonnes, avec marge de 10px */
  margin: 10px; /* Espace entre les éléments */
  position: relative;
  height: auto;
  float: left;
  width: calc((100% - 60px) / 3);
  cursor: pointer;
}

/* Style des images */
.masonry-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Styles pour le modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  text-align: center;
  align-items: center; /* Centrer verticalement */
  justify-content: center; /* Centrer horizontalement */
}

.modal-content {
  max-width: 80vw;
  max-height: 80vh;
  margin: 0 auto;
  display: block;
  position: relative;
}

/* Styles pour la croix de fermeture */
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  z-index: 2; /* Assurez-vous qu'elle soit au-dessus de l'image */
}


/* Styles pour les boutons de navigation */
.modal-navigation {
  position: absolute;
  top: 50%;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

#prevButton {
  left: 10px;
  color: white;
}

#nextButton {
  right: 10px;
  color: white;
}

.modalHeart, #modalHeart {
  position: absolute;
  left: 50%;
  font-size: 3em;
  transform: translateX(-50%);
  top: 75vh;
  text-shadow: 2px 2px 2px black;
  color: #fff;
  opacity: 0.65;
  cursor: pointer;
  transition: 1s;
}

.modalHeart:hover, #modalHeart:hover {
  opacity: 1;
}

/* Style du bouton de sélection */
.select {
  position: absolute;
  top: 10px;
  right: 10px;
  text-shadow: 2px 2px 2px black;
  color: #fff;
  opacity: 0.65;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.5em;
  transition: 1s;
}

/* Style au survol du bouton de sélection */
.select:hover {
  opacity: 1;
}

.selected {
  color: red!important;
  opacity: 1!important;
}

/* Buton */
#button-row {
  width: 80vw;
  display: flex;
  margin: auto;
    margin-bottom: auto;
  justify-content: space-between;
  margin-bottom: 2em;
}

#button-row-2 {
  width: 80vw;
  display: flex;
  margin: auto;
    margin-bottom: auto;
  justify-content: space-evenly;
  margin-bottom: 2em;
}

.button-6 {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #465947;
  cursor: pointer;
  display: inline-flex;
  font-family: KabelLTLight;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
  letter-spacing: 1px;
}

.button-6:hover,
.button-6:focus {
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 8px 12px;
  color: #688169;
}

.button-6:active {
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.06) 0 8px 12px;
  color: #688169;
  transform: translateY(0);
}

@media screen and (min-width: 769px) and (max-width: 1000px)  {
#logo {
  height: 80px;
  width: 100px;
  margin-left: 10px;
}
  header h3 {
    width: 100px;
    font-size: 17px;
    margin-right: 10px;
  }
  header {
    height: 80px;
  }
  .hero {
    top: 100px;
    height: calc(100vh - 100px);
  }
  .menu-primary-menu-container.active {
    height: calc(100vh - 100px);
  }
  .menu-primary-menu-container {
    top: 100px;
  }
}

@media screen and (max-width: 768px)  {
  .masonry-item {
    flex: 0 0 calc(50% - 20px);
    width: calc((100% - 40px) / 2);
  }
  #button-row, #button-row-2 {
    flex-direction: column;
  }
  #button-row button, #button-row-2 button {
    width: 75vw;
    margin: 0 auto 2em auto;
  }
  #button-row-2 a, #button-row a {
    width: 75vw;
    margin: 0 auto 0 auto;
  }
  #logo {
    height: 80px;
    width: 100px;
    margin-left: 10px;
  }
    header h3 {
      width: 100px;
      font-size: 17px;
      margin-right: 10px;
    }
    header {
      height: 80px;
    }
    .hero {
      top: 100px;
      height: calc(100vh - 100px);
    }
    .menu-primary-menu-container.active {
      height: calc(100vh - 100px);
    }
    .menu-primary-menu-container {
      top: 100px;
    }
    h1, h2 {
      font-size: 35px;
    }
}

#connexion-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #688169; /* Fond semi-transparent pour l'overlay */
  z-index: 99999999; /* Z-index élevé pour être au-dessus du site */
  opacity: 1; /* Opacité initiale */
  transition: opacity 1s; /* Transition d'opacité sur 1 seconde */
  /* Autres styles de positionnement et de mise en page selon vos besoins */
}

#login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

label {
  font-family: kabelLTLight;
  color: white;
  font-size: 30px;
  letter-spacing: 2px;
}

input {
  font-family: kabelLTLight;
  color: #688169;
  font-size: 20px;
  letter-spacing: 2px;
  max-width: 50%;
  margin-bottom: 1em;
}