/* Instagram-style Carousel for Blog Posts - Clean Design */

/* Root Variables */
:root {
    --slide-width: 100%;
    --border-radius: 12px;
    --shadow-light: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --instagram-gradient: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.slider-container-insta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    background: transparent;
}

.slider-insta {
    width: 100%;
    max-width: 28rem; /* Optimized for 4:5 aspect ratio */
    aspect-ratio: 4/5; /* Let CSS handle the height automatically based on width */
    margin: 0.5rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.slider-insta:hover {
    box-shadow: var(--shadow-hover);
}

.slides-insta {
    display: flex;
    overflow-x: scroll;
    position: relative;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    height: 100%;
}

/* Hide scrollbar in Chrome/Safari/Opera */
.slides-insta::-webkit-scrollbar {
    display: none;
}

.slide-insta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    margin-right: 0;
    box-sizing: border-box;
    background: #fafafa;
    transform-origin: center center;
    transform: scale(1);
    scroll-snap-align: center;
    position: relative;
    border: none;
}

.slide-insta:nth-of-type(even) {
    background: #fff;
}

.slide-insta__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    display: block;
}

.slide-insta__cover_image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    display: block;
}

/* Navigation arrows - cleaner design */
.slide-insta__prev,
.slide-insta__next {
    position: absolute;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.slide-insta__prev:hover,
.slide-insta__next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.slide-insta__prev {
    left: 1rem;
}

.slide-insta__next {
    right: 1rem;
}

.slide-insta__prev::before,
.slide-insta__next::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    display: inline-block;
}

.slide-insta__prev::before {
    transform: rotate(135deg);
    margin-left: 0.2rem;
}

.slide-insta__next::before {
    transform: rotate(-45deg);
    margin-right: 0.2rem;
}

@media screen and (max-width: 768px) {
    .slide-insta__prev,
    .slide-insta__next {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .slide-insta__prev::before,
    .slide-insta__next::before {
        width: 0.4rem;
        height: 0.4rem;
        border-width: 0 1.5px 1.5px 0;
    }
    
    .slide-insta__prev {
        left: 0.5rem;
    }
    
    .slide-insta__next {
        right: 0.5rem;
    }
}

/* Navigation dots - Instagram style */
.slider-insta__nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-insta__navlink {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-insta__navlink:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider-insta__navlink.active {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media screen and (max-width: 768px) {
    .slider-insta__navlink {
        width: 0.4rem;
        height: 0.4rem;
    }
    
    .slider-insta__nav {
        bottom: 0.5rem;
        gap: 0.4rem;
    }
}

/* Instagram icon in bottom left - positioned over the image */
.instagram-icon {
    position: absolute;
    bottom: 0.5rem; /* Position above the navigation dots */
    left: 0.5rem;
    z-index: 15;
    width: 2rem;
    height: 2rem;
    background: var(--instagram-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.instagram-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.instagram-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: white;
}

@media screen and (max-width: 768px) {
    .instagram-icon {
        width: 1.5rem;
        height: 1.5rem;
        bottom: 3rem; /* Position above the navigation dots on mobile */
        left: 0.5rem;
        border-radius: 4px;
    }
    
    .instagram-icon svg {
        width: 0.9rem;
        height: 0.9rem;
    }
}

/* Slide titles and descriptions - minimal style */
.slide-insta__title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-insta:hover .slide-insta__title {
    opacity: 1;
}

.slide-insta__description {
    position: absolute;
    bottom: 3rem;
    left: 1rem;
    right: 1rem;
    color: white;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-insta:hover .slide-insta__description {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .slide-insta__title,
    .slide-insta__description {
        display: none;
    }
} 