.hero {
    min-height: 100vh;
}

@media (min-width: 768px) {
    .hero-content {
        max-width: 600px;
        margin-left: auto;
    }
}

@media (min-width: 992px) {
    .hero-content {
        max-width: 660px;
        margin-right: 0;
    }
}

.gallery-section {
    padding: 4rem 0 5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 2.5rem 0 3.5rem;
    }
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--linen);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .45rem 1.2rem;
    border-radius: 30px;
    color: var(--espresso);
    font-weight: 500;
    transition: all .25s ease;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--espresso);
    border-color: var(--espresso);
    color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.6rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--linen);
    cursor: zoom-in;
    opacity: 0;
    transform: translateY(20px);
    transition: transform .4s cubic-bezier(.2, .9, .4, 1.1), box-shadow .4s;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(74, 46, 26, .15);
}

.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.25, .46, .45, .94);
    display: block;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

.overlay-icon {
    position: absolute;
    inset: 0;
    background: rgba(74, 46, 26, .32);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    color: #fff;
    font-size: 1.8rem;
    pointer-events: none;
}

.gallery-item:hover .overlay-icon {
    opacity: 1;
}

.gallery-caption {
    padding: .75rem 1rem .9rem;
    text-align: center;
    background: var(--cream);
    border-top: 1px solid var(--linen);
}

.gallery-caption p {
    font-size: .78rem;
    font-weight: 500;
    color: var(--espresso);
    margin: 0 0 .15rem;
}

.gallery-caption small {
    font-size: .68rem;
    color: #9b7b64;
    letter-spacing: .04em;
}

.gallery-count {
    text-align: center;
    font-size: .78rem;
    color: rgba(74, 46, 26, .45);
    letter-spacing: .06em;
    margin-bottom: 1.2rem;
}

.gallery-count span {
    color: var(--accent);
    font-weight: 600;
}

.cta-section {
    padding: 8rem 0;
    min-height: 500px;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 5rem 1rem;
        min-height: 360px;
    }
}