/* Base styles for background and transitions */
.gallery-bg {
    background-size: cover;
    background-position: center;
    transition: background-image 0.7s cubic-bezier(.4,0,.2,1);
}

.gallery-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
}

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(.4,0,.2,1);
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.gallery-separator {
    width: auto;
    flex-grow: 1;
    max-width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    margin: 0 1.5rem;
    border-radius: 1px;
    display: inline-block;
    vertical-align: middle;
}

/* Ensure header is on top and content respects its space */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem; 
    padding-bottom: 2rem; 
    position: relative; 
    z-index: 10;
}

/* Gallery card specific styles */
.gallery-card {
    transition: border-color 0.3s, transform 0.3s;
}

.gallery-card img {
    transition: transform 0.3s ease-in-out;
}

.gallery-card .absolute {
    opacity: 0.8;
    transition: opacity 0.3s;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.gallery-card.border-yellow-400 .absolute {
    opacity: 1;
}

.gallery-card.active-selected {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 10;
}

/* Specific adjustment for the content/grid section to control vertical space */
.gallery-top-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 10em;
    width: 100%;
}

/* Mobile styles */
@media (max-width: 767px) {
    .gallery-top-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .main-content-area {
        padding-left: 0;
        padding-right: 0;
    }
    
    .flex-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .gallery-top-section {
        flex-direction: row;
        padding-left: 2rem;
    }
    
    .main-content-area {
        padding-left: 2rem;
    }
} 