/* Reset i podstawowe style */
.my-media .photos-filter-tabs,
.my-media .filters-sidebar,
.my-media .media-filters-container,
.my-media .active-filters-section {
    display: none !important;
}
* {
    box-sizing: border-box;
}
.page-id-48 .media-type-navs,
.page-id-48 .media-options  {
display: none !important;
}
.page-id-48 .entry-title {
    margin-bottom: 1em !important;
}
#media-filters-form {
    margin: 0 !important;
}

/* Zakładki filtrów */
.photos-filter-tabs {
    position: absolute;
    top: -12px;
    right: 0;
    display: flex;
    background: none;
    margin-bottom: 20px;
    overflow: hidden;
    width: auto;
    justify-content: flex-end;
    gap: 30px;
}

.filter-tab {
    padding: 10px 0px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 21px */
    letter-spacing: -0.075px;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: #C57C13;
    font-weight: 600;
}
.filter-tab:last-child {
    border-right: none;
}

.filter-tab.active {
    color: #C57C13;
    font-weight: 600;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #C57C13;
}

/* Ukryj filtry dla innych zakładek niż "Wszystkie zdjęcia" */
.filters-sidebar.hide-standard-filters {
    display: none;
}

/* Główny container */
.photos-layout-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    flex-direction: column;
}

/* Sidebar z filtrami */
.filters-sidebar {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.media-filters-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 32px;
}
.media-filters-form .filter-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}
#hashtag-input::placeholder {
    color: black;
    opacity: 1; /* For Firefox */
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    color: var(--n---black, #000);
    font-size: 19px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; /* 26.6px */
    letter-spacing: -0.095px;
    padding-bottom: 14px;
    margin-bottom: 0 !important;
}

.filter-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 32px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    transition: color 0.2s;
    margin-bottom: 0;
}

.checkbox-option:hover {
    color: #C57C13;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    accent-color: #C57C13;
    cursor: pointer;
}

.checkbox-text {
    color: var(--Gray-600, #595959);
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.08px;
}
.filter-section-age-content {
    display: flex;
    justify-content: space-between;
}
#media-filters-form  button.filter-button {
    width: 265px;
    padding: 12px 16px 11px 16px;
    justify-content: center;
    align-items: center;
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.075px;
    border-radius: 4px;
    background: var(--Gold-B, #C57C13);
    margin: 0;
    transition: all 0.2s;
}
/* Sekcja wieku */
.age-range {
    display: flex;
    gap: 12px;
    margin: 0 !important;
}

#media-filters-form .age-input {
    display: flex;
    width: 215px;
    padding: 12px 16px 11px 16px;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
border: 1px solid var(--Gray-400, #AEAEAE);
background: var(--White, #FFF);
}

#media-filters-form .age-input:focus {
    outline: none;
    border-color: #C57C13;
    box-shadow: 0 0 0 3px rgba(197, 124, 19, 0.1);
}
#photos-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 22px;
    padding: 0;
}

