/* Gallery Page Styles */

/* Page Header */
.page-header {
    padding: 150px 20px 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('../images/bios/michael-and-ali - cropped3.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
}

.breadcrumbs {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumbs a {
    color: var(--white);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.page-header h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.gallery-main-title {
    text-align: center;
    font-size: clamp(36px, 5vw, 56px);
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-button {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.tab-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.tab-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Gallery Content */
.gallery-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-content.active {
    display: block;
}

.artist-name {
    text-align: center;
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

/* Placeholder Styles */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: var(--gray);
}

.gallery-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.gallery-placeholder p {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.7;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 60px;
    }
    
    .gallery-section {
        padding: 60px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .tab-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-tabs {
        gap: 10px;
    }
    
    .tab-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Instructions for adding images */
.gallery-instructions {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.gallery-instructions h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.gallery-instructions p {
    color: var(--gray);
    line-height: 1.8;
}

.gallery-instructions code {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: var(--primary-color);
}
