/*
Theme Name: Gillion Child
Theme URI: https://gillion.shufflehound.com/
Description: Thème enfant de Gillion pour seniors.digiplace.fr
Author: Digiplace
Template: gillion
Version: 1.0.3
Text Domain: gillion-child
*/

/* Compatibilité shortcodes StyleMag (page d'accueil) */
.grid-list-content .shortcode-share-wrapper { display: none; }
.grid-list-content .content-image img { width: 100%; height: auto; display: block; }
.grid-list-content { margin-bottom: 40px; }

/* Shortcodes StyleMag : séparer la date des catégories par un tiret */
.shortcode-date .post-categories-link + .content-date {
	position: relative;
	margin-left: 23px;
}
.shortcode-date .post-categories-link + .content-date:before {
	content: "";
	position: absolute;
	top: 50%;
	left: -16px;
	width: 7px;
	height: 1px;
	background: #979797;
}




/* ===== Bloc "À la une" : READ MORE (lien rouge) puis auteur en dessous ===== */
.featured-left-list-first .content-elements {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* READ MORE : simple lien, majuscules, rouge */
.featured-left-list-first .shortcode-read-more {
  order: 1;
  margin: 12px 0 20px;
}

.featured-left-list-first .shortcode-read-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  color: #b3202a;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: color .2s;
}

.featured-left-list-first .shortcode-read-more a:hover {
  color: #7d1219;
}

/* Auteur : photo à gauche, nom à droite, sous le READ MORE */
.featured-left-list-first .shortcode-author-view {
  order: 2;
  display: flex;
  align-items: center;
  margin: 0;
}

.featured-left-list-first .shortcode-author-view img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.featured-left-list-first .shortcode-author-view .shortcode-author {
  margin-left: .35em;
}

/* ===== Slider galerie pleine largeur (style prod) ===== */
.stylemag-image-full {
  position: relative;
  min-height: 760px;
}

/* dégradé sombre en bas pour la lisibilité du titre */
.stylemag-image-full::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 1;
}

/* Miniatures : petites, décalées, par-dessus l'image */
.stylemag-image-full .post-type-gallery-list {
  position: absolute;
  top: 35px;
  left: 52px;
  width: 138px;
  height: auto;
  z-index: 2;
}
.stylemag-image-full .post-type-gallery-element {
  position: relative;
  width: 138px;
  height: 120px;
  margin: 0 0 17px;
  overflow: hidden;
}
.stylemag-image-full .post-type-gallery-element img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tuile rouge "+10" */
.stylemag-image-full .gallery-cover-color {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  background: rgba(189, 8, 28, .6);
}
.stylemag-image-full .gallery-cover-color a {
  /* Lien étendu à toute la tuile (comme en prod/stylemag) */
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

/* Barre "VIEW GALLERY" */
.stylemag-image-full .post-type-gallery-list > a {
  display: block;
  width: 138px;
  margin-top: -17px;
  padding: 9px 0;
  text-align: center;
  background: #be192d;
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stylemag-image-full .post-type-gallery-list > a:hover {
  background: #8f1222;
}

/* Titre : centré en bas, sur l'image */
.stylemag-image-full .image-background-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 2;
}
.stylemag-image-full .image-background-wrap h1 {
  max-width: 760px;
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  white-space: normal;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* Mobile */
@media (max-width: 767px) {
  .stylemag-image-full { min-height: 480px; }
  .stylemag-image-full .post-type-gallery-list { left: 15px; top: 15px; }
  .stylemag-image-full .image-background-wrap { bottom: 20px; padding: 0 15px; }
  .stylemag-image-full .image-background-wrap h1 { font-size: 22px; }
}