/* Masonry Gallery Styles */
.dv-photo-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dv-gallery-grid {
    column-count: 4;
    column-gap: 10px;
}

@media (max-width: 1024px) {
    .dv-gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .dv-gallery-grid {
        column-count: 2;
        column-gap: 8px;
    }
}

@media (max-width: 480px) {
    .dv-gallery-grid {
        column-count: 1;
        column-gap: 0;
    }
}

.dv-gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.dv-gallery-item:hover {
    transform: scale(1.02);
}

.dv-gallery-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
    line-height: 0;
}

.dv-gallery-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dv-gallery-item:hover a::before {
    opacity: 1;
}

.dv-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.dv-gallery-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 20px;
    color: #fff;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dv-gallery-item:hover .dv-gallery-content {
    opacity: 1;
}

.dv-gallery-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.dv-gallery-price {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Loading state */
.dv-gallery-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* No products found */
.dv-gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}