:root {
    --nd-moss: #526248;
    --nd-bronze: #AF9666;
    --nd-cream: #F4F2EB;
    --nd-line: rgba(82, 98, 72, 0.25);
}

.gallery-page {
    background-color: var(--nd-cream);
}

.nd-gallery {
    padding: 100px 0 96px;
    background: var(--nd-cream);
    color: var(--nd-moss);
}

.nd-gallery .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.nd-eyebrow {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--nd-bronze);
    margin-bottom: 12px;
}

.nd-gallery__head {
    text-align: center;
    margin-bottom: 40px;
}

.nd-gallery__title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--nd-moss);
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}

.nd-gallery__lead {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--nd-moss);
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.85;
}

.nd-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.nd-gallery__filter {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nd-moss);
    background: transparent;
    border: 1px solid var(--nd-line);
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nd-gallery__filter:hover {
    border-color: var(--nd-bronze);
}

.nd-gallery__filter.is-active {
    background: var(--nd-moss);
    border-color: var(--nd-moss);
    color: var(--nd-cream);
}

.nd-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nd-gallery__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #ddd;
}

.nd-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(12%);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.nd-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    pointer-events: none;
}

.nd-gallery__item:hover img {
    transform: scale(1.08);
    filter: grayscale(0);
}

.nd-gallery__item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.nd-gallery__tags {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 1;
}

.nd-gallery__tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
}

.nd-gallery__pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.nd-gallery__empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--nd-moss);
}

.nd-gallery__empty i {
    font-size: 48px;
    color: var(--nd-bronze);
    margin-bottom: 16px;
}

.nd-gallery__empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 8px;
}

.nd-gallery__empty p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .nd-gallery {
        padding: 80px 0 64px;
    }
    .nd-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .nd-gallery__grid {
        grid-template-columns: 1fr;
    }
    .nd-gallery__filter {
        padding: 8px 14px;
        font-size: 11px;
    }
}
