.pg-73d16def-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.pg-73d16def-container.position-bottom {
    flex-direction: column;
}

.pg-73d16def-container.position-left {
    flex-direction: row-reverse;
}

.pg-73d16def-container.position-right {
    flex-direction: row;
}

/* Main Image Wrapper */
.pg-73d16def-main-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pg-73d16def-zoom-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
}

.pg-73d16def-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.15s ease-out;
}

/* Thumbnails General */
.pg-73d16def-thumbnails-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.pg-73d16def-thumbnails-wrapper::-webkit-scrollbar {
    display: none;
}

.pg-73d16def-thumbnails-track {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Vertical Scroll for Left & Right Thumbnail layout */
.pg-73d16def-container.position-left .pg-73d16def-thumbnails-wrapper,
.pg-73d16def-container.position-right .pg-73d16def-thumbnails-wrapper {
    width: 100px;
    height: 100%;
    max-height: 450px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.pg-73d16def-container.position-left .pg-73d16def-thumbnails-track,
.pg-73d16def-container.position-right .pg-73d16def-thumbnails-track {
    flex-direction: column;
    width: auto;
}

.pg-73d16def-container.position-left .pg-73d16def-thumb-item,
.pg-73d16def-container.position-right .pg-73d16def-thumb-item {
    width: 100%;
}

/* Bottom layout */
.pg-73d16def-container.position-bottom .pg-73d16def-thumbnails-wrapper {
    width: 100%;
}

/* Dynamic columns for bottom position */
.thumbs-cols-2 .pg-73d16def-thumb-item { width: calc(50% - 10px); }
.thumbs-cols-3 .pg-73d16def-thumb-item { width: calc(33.333% - 10px); }
.thumbs-cols-4 .pg-73d16def-thumb-item { width: calc(25% - 10px); }
.thumbs-cols-5 .pg-73d16def-thumb-item { width: calc(20% - 10px); }
.thumbs-cols-6 .pg-73d16def-thumb-item { width: calc(16.666% - 10px); }

/* Thumbnail Item Base */
.pg-73d16def-thumb-item {
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    --pg-active-color: #000000;
    --pg-active-width: 2px;
}

.pg-73d16def-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* =====================
   HOVER EFFECTS
   ===================== */

/* Opacity Fade (default) */
.pg-73d16def-hover-opacity .pg-73d16def-thumb-item:not(.active) {
    opacity: 0.6;
}
.pg-73d16def-hover-opacity .pg-73d16def-thumb-item:hover {
    opacity: 1 !important;
}

/* Scale Up */
.pg-73d16def-hover-scale .pg-73d16def-thumb-item:hover img {
    transform: scale(1.1);
}

/* Brightness */
.pg-73d16def-hover-brightness .pg-73d16def-thumb-item:not(.active) img {
    filter: brightness(0.75);
}
.pg-73d16def-hover-brightness .pg-73d16def-thumb-item:hover img {
    filter: brightness(1);
}

/* Color Overlay */
.pg-73d16def-hover-overlay .pg-73d16def-thumb-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.pg-73d16def-hover-overlay .pg-73d16def-thumb-item:not(.active)::after {
    opacity: 1;
}
.pg-73d16def-hover-overlay .pg-73d16def-thumb-item:hover::after {
    opacity: 0;
}

/* =====================
   ACTIVE INDICATORS
   ===================== */

/* Border */
.pg-73d16def-active-border .pg-73d16def-thumb-item.active {
    outline: var(--pg-active-width) solid var(--pg-active-color);
    outline-offset: -1px;
}

/* Underline */
.pg-73d16def-active-underline .pg-73d16def-thumb-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--pg-active-width);
    background-color: var(--pg-active-color);
    z-index: 2;
}

/* Glow */
.pg-73d16def-active-glow .pg-73d16def-thumb-item.active {
    box-shadow: 0 0 0 var(--pg-active-width) var(--pg-active-color);
}

/* Lightbox styles */
.pg-73d16def-lightbox {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.pg-73d16def-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.pg-73d16def-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .pg-73d16def-container.position-left,
    .pg-73d16def-container.position-right {
        flex-direction: column;
    }
    
    .pg-73d16def-container.position-left .pg-73d16def-thumbnails-wrapper,
    .pg-73d16def-container.position-right .pg-73d16def-thumbnails-wrapper {
        width: 100%;
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
    }

    .pg-73d16def-container.position-left .pg-73d16def-thumbnails-track,
    .pg-73d16def-container.position-right .pg-73d16def-thumbnails-track {
        flex-direction: row;
    }
}
