.pg-641a4e28-gallery-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.pg-641a4e28-gallery-container.pos-bottom {
    flex-direction: column;
}

.pg-641a4e28-gallery-container.pos-left {
    flex-direction: row-reverse;
}

.pg-641a4e28-gallery-container.pos-right {
    flex-direction: row;
}

/* Main Image Wrapper styling */
.pg-641a4e28-main-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-641a4e28-image-overflow {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-641a4e28-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    --zoom-factor: 1.5;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
}

/* Sale Badge styling */
.pg-641a4e28-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff3366;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none; /* ensures no overlay hover interception */
}

/* Zoom features on Hover */
.pg-641a4e28-main-wrapper.has-zoom:hover .pg-641a4e28-main-image {
    transform: scale(var(--zoom-factor));
    cursor: zoom-in;
}

/* Premium Lightbox pointer */
.pg-641a4e28-main-wrapper.has-lightbox {
    cursor: pointer;
}

/* Thumbnail Container settings */
.pg-641a4e28-thumbnails-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-content: flex-start;
}

.pos-bottom .pg-641a4e28-thumbnails-list {
    flex-direction: row;
    width: 100%;
}

.pos-left .pg-641a4e28-thumbnails-list,
.pos-right .pg-641a4e28-thumbnails-list {
    flex-direction: column;
    width: 110px;
    flex-shrink: 0;
}

/* Thumbnail specific styling */
.pg-641a4e28-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.pos-bottom .pg-641a4e28-thumb {
    width: 80px;
}

.pos-left .pg-641a4e28-thumb,
.pos-right .pg-641a4e28-thumb {
    width: 100%;
}

.pg-641a4e28-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pg-641a4e28-thumb:hover img {
    transform: scale(1.08);
}

.pg-641a4e28-thumb.active {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Ultra-premium custom Lightbox overlay styling */
.pg-641a4e28-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    touch-action: none;
}

.pg-641a4e28-lightbox-overlay.active {
    opacity: 1;
}

.pg-641a4e28-lightbox-content {
    max-width: 85%;
    max-height: 85%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pg-641a4e28-lightbox-overlay.active .pg-641a4e28-lightbox-content {
    transform: scale(1);
}

.pg-641a4e28-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 1rem;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pg-641a4e28-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 1000000;
}

.pg-641a4e28-lightbox-close:hover {
    color: #ff3366;
    transform: rotate(90deg);
}

/* Navigation Arrows inside Lightbox */
.pg-641a4e28-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;\n    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    user-select: none;
    z-index: 1000000;
}

.pg-641a4e28-lightbox-arrow:hover {
    background-color: #ffffff;
    color: #111111;
}

.pg-641a4e28-lightbox-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.pg-641a4e28-lightbox-arrow-left {
    left: -70px;
}

.pg-641a4e28-lightbox-arrow-right {
    right: -70px;
}

/* Lightbox indicators / counter */
.pg-641a4e28-lightbox-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive configurations */
@media (max-width: 1024px) {
    .pg-641a4e28-lightbox-arrow-left {
        left: 10px;
    }
    .pg-641a4e28-lightbox-arrow-right {
        right: 10px;
    }
    .pg-641a4e28-lightbox-arrow {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 1024px), (pointer: coarse) {
    .pg-641a4e28-lightbox-arrow {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pg-641a4e28-gallery-container {
        flex-direction: column !important;
    }
    .pg-641a4e28-thumbnails-list {
        flex-direction: row !important;
        width: 100% !important;
    }
    .pg-641a4e28-thumb {
        width: 70px !important;
    }
    .pg-641a4e28-lightbox-content {
        max-width: 95%;
    }
}
