/* ========== GALLERY PREVIEW ========== */
.gallery-preview {
    padding: 110px 0;
    background: var(--cream);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 14px;
    margin-bottom: 42px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(160, 120, 48, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: 0 15px 45px rgba(160, 120, 48, 0.2);
    border-color: rgba(201, 168, 76, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(29, 18, 8, 0.82) 0%,
        rgba(29, 18, 8, 0.2) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 22px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    font-size: 0.88rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.gallery-overlay i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: white;
    width: 52px;
    height: 52px;
    background: rgba(255, 248, 230, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }
}