/* ============= GALLERY PAGE STYLES ============= */

.gallery-hero {
    padding: 150px 0 80px;
    background: var(--color-black);
    text-align: center;
}

.gallery-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 20px;
}

.gallery-subtitle {
    font-size: 18px;
    color: var(--color-gray-700);
    margin-bottom: 0;
}

.instagram-handle {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-handle:hover {
    color: var(--color-white);
}

/* ============= INSTAGRAM FEED ============= */
.instagram-feed-section {
    padding: 0;
    background: var(--color-black);
}

.container-full {
    max-width: 100%;
    padding: 0;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
    background: var(--color-black);
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-gray-100);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

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

.instagram-stats {
    display: flex;
    gap: 30px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
}

.instagram-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-stat::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
}

.instagram-likes::before {
    content: '❤️';
}

.instagram-comments::before {
    content: '💬';
}

.instagram-caption {
    color: var(--color-white);
    font-size: 14px;
    margin-top: 15px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* ============= LOADING SPINNER ============= */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: var(--color-white);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============= MANUAL GALLERY (FALLBACK) ============= */
.manual-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.gallery-overlay p {
    color: var(--color-white);
    font-size: 14px;
    text-align: center;
}

/* ============= GALLERY CTA ============= */
.gallery-cta {
    padding: 100px 0;
    background: var(--color-black);
    text-align: center;
    border-top: 1px solid var(--color-gray-200);
}

.gallery-cta h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 15px;
}

.gallery-cta p {
    font-size: 18px;
    color: var(--color-gray-700);
    margin-bottom: 30px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .instagram-grid,
    .manual-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }

    .gallery-hero {
        padding: 120px 0 60px;
    }

    .instagram-stats {
        gap: 20px;
        font-size: 14px;
    }

    .gallery-cta {
        padding: 60px 0;
    }
}

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