.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; } .modal.open { display: flex; } .modal-content { width: 90vw; height: 90vh; position: relative; display: flex; justify-content: center; align-items: center; } #modalMediaContainer { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; } #modalMediaContainer img, #modalMediaContainer video { width: 100%; height: 100%; object-fit: contain; } .modal-close { position: absolute; top: -10px; right: -10px; background: #fff; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; border: 1px solid #ccc; } .modal-info-btn { position: absolute; bottom: -10px; right: 40px; background: #fff; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid #ccc; font-size: 16px; z-index: 1500; }