.orbis-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Cinzel', serif;
}

.orbis-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: linear-gradient(135deg,
        rgba(26, 20, 16, 0.78) 0%,
        rgba(45, 34, 26, 0.78) 100%
    );
    backdrop-filter: blur(8px);
}

.orbis-lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
}

.orbis-lightbox__topbar {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.orbis-lightbox__tool {
    width: 46px;
    height: 46px;
    border: 1px solid var(--hytale-brown-light, #6b5444);
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.92) 0%, rgba(42, 34, 24, 0.92) 100%);
    color: var(--hytale-gold-light, #f0d679);
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.orbis-lightbox__tool:hover {
    background: linear-gradient(180deg, rgba(74, 55, 40, 0.95) 0%, rgba(45, 34, 26, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
}

.orbis-lightbox__image-container {
    width: min(1100px, 92vw);
    max-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(10px, 2vw, 20px);
    
    background: linear-gradient(180deg,
        rgba(26, 20, 16, 0.75) 0%,
        rgba(42, 34, 24, 0.75) 100%
    );
    border: 1px solid var(--hytale-brown-light, #6b5444);
    border-radius: 12px;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(212, 175, 55, 0.16),
        inset 0 0 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.orbis-lightbox__image-container.is-zoomed {
    overflow: auto;
}


.orbis-lightbox__image-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 10px;
    pointer-events: none;
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.orbis-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 220px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(107, 84, 68, 0.55);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px rgba(212, 175, 55, 0.08);
    transform-origin: center center;
    transition: transform 0.15s ease;
}

.orbis-lightbox__image.is-actual {
    max-width: none;
    max-height: none;
}

.orbis-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 1px solid var(--hytale-brown-light, #6b5444);
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.92) 0%, rgba(42, 34, 24, 0.92) 100%);
    color: var(--hytale-gold-light, #f0d679);
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.orbis-lightbox__close:hover {
    background: linear-gradient(180deg, rgba(74, 55, 40, 0.95) 0%, rgba(45, 34, 26, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.45);
    transform: rotate(90deg);
}

.orbis-lightbox__prev,
.orbis-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 1px solid var(--hytale-brown-light, #6b5444);
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.92) 0%, rgba(42, 34, 24, 0.92) 100%);
    color: var(--hytale-gold-light, #f0d679);
    font-size: 30px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.orbis-lightbox__prev {
    left: 20px;
}

.orbis-lightbox__next {
    right: 20px;
}

.orbis-lightbox__prev:hover,
.orbis-lightbox__next:hover {
    background: linear-gradient(180deg, rgba(74, 55, 40, 0.95) 0%, rgba(45, 34, 26, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-50%) scale(1.1);
}

.orbis-lightbox__counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hytale-gold-light, #f0d679);
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.92) 0%, rgba(42, 34, 24, 0.92) 100%);
    padding: 12px 28px;
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    z-index: 10001;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(212, 175, 55, 0.10);
}


@media (max-width: 768px) {
    .orbis-lightbox__topbar {
        top: 10px;
        left: 10px;
    }

    .orbis-lightbox__tool {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .orbis-lightbox__prev,
    .orbis-lightbox__next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .orbis-lightbox__prev {
        left: 10px;
    }
    
    .orbis-lightbox__next {
        right: 10px;
    }
    
    .orbis-lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .orbis-lightbox__counter {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }
}