.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 1000; justify-content: center; align-items: center; padding: 0; } .lightbox.active { display: flex; } .lightbox-content { position: relative; width: 90%; max-width: 1200px; height: 85vh; background-color: #121212; padding: 20px; border-radius: 10px; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; overflow: hidden; } .lightbox-img-container { flex: 1; overflow: hidden; position: relative; display: flex; justify-content: center; align-items: center; } .lightbox-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; cursor: grab; border-radius: 5px; transform-origin: center center; user-select: none; will-change: transform; } .lightbox-img.grabbing { cursor: grabbing; } .lightbox-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background-color: #9B59B6; color: white; border-radius: 50%; text-align: center; line-height: 32px; cursor: pointer; font-weight: bold; font-size: 18px; z-index: 1010; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); } .lightbox-caption { margin-top: 15px; text-align: center; color: #ccc; font-size: 0.9rem; } .zoom-controls { display: flex; align-items: center; justify-content: center; margin-top: 15px; padding: 10px 0; border-top: 1px solid #444; } .zoom-label { margin-right: 10px; font-size: 0.9rem; color: #ccc; } .zoom-slider { -webkit-appearance: none; width: 70%; height: 6px; border-radius: 3px; background: #444; outline: none; } .zoom-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #9B59B6; cursor: pointer; } .zoom-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #9B59B6; cursor: pointer; border: none; } .zoom-value { margin-left: 10px; font-size: 0.9rem; min-width: 40px; color: #ccc; } @media (max-width: 768px), (max-width: 1024px) and (orientation: landscape) { .lightbox-content { width: 100%; height: 100%; padding: 15px; border-radius: 0; } .zoom-controls { display: flex; } }