/* Architecture Portfolio Plugin Frontend Styles - Modern Design */

/* Override Astra theme containers for full width portfolio pages */
.architecture-portfolio-listing .ast-container,
.architecture-portfolio-single .ast-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.architecture-portfolio-listing .site-content,
.architecture-portfolio-listing .ast-content-layout,
.architecture-portfolio-listing .content-area,
.architecture-portfolio-listing .site-main,
.architecture-portfolio-single .site-content,
.architecture-portfolio-single .ast-content-layout,
.architecture-portfolio-single .content-area,
.architecture-portfolio-single .site-main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Modern Design Variables */
:root {
    --modern-primary: #1a1a1a;
    --modern-secondary: #f5f5f5;
    --modern-accent: #65696F;
    --modern-text: #2c2c2c;
    --modern-text-light: #666;
    --modern-white: #ffffff;
    --modern-black: #000000;
    --modern-border: #e0e0e0;
    --modern-shadow: rgba(0, 0, 0, 0.08);
    --modern-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --modern-hover-transform: translateY(-3px);
    --modern-border-radius: 2px;
}

/* Reset and Base */
* {
    box-sizing: border-box;
}

.modern-project-container {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--modern-text);
    background: var(--modern-white);
    min-height: 100vh;
}

/* Hero Section */
.project-hero-modern {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-navigation {
    position: absolute;
    top: 40px;
    left: 60px;
    z-index: 4;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--modern-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--modern-transition);
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    color: var(--modern-white);
    transform: translateX(-3px);
}

.back-link svg {
    transition: var(--modern-transition);
}

.hero-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
/* align-items: flex-end; */
/* max-width: 800px; */
width: 100%;
}

.project-title-modern {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: -2px;
    line-height: 0.9;
    color: var(--modern-white);
    margin: 0 0 20px 0;
    text-align: center;
    /* text-transform: uppercase; */
}

.title-divider-modern {
    width: 25%;
    height: 2px;
    background: var(--modern-white);
    margin: 0px auto;
    border-radius: 1px;
    opacity: 0.8;
}

.project-location-modern {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--modern-white);
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-meta-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item {
    white-space: nowrap;
}

.meta-separator {
    color: #65696F;
    font-weight: 300;
}

/* Gallery Section */
.gallery-section-modern {
    background: var(--modern-white);
    position: relative;
}

.gallery-main-modern {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--modern-black);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.6s ease-out;
}

.gallery-slide img:hover {
    transform: scale(1.02);
}

/* Gallery Controls */
.gallery-controls-modern {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--modern-text);
    transition: var(--modern-transition);
    position: relative;
}

.gallery-btn:hover {
    color: var(--modern-white);
    transform: scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-counter-modern {
    font-size: 16px;
    font-weight: 300;
    color: var(--modern-text);
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}

.current-slide {
    font-weight: 500;
}

.total-slides {
    opacity: 0.6;
}

/* Gallery Thumbnails */
.gallery-thumbnails-modern {
    display: flex;
    gap: 15px;
    padding: 40px 60px 60px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbnails-modern::-webkit-scrollbar {
    display: none;
}

.thumbnail-modern {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: var(--modern-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--modern-transition);
    border: 2px solid transparent;
    position: relative;
}

.thumbnail-modern.active {
    border-color: #65696F;
}

.thumbnail-modern:hover {
    transform: var(--modern-hover-transform);
    box-shadow: 0 8px 25px var(--modern-shadow);
}

.thumbnail-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--modern-transition);
}

.thumbnail-modern:hover img {
    transform: scale(1.05);
}

/* Content Section */
.content-section-modern {
    padding: 120px 60px;
    background: var(--modern-white);
}

.content-grid-modern {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    align-items: start;
}

.description-column-modern {
    max-width: 700px;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    letter-spacing: -1px;
    color: var(--modern-text);
    margin: 0 0 40px 0;
    text-transform: uppercase;
}

.description-text-modern {
    font-size: 18px;
    line-height: 1.8;
    color: var(--modern-text-light);
    font-weight: 300;
}

.description-text-modern p {
    margin-bottom: 25px;
}

.description-text-modern p:last-child {
    margin-bottom: 0;
}

/* Details Sidebar */
.details-column-modern {
    position: sticky;
    top: 120px;
}

.details-card-modern {
    background: var(--modern-secondary);
    padding: 50px 40px;
    border-radius: var(--modern-border-radius);
    border: 1px solid var(--modern-border);
}

.details-title-modern {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--modern-text);
    margin: 0 0 35px 0;
}

.details-list-modern {
    margin: 0;
}

