/**
 * Group Filters CSS
 * Styles for video and attachment group filtering functionality
 * Similar to blog tag filtering system
 */

/* Group filter styles similar to blog */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.button-group .button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.button-group .button:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    text-decoration: none;
}

.button-group .button.is-checked {
    background: var(--activeColor);
    color: white;
    border-color: var(--activeColor);
}

.video-item, .attachment-item {
    transition: opacity 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.video-item.hidden, .attachment-item.hidden {
    display: none;
}

/* Video container specific styles */
#videoContainer {
    position: relative;
    width: 100%;
    min-height: 200px;
}

#videoContainer .video-item {
    margin-bottom: 15px;
    width: 100%;
}

/* Attachment container specific styles */
#attachmentContainer {
    position: relative;
    width: 100%;
    min-height: 100px;
}

#attachmentContainer .attachment-item {
    margin-bottom: 15px;
}

/* Isotope container fixes */
.isotope {
    transition-property: height, width;
}

.isotope .isotope-item {
    z-index: 2;
}

.isotope .isotope-hidden.isotope-item {
    pointer-events: none;
    z-index: 1;
}

/* Ensure proper sizing for masonry layout */
.video-item img {
    width: 100%;
    height: auto;
    display: block;
}

.attachment-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Offcanvas specific adjustments */
.offcanvas-body .button-group {
    margin-bottom: 1.5rem;
}

.offcanvas-body .button-group .button {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}