.fgp-2145-trigger {
    cursor: pointer;
    border: none;
    background: #0073e6;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.fgp-2145-trigger:hover {
    opacity: 0.9;
}

/* Modal Styles */
.fgp-2145-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.fgp-2145-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.fgp-2145-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
}

.fgp-2145-gallery-container {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fgp-2145-scroller {
    display: flex;
    gap: 30px;
    width: 100%;
    height: 100%;
    padding: 20px;
    align-items: center;
    
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

/* Horizontal Scroll Common */
.fgp-2145-scroller.is-free,
.fgp-2145-scroller.is-snap {
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* Snap Scroll Logic */
.fgp-2145-scroller.is-snap {
    scroll-snap-type: x mandatory;
}

.fgp-2145-scroller.is-snap .fgp-2145-item {
    scroll-snap-align: center;
}

/* Grid Layout Logic */
.fgp-2145-scroller.is-grid {
    flex-wrap: wrap;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    align-content: flex-start;
}

.fgp-2145-scroller.is-grid .fgp-2145-item {
    width: calc(33.333% - 20px);
    max-width: 100%;
    height: 300px; /* Fixed height for grid items */
    flex: 0 0 auto;
}

.fgp-2145-scroller::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.fgp-2145-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.fgp-2145-scroller::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.fgp-2145-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

/* Specific sizing for horizontal modes */
.fgp-2145-scroller.is-free .fgp-2145-item,
.fgp-2145-scroller.is-snap .fgp-2145-item {
    flex: 0 0 auto;
    height: 80%;
    max-width: 80vw;
}

.fgp-2145-item:hover {
    transform: scale(1.01);
    z-index: 2;
}

.fgp-2145-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.fgp-2145-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fgp-2145-item:hover .fgp-2145-info {
    opacity: 1;
    transform: translateY(0);
}

.fgp-2145-client {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 2px;
}

.fgp-2145-caption {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.fgp-2145-description {
    font-size: 14px;
    color: #ddd;
    margin-top: 5px;
    line-height: 1.4;
    max-width: 400px;
}

body.fgp-2145-no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .fgp-2145-scroller.is-free .fgp-2145-item,
    .fgp-2145-scroller.is-snap .fgp-2145-item {
        max-width: 85vw;
        height: 60%;
    }

    .fgp-2145-scroller.is-grid .fgp-2145-item {
        width: 100%; /* Full width on mobile grid */
        height: 250px;
        margin-bottom: 20px;
    }
    
    .fgp-2145-info {
        opacity: 1; /* Always show info on mobile */
        transform: translateY(0);
        padding: 20px 15px 15px;
    }
    
    .fgp-2145-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }
}