/* Gallery Page Styles */
.gallery-banner {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-image: url('artwork/HeraSummons.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
/* Stars Container */
.stars-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.stars-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.banner-content {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    opacity: 1;
    transition: all 0.5s ease;
}

.banner-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-gray);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Add scroll animation class */
.banner-content.scroll-animate {
    opacity: 0;
    transform: translate(-50%, -80%);
}

/* Gallery Grid */
.gallery-grid {
    columns: 3;
    column-gap: 1rem;
    padding: 4rem 2rem;
    background: var(--dark-blue);
}

.artwork {
    break-inside: avoid;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.artwork.visible {
    opacity: 1;
    transform: translateY(0);
}

.artwork img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.artwork-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(12, 22, 36, 0.9);
    color: var(--light-gray);
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.artwork:hover {
    transform: translateY(-5px);
}

.artwork:hover img {
    transform: scale(1.05);
}

.artwork:hover .artwork-overlay {
    bottom: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        columns: 1;
        column-gap: 1rem;
    }
}

/* Add fade-in animation class */
.fade-in {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content wrapper to create scrolling effect */
.gallery-content {
    position: relative;
    z-index: 2;
    margin-top: 100vh;
    background: var(--dark-blue);
    min-height: 100vh;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
}

/* Override header styles for gallery page */
.main-header {
    position: absolute; /* Change from fixed to absolute */
    background: transparent; /* Make header background transparent */
}

/* Add fullscreen modal styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-modal img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.modal-content {
    position: relative;
    text-align: center;
    color: var(--light-gray);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--light-gray);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.artwork-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .gallery-container {
        padding: 1rem;
        padding-top: calc(var(--header-height) + 1rem);
    }

    .gallery-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .artwork-card {
        aspect-ratio: 1;
    }

    .artwork-info {
        padding: 0.5rem;
    }

    .artwork-title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .artwork-description {
        font-size: 0.8rem;
    }

    /* Fullscreen view adjustments */
    .fullscreen-view {
        padding: 1rem;
    }

    .fullscreen-image {
        max-height: 80vh;
        width: auto;
        max-width: 95vw;
    }

    .close-button {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .nav-button {
        padding: 1rem 0.5rem;
        font-size: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .artwork-info {
        padding: 0.4rem;
    }

    .artwork-title {
        font-size: 0.85rem;
    }

    .artwork-description {
        font-size: 0.75rem;
    }
}
