.gallery-wrap {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.simple-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.simple-slider .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 400px;
    aspect-ratio: 16 / 9;
}

.simple-slider .slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
	-webkit-user-drag: none;
}

.simple-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.simple-slider button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.simple-slider .prev {
    left: 15px;
}

.simple-slider .next {
    right: 15px;
}

/* Thumbnail styles */
.thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnails .thumbnail {
    width: 120px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	-webkit-user-drag: none;
}

.thumbnails .thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-title {
    color: white;
    font-size: 18px;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    text-align: center;
    max-width: 90%;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-close {
    top: 40px;
    right: 40px;
    font-size: 30px;
}

.lightbox-prev {
    left: 20px;
    top: 45%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
}

/* Accessibility focus styles */
.simple-slider:focus,
.thumbnails:focus,
.lightbox:focus,
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
    outline: none;
    box-shadow: none;
}

.thumbnails .thumbnail:focus {
    outline: none;
}

.thumbnails .thumbnail:not(.no-focus):focus {
/*     box-shadow: 0 0 0 2px #007bff; */
	box-shadow: 0 0 0 1px #428ecc;
}

/* Prevent selection during drag */
.thumbnails,
.thumbnails * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .simple-slider .slides {
        height: 200px;
    }

    .simple-slider button {
        padding: 8px 12px;
        font-size: 18px;
    }

    .simple-slider .prev {
        left: 5px;
    }

    .simple-slider .next {
        right: 5px;
    }

    .thumbnails .thumbnail {
        width: 80px;
        height: 60px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        padding: 8px 12px;
        font-size: 25px;
    }

    .lightbox-image {
        max-height: 70%;
    }

    .lightbox-title {
        font-size: 16px;
        padding: 8px 16px;
    }
	button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
		color: #fff !important;
	}
}

.auto-listings-Tabs-panel {
  display: none;
}
.auto-listings-Tabs-panel.active {
  display: block;
}
.tabs li.active a {
  font-weight: bold;
}

.lightbox-counter {
    top: 20px;
    font-size: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 5px;
    pointer-events: none;
}