/**
 * Shared layout styles for the Collection Showcase module.
 * Per-instance colors are output by includes/frontend.css.php.
 */

.fl-collection-showcase {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
}

/* Left: the swapping image. */
.fl-collection-showcase .fl-cs-image {
    position: relative;
    flex: 1 1 50%;
    align-self: stretch;
    min-height: 100%;
}

.fl-collection-showcase .fl-cs-image-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.fl-collection-showcase .fl-cs-image-el.fl-cs-image-active {
    opacity: 1;
}

/* Right: the list of collection boxes. */
.fl-collection-showcase .fl-cs-items {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

.fl-collection-showcase .fl-cs-item {
    padding: 28px 32px;
    transition: background-color 0.25s ease;
    cursor: default;
}

.fl-collection-showcase .fl-cs-item+.fl-cs-item {
    border-top: 1px solid;
}

.fl-collection-showcase .fl-cs-item-title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.2;
}

.fl-collection-showcase .fl-cs-item-desc {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
}

.fl-collection-showcase .fl-cs-item-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fl-collection-showcase .fl-cs-item-link:hover .fl-button-icon {
    transform: translateX(4px);
}

.fl-collection-showcase .fl-button-icon {
    transition: transform 0.2s ease;
}

/* Stack on narrow screens: hide the image and show the boxes full width. */
@media (max-width: 768px) {
    .fl-collection-showcase {
        flex-direction: column;
    }

    .fl-collection-showcase .fl-cs-image {
        display: none;
    }

    .fl-collection-showcase .fl-cs-item {
        padding: 24px 20px;
    }
}