/* Instagram Feed Styles */

:root {
    --ig-color-gold: #c5a059;
    --ig-color-white: #ffffff;
    --ig-color-forest: #1a2c21;
    --ig-radius-sm: 8px;
    --ig-radius-md: 12px;
    --ig-transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Container */
.ig-container {
    padding: 2rem 0;
}

/* Grid Layout */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ig-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        gap: 15px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .ig-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .ig-grid .ig-card {
        min-width: 85%;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
}

/* Masonry Layout */
.ig-masonry {
    column-count: 4;
    column-gap: 20px;
    margin-top: 50px;
}

.ig-masonry .ig-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

@media (max-width: 1200px) {
    .ig-masonry {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .ig-masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .ig-masonry {
        column-count: 1;
    }
}

/* Card Styles */
.ig-card {
    background: var(--ig-color-white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--ig-transition-smooth);
    border: none;
    height: 100%;
}

.ig-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.ig-media-container {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    margin: 20px;
    margin-bottom: 0;
    aspect-ratio: 1.5;
    border-radius: 6px;
}

.ig-media-container img,
.ig-media-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Video Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-overlay i {
    color: white;
    font-size: 24px;
}

/* Info Section */
.ig-info {
    padding: 20px;
    padding-top: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ig-caption {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ig-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.ig-meta a {
    color: var(--ig-color-gold);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ig-flat-icon {
    font-size: 1.2rem;
}

/* Carousel / Slider support */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: 100%;
    scroll-snap-align: center;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.carousel-dot.active {
    background: white;
}