/* Gallery Page Styles */
.gallery-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('https://iili.io/3oemyzb.jpg') center/cover no-repeat;
    margin-top: 80px;
    padding: 80px 0;
}

.gallery-hero .section-title,
.gallery-hero .section-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Filter */
.gallery-filter {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #eee;
    color: #555;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #ffe044;
    color: #0d1b12;
}

.filter-btn.active {
    background: #ffe044;
    border-color: #ffe044;
    color: #0d1b12;
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 60px 20px;
    background: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-item.hide {
    display: none;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13,27,18,0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

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

.gallery-info {
    text-align: center;
    color: #fff;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
}

.gallery-info p {
    color: #bfc8c2;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.gallery-view-btn {
    background: #ffe044;
    color: #0d1b12;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-view-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
}

.lightbox-caption h3 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
}

.lightbox-caption p {
    color: #bfc8c2;
    margin: 0;
    font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ffe044;
    color: #0d1b12;
}

.lightbox-close {
    top: -70px;
    right: 0;
}

.lightbox-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

/* Instagram Feed */
.instagram-section {
    padding: 80px 20px;
    background: #f5f5f5;
}

.instagram-section .section-title,
.instagram-section .section-subtitle {
    color: #333;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 40px auto 30px;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.instagram-item::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.instagram-item {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13,27,18,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.instagram-overlay i {
    color: #fff;
    font-size: 2rem;
}

.instagram-follow {
    text-align: center;
    margin-top: 30px;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .instagram-feed {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lightbox-content {
        max-width: 90%;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}
