.wp-album-gallery-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.wp-album-gallery-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.wp-album-gallery-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.wp-album-gallery-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wp-album-gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-album-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wp-album-gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wp-album-gallery-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.wp-album-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-album-gallery-item:hover .wp-album-gallery-thumbnail img {
    transform: scale(1.05);
}

.wp-album-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-album-gallery-item:hover .wp-album-gallery-overlay {
    opacity: 1;
}

.wp-album-gallery-view {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wp-album-gallery-info {
    padding: 15px;
}

.wp-album-gallery-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wp-album-gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.wp-album-gallery-count,
.wp-album-gallery-date {
    display: flex;
    align-items: center;
}

.wp-album-gallery-single {
    margin: 30px 0;
}

.wp-album-gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.wp-album-gallery-breadcrumb-link {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wp-album-gallery-breadcrumb-link:hover {
    color: #005177;
    text-decoration: underline;
}

.wp-album-gallery-breadcrumb-separator {
    color: #999;
}

.wp-album-gallery-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.wp-album-gallery-single-header {
    margin-bottom: 30px;
    text-align: center;
}

.wp-album-gallery-single-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #333;
}

.wp-album-gallery-single-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
}

.wp-album-gallery-single-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #999;
}

.wp-album-gallery-single-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, 300px);
    justify-content: center;
}

.wp-album-gallery-single-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, 300px);
}

.wp-album-gallery-single-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, 300px);
}

.wp-album-gallery-single-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, 300px);
}

.wp-album-gallery-single-grid[data-columns="5"] {
    grid-template-columns: repeat(auto-fill, 300px);
}

.wp-album-gallery-single-item {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-album-gallery-single-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wp-album-gallery-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-album-gallery-single-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-album-gallery-single-item:hover img {
    transform: scale(1.05);
}

.wp-album-gallery-empty,
.wp-album-gallery-error {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

.wp-album-gallery-error {
    background: #fee;
    color: #c33;
}

@media (max-width: 768px) {
    .wp-album-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px;
    }
    
    .wp-album-gallery-single-grid {
        grid-template-columns: repeat(auto-fill, 200px) !important;
        gap: 10px;
    }
    
    .wp-album-gallery-single-item {
        width: 200px;
        height: 200px;
    }
    
    .wp-album-gallery-single-title {
        font-size: 24px;
    }
    
    .wp-album-gallery-single-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wp-album-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
    
    .wp-album-gallery-single-grid {
        grid-template-columns: repeat(auto-fill, 150px) !important;
    }
    
    .wp-album-gallery-single-item {
        width: 150px;
        height: 150px;
    }
}
