/* Gallery Section Styles */
.gs-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.gs-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.gs-header {
    text-align: center;
    margin-bottom: 60px;
}

.gs-tagline {
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(var(--accent));
    font-weight: 600;
}

.gs-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    margin: 15px 0;
}

.gs-subtitle {
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.gs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gs-item {
    position: relative;
}

.gs-card {
    padding: 16px;
    aspect-ratio: 1/1;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-card-inner {
    height: 100%;
}

/* Updated Gallery Image Styling for Consistency */

.gs-img-container {
    height: 100%;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove padding to allow image to fill edges if needed */
    padding: 20px; 
    position: relative;
    overflow: hidden;
}

.gs-img {
    /* Force the image to fill the container regardless of source size */
    width: 100%;
    height: 100%;
    
    /* 'cover' ensures the square is always filled. 
       Use 'contain' only if you want to see the whole image with white space */
    object-fit: cover; 
    border-radius: 20px;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    
    
    /* This ensures small images don't look blurry by using the browser's best scaling */
    image-rendering: -webkit-optimize-contrast; 
}

/* Optional: If your images have white backgrounds and you want a 'product' look:
   Change 'object-fit: cover' to 'object-fit: contain' AND add 'padding: 20px' 
   back to .gs-img-container. 
*/

.gs-nature-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: radial-gradient(circle at 30% 70%, hsla(120, 40%, 40%, 0.3) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}



/* Hover States */
.gs-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.gs-card:hover .gs-nature-overlay {
    opacity: 0.25;
}

.gs-card:hover .gs-img {
    transform: scale(1.1);
}

/* Label on Hover */
.gs-label-wrap {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.gs-card:hover .gs-label-wrap {
    opacity: 1;
    transform: translateY(0);
}

.gs-label {
    padding: 8px 16px;
    display: inline-block;
    border-radius: 12px;
}

.gs-label-text {
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Scroll Animations */
.gs-reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gs-reveal[data-anim="fade-up"] { transform: translateY(40px); }
.gs-reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .gs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

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