/* =========================================
   EXPERIENCE PAGE STYLES
   CSS Grid layout with dense packing
========================================= */

/* Hero */
.experience-hero {
    padding: 40px 0 20px;
    text-align: center;
}

.experience-hero .page-title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
    color: #f0f0f0;
}

.experience-hero .page-subtitle {
    margin-top: 10px;
    color: #666;
    font-size: 1rem;
}

/* Gallery wrapper */
.experience-gallery {
    padding: 40px 0;
}

/* CSS Grid Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px;
    grid-auto-flow: dense;
    /* Fills gaps automatically */
}

/* Hide the sizer - not needed for CSS Grid */
.masonry-grid .grid-sizer {
    display: none;
}

/* Base grid item */
.masonry-grid .grid-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

/* Landscape images span 2 columns */
.masonry-grid .grid-item--width2 {
    grid-column: span 2;
}

.masonry-grid .grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.masonry-grid .grid-item:hover img {
    transform: scale(1.03);
}

/* Responsive: 3 columns on tablet */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry-grid .grid-item--width2 {
        grid-column: span 2;
    }
}

/* Responsive: 2 columns on small tablet */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry-grid .grid-item--width2 {
        grid-column: span 2;
        /* Full width */
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .masonry-grid .grid-item--width2 {
        grid-column: span 1;
        /* Reset to single column */
    }
}

/* Portfolio note */
.gallery-note {
    text-align: center;
    padding: 40px 20px 0;
}

.gallery-note p {
    color: #888;
    font-size: 1.15rem;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.02em;
}

/* CTA at bottom */
.experience-cta {
    padding: 30px 0 50px;
    display: grid;
    place-items: center;
}

.experience-cta .container {
    display: grid;
    place-items: center;
}