/*
 * Photo Gallery Page Styles
 * Styles for the project gallery display
 */

/* Photo Gallery Main */
.photo-gallery-main {
    background: #fafafa;
    min-height: 100vh;
}

/* Photo Gallery Header */
.photo-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 3rem 0;
    padding: 0 1rem;
}

.gallery-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.search-section {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-form label {
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.search-input-group input {
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    min-width: 200px;
}

.search-submit {
    background: #333;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #fff;
}

.search-submit:hover {
    background: #555;
}

.search-icon {
    font-size: 1rem;
}

/* Projects Grid */
.projects-gallery-section {
    margin: 3rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Project Cards */
.project-card {
    background: #fff;
    overflow: hidden;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

.project-meta-tags {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.5rem 1rem;
}

.category-tag,
.date-tag {
    background: #333;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-info {
    padding: 0 1rem 1rem 1rem;
}

.project-title-jp {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.project-title-en {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Call to Action Section */
.gallery-cta-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 3rem 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cta-content p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: #3498db;
    color: #fff;
    border: 2px solid #3498db;
}

.cta-buttons .btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.cta-buttons .btn-secondary:hover {
    background: #2c3e50;
    color: #fff;
}

/* No Projects Message */
.no-projects {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photo-gallery-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .search-form {
        width: 100%;
        justify-content: space-between;
    }

    .search-input-group input {
        min-width: 150px;
        flex: 1;
    }

    .project-image {
        height: 180px;
    }

    /* Single Project Responsive */
    .project-content {
        padding: 0 1rem;
    }

    .project-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .gallery-image-item .gallery-link img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-thumbnail {
        height: 180px;
    }

    .gallery-cta-section {
        padding: 2rem 1rem;
    }
}

/* Single Project Page Styles */
.project-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Expand content-wrapper to match container width */
.single-project .content-wrapper {
    max-width: none;
    width: 100%;
}

/* Breadcrumb Navigation */
.project-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.project-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.project-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb-current {
    color: #2c3e50;
    font-weight: 500;
}

/* Single Column Layout */
.project-layout {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: none;
}

.project-gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-image-item {
    position: relative;
    overflow: hidden;
}

.gallery-image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-number {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Gallery */
.project-gallery-section {
    margin: 3rem 0;
}

.project-gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.gallery-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-link img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: #fff;
    font-size: 2rem;
}

.gallery-caption {
    padding: 1rem;
    background: #f8f9fa;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Project Navigation */
.project-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #e9ecef;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

/* Related Projects */
.related-projects-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.related-projects-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-project-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-project-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-project-item:hover .related-project-thumbnail img {
    transform: scale(1.05);
}

.related-project-info {
    padding: 1rem;
}

.related-project-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.related-project-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Single Project */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-link img {
        height: 200px;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.75rem;
    }

    .project-content-body {
        font-size: 1rem;
    }

    .gallery-link img {
        height: 180px;
    }
}