#photos-gallery li,
#videos-gallery li {
    width: 31% !important;
    flex: 0 0 31% !important;
    max-width: 31% !important;
}
.bb-photo-cover-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}
.bb-photo-cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
#media-filters-form  button.filter-button:hover {
    background: #a66a0f;
    outline: none;
    border: none;
}
.photo-info-overlay {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.hashtag-suggestion {
    color: #000 !important;
}
/* Główna zawartość */
.photos-main-content {
    display: flex;
    gap: 22px;
}

/* Sekcja aktywnych filtrów */
.active-filters-section {
    border-radius: 10px;
    border: 1px solid rgba(193, 193, 193, 0.60);
    background: var(--White, #FFF);
    padding: 22px;
    width: 25%;
    height: -webkit-fill-available;
}

.hashtag-input-container {
    position: relative;
    margin-bottom: 16px;
}

.hashtag-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.hashtag-input:focus {
    outline: none;
    border-color: #C57C13;
    box-shadow: 0 0 0 3px rgba(197, 124, 19, 0.1);
}

.hashtag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.hashtag-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
}

.hashtag-suggestion:hover {
    background-color: #f8f9fa;
}

.hashtag-suggestion:last-child {
    border-bottom: none;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    color: var(--n---black, #000);
    font-family: Bitter;
    font-size: 19px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: -0.095px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remove-filter {
    background: none !important;
    border: none !important;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-filter:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Galeria zdjęć */
.photos-gallery {
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    width: 75%;
}

/* Loading state */
.photos-gallery.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.photos-gallery.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #C57C13;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style dla braku wyników */
.no-media-found {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-media-message {
    font-size: 16px;
    font-style: italic;
}

/* Style dla zawsze widocznych informacji o zdjęciu */
.photo-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 12px;
    opacity: 1; /* Zawsze widoczne */
}

.photo-username {
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 21px */
    letter-spacing: -0.075px;
}

.photo-time {
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 21px */
    letter-spacing: -0.075px;
}

/* Hover overlay (pojawia się po najechaniu) */
.photo-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bb-photo-cover-wrap:hover .photo-hover-overlay {
    opacity: 1;
}

.photo-details {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
@media screen and (max-width: 1200px) {
    #photos-gallery li,
    #videos-gallery li {
        width: 48% !important;
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
}
/* Responsywność */
@media screen and (max-width: 1024px) {
    #photos-gallery li,
    #videos-gallery li {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 48% !important;
    }
    #photos-gallery {
        width: 100% !important;
    }
    .photos-filter-tabs {
        position: relative;
        top: unset;
        right: unset;
        width: 100%;
        display: flex;
        background: none;
        flex: 1;
        margin-bottom: 20px;
        overflow: scroll;
        justify-content: space-between;
        gap: 30px;
    }
    .photos-layout-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filters-sidebar {
        width: 100%;
        position: static;
    }
    
    .filter-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .age-range {
        justify-content: center;
        max-width: 200px;
        margin: 0 auto 16px;
    }
    .photos-main-content {
        display: flex;
        gap: 22px;
        flex-direction: column-reverse;
    }
    .active-filters-section {
        border-radius: 10px;
        border: 1px solid rgba(193, 193, 193, 0.60);
        background: var(--White, #FFF);
        padding: 22px;
        width: 100%;
        height: -webkit-fill-available;
    }
}

@media (max-width: 768px) {
    .photos-layout-container {
        padding: 0 10px;
    }
    .filter-options {
        flex-direction: flex-start;
    }
    #photos-gallery li,
    #videos-gallery li {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    #photos-gallery {
        width: 100% !important;
    }
    .photos-page-header {
        padding: 30px 10px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .filters-sidebar,
    .active-filters-section,
    .photos-gallery {
        padding: 16px;
    }
    
    .filter-options {
        gap: 8px;
    }
}

/* Video specific styles */
.guest-blur img {
    filter: blur(15px);
    -webkit-filter: blur(15px);
}

.guest-blur::after {
    content: "Zaloguj się, aby oglądać filmy";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

/* Guest blur dla theatre mode */
.guest-blur-video figure video,
.guest-blur-video figure img {
    filter: blur(15px);
    -webkit-filter: blur(15px);
}

.guest-blur-video figure::after {
    content: "Zaloguj się, aby oglądać filmy";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

/* Video theatre specific fixes */
.bb-media-model-wrapper.video .bb-media-section figure {
    position: relative;
    overflow: hidden;
}

.bb-media-model-wrapper.video .bb-media-section figure video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

/* Video info overlay - używa tych samych stylów co photo-info-overlay */
.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 12px;
    opacity: 1;
    z-index: 5;
}

.video-username {
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.075px;
}

.video-username span,
.video-username a {
    color: white;
    text-decoration: none;
}

.video-username a:hover {
    color: #C57C13;
}

.video-time {
    color: var(--White, #FFF);
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.075px;
}

/* Video play button overlay */
.video-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(197, 124, 19, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 8;
}

.bb-video-cover-wrap:hover .video-hover-overlay {
    opacity: 1;
}

.video-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activity video specific styles */
.bb-activity-video-elem.guest-blur img {
    filter: blur(15px);
    -webkit-filter: blur(15px);
}

.bb-activity-video-elem.guest-blur::after {
    content: "Zaloguj się, aby oglądać filmy";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.bb-activity-video-elem .disabled {
    cursor: not-allowed !important;
    pointer-events: none;
}

.video-guest-wrapper {
    position: relative;
    background: #000;
    overflow: hidden;
}
.video-info-overlay {
    display: flex;
    justify-content: space-between;
}
/* Video cover wrap positioning fix */
.bb-video-thumb {
    position: relative;
}

.bb-video-cover-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.bb-video-cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
#videos-gallery {
    padding: 0 !important;
}
/* Video duration positioning */
.bb-video-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    left: unset !important;
    bottom: unset !important;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    margin: 0;
}

/* Video loader */
.bb-video-loader {
    display: none;
}

/* Loading state dla videos gallery */
.videos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.videos-loading i {
    font-size: 48px;
    color: #C57C13;
    margin-bottom: 16px;
}

.videos-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-family: "Bricolage Grotesque";
}

/* Error state */
.videos-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.videos-error p {
    color: #e74c3c;
    font-size: 16px;
    margin: 0;
    font-family: "Bricolage Grotesque";
}

/* No videos found state */
.no-videos-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    min-height: 300px;
}

.no-videos-message {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    margin: 0 auto;
}

.no-videos-message p {
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    font-family: "Bricolage Grotesque";
}

.no-videos-message::before {
    content: "🎬";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* Alternative styling for list item */
li.no-videos-found {
    grid-column: 1 / -1;
    width: 100% !important;
    flex: none !important;
    max-width: none !important;
}

/* Responsive adjustments for no videos message */
@media (max-width: 768px) {
    .no-videos-found {
        padding: 60px 15px;
        min-height: 250px;
    }
    
    .no-videos-message {
        padding: 30px 20px;
        max-width: 300px;
    }
    
    .no-videos-message p {
        font-size: 16px;
    }
    
    .no-videos-message::before {
        font-size: 36px;
        margin-bottom: 12px;
    }
}

/* Lazy loading transition */
img.lazy {
    opacity: 0.3;
    transition: opacity 0.3s ease;
    background-color: #f5f5f5;
}

img:not(.lazy) {
    opacity: 1;
}

/* Spinner animation */
@keyframes bb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: bb-spin 1s linear infinite;
}

/* Video grid item */
.bb-video-li {
    position: relative;
    margin-bottom: 20px;
}

/* Ensure proper stacking */
.bb-video-thumb .video-action-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 15;
}