/* Gallery Page Styles */

/* Gallery Hero Section */
.gallery-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 50%, #004d99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 5% 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-hero-content {
    max-width: 800px;
    z-index: 2;
}

.gallery-subtitle {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.gallery-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.gallery-hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

/* Instagram Feed Section */
.instagram-feed {
    background: #000;
    padding: 6rem 5%;
    min-height: 100vh;
}

.feed-container {
    max-width: 1400px;
    margin: 0 auto;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.feed-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00aaff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00aaff, #00ff88);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.4);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 170, 255, 0.3);
    border-color: rgba(0, 170, 255, 0.5);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.9), rgba(0, 204, 102, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

.gallery-overlay span {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Indicator */
.video-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.video-indicator i {
    font-size: 1.8rem;
    color: white;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #00aaff;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.2rem;
}

/* Gallery Footer */
.gallery-footer {
    background: #000;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-footer p {
    opacity: 0.7;
    font-size: 1rem;
}

/* Responsive Design */

/* Tablet Landscape - 1024px and below */
@media (max-width: 1024px) {
    .gallery-hero {
        padding: 8rem 3% 5rem;
    }

    .gallery-title {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }

    .gallery-description {
        font-size: 1.2rem;
    }

    .instagram-feed {
        padding: 5rem 3%;
    }

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

/* Tablet Portrait - 768px and below */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 7rem 4% 4rem;
        min-height: 50vh;
    }

    .gallery-subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-bottom: 1.2rem;
    }

    .gallery-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1.2rem;
    }

    .gallery-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .gallery-hero .btn {
        padding: 1rem 2.2rem;
        font-size: 0.95rem;
    }

    .instagram-feed {
        padding: 4rem 4%;
    }

    .feed-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .feed-header h2 {
        font-size: 2rem;
    }

    .follow-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
    }

    .gallery-overlay span {
        font-size: 1rem;
    }

    .video-indicator {
        width: 45px;
        height: 45px;
        top: 12px;
        right: 12px;
    }

    .video-indicator i {
        font-size: 1.6rem;
    }

    .load-more-container {
        margin-top: 2.5rem;
    }

    .lightbox {
        padding-top: 50px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 75vh;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 15px 0;
    }

    .gallery-footer {
        padding: 2.5rem 4%;
    }

    .gallery-footer p {
        font-size: 0.95rem;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .gallery-hero {
        padding: 6rem 3% 3rem;
        min-height: 45vh;
    }

    .gallery-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .gallery-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .gallery-description {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .gallery-hero .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .instagram-feed {
        padding: 3rem 3%;
    }

    .feed-header {
        margin-bottom: 2rem;
        padding-bottom: 1.2rem;
    }

    .feed-header h2 {
        font-size: 1.6rem;
    }

    .follow-btn {
        padding: 0.85rem 1.6rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 2.5rem;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .gallery-overlay i {
        font-size: 2rem;
    }

    .gallery-overlay span {
        font-size: 0.9rem;
    }

    .video-indicator {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .video-indicator i {
        font-size: 1.4rem;
    }

    .load-more-container {
        margin-top: 2rem;
    }

    .load-more-container .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .lightbox {
        padding-top: 40px;
    }

    .lightbox-content {
        max-width: 98%;
        max-height: 70vh;
    }

    .lightbox-close {
        top: 5px;
        right: 15px;
        font-size: 35px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 12px 0;
        width: 90%;
    }

    .gallery-footer {
        padding: 2rem 3%;
    }

    .gallery-footer p {
        font-size: 0.85rem;
    }
}

/* Ensure images don't overflow on very small screens */
@media (max-width: 360px) {
    .gallery-grid {
        gap: 0.6rem;
    }

    .feed-header h2 {
        font-size: 1.4rem;
    }

    .gallery-title {
        font-size: 1.6rem;
    }
}
