/**
 * SECTION 1: MAIN WRAPPER & RESPONSIVE SIZING
 * Constrains the post width for better readability on larger screens.
 */

.gfs-snap-main-wrapper {
    /* Laptop/Desktop: Keep it compact and centered */
    max-width: 20%;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

/**
 * Responsive adjustments for Tablets and Phones
 */
@media (max-width: 768px) {
    .gfs-snap-main-wrapper {
        /* Tablet: Slightly wider but still constrained */
        max-width: 35%;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .gfs-snap-main-wrapper {
        /* Mobile: Take up more screen space but keep a tiny margin */
        max-width: 95%;
        margin: 15px auto;
        border-radius: 4px;
        /* Sharper corners for mobile */
    }
}

/**
 * SECTION 2: THE SLIDER (SCROLL SNAP)
 * Updated to ensure width calculation is forced.
 */

.gfs-snap-slider {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent slides from wrapping to the next line */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* Hide scrollbar while maintaining functionality */
.gfs-snap-slider::-webkit-scrollbar {
    display: none;
}

.gfs-snap-slide {
    flex: 0 0 100%;
    min-width: 100%;
    /* Force each slide to occupy the full width */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Ensure it stops on each image */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfs-snap-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    /* Prevent images from being taller than the screen */
    display: block;
    object-fit: contain;
}


/**
 * SECTION 3: CAPTION & CONTENT
 */
.gfs-snap-caption-area {
    background: #fff;
    border-top: 1px solid #efefef;
}

.gfs-snap-text-content {
    margin-top: 10px;
    padding: 0 1.5rem;
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    word-wrap: break-word;
}

/**
 * SECTION 4: DOTS
 */
.gfs-snap-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 4px;
}

.gfs-dot {
    width: 6px;
    height: 6px;
    background: #a8a8a8;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.gfs-dot.active {
    background: #0095f6;
}



.sa-author {
    max-width: 720px;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-author img {
    border-radius: 50%;
}

.sa-author-meta {
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

.sa-author-name {
    font-weight: 600;
    font-size: 15px;
}

.sa-author-date {
    font-size: 13px;
    color: #6b6b6b;
}

/* Mobile */
@media (max-width: 768px) {
    .sa-author {
        padding: 1rem 1rem;
    }
}



