/* Change dialog size */
.dialog.dialog-lg {
    max-width: 1200px;
}

@media (min-width: 992px) {
    .dialog.dialog-lg {
        max-height: 600px;
    }
    
    .dialog.dialog-lg .row {
        height: 600px;
        max-height: 600px;
        overflow: hidden;
    }
    
    .dialog.dialog-lg .col-lg-5 {
        height: 100%;
        overflow-y: auto;
    }
}

/* Center image column contents in project detail dialogs */
.dialog .col-lg-7 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    min-height: 350px; /* Base height for mobile/tablet screens */
}

/* On desktop, stretch the image container height to match the text column height */
@media (min-width: 992px) {
    .dialog .col-lg-7 {
        align-items: stretch;
        min-height: auto;
    }
    
    .dialog .owl-carousel,
    .dialog .owl-carousel .owl-stage-outer,
    .dialog .owl-carousel .owl-stage {
        height: 100%;
    }
}

.dialog .owl-carousel {
    width: 100%;
}

.dialog .owl-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.dialog .owl-carousel .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog .owl-carousel .owl-item img {
    margin: 0 auto;
    display: block;
    max-height: 100%;
}

/* Project Details Dialog Navigation Buttons */
.project-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.project-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #444;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.project-nav-btn:hover {
    background-color: var(--primary);
    color: var(--primary-inverse, #1e1e1e) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(253, 213, 92, 0.4);
    border-color: transparent;
}

.project-nav-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.project-nav-btn.prev-project:hover i {
    transform: translateX(-2px);
}

.project-nav-btn.next-project:hover i {
    transform: translateX(2px);
}

@media (min-width: 992px) {
    .dialog.dialog-lg .col-lg-5 {
        display: flex;
        flex-direction: column;
    }
}