.details-list-modern dt {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--modern-text-light);
    margin: 0 0 8px 0;
}

.details-list-modern dd {
    font-size: 16px;
    font-weight: 400;
    color: var(--modern-text);
    margin: 0 0 25px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--modern-border);
}

.details-list-modern dd:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Lightbox */
.lightbox-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.lightbox-modern.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content-modern {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
}

.lightbox-image-modern {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--modern-border-radius);
}

.lightbox-close-modern {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modern-text);
    transition: var(--modern-transition);
}

.lightbox-close-modern:hover {
    background: var(--modern-white);
    transform: scale(1.1);
}

.lightbox-controls-modern {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 30px;
}

.lightbox-prev-modern,
.lightbox-next-modern {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modern-text);
    transition: var(--modern-transition);
}

.lightbox-prev-modern:hover,
.lightbox-next-modern:hover {
    background: #65696F;
    color: var(--modern-white);
    transform: scale(1.1);
}

.lightbox-counter-modern {
    font-size: 14px;
    font-weight: 400;
    color: var(--modern-text);
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid-modern {
        gap: 60px;
    }
    
    .hero-content-wrapper,
    .content-section-modern,
    .gallery-thumbnails-modern {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll;
    }
    
    .hero-navigation {
        top: 20px;
        left: 20px;
    }
    
    .hero-content-wrapper,
    .content-section-modern,
    .gallery-thumbnails-modern {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .content-section-modern {
        padding: 80px 20px;
    }
    
    .content-grid-modern {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .details-column-modern {
        position: static;
    }
    
    .details-card-modern {
        padding: 30px 25px;
    }
    
    .gallery-controls-modern {
        bottom: 20px;
        padding: 12px 20px;
        gap: 20px;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
    }
    
    .gallery-counter-modern {
        font-size: 14px;
    }
    
    .gallery-thumbnails-modern {
        padding: 30px 20px 40px;
        gap: 10px;
    }
    
    .thumbnail-modern {
        width: 100px;
        height: 70px;
    }
    
    .project-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lightbox-close-modern {
        top: 20px;
        right: 20px;
    }
    
    .lightbox-controls-modern {
        bottom: 20px;
        padding: 12px 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .project-hero-modern {
        min-height: 500px;
    }
    
    .gallery-main-modern {
        height: 60vh;
        min-height: 400px;
    }
    
    .project-title-modern {
        font-size: 2.5rem;
    }
    
    .project-location-modern {
        font-size: 1.2rem;
    }
    
    .section-title-modern {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .description-text-modern {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .gallery-thumbnails-modern {
        gap: 8px;
    }
    
    .thumbnail-modern {
        width: 80px;
        height: 60px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
    
    .hero-background {
        background-attachment: scroll !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --modern-accent: #65696F;
        --modern-border: #333;
        --modern-shadow: rgba(0, 0, 0, 0.3);
    }
}

/* Print styles */
@media print {
    .gallery-controls-modern,
    .gallery-thumbnails-modern,
    .lightbox-modern,
    .hero-navigation {
        display: none !important;
    }
    
    .project-hero-modern {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .content-section-modern {
        padding: 20px;
    }
    
    .content-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Focus styles for accessibility */
.back-link:focus,
.gallery-btn:focus,
.thumbnail-modern:focus,
.lightbox-close-modern:focus,
.lightbox-prev-modern:focus,
.lightbox-next-modern:focus {
    outline: 2px solid #65696F;
    outline-offset: 2px;
}

/* Loading state */
.gallery-slide img {
    transition: var(--modern-transition), opacity 0.3s ease-out;
}

.gallery-slide img[data-loading="true"] {
    opacity: 0.5;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background: #65696F;
    color: var(--modern-white);
}

::-moz-selection {
    background: #65696F;
    color: var(--modern-white);
}

/* Project Status Styles */
.project-status {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
}

.project-status.status-completed {
    color: #28a745;
}

.project-status.status-in-progress {
    color: #ffc107;
}

.project-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--modern-transition);
}

.project-status-badge.status-completed {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.9);
}

.project-status-badge.status-in-progress {
    background: rgba(255, 193, 7, 0.8);
    border-color: rgba(255, 193, 7, 0.9);
    color: #212529;
}

/* Project Meta Styles */
.project-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.9;
}

.project-meta span {
    display: flex;
    align-items: center;
} 

.project-card {
    background-position: center center;
background-repeat: no-repeat;
background-size: cover; min-height: 600px; 
display: flex;
min-height: 600px;
flex-direction: column;
justify-content: flex-end;
padding-top: 5%;
padding-bottom: 5%;
padding-left: 5%;
padding-right: 5%;
}