:root {
    --navy: #0d1b2a;
    --gold: #c9a55c;
    --white: #ffffff;
    --light-bg: #fdfdfd;
    --text-slate: #4a5568;
}

.gallery-section {
    background: var(--light-bg);
    padding: 80px 0;
}

/* --- Header Styling --- */
.gallery-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 5%;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.gallery-intro h1 {
    font-size: 3rem;
    color: var(--navy);
    margin: 15px 0;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 20px auto;
}

.gallery-intro p {
    color: var(--text-slate);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Masonry Grid --- */
.gallery-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

.gallery-block {
    margin-bottom: 20px;
    break-inside: avoid; /* Prevents image splitting between columns */
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--navy);
}

.img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* --- Caption Hover Effect --- */
.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(13, 27, 42, 0.9));
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.img-caption h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.img-caption p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Hover States */
.img-wrapper:hover img {
    transform: scale(1.08);
    opacity: 0.4;
}

.img-wrapper:hover .img-caption {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
.gallery-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-minimal {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    border: 1px solid var(--navy);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-minimal:hover {
    background: var(--navy);
    color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 1000px) {
    .gallery-masonry { column-count: 2; }
}

@media (max-width: 768px) {
    .gallery-section { padding: 50px 0; }
    
    .gallery-intro { margin-bottom: 40px; padding: 0 4%; }
    .gallery-intro .eyebrow { font-size: 0.7rem; letter-spacing: 2px; }
    .gallery-intro h1 { font-size: 1.8rem; margin: 10px 0; }
    .gallery-intro .accent-line { width: 40px; height: 2px; margin: 15px auto; }
    .gallery-intro p { 
        font-size: 0.9rem; 
        max-width: 100%; 
        padding: 0 5%;
        line-height: 1.6;
    }
    
    .gallery-container { padding: 0 10px; }
    .gallery-masonry { column-count: 1; column-gap: 15px; }
    .gallery-block { margin-bottom: 15px; }
    
    .img-caption { padding: 30px 15px 15px; }
    .img-caption h4 { font-size: 1rem; }
    .img-caption p { font-size: 0.75rem; }
    
    .gallery-footer { margin-top: 40px; padding: 0 5%; }
    .gallery-footer p { font-size: 0.9rem; }
    .btn-minimal { padding: 10px 25px; font-size: 0.75rem; }
}

@media (max-width: 600px) {
    .gallery-masonry { column-count: 1; }
    .gallery-intro h1 { font-size: 1.6rem; }
}