/* Gallery Header */
.gallery-header {
    margin-top: 120px;
    text-align: center;
    padding: 0 20px;
}

.gallery-header h1 {
    font-size: 3rem;
    color: #4a3428;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #777;
    font-size: 1.1rem;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

.filter-btn {
    padding: 12px 28px;
    border: none;
    background: #e5e5e5;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #c1554d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(193, 85, 77, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 0 20px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav i {
    pointer-events: none;
}

/* Share Buttons */
.lightbox-share {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10001;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    display: flex;
    opacity: 1;
}

.share-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.share-modal-content h3 {
    margin: 0 0 30px 0;
    color: #4a3428;
    font-size: 1.8rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.social-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
}

.social-share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-share-btn.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.social-share-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.social-share-btn.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-share-btn.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.social-share-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.social-share-btn.whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.social-share-btn svg {
    width: 32px;
    height: 32px;
}

.share-link-section {
    display: flex;
    gap: 10px;
}

.share-link-section input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f8f8f8;
    color: #333;
}

.copy-link-btn {
    padding: 12px 24px;
    background: #c1554d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: #a84540;
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4a3428;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10003;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 36px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-share {
        bottom: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .share-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .share-modal-content {
        padding: 30px 20px;
    }

    .share-options {
        grid-template-columns: 1fr;
    }

    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

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

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}