/**
 * WPLake Mosaic Gallery Styles
 */

.wplmg-mosaic-gallery {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

/* Grid Layout */
.wplmg-gallery-container {
    display: grid;
    grid-template-columns: 66.66% 16.66% 16.66%;
    grid-template-rows: repeat(2, auto);
    grid-gap: 5px;
    width: 100%;
}

/* Grid layout for equal sized images */
.wplmg-gallery-container.wplmg-grid-layout {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
}

.wplmg-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.wplmg-gallery-item:hover {
    opacity: 0.9;
}

.wplmg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wplmg-gallery-item:hover img {
    transform: scale(1.05);
}

/* Position classes */
.wplmg-position-large {
    grid-column: 1;
    grid-row: 1 / span 2;

}

.wplmg-position-top-right {
    grid-column: 2;
    grid-row: 1;
    
}

.wplmg-position-bottom-right {
    grid-column: 2;
    grid-row: 2;
   
}

.wplmg-position-top-far-right {
    grid-column: 3;
    grid-row: 1;
   
}

.wplmg-position-bottom-far-right {
    grid-column: 3;
    grid-row: 2;
    height: 200px;
}

/* Grid layout items */
.wplmg-grid-layout .wplmg-gallery-item {
    grid-column: auto;
    grid-row: auto;
    height: 200px;
}

/* Featured badge */
.wplmg-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #7b68ee;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* See all button */
.wplmg-see-all-overlay {
    position: absolute;
    bottom: 10px;
    right: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.wplmg-see-all-button {
    background-color: white;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wplmg-see-all-button:hover {
    background-color: #f0f0f0;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .wplmg-gallery-container {
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 0;
        height: auto;
    }
    
    .wplmg-gallery-item {
        width: 100%;
        height: auto;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
    }
    
    .wplmg-position-large {
        width: 100%;
        height: auto;
        margin-bottom: 5px;
    }
    
    .wplmg-position-top-right,
    .wplmg-position-bottom-right,
    .wplmg-position-top-far-right,
    .wplmg-position-bottom-far-right {
        width: calc(50% - 3px);
        margin-bottom: 5px;
    }
    
}
