/* pages.css - Page-specific styles for Chris Jansen Photography */

/* ============ HOME PAGE ============ */
/* Featured image and gallery */
.featured-image {
    flex: 1;
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix for index page hero image centering */
    padding: 0 40px; /* Add horizontal padding */
}

.featured-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    /* Fix for index page hero image centering */
    display: block;
    margin: 0 auto; /* Center the image */
}

/* Mobile image gallery */
.mobile-image-gallery {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

.mobile-image-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Image navigation */
.image-nav {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    align-items: center;
}

.nav-links {
    margin-right: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #777;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #333;
}

.show-thumbnails {
    cursor: pointer;
    color: #777;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 300;
    transition: color 0.3s ease;
    text-decoration: none;
}

.show-thumbnails:hover {
    color: #333;
}

/* Home page responsive overrides */
@media (max-width: 768px) {
    .image-nav {
        display: none; /* Hide Prev/Next and Show Thumbnails on mobile */
    }
    
    /* Show mobile image gallery and hide featured image on mobile */
    .featured-image {
        display: none;
    }
    
    .mobile-image-gallery {
        display: flex;
    }
}

/* ============ PORTFOLIO PAGE ============ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

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

/* Portfolio responsive overrides */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============ ABOUT PAGE ============ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    color: #777;
    font-weight: 300;
}

.about-content h1 {
    font-weight: 300;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
}

/* ============ CONTACT PAGE ============ */
/* Contact page styles */
/* Desktop Layout specific to contact */
@media (min-width: 769px) {
    body.contact-page {
        display: flex;
    }
    
    .contact-page .sidebar {
        width: 190px;
        padding: 40px 0 0 24px;
    }
    
    .contact-page .main-content {
        margin-left: 190px;
        width: calc(100% - 190px);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-page .content-container {
        max-width: 600px;
        width: 100%;
        padding: 0;
    }

    .contact-page .content-container > header {
        display: none;
    }
}

.contact-page .hero {
    height: calc(20vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
}

.contact-page .hero-text {
    max-width: 600px;
}

/* Make sure subtitle is visible on desktop */
.contact-page .subtitle {
    font-size: 16px;
    font-weight: 300;
    margin: 20px 0 40px;
    display: block; /* Ensure it's visible by default on desktop */
}

.contact-form {
    width: 100%;       /* Add width: 100% for desktop */
    max-width: 600px;
    margin: 60px 0 30px; /* Change from 60px 0 to 60px 0 30px - reduced bottom margin */
    background-color: white;
    padding: 40px;
}

.contact-form h2 {
    margin-bottom: 10px;
    font-weight: normal;
}

.contact-form > p {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 300;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.cta-button {
    display: inline-block;
    background-color: #222;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #444;
}

/* Contact page formsubmit css */
.success-message {
    color: #4caf50;
    padding: 10px;
    margin-top: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
}

.cta-button:disabled {
    background-color: #4caf50;
    cursor: default;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #333;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #888;
}

/* Instagram icon */
.instagram-icon {
    width: 36px;
    height: 36px;
    display: inline-block;
    background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>') no-repeat center center;
}

/* Update these styles to match the new layout */
.social-icons {
    margin-top: 30px;
    text-align: center; /* Center the Instagram icon */
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #333;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #888;
}

/* Contact responsive overrides */
@media (max-width: 768px) {
    .contact-form {
        margin: 10px 20px; /* Keep your existing mobile margins */
        padding: 20px;
        width: auto;   /* Override to auto for mobile */
    }
    
    .contact-page .hero {
        padding-top: 40px;
        height: auto;
    }

    /* Hide subtitle on mobile devices */
    .contact-page .subtitle {
        display: none; /* This will hide the subtitle on mobile */
    }
}

@media (max-width: 480px) {
    .contact-page .hero {
        padding-top: 20px;
        height: auto;
        min-height: calc(20vh - 80px);
        text-align: center;
    }
}

/* Mobile Sidebar for contact */
.mobile-sidebar {
    position: fixed;
    right: -250px;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: white;
    z-index: 999;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-nav {
    margin-top: 20px;
}

.mobile-nav ul {
    list-style: none;
    display: block;
    padding: 0;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #777;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 300;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: #333;
}

@media (max-width: 768px) {
    .mobile-sidebar {
        display: block;
    }
}
