:root {
	--default-radius: 10px;
}
.side-gallery-wrapper {
	display: flex;
	flex-direction: row-reverse; /* Remove to align to the right */
	gap: 10px;
}
.side-gallery-wrapper .swiper-slide {
	text-align: center;
	font-size: 18px;
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: start;
	border-radius: var(--default-radius);
	overflow:hidden;
}

.side-gallery-wrapper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	opacity: 0;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	transform: scale3d(1, 1.2, 1);
	border-radius: var(--default-radius);
	object-fit: cover;
	object-position: center;
}
.side-gallery-wrapper .swiper-button-next::after,
.side-gallery-wrapper .swiper-button-prev::after {
	font-size:24px;
}
.side-gallery-wrapper .swiper-slide-active img {
	transform: scale3d(1, 1, 1);
}
.side-gallery-wrapper .swiper-slide img.active {
	opacity: 1;
}
.side-gallery-wrapper .swiper-slide {
	background-size: cover;
	background-position: center;
}
.side-gallery-wrapper .gallery-main {
	height: 100%;
	width: 80%;
	position: relative;
	border-radius: var(--default-radius);
	overflow: hidden;
}
.side-gallery-wrapper .swiper-wrapper {}
.side-gallery-wrapper .gallery-thumbs {
	width: 20%;
	box-sizing: border-box;
	max-height:590px;
}
.side-gallery-wrapper .gallery-thumbs .swiper-slide {
	opacity: 0.5;
}
.side-gallery-wrapper .gallery-thumbs .swiper-slide:hover {
	opacity: 1;
}
.side-gallery-wrapper .gallery-thumbs .swiper-slide img {
	transform: scale3d(1, 1, 1);
	cursor: pointer;
}
.side-gallery-wrapper .gallery-thumbs .swiper-slide-thumb-active {
	opacity: 1;
}

.side-gallery-wrapper .gallery-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #fff;
    color: #000;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    font-size: 24px;
    line-height: 1; 
    font-family: "Inter", sans-serif;
    padding: 0;
    overflow: hidden;
}
.side-gallery-wrapper .gallery-zoom:hover {
    transform: scale(1.1);
    background-color: #000;
    color: #fff;
}
.fancybox__footer {
    display: none;
}
/* Skeleton loader styles */
.side-gallery-wrapper .skeleton-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.2) 75%);
    background-size: 200% 100%;
    border-radius: var(--default-radius);
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
@media screen and (min-width:769px) and (max-width:1072px) {
	.side-gallery-wrapper {
		flex-direction:column;
		flex-wrap:nowrap;
		max-height:inherit;
		gap:14px;
	}
	.side-gallery-wrapper .gallery-main {
		width:100%;
	}
	.side-gallery-wrapper .gallery-thumbs {
		width:100%;
		max-height:none;
		overflow:hidden;
	}
	.side-gallery-wrapper .gallery-thumbs .swiper-slide {
		aspect-ratio:1 / 1;
		height:auto;
		max-width:96px;
	}
}
@media screen and (max-width:768px) {
	.side-gallery-wrapper { flex-wrap:wrap; max-height:inherit;}
	.side-gallery-wrapper .gallery-main { width:100%;}
	.side-gallery-wrapper .gallery-thumbs { width:100%;}
}
