/**
 * Gallery block styles
 */
.tewido-gallery-container .tewido-grid {
    height: auto !important;
}

/* Hide items for load more functionality */
.tewido-hidden {
    display: none !important;
}

/* Gallery item styling */
.td-gallery-item {
    transition: all 0.3s ease;
}

.td-gallery-item:hover {
    transform: translateY(-5px);
}

/* Load more button styling */
.tewido-load-more-wrapper {
    margin-top: 30px;
}

/* Gallery item image container */
.gallery-item-image,
.td-gallery-item-image {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.gallery-item-image img,
.td-gallery-item-image img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
}

.td-gallery-item:hover .gallery-item-image img,
.td-gallery-item:hover .td-gallery-item-image img {
    transform: scale(1.05);
}

/* Loading spinner alignment */
.tewido-load-more-button [uk-spinner] {
    margin-left: 8px;
    vertical-align: middle;
}

/* Hide items that are not yet loaded */
.td-gallery-item.tewido-hidden {
    display: none;
}

.td-gallery-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    outline: inherit;
    border: none;
    pointer-events: none;
    isolation: isolate;
}

.td-gallery-play::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
}

.td-gallery-play svg {
    position: relative;
    z-index: 1;
    mix-blend-mode: difference;
    margin-left: 2px;
}
