.dif-popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.85);
display: none;
align-items: center;
justify-content: center;
z-index: 999999;
padding: 20px;
}
.dif-popup-overlay.dif-popup-active {
display: flex;
} .dif-popup-close {
position: fixed;
top: 20px;
right: 20px;
background: none;
border: none;
color: #fff;
font-size: 32px;
cursor: pointer;
padding: 5px 15px;
line-height: 1;
z-index: 100;
opacity: 0.8;
transition: opacity 0.2s;
}
.dif-popup-close:hover {
opacity: 1;
} .dif-popup-box {
background: #fff;
border-radius: 4px;
overflow: hidden;
display: flex;
max-width: 95vw;
max-height: 90vh;
box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
} .dif-popup-content {
display: flex;
} .dif-popup-media {
background: #000;
display: flex;
align-items: center;
justify-content: center;
} .dif-popup-media img.dif-popup-img {
display: block;
max-width: 70vw;
max-height: 85vh;
width: auto;
height: auto;
} .dif-popup-video-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.dif-popup-video-wrapper .dif-popup-video-poster {
display: block;
max-width: 70vw;
max-height: 85vh;
width: auto;
height: auto;
cursor: pointer;
}
.dif-popup-video-wrapper video {
display: block;
max-width: 70vw;
max-height: 85vh;
width: auto;
height: auto;
} .dif-popup-play-btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 70px;
height: 70px;
background: rgba(0, 0, 0, 0.6);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.dif-popup-play-btn:hover {
background: rgba(0, 0, 0, 0.8);
transform: translate(-50%, -50%) scale(1.1);
}
.dif-popup-play-btn svg {
width: 28px;
height: 28px;
margin-left: 4px;
}
.dif-popup-play-btn.dif-hidden {
display: none;
} .dif-popup-carousel {
max-width: 70vw;
max-height: 85vh;
}
.dif-popup-carousel .dif-popup-slide {
display: flex !important;
align-items: center;
justify-content: center;
background: #000;
}
.dif-popup-carousel .dif-popup-slide img {
max-width: 70vw;
max-height: 85vh;
width: auto;
height: auto;
}
.dif-popup-carousel .dif-popup-slide video {
max-width: 70vw;
max-height: 85vh;
width: auto;
height: auto;
}
.dif-popup-carousel .slick-prev,
.dif-popup-carousel .slick-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.dif-popup-carousel .slick-prev { left: 15px; }
.dif-popup-carousel .slick-next { right: 15px; }
.dif-popup-carousel .slick-prev:hover,
.dif-popup-carousel .slick-next:hover {
background: #fff;
}
.dif-popup-carousel .slick-prev svg,
.dif-popup-carousel .slick-next svg {
width: 20px;
height: 20px;
stroke: #333;
}
.dif-popup-carousel .slick-dots {
position: absolute;
bottom: 15px;
left: 50%;
transform: translateX(-50%);
display: flex !important;
gap: 6px;
padding: 0;
margin: 0;
list-style: none;
}
.dif-popup-carousel .slick-dots li button {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
border: none;
padding: 0;
font-size: 0;
cursor: pointer;
}
.dif-popup-carousel .slick-dots li.slick-active button {
background: #fff;
} .dif-popup-info {
display: none;
width: 340px;
background: #fff;
flex-direction: column;
border-left: 1px solid #efefef;
}
.dif-popup-box.dif-show-info .dif-popup-info {
display: flex;
}
.dif-popup-header {
padding: 14px 16px;
border-bottom: 1px solid #efefef;
}
.dif-popup-username {
font-weight: 600;
font-size: 14px;
color: #262626;
}
.dif-popup-caption {
flex: 1;
padding: 16px;
overflow-y: auto;
font-size: 14px;
line-height: 1.5;
color: #262626;
}
.dif-popup-meta {
padding: 12px 16px;
border-top: 1px solid #efefef;
}
.dif-popup-likes {
font-size: 14px;
font-weight: 600;
color: #262626;
margin-bottom: 4px;
}
.dif-popup-date {
font-size: 10px;
color: #8e8e8e;
text-transform: uppercase;
}
.dif-popup-footer {
padding: 12px 16px;
border-top: 1px solid #efefef;
}
.dif-popup-view-link {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 16px;
background: #0095f6;
color: #fff;
text-decoration: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
}
.dif-popup-view-link:hover {
background: #1877f2;
color: #fff;
}
.dif-popup-view-link svg {
width: 18px;
height: 18px;
fill: currentColor;
} .dif-popup-nav {
position: fixed;
top: 50%;
transform: translateY(-50%);
background: rgba(255,255,255,0.9);
border: none;
border-radius: 50%;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.dif-popup-nav:hover {
background: #fff;
}
.dif-popup-nav.dif-popup-prev { left: 20px; }
.dif-popup-nav.dif-popup-next { right: 20px; }
.dif-popup-nav svg {
width: 22px;
height: 22px;
stroke: #333;
} @media (max-width: 768px) {
.dif-popup-overlay {
padding: 0;
}
.dif-popup-box {
flex-direction: column;
max-width: 100vw;
max-height: 100vh;
height: 100vh;
border-radius: 0;
}
.dif-popup-content {
flex-direction: column;
height: 100%;
}
.dif-popup-media {
flex: 1;
}
.dif-popup-media img.dif-popup-img,
.dif-popup-video-wrapper .dif-popup-video-poster,
.dif-popup-video-wrapper video,
.dif-popup-carousel,
.dif-popup-carousel .dif-popup-slide img,
.dif-popup-carousel .dif-popup-slide video {
max-width: 100vw;
max-height: 60vh;
}
.dif-popup-box.dif-show-info .dif-popup-info {
width: 100%;
border-left: none;
border-top: 1px solid #efefef;
}
.dif-popup-nav {
display: none;
}
.dif-popup-close {
top: 10px;
right: 10px;
background: rgba(0,0,0,0.4);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
}