* {
  box-sizing: border-box;
}
body {
  background-color: #e9e9e9;
  font-family: Helvetica;
  margin: 0;
}

.home .ct-content-container {
  max-width: unset;
}

.ct-content-container {
  padding: 25px 5%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.grid-articles {
  padding: 40px 20px;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: minmax(100px, auto);
  gap: 30px;
}

.grid-articles .grid-articles {
  padding: 0;
}

.home .grid-articles {
  padding-top: 0;
}

.grid-articles article {
  cursor: pointer;
}

.wp-block-column .wp-block-image {
  margin: 0 15px;
}

.img-lightbox {
  cursor: pointer;
}

/******* Extension Lightbox ********/

#panel-lightbox {
  overflow: hidden;
  align-items: center;
  justify-content: center;
  display: flex;
}

#panel-lightbox figure,
#dialog-lightbox figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

#panel-lightbox figure img,
#dialog-lightbox figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

#panel-lightbox figcaption,
#dialog-lightbox figcaption {
  position: absolute;
  bottom: 0px;
  width: 100%;
  padding: 20px 10%;
  background-color: rgba(0, 0, 0, 60%);
  text-align: center;
  color: white;
  font-family: "Noto Sans";
  font-style: italic;
}

/******* Extension Panel ********/

.panel {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s ease-in-out;
}

.panel.panel-visible {
  visibility: visible;
  opacity: 1;
}

.panel-fullscreen {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.panel-dark {
  background-color: rgba(18, 21, 25, 0.98);
}

.panel-close-btn {
  position: absolute;
  top: 30px;
  right: 25px;
  border: none;
  background-color: transparent;
  color: #c0c0c0;
  transition: all 0.25s ease-in-out;
  line-height: 0;
  cursor: pointer;
}
.panel-close-btn:hover {
  transform: rotate(180deg) scale(1.2);
}

.grid-end {
  display: grid;
  justify-items: end;
}

.video-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}

.video-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

h2.jubile {
  /* background-image: url('../../../uploads/2024/08/logo-jubile-2025-fr.png');
  background-size: 100px;
  background-repeat: no-repeat;
  background-position-x: 8px;
  padding-left: 120px;
  min-height: 100px; */
  position: relative;
  margin-top: 50px;
}
h2.jubile:before {
  content: "";
  display: block;
  position: absolute;
  background-image: url("../../../uploads/2024/08/logo-jubile-2025-fr.png");
  background-size: 100px;
  background-repeat: no-repeat;
  height: 100px;
  width: 100px;
  margin-top: -140px;
  left: calc(50% - 50px);
  box-shadow: 0 10px 10px #888;
  border-radius: 50%;
  border: 3px solid white;
}

/****** Images gallery ******/

.wp-block-gallery {
  margin: 1em;
}

/****** Map Full screen *****/
#full-width-map-container iframe {
  /* Mettez à jour la hauteur de 600px fournie par le widget */
  height: calc(100vh - 77px) !important;
  /* 100vh = 100% de la hauteur de la fenêtre du navigateur
       60px  = Hauteur exacte de votre bandeau de menu.
       Le !important peut être nécessaire pour outrepasser le 'height: 600px' du widget.
    */
  width: 100vw !important; /* Pour prendre toute la largeur */
  display: block;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 900px) and (min-width: 601px) {
  .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    margin: 0;
    width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2) !important;
  }
}
@media screen and (max-width: 600px) {
  .wp-block-gallery {
    margin: 1em 0;
  }
  .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    margin: 0;
    width: 100% !important;
  }
}
