/**
 * Christmas Flyer Public Styles
 */

/* Container & Layouts */
.cf-gallery-container {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.cf-pos-bottom {
    flex-direction: column;
}

.cf-pos-right {
    flex-direction: row;
}

.cf-pos-left {
    flex-direction: row-reverse;
}

/* Main Gallery Area */
.cf-gallery-main {
    width: 100%;
    /* Aspect ratio or fixed height can be controlled here or via overrides */
    height: 400px;
    /* Default height */
    overflow: hidden;
    border-radius: 8px;
}

/* Thumbnails Area */
.cf-gallery-thumbs {
    box-sizing: border-box;
}

/* Bottom thumbs layout */
.cf-pos-bottom .cf-gallery-thumbs {
    height: 100px;
    padding: 10px 0;
    width: 100%;
}

/* Side thumbs layout */
.cf-pos-right .cf-gallery-thumbs,
.cf-pos-left .cf-gallery-thumbs {
    width: 20%;
    /* 20% width for thumbs */
    height: 400px;
    /* Match main gallery height */
    padding: 0;
}

.cf-pos-right .cf-gallery-main,
.cf-pos-left .cf-gallery-main {
    width: 80%;
    /* 80% width for main image */
}

/* Slide Styling */
.cf-gallery-thumbs .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.cf-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #e55c00;
    /* Accent color */
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* or cover, depending on preference */
    background: #fff;
}

/* Fix for side thumbs vertical sizing */
.cf-pos-right .cf-gallery-thumbs .swiper-slide,
.cf-pos-left .cf-gallery-thumbs .swiper-slide {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    /* Square thumbs on side */
    margin-bottom: 10px;
}

/* Grid Gallery */
.cf-gallery-grid-container {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.cf-gallery-grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cf-gallery-grid-item img:hover {
    transform: scale(1.02);
}