.item-gallery {
    position: relative;
}

.item-gallery-main {
    position: relative;
    background: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.item-gallery-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.item-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.item-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.item-gallery-nav.prev { left: 12px; }
.item-gallery-nav.next { right: 12px; }

.item-gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.item-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-gallery-thumb {
    width: 88px;
    height: 88px;
    border: 2px solid transparent;
    border-radius: 0.35rem;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #fff;
}

.item-gallery-thumb.active {
    border-color: #0d6efd;
}

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

.item-gallery-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

@media (max-width: 768px) {
    .item-gallery-main img {
        height: 300px;
    }
}