95 lines
2.0 KiB
CSS
95 lines
2.0 KiB
CSS
/* =========================================
|
|
Paper Burner - Image Lightbox Styles
|
|
========================================= */
|
|
|
|
.lightbox-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(15, 23, 42, 0.9); /* Slate 900 with opacity */
|
|
backdrop-filter: blur(5px);
|
|
z-index: 2000; /* High z-index to be on top of everything including immersive mode */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
}
|
|
|
|
.lightbox-overlay.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.lightbox-content {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
position: relative;
|
|
transform: scale(0.95);
|
|
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Slight bounce effect */
|
|
}
|
|
|
|
.lightbox-overlay.active .lightbox-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.lightbox-image {
|
|
max-width: 100%;
|
|
max-height: 90vh;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
|
user-select: none;
|
|
}
|
|
|
|
.lightbox-close-btn {
|
|
position: absolute;
|
|
top: -40px;
|
|
right: 0;
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
padding: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lightbox-close-btn:hover {
|
|
opacity: 1;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.lightbox-caption {
|
|
position: absolute;
|
|
bottom: -30px;
|
|
left: 0;
|
|
width: 100%;
|
|
text-align: center;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Loading spinner for large images */
|
|
.lightbox-spinner {
|
|
border: 4px solid rgba(255, 255, 255, 0.1);
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
border-left-color: var(--color-primary-500, #3b82f6);
|
|
animation: lightbox-spin 1s linear infinite;
|
|
position: absolute;
|
|
}
|
|
|
|
@keyframes lightbox-spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
} |