/* Gallery Page Specific Styles */
.gallery-section {
    padding: 15vh 20px 100px;
    min-height: calc(100vh - 200px);
    text-align: center;
}

.gallery-header-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
}

.gallery-title {
    font-family: var(--font-body);
    font-size: clamp(4rem, 15vw, 10rem);
    text-transform: uppercase;
    color: #000;
    line-height: 1;
    letter-spacing: 5px;
    position: relative;
    z-index: 2;
}

/* Yellow corners for Gallery matching About */
.gallery-header-wrapper::before,
.gallery-header-wrapper::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 8px solid var(--secondary-color);
    z-index: 1;
}

.gallery-header-wrapper::before {
    top: -10px;
    left: -20px;
    border-right: none;
    border-bottom: none;
}

.gallery-header-wrapper::after {
    bottom: -10px;
    right: -20px;
    border-left: none;
    border-top: none;
}

/* Gallery Grid (Pinterest Style Masonry) */
.gallery-grid {
    column-count: 3;
    column-gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background-color: #f0f0f0;
    overflow: hidden;
    margin-bottom: 25px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Allow natural height based on width */
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Watermark/Logo overlay seen in corners */
.gallery-watermark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    z-index: 2;
}

@media screen and (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        padding: 0 15px;
    }
}