/* Surcharges propres au thème WordPress Espinglère */

/* ---- Galerie : grille CSS (remplace Masonry) ---- */
.espinglere-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0 1rem;
}

.espinglere-gallery .mbr-gallery-item {
  position: static;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.espinglere-gallery .mbr-gallery-item > a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 4 / 3;
}

.espinglere-gallery .mbr-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.espinglere-gallery .mbr-gallery-item > a:hover img,
.espinglere-gallery .mbr-gallery-item > a:focus img {
  transform: scale(1.05);
}

.espinglere-gallery .icon-focus {
  display: none;
}

/* ---- Pages standard (index.php) : dégagement sous le menu fixe ---- */
.espinglere-page {
  padding-top: 9rem;
  padding-bottom: 4rem;
}

.espinglere-page img {
  max-width: 100%;
  height: auto;
}

/* ---- Photo JJH : ancien essai (classe jjh-photo, non utilisée) ---- */
/*
.jjh-photo {
    position: relative;
    display: inline-block;
    margin: 20px;
}
.jjh-photo img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    outline: 1px solid #3d2620;
    outline-offset: 14px;
}
*/

/* ---- Photo JJH : cadre collé à la photo (classe item-img) ---- */
.cid-t7kAOaOVxA .right,
.cid-t7kAOaOVxA .right * {
    border: 0 !important;
    box-shadow: none !important;
}
.cid-t7kAOaOVxA .right::before,
.cid-t7kAOaOVxA .right::after,
.cid-t7kAOaOVxA .right *::before,
.cid-t7kAOaOVxA .right *::after {
    content: none !important;
    display: none !important;
}
.cid-t7kAOaOVxA .item-img {
    position: relative !important;
    display: inline-block !important;
    margin: 20px !important;
    padding: 0 !important;
}
.cid-t7kAOaOVxA .item-img img {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    outline: 1px solid #3d2620 !important;
    outline-offset: 10px !important;
}