.gallery-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
}

.gallery-modal-content {
    background: #ffffff;
    width: min(900px, 95%);
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-modal-header h3 {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.gallery-modal-header p {
    margin: 0;
    color: #6c757d;
}

.gallery-modal-close {
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-modal-body img {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.modal-open {
    overflow: hidden;
}
