@import url('https://fonts.googleapis.com/css2?family=Autour+One&display=swap');

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Autour One', cursive, sans-serif;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    width: 92vw;
    max-width: 1300px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    box-sizing: border-box;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, color 0.2s ease;
    font-family: Arial, sans-serif;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: #ffb400;
}

.lightbox-main-view {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 0;
    position: relative;
}

.lightbox-image-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-arrow {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 2.2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Autour One', cursive, sans-serif;
    user-select: none;
    flex-shrink: 0;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15);
    border-color: #ffffff;
}

.lightbox-thumbnails-bar {
    width: 100%;
    max-width: 900px;
    height: 95px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 5px 10px;
    box-sizing: border-box;
}

.lightbox-thumb-item {
    height: 75px;
    width: 75px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.5;
    transition: all 0.25s ease;
    background: #000000;
}

.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb-item.active {
    border-color: #ffb400;
    opacity: 1;
    transform: scale(1.08);
}

.lightbox-thumb-item:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .lightbox-thumbnails-bar {
        height: 75px;
        gap: 8px;
    }

    .lightbox-thumb-item {
        width: 55px;
        height: 55px;
    }
}