/* === PAGE ARTWORK - Mosaïque 3 catégories === */

.wp-block-columns {
  gap: 12px !important;
}

.wp-block-columns:has(.is-vertically-aligned-center) {
  justify-content: center !important;
  display: flex !important;
}

.wp-block-column[style*="flex-basis:400px"] {
  margin: 0 auto !important;
  flex-grow: 0 !important;
}

.wp-block-column {
  position: relative;
  overflow: hidden;
}

.wp-block-column .wp-block-image {
  position: relative;
  overflow: hidden;
}

.wp-block-column .wp-block-image figure,
.wp-block-column figure.wp-block-image {
  margin: 0 !important;
  overflow: hidden;
}

.wp-block-column > .wp-block-paragraph {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1c1b1a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  opacity: 0 !important;
  transform: translateY(100%) !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.wp-block-column:hover > .wp-block-paragraph {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.wp-block-column .wp-block-image img {
  transition: transform 0.4s ease, opacity 0.3s ease !important;
  display: block !important;
}

.wp-block-column:hover .wp-block-image img {
  transform: scale(1.08) !important;
  opacity: 0.9 !important;
}

.wp-block-column .wp-block-image a {
  display: block;
  position: relative;
  z-index: 5;
}

/* === GALERIE JETPACK 3 COLONNES === */
/* UNIQUEMENT sur les pages portfolio (3D, grands-formats, etc.) */

.single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
.tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
.post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

.single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__row,
.tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__row,
.post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__row,
body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__row {
  display: contents !important;
}

.single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__col,
.tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__col,
.post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__col,
body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__col {
  display: contents !important;
  flex-basis: auto !important;
}

.single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__item,
.tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__item,
.post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__item,
body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__item {
  aspect-ratio: 1 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden;
}

.single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__item img,
.tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__item img,
.post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__item img,
body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__item:hover img,
.tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__item:hover img,
.post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__item:hover img,
body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__item:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

@media (max-width: 900px) {
  .single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
  .tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
  .post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
  body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .single-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
  .tax-jetpack-portfolio-type .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
  .post-type-archive-jetpack-portfolio .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery,
  body[class*="portfolio"] .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery {
    grid-template-columns: 1fr !important;
  }
}
/* Masquer le footer WordPress */
.site-info,
.footer-credits,
.powered-by,
footer.site-footer,
#colophon,
.footer-widgets,
.theme-info,
.site-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}
