.sitcod-woogallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.sitcod-woogallery-main {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: crosshair;
    /* More intuitive for zoom */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.sitcod-woogallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

/* Loading State */
.sitcod-woogallery-main.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: sitcod-spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 5;
}

@keyframes sitcod-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Navigation Arrows */
.sitcod-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #333;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
    /* Hidden by default */
}

.sitcod-woogallery-main:hover .sitcod-nav-btn {
    opacity: 1;
}

.sitcod-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.sitcod-nav-btn.prev {
    left: 10px;
}

.sitcod-nav-btn.next {
    right: 10px;
}

.sitcod-woogallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
}

.sitcod-woogallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.sitcod-woogallery-thumbs::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.sitcod-thumb-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
    box-sizing: border-box;
}

.sitcod-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sitcod-thumb-item:hover {
    opacity: 0.8;
}

.sitcod-thumb-item.active {
    border-color: #333;
    /* Primary color */
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (min-width: 768px) {
    /* Side thumbnails on larger screens if desired, keeping bottom for now as it's safer standard */
}