/* =========================
   LAYOUT GLOBAL
========================= */

.snetty-annonce-slider {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    align-items: start;
    overflow: hidden;
}

/* =========================
   SLIDER PRINCIPAL
========================= */

.snetty-main-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.snetty-main-slider .swiper,
.snetty-main-slider .swiper-wrapper,
.snetty-main-slider .swiper-slide {
    height: 100%;
}

.snetty-main-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sécurisation Swiper */
.snetty-annonce-slider .swiper {
    width: 100%;
    overflow: hidden;
}

.snetty-annonce-slider .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
}

/* =========================
   BOUTONS PREV / NEXT
========================= */

.swiper-button-prev,
.swiper-button-next {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    color: #000;
}

/* =========================
   COLONNE MINIATURES
========================= */

.snetty-thumbs {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Miniature */
.snetty-thumb {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.snetty-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay "Plus de photos" */
.snetty-thumb.has-more .snetty-more-photos {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
	color: var(--theme-palette-color-1);
}

/* =========================
   POPUP PHOTOS
========================= */

.snetty-photo-popup {
    position: fixed;
    inset: 0;
    background: #000;
    padding: 80px 40px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

.snetty-photo-popup.open {
    display: block;
}

.snetty-photo-popup img {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    display: block;
}

/* Bouton fermeture */
.snetty-popup-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #fff;
    color: #000;
    font-size: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.snetty-more-photos i {
display: none;
}

@media (max-width: 1000px) {

	.snetty-thumbs {
		flex-direction: row;
		height:100% !important;
	}
	.snetty-main-slider {
		aspect-ratio : 4/3; 
	}

	.snetty-annonce-slider {
		grid-template-columns : 1fr;
		grid-template-rows : 1fr 100px;
	}
	
}


@media (max-width: 690px) {

.snetty-more-photos i {
	display: flex;
	font-size:32px;
}
	.snetty-more-photos span {
		display:none;
	}
	
}
