/* Portfolio Page Specific Styles */

.portfolio-hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #DDD5C7 0%, #D0C4B0 100%);
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 300;
}

.portfolio-hero p {
    font-size: 1.3rem;
    color: var(--text-light);
}

.full-portfolio {
    padding: 5rem 0;
    background-color: #DDD5C7;
}

.portfolio-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 36, 22, 0.95);
    backdrop-filter: blur(10px);
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    position: relative;
    width: 90%;
    max-width: 1600px;
    height: 90vh;
    display: flex;
    align-items: center;
    gap: 0;
    background: #EBE3D5;
    border-radius: 8px;
}

.gallery-image-section {
    flex: 1 1 65%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 36, 22, 0.5);
    border-radius: 8px 0 0 8px;
    padding: 20px;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-info-panel {
    flex: 0 0 35%;
    height: 100%;
    background: #EBE3D5;
    border-radius: 0 8px 8px 0;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
    min-width: 350px;
}

.gallery-info-content {
    flex: 1;
    display: block;
    width: 100%;
}

.gallery-info-content h3,
.gallery-info-content p {
    display: block;
    width: 100%;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--cream);
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.gallery-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--cream);
    background: rgba(212, 184, 150, 0.2);
    border: 2px solid var(--cream);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--charcoal);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-info-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2C2416;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #C4A882;
    padding-bottom: 0.75rem;
    word-wrap: break-word;
}

.gallery-info-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3A3028;
    word-wrap: break-word;
}

@media (min-width: 1400px) {
    .gallery-container {
        width: 85%;
    }

    .gallery-info-panel {
        min-width: 450px;
    }

    .gallery-info-content h3 {
        font-size: 2.2rem;
    }

    .gallery-info-content p {
        font-size: 1.15rem;
    }
}

@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
        width: 90%;
    }

    .gallery-image-section {
        flex: 0 0 50%;
        min-height: 300px;
        border-radius: 8px 8px 0 0;
    }

    .gallery-image {
        max-height: 50vh;
    }

    .gallery-info-panel {
        flex: 0 0 auto;
        min-height: 200px;
        border-radius: 0 0 8px 8px;
        padding: 30px 25px;
    }

    .gallery-info-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .gallery-info-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
    }

    .gallery-info-content h3 {
        font-size: 1.3rem;
    }

    .gallery-info-content p {
        font-size: 0.9rem;
    }
}

/* Responsive adjustments for portfolio grid */
@media (max-width: 1024px) {
    .portfolio-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 8rem 0 3rem;
    }

    .portfolio-hero h1 {
        font-size: 2.5rem;
    }

    .portfolio-hero p {
        font-size: 1.1rem;
    }

    .portfolio-full-grid {
        grid-template-columns: 1fr;
    }
}
