:root {
    --primary-color: #FF6600;
    --primary-light: #ff884d;
    --primary-dark: #cc5200;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --text-light: #ffffff;
    --text-dark: #333333;
    --spacing-sm: 15px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
    --transition-speed: 0.3s;
}

/* Filter Section Styles */
.filter-section {
    padding: 0 0 var(--spacing-md);
}

.filter-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.filter-heading h3 {
    font-family: "Libre Bodoni", serif;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.filter-heading h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.filter-btn {
    background-color: #fff;
    color: var(--text-dark);
    border: 2px solid #e9ecef;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

/* Animation for filtered items */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item.filtered-in {
    animation: fadeIn 0.5s forwards;
}

.gallery-item.filtered-out {
    display: none;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.no-results h3 {
    font-family: "Libre Bodoni", serif;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.no-results p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Gallery Hero Section */
.gallery-hero {
    position: relative;
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.parallax-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/yoga_3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.parallax-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.85), rgba(204, 82, 0, 0.9));
    z-index: 0;
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--primary-dark);
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
    z-index: 3;
}

.gallery-hero h1 {
    font-family: "Libre Bodoni", serif;
    font-weight: 700;
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.gallery-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 25px auto 0;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 0.95; transform: translateY(0); }
}

/* Gallery Grid Section */
.gallery-section {
    padding: var(--spacing-md) 0 var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: 250px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 102, 0, 0.7), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--text-light);
    font-size: 2rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.gallery-caption {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0 15px;
    text-align: center;
    max-width: 100%;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightboxImage {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--text-light);
    border-radius: 4px;
}

.lightbox-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.lightbox-content:hover .lightbox-caption {
    transform: translateY(0);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-speed), transform var(--transition-speed);
    z-index: 1110;
}

/* Lightbox Tools */
.lightbox-tools {
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    gap: 15px;
}

.tool-btn {
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.tool-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.close-lightbox:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 1105;
}

.nav-btn {
    background-color: rgba(255, 102, 0, 0.7);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-hero h1 {
        font-size: 3.5rem;
    }
    
    .parallax-container {
        height: 350px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-share {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-share:hover {
    color: var(--primary-color);
}

.share-modal h3 {
    font-family: "Libre Bodoni", serif;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.share-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, opacity 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn i {
    margin-right: 8px;
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.pinterest {
    background-color: #bd081c;
}

.whatsapp {
    background-color: #25d366;
}

.share-link-input {
    display: flex;
    margin-top: 15px;
}

.share-link-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.share-link-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-link-input button:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-hero {
        padding: var(--spacing-md) 0;
    }
    
    .parallax-container {
        height: 300px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-subtitle {
        font-size: 1.1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .share-links {
        grid-template-columns: 1fr;
    }
    
    /* Use background-attachment: scroll for mobile for better performance */
    .parallax-background {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .parallax-container {
        height: 250px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
    }
}
