:root {
    --gold: #C9A961;
    --dark: #1a1a1a;
    --brown: #8B7355;
    --text: #2c3e50;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.gallery-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    /* overflow: hidden; removed to fix scroll */
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(201,169,97,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.gallery-main-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

.gallery-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 300;
    line-height: 1.8;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.gallery-category {
    background: var(--white);
    border: 2px solid transparent;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.gallery-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.gallery-category:hover::before {
    left: 100%;
}

.gallery-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

.gallery-category.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.4);
}

.gallery-category i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.gallery-category:hover i {
    transform: scale(1.2);
}

.gallery-carousel-container {
    position: relative;
    padding: 0 80px;
    margin-bottom: 60px;
}

.gallery-main-display {
    position: relative;
    overflow: visible;
    perspective: 2000px;
}

.gallery-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 450px;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image-wrapper {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-image-wrapper:hover::after {
    opacity: 1;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image-wrapper:hover img {
    transform: scale(1.05);
}

.gallery-image-wrapper.center {
    width: 600px;
    height: 400px;
    z-index: 10;
    transform: translateX(0) translateZ(0) scale(1);
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.gallery-image-wrapper.left {
    width: 350px;
    height: 300px;
    z-index: 5;
    transform: translateX(-420px) translateZ(-100px) scale(0.85);
    opacity: 0.7;
    filter: brightness(0.75);
}

.gallery-image-wrapper.right {
    width: 350px;
    height: 300px;
    z-index: 5;
    transform: translateX(420px) translateZ(-100px) scale(0.85);
    opacity: 0.7;
    filter: brightness(0.75);
}

.gallery-image-wrapper.far-left,
.gallery-image-wrapper.far-right {
    width: 250px;
    height: 220px;
    z-index: 1;
    opacity: 0.4;
    filter: brightness(0.6);
}

.gallery-image-wrapper.far-left {
    transform: translateX(-700px) translateZ(-200px) scale(0.7);
}

.gallery-image-wrapper.far-right {
    transform: translateX(700px) translateZ(-200px) scale(0.7);
}

.gallery-image-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.gallery-image-wrapper.left:hover,
.gallery-image-wrapper.right:hover {
    transform: translateX(-420px) translateZ(-80px) scale(0.88);
    opacity: 0.85;
    z-index: 6;
}

.gallery-image-wrapper.right:hover {
    transform: translateX(420px) translateZ(-80px) scale(0.88);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gold);
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.4);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-view-more {
    text-align: center;
}

.btn-view-gallery {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dark);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-view-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-view-gallery:hover::before {
    left: 100%;
}

.btn-view-gallery:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.4);
}

.btn-view-gallery i {
    transition: transform 0.3s ease;
}

.btn-view-gallery:hover i {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .gallery-image-wrapper.center {
        width: 500px;
        height: 350px;
    }

    .gallery-image-wrapper.left,
    .gallery-image-wrapper.right {
        width: 300px;
        height: 250px;
    }

    .gallery-image-wrapper.left {
        transform: translateX(-370px) translateZ(-100px) scale(0.85);
    }

    .gallery-image-wrapper.right {
        transform: translateX(370px) translateZ(-100px) scale(0.85);
    }

    .gallery-image-wrapper.left:hover {
        transform: translateX(-370px) translateZ(-80px) scale(0.88);
    }

    .gallery-image-wrapper.right:hover {
        transform: translateX(370px) translateZ(-80px) scale(0.88);
    }
}

@media (max-width: 992px) {
    .gallery-section {
        padding: 80px 20px;
    }

    .gallery-main-title {
        font-size: 40px;
    }

    .gallery-track {
        height: 350px;
    }

    .gallery-image-wrapper.center {
        width: 450px;
        height: 300px;
    }

    .gallery-image-wrapper.left,
    .gallery-image-wrapper.right {
        width: 250px;
        height: 200px;
    }

    .gallery-image-wrapper.left {
        transform: translateX(-320px) translateZ(-100px) scale(0.85);
    }

    .gallery-image-wrapper.right {
        transform: translateX(320px) translateZ(-100px) scale(0.85);
    }

    .gallery-image-wrapper.far-left,
    .gallery-image-wrapper.far-right {
        display: none;
    }

    .gallery-carousel-container {
        padding: 0 70px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 15px;
    }

    .gallery-main-title {
        font-size: 36px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }

    .gallery-carousel-container {
        padding: 0 60px;
    }

    .gallery-track {
        height: 280px;
    }

    .gallery-image-wrapper.center {
        width: 100%;
        max-width: 400px;
        height: 260px;
    }

    .gallery-image-wrapper.left,
    .gallery-image-wrapper.right {
        width: 180px;
        height: 150px;
    }

    .gallery-image-wrapper.left {
        transform: translateX(-230px) translateZ(-80px) scale(0.8);
    }

    .gallery-image-wrapper.right {
        transform: translateX(230px) translateZ(-80px) scale(0.8);
    }

    .gallery-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .gallery-category {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .gallery-main-title {
        font-size: 32px;
    }

    .gallery-category {
        padding: 10px 20px;
        font-size: 12px;
    }

    .gallery-carousel-container {
        padding: 0 50px;
    }

    .gallery-track {
        height: 240px;
    }

    .gallery-image-wrapper.center {
        max-width: 320px;
        height: 220px;
    }

    .gallery-image-wrapper.left,
    .gallery-image-wrapper.right {
        opacity: 0;
        pointer-events: none;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .btn-view-gallery {
        padding: 14px 32px;
        font-size: 13px;
    }
}