.gallery-section {
    padding: 100px 50px;
    box-sizing: border-box;
    background-color: #03070b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #101216;
    border: 1px solid rgba(197, 168, 128, 0.1);
    transition: border-color 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 11, 17, 0) 40%, rgba(5, 11, 17, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    box-sizing: border-box;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.gallery-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 5px;
    transform: translateY(5px);
    transition: transform 0.4s ease;
}

.gallery-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
    transform: translateY(5px);
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    border-color: var(--accent-color);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

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

.gallery-item:hover .gallery-tag,
.gallery-item:hover .gallery-item-title {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 15px;
    }
    .gallery-item.item-wide {
        grid-column: span 2;
    }
    .gallery-item.item-tall {
        grid-row: span 2;
    }
}

@media (max-width: 576px) {
    .gallery-section {
        padding: 60px 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .gallery-item.item-wide,
    .gallery-item.item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-action-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    box-sizing: border-box;
}

.btn-gallery-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 16px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gallery-more:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.3);
}

.btn-gallery-more svg {
    transition: transform 0.3s ease;
}

.btn-gallery-more:hover svg {
    transform: translateX(5px);
}

@media (max-width: 576px) {
    .gallery-action-wrapper {
        margin-top: 35px;
        padding: 0 20px;
    }
    .btn-gallery-more {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}