/* Image Carousel Styles - single-giftcode */
.gcn-trusted-source-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0 26px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.gcn-trusted-source-content {
    min-width: 0;
}

.gcn-trusted-source-title {
    margin: 0 0 6px;
    color: var(--color-text-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

.gcn-trusted-source-desc {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.gcn-trusted-source-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.gcn-trusted-source-button:hover {
    color: #0f172a;
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.gcn-google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #4285f4;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 800;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.image-carousel-wrapper {
    margin: 30px 0;
    width: 100%;
}

.gcn-carousel-container {
    padding: 10px 0;
    margin: 0 -15px;
    /* Overcome container padding for full width scroll on mobile */
    padding: 10px 15px;
}

.gcn-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
    scrollbar-width: none;
    /* Firefox */
}

.gcn-carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Base slide element */
.gcn-carousel-slide {
    flex: 0 0 auto;
    width: calc(33.333% - 10px);
    /* 3 images on desktop */
    min-width: 200px;
    /* Minimum reasonable width */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: var(--color-surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gcn-carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gcn-lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.gcn-lightbox-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    transition: transform 0.5s ease;
}

.gcn-lightbox-link:hover img {
    transform: scale(1.05);
}

/* Hover overlay indicator */
.gcn-lightbox-link::after {
    content: "\f00e";
    /* FontAwesome zoom icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.gcn-lightbox-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    .gcn-carousel-slide {
        width: calc(50% - 7.5px);
        /* 2 images on tablets */
    }
}

@media (max-width: 767px) {
    .gcn-trusted-source-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
        margin: 20px 0 22px;
    }

    .gcn-trusted-source-title {
        font-size: var(--text-base);
    }

    .gcn-trusted-source-button {
        width: 100%;
    }

    .image-carousel-wrapper {
        margin: 20px 0;
    }

    .gcn-carousel-slide {
        /* Mobile: 1 image taking up 85% width so the next one peeks in */
        width: 85%;
        scroll-snap-align: center;
    }

    /* Ensure the first slide snaps to start and last to end for better UX on mobile */
    .gcn-carousel-slide:first-child {
        scroll-snap-align: start;
        margin-left: max(0px, calc((100vw - 100%) / 2));
        /* Align with container padding */
    }

    .gcn-carousel-slide:last-child {
        scroll-snap-align: end;
        margin-right: 15px;
        /* Right padding */
    }
}
