/* Gallery Page Specific Styles */

/* Inherit all base styles from styles.css */

/* Page-specific intro section - shorter than index */


/* Gallery Showcase Wrapper */
.gallery-showcase {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 0 0 1rem;
    perspective: 1000px;
}



/* The Scrolling Container */
.gallery-container {
    display: flex;
    gap: 2rem;
    /* Reduced gap */
    padding: 1rem 5rem;
    /* Reduced top/bottom padding */
    width: max-content;
    cursor: grab;
    touch-action: pan-y;
    align-items: center;
    will-change: transform;
}

.gallery-container:active {
    cursor: grabbing;
}

/* Individual Gallery Cards */
.gallery-card {
    position: relative;
    /* Reduced sizing approx 20% */
    width: clamp(240px, 20vw, 360px);
    height: clamp(320px, 28vw, 480px);
    background: white;
    border-radius: 12px;
    border: 3px solid #2C3E50;
    box-shadow: 8px 8px 0px #2C3E50;
    /* Hard cartoon shadow */
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center center;
    overflow: hidden;
    user-select: none;
    opacity: 1;
    /* Always visible */
    transform: scale(0.95);
    cursor: pointer;
    /* Indicate clickable */
}

.gallery-card:hover {
    transform: scale(1) translate(-2px, -2px);
    box-shadow: 12px 12px 0px #2C3E50;
    /* Pop up effect */
    z-index: 10;
}

.gallery-card.active {
    transform: scale(1.02);
    box-shadow: 10px 10px 0px #2C3E50;
    z-index: 20;
    border-color: #2C3E50;
}

/* Card Content */
.card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    flex: 1;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #2C3E50;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image-wrapper img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Placeholder Styling (since we don't have many real images) */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #cbd5e0;
}

/* Badge/Tag - More minimal */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FFADAD;
    /* Theme accent color */
    color: #2C3E50;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    /* Sharper */
    font-family: 'Permanent Marker', cursive;
    font-size: 0.9rem;
    border: 2px solid #2C3E50;
    box-shadow: 3px 3px 0px #2C3E50;
    z-index: 2;
    transform: rotate(2deg);
}

.card-content {
    padding: 1.5rem 2rem;
    background: white;
    position: relative;
}

.card-title {
    font-family: 'Permanent Marker', cursive;
    color: #2C3E50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-description {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    color: #2C3E50;
    line-height: 1.5;
}

/* Lightbox Modal */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

#lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#lightbox.visible img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'Permanent Marker', cursive;
    transition: transform 0.2s;
}

#lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: #ffadad;
}

/* Controls - Simplifed */
.gallery-controls {
    display: none;
    /* Hide standard controls for infinite flow vibe */
}

/* Hint */
.gallery-hint {
    text-align: center;
    font-family: 'Permanent Marker', cursive;
    /* More fun font */
    color: #2C3E50;
    /* Darker color */
    font-size: 1.4rem;
    /* Larger */
    margin-top: 1rem;
    /* Fix negative margin that might hide it */
    margin-bottom: 2rem;
    opacity: 1;
    /* Fully visible */
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(255, 173, 173, 0.5);
    /* Pop effect */
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}