/* Photo Lightbox Styles */
.photo-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-lightbox-overlay.show {
    display: flex;
    opacity: 1;
}

.photo-lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: photoZoomIn 0.3s ease;
}

@keyframes photoZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.photo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.photo-lightbox-prev,
.photo-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.photo-lightbox-prev {
    left: 30px;
}

.photo-lightbox-next {
    right: 30px;
}

.photo-lightbox-caption {
    color: white;
    margin-top: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 80%;
}

.photo-lightbox-counter {
    display: inline-block;
    margin-left: 16px;
    opacity: 0.8;
    font-size: 16px;
    font-weight: 400;
}

/* Mobilní responsive */
@media (max-width: 768px) {
    .photo-lightbox-prev,
    .photo-lightbox-next {
        width: 48px;
        height: 48px;
    }

    .photo-lightbox-close {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
    }

    .photo-lightbox-prev {
        left: 10px;
    }

    .photo-lightbox-next {
        right: 10px;
    }

    .photo-lightbox-caption {
        font-size: 14px;
        padding: 8px 16px;
        margin-top: 16px;
    }

    .photo-lightbox-counter {
        font-size: 13px;
        margin-left: 8px;
    }

    .photo-lightbox-image {
        max-height: calc(100vh - 100px);
    }
}

/* Touch gestures hint */
@media (hover: none) and (pointer: coarse) {
    .photo-lightbox-prev svg,
    .photo-lightbox-next svg {
        opacity: 0.6;
    }
}

/* Animace pro navigační tlačítka */
.photo-lightbox-prev svg,
.photo-lightbox-next svg {
    transition: transform 0.2s ease;
}

.photo-lightbox-prev:active svg {
    transform: translateX(-4px);
}

.photo-lightbox-next:active svg {
    transform: translateX(4px);
}

/* Loader při načítání obrázku */
.photo-lightbox-image {
    background: rgba(255, 255, 255, 0.1);
}

.photo-lightbox-image:not([src]) {
    min-height: 400px;
    min-width: 400px;
}
