/* 
Theme Name: Opengraphy
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* Forcer le margin des p */
.margin-p .elementor-widget-container p, .margin-p .elementor-widget-container ul {
    margin-bottom: 1.5rem !important;
}

/* Forcer la taille des thumbnails à 400x350 */
.square-thumbs .jet-listing-dynamic-image img {
    width: 400px;
    height: 350px;
    object-fit: cover;
    object-position: top;
}

/* Forcer la taille des thumbnails à 270x330 sur la home */
.listing-thumb-home img {
    width: 500px !important;
    height: 330px;
    object-fit: cover;
    object-position: top;
}

/* Afficher le titre des listings sur une seule ligne */
.nowrap-title {
	max-width: 400px;
	white-space: nowrap;
    overflow: hidden;
}

/* Afficher "..." si le texte sort de la case */
.nowrap-title .jet-listing-dynamic-field__content {
	text-overflow: ellipsis;
	overflow: hidden;
}

.nowrap-title:hover {
	white-space: normal
}

.nowrap-artist-name {
	max-width: 400px;
	white-space: nowrap;
    overflow: hidden;
}

.nowrap-artist-name .jet-listing-dynamic-field__content {
	text-overflow: ellipsis;
	overflow: hidden;
}

/*
Hero des archives Œuvres / Artistes / Collection (FR + NL) :
le titre et le sous-titre étaient séparés par un espaceur de 0px qui forçait le retour à la ligne.
Elementor 4 ne rend plus cet espaceur, on empile donc les widgets explicitement.
*/
.elementor-element-3437c31 > .elementor-widget-wrap,
.elementor-element-4932690 > .elementor-widget-wrap,
.elementor-element-43fc9a4 > .elementor-widget-wrap {
      flex-direction: column;
      align-items: center;
      row-gap: 20px;
}

/*
Carrousels JetEngine (Swiper depuis JetEngine 3.x) : l'espacement vertical réglé sur le listing
n'est plus appliqué aux slides, qui retombent sur le padding par défaut de 10px.
On rétablit les valeurs configurées (0 pour l'accueil et la fiche œuvre, 30px pour l'archive dossier).
*/
.elementor-element-3cb773e .swiper-wrapper > .jet-listing-grid__item,
.elementor-element-3862e2b .swiper-wrapper > .jet-listing-grid__item,
.elementor-element-e909972 .swiper-wrapper > .jet-listing-grid__item,
.elementor-element-c68f24b .swiper-wrapper > .jet-listing-grid__item,
.elementor-element-dbbeb0a .swiper-wrapper > .jet-listing-grid__item,
.elementor-element-220662d .swiper-wrapper > .jet-listing-grid__item {
      padding-top: 0;
      padding-bottom: 0;
}
.elementor-element-3abbe68 .swiper-wrapper > .jet-listing-grid__item {
      padding-top: 15px;
      padding-bottom: 15px;
}

/* Media queries pour le repeater collection (ne fonctionnait pas via Elementor) */
@media (max-width: 767px) {
	.collection-section {
		margin-bottom: 2rem !important;
	}
	.collection-col-g .elementor-widget-container {
		margin: 0 !important;
		width: 100%;		
	}
	.elementor-1710 .elementor-element.elementor-element-37f8e0d {
		width: 100% !important;
		max-width: 100% !important;
	}
	.collection-col-g {
		margin-bottom: 1rem;
	}
	.collection-col-d .elementor-widget-container {
		margin: 0 !important;
		width: 100%;
	}
	.collection-nav .elementor-post-navigation__link__next {
		display: none !important;
	}
	.collection-nav .elementor-post-navigation__link__prev {
		display: none !important;
	}
}


