/* Decor Detail Page Styles */
.main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #f8f9fa;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e67e22;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.image-loader.show {
    opacity: 1;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.thumbnail-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail-item.active {
    border-color: #e67e22;
    transform: scale(1.05);
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #e67e22;
}

.thumbnail-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 126, 34, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Project Meta */
.project-meta {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e67e22;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

/* Project Details */
.project-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Project Navigation */
.project-navigation {
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-image {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-image-container {
        min-height: 300px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .thumbnail-image {
        height: 80px;
    }

    .project-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-navigation .btn {
        width: 100%;
    }

    .project-meta .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        min-height: 250px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .thumbnail-image {
        height: 70px;
    }

    .project-details {
        padding: 1.5rem;
    }
}

/* Zoom Mode Styles */
.zoom-mode {
    overflow: hidden;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1040;
    cursor: zoom-out;
}

.main-image.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1050;
    max-width: 90vw;
    max-height: 90vh;
    cursor: zoom-out;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Smooth transitions for zoom */
.main-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.zoom-overlay {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}