/* Gallery 6 Specific Styles (Mimicking React/Tailwind Component) */
.gallery6-section {
    padding: 80px 0;
    overflow: hidden;
}

.gallery6-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .gallery6-header {
        flex-direction: row;
        align-items: flex-end;
        margin-bottom: 3.5rem;
    }
}

.header-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .header-content h2 {
        font-size: 2.25rem;
        line-height: 2.5rem;
        margin-bottom: 1rem;
    }
}

.book-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .book-demo-link {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .book-demo-link {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

.book-demo-link:hover {
    color: var(--primary-color);
}

.book-demo-link i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.book-demo-link:hover i {
    transform: translateX(4px) translateY(-4px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .header-actions {
        margin-top: 0;
    }
}

.gallery-nav.btn-outline-custom {
    border: 1px solid #e2e8f0;
    background: transparent;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #0f172a;
}

.gallery-nav.btn-outline-custom:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.gallery-nav.btn-outline-custom:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.gallery-nav i {
    font-size: 1.25rem;
}

/* Track modifications to fit existing JS logic */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-out;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    /* Default mobile */
    padding-left: 1rem;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 900px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }
}

/* Card Styling */
.gallery-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    cursor: pointer;
}

.image-wrapper {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.image-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-card:hover .image-inner img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.25rem;
        line-height: 1.75rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .card-title {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.card-summary {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #64748b;
    /* muted foreground */
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card-summary {
        font-size: 1rem;
        line-height: 1.5rem;
        margin-bottom: 3rem;
    }

    @media (min-width: 1024px) {
        .card-summary {
            margin-bottom: 2.25rem;
        }
    }
}

.read-more {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-color);
}

.read-more i {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.gallery-card:hover .read-more i {
    transform: translateX(4px);
}