
.project-detail {
    padding-bottom: 0;
}

.project-header {
    margin-bottom: 2rem;
}

.project-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.project-subheading {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

/* Illustration Container and Titles */
.illustration-container {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.illustration-header {
    margin-bottom: 1.5rem;
}

.illustration-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}

.illustration-subheading {
    font-family: var(--font-body);
    font-size: 1rem;
    margin: 0;
}

.single-image-container {
   display:inline-block;
   text-align: left;
}

.modal-trigger {
    max-width: 100%;
    max-height: 80vh; 
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-trigger:hover {
    opacity: 0.9;
}

/* Video Player Styles */
.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    background-color: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
    opacity: 0;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 5px;
}

.progress-container {
    flex: 1;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
}

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    border-radius: 2px;
    margin-bottom: 5px;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: var(--color-accent);
    width: 0;
    border-radius: 2px;
}

[id^="time-display"] {
    color: white;
    font-size: 0.8rem;
}

#volume {
    width: 80px;
    margin: 0 10px;
}

.featured-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    background-color: #000;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}


/* Process Section */
.callout {
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
}

.desciptionheader {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    max-width: 40%;
    margin: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.section-description {
    font-family: var(--font-nav);
    margin: 0 0 2rem 0;
    max-width: 40%;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.process-item {
    background-color: var(--color-placeholder);
}

.process-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Parallax Sections */
.parallax-section {
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    background-color: #000;
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
}

.parallax-container:last-child {
    margin-bottom: 0;
}


.parallax-section:last-child {
    margin-bottom: 0;
}

/* Parallax modifiers for position */
.parallax-top {
    background-position: center top;
}

.parallax-center {
    background-position: center center;
}

.parallax-bottom {
    background-position: center bottom;
}

/* Footer specific parallax */
.parallax-footer {
    height: 400px;
}

.parallax-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    color: white;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.parallax-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0;
}

/* Parallax Button Styling */
.parallax-button-container {
    margin-top: 9rem;
    z-index: 5;
    position: relative;
}

.parallax-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.parallax-btn:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.parallax-button-container-en {
    margin-top: 4rem;
    z-index: 5;
    position: relative;
}

.parallax-btn-en {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.parallax-btn-en:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Additional Work Section */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.work-item {
    background-color: var(--color-placeholder);
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fullsize Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-trigger {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    cursor: pointer !important; 
    transition: opacity 0.3s ease;
}

.modal-trigger-poster {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    cursor: pointer !important; 
    transition: opacity 0.3s ease;
}

.modal-trigger:hover {
    opacity: 0.9;
}

/* Project Navigation */
.project-navigation {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
}

/* Illustration-specific navigation */
.illustration-navigation {
    position: static;
    display: flex;
    justify-content: center;
    gap: 18rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.illustration-navigation .prev-project,
.illustration-navigation .next-project {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.nav-triangle {
    font-size: 0.8rem;
    margin: 0 0.3rem;
    transition: transform 0.3s ease;
    color: var(--color-text);
}

.prev-project,
.next-project {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    transition: color 0.3s ease; 
}


.illustration-navigation .prev-project,
.illustration-navigation .next-project {
    color: var(--color-text);
}


.prev-project:hover,
.next-project:hover {
    color: var(--color-accent);
}

.nav-arrow {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    color: white;
}


.illustration-navigation .nav-arrow {
    color: var(--color-text);
}


.prev-project:hover .nav-arrow {
    color: var(--color-accent);
    transform: translateX(-5px); 
}

.next-project:hover .nav-arrow {
    color: var(--color-accent);
    transform: translateX(5px); 
}

/* Gallery Grid for Multiple Images */
.illustration-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: var(--color-placeholder);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: background-color 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.modal-nav:active {
    background-color: rgba(255, 255, 255, 0.5);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Hide navigation arrows when there's only one image */
.image-modal.single-image .modal-nav {
    display: none;
}

/* Modal Counter */
.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    z-index: 1002;
}

/* Enhanced modal content for better centering */
.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* Single Image Viewer Layout */
.single-image-viewer {
    width: 100%;
    margin-bottom: 3rem;
}

.image-display-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.main-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

#main-display-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#main-display-image:hover {
    opacity: 0.9;
}

.page-nav {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    border: none;
    font-size: 2rem;
    margin-left: 10%;
    margin-right: 10%;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
    border-radius: 4px;
    flex-shrink: 0;
}

.page-nav:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.page-nav:active {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.single-image-viewer.single-image .page-nav {
    display: none;
}

.page-counter {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: background-color 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.modal-nav:active {
    background-color: rgba(255, 255, 255, 0.5);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.image-modal.single-image .modal-nav {
    display: none;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    z-index: 1002;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* Responsive adjustments */
@media only screen and (max-width: 48rem) {
    .illustration-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .image-modal.active {
        padding: 40px 10px;
    }
    
    .modal-counter {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Responsive Styles */
@media only screen and (max-width: 48rem) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .parallax-section {
        height: 250px;
        background-attachment: scroll; 
    }

    .parallax-footer {
        height: 300px; 
    }

    .parallax-content h2 {
        font-size: 2rem;
    }

    .featured-image-container {
        aspect-ratio: 4 / 3;
    }
    
    .modal-trigger {
        max-width: 95%;
        max-height: 60vh;
    }
    
    .illustration-header {
        padding-left: 1rem;
    }
    
    .illustration-navigation {
        padding: 0 1rem;
    }

    .project-navigation {
        gap: 6rem;
    }

    .callout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .desciptionheader {
        max-width: 100%;
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }
    
    .section-description {
        max-width: 100%;
        text-align: center;
    }
}

/* Responsive */
@media only screen and (max-width: 48rem) {
    .image-display-container {
        gap: 0.5rem;
    }
    
    #main-display-image {
        max-height: 50vh;
    }
    
    .page-nav {
        font-size: 1.5rem;
        padding: 0.5rem 0.8rem;
    }
    
    .modal-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .image-modal.active {
        padding: 40px 10px;
    }
    
    .modal-counter {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}