/* Shared card wrapping both the main image and the thumbnails into one block
   (border/background match the "Detail Description" box below it, see
   resources/views/front/post/show/partials/details.blade.php's
   ".tab-content.border.bg-body") */
.gallery-container {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: 6px;
	padding-top: 1rem;
}

/* .p-price-tag's "right: -10px" / "top: 10%" (public/assets/css/style.css) were tuned for
   a borderless, padding-less .gallery-container; compensate for the 1px border and the
   padding-top added above so the tag still hangs 10px past the card's outer edge and
   sits the same distance from the image's top-right corner as before. */
.gallery-container .p-price-tag {
	top: calc(10% + 1rem);
	right: -11px;
}

.swiper {
	width: 100%;
	height: 100%;
	margin-left: auto;
	margin-right: auto;
	border-radius: 6px;
}

.main-gallery {
	margin-bottom: 10px;
	--swiper-navigation-size: 40px;
	--swiper-navigation-color: #fff;
	--swiper-pagination-color: #666;
}

/* Main gallery navigation buttons (Lucide icon inside, see swiper-horizontal.blade.php) */
.main-gallery .swiper-button-prev:after,
.main-gallery .swiper-button-next:after {
	content: none;
}
.main-gallery .swiper-button-prev,
.main-gallery .swiper-button-next {
	background: rgba(0,0,0,.3);
	border-radius: 50%;
	width: var(--swiper-navigation-size);
	opacity: 0;
	-webkit-transition: all .15s ease-in-out 0s;
	-moz-transition: all .15s ease-in-out 0s;
	-o-transition: all .15s ease-in-out 0s;
	transition: all .15s ease-in-out 0s;
}
.main-gallery .swiper-button-prev {
	left: 16px;
}
.main-gallery .swiper-button-next {
	right: 16px;
}
.main-gallery:hover .swiper-button-prev,
.main-gallery:hover .swiper-button-next {
	opacity: 1;
}
.main-gallery .swiper-button-prev:hover,
.main-gallery .swiper-button-next:hover {
	background: rgba(0,0,0,.6);
}

.swiper-slide {
	text-align: center;
	font-size: 18px;
	background-color: #fff;
	
	/* Center slide text vertically */
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
	
	background-size: cover;
	background-position: center;
}

.main-gallery .swiper-slide img {
	border-radius: 6px;
	cursor: pointer;
}

.thumbs-gallery {
	height: 20%;
	box-sizing: border-box;
	padding: 10px 0;
}
.thumbs-gallery .swiper-slide {
	width: 100px;
	height: 70px;
	margin: 0 2px;
	float: none;
	outline: medium none;
	overflow: hidden;
	opacity: 0.4;
	border-bottom: 4px solid #ccc;
}
.thumbs-gallery .swiper-slide.swiper-slide-thumb-active {
	opacity: 1;
}

/* Mobile: no padding-top above the main image (space is tighter there). */
@media (max-width: 767.98px) {
	.gallery-container {
		padding-top: 0;
	}
	.gallery-container .p-price-tag {
		top: 10%;
	}
